.ps-breadcrumb .breadcrumb a {
color: rgb(155, 35, 33);
}

#back2top:hover  i {
color:white;
}
h1, h2, h3, h4, h5, h6 {
color: #383e42;
}
.ps-product--cart-mobile .ps-product__content a {
color: #383e42;
}
.ps-breadcrumb {
    background-color: white;
}
.ps-product--detail .ps-product__specification p.categories a {
color: rgb(155, 35, 33);
}
.ps-product .ps-product__title {
color: #383e42;
}
.a126-secondary-button {
    height: 4.5rem;
    width: 100%;
}
 .a126-secondary-button.is-gray {
    border: .1rem solid #cdcdcd;
}
 .a126-secondary-button {
    border: .2rem solid #2fc48d;
    padding: 1rem 3.6rem;
    background: rgba(0, 0, 0, 0);
    cursor: pointer;
    border-radius: .4rem;
}
.a126-secondary-button {
    display: inline-flex;
    align-items: center;
    min-width: 12.6rem;
    min-height: 4.5rem;
    position: relative;
    color: #2fc48d;
    vertical-align: middle;
    transition: all .15s ease;
    text-decoration: none;
    justify-content: center;
}
.a126-secondary-button .icon {
    height: 2rem;
    width: 2rem;
      display: inline-block;
    vertical-align: middle;

}
.a126-secondary-button  .icon svg {
    height: 100%;
    width: 100%;
    display: block;
    fill: rgb(155, 35, 33);
}
.a126-secondary-button .icon~.cta-text {
    margin-left: .6rem;
}
.a126-secondary-button.is-gray .cta-text {
    color: #838383;
    transition: color .25s linear;
    font-weight: 400;
}
.a126-secondary-button .cta-text {
    text-align: center;
}
.a126-secondary-button .cta-text {
    font-weight: 600;
    line-height: 1;
}
.widget_features {
    background-color: white; 
      padding-top: 0px;
   
}
.a126-secondary-button.is-gray:hover {
    border: .1rem solid rgb(155, 35, 33);
}
.a126-secondary-button:hover {
    color: rgb(155, 35, 33);
}
.product-hero-detail-label {
    text-align: center;
    padding-bottom: 5px;
}
.attribute-swatch-item  label {
    font-size: 16px;
}
.ps-product--header-sticky .ps-product__price span {
    color: #383e42;
}
.ps-product--detail h1 {
    color: #383e42;
}
.product__attribute>label {
    margin-bottom: 10px;
  font-size: 18px;
}
.bg-light-mod {
    background-color: #f6f7fb;
}
.select2-container--default .select2-selection--single {
    border: 1px solid #d8e0e6;
}
.ps-product-list .ps-section__header {
    background-color: #f6f7fb;
  border-bottom: unset;
}
.ps-product-list .ps-section__header h3 {
    font-size: 18px;
}
.tp-product-details-additional-info table td:first-child {
    background-color: #f6f7fb;
}
.widget_shop {
background-color: white;
      border: .1rem solid #e1e1e1;
    border-radius: 3px;
}
.ps-product--wide .ps-product__content {
    max-width: 600px;
}
.widget--blog .widget__title {
color: #383e42;
}
.ps-page--blog .ps-page__header {
    padding-top: 60px;
    padding-bottom: 60px;
}
.widget--blog .widget__title {
margin-bottom: 15px;
}
.widget--blog.widget--recent-post .widget__content a {
color: #383e42;
  font-weight:400;
}
.triangle-container {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    width: 50px; /* Combined width for both triangles */
    height: 30px; /* Height of each triangle */
}

.red-triangle {
    width: 0;
    height: 0;
    border-top: 30px solid #C8102E; /* Red color */
    border-right: 30px solid transparent;
}

.grey-triangle {
    width: 0;
    height: 0;
    border-bottom: 30px solid #333333; /* Grey color */
    border-left: 30px solid transparent;
    margin-left: -30px; /* Overlaps with the red triangle */
}
.widget_shop .widget-title {
text-transform: none;
}
.ps-table--shopping-cart thead tr th {
    background-color: #f6f7fb;
}
.ps-block--shopping-total {
  background-color: #f6f7fb;
}
.ps-product--cart .ps-product__content a {
    color: #383e42;
}
.ps-list--link li a:before, .ps-footer__links p a:before {
background-color: #9b2321 !important;
}
.ps-product:hover {
    border-color: #9b2321;
}
#back2top.active {
bottom: 80px;
}
#calculator-modal .product-image-50 {
        max-width: 50%;
    }


#calculator-modal .modal-close {
  transition: all .5s ease;
  position: absolute;
    right: 15px;
    top: 15px;
}
*:focus {
       user-select: none!important;    /* Prevent text selection */
    outline: none !important;     /* Remove focus outline */
}
body, div, span, p {
    cursor: pointer;
}
input, textarea, select {
    cursor: text;
}
#calculator-modal .modal-body {
    padding: 30px;
}
.ps-btn:hover, .ps-btn:active, button.ps-btn:hover, button.ps-btn:active {
    background-color: #b02826;
}
#calculator-modal .btn-center {
    display: block;
    margin: 0 auto;
}
#calculator-modal .input-group-text {
    background-color: #f6f7fb;

}
#calculator-modal .modal-title {
color: rgb(155, 35, 33);
}
#calculator-modal .modal-header {
    text-align: center;
      padding-left: 30px;
    padding-right: 30px;
  display: block;
 
}
#calculator-modal .modal-header  h4{
  font-weight: 600;
}
.btn-secondary {
    color: #fff;
    background-color: #878581;
    border-color: #878581;
}
.btn-secondary:not(:disabled):not(.disabled).active, .btn-secondary:not(:disabled):not(.disabled):active, .show>.btn-secondary.dropdown-toggle {
    background-color: rgb(155, 35, 33) !important;
    border-color: rgb(155, 35, 33) !important;
}
#calculator-modal p {
color: #383e42;
}

#calculator-modal .btn-secondary {
    font-size: 16px;
}
#calculator-modal .btn-secondary.focus {
   box-shadow: none !important;
}
.help-image-placeholder {
    width: 120px;
    position: absolute;
    top: 20px;
    right: 30px;
}
#result-section .result-title {
    padding-top: 30px;
}
#result-section .text-muted {
    margin-bottom: 30px;
}
.header--mobile .header__extra span i,.header .header__extra:hover i {
    color: var(--color-1st);
}
@media (max-width: 767px) {
    .footer-payments {
           width: 100%;
    }
  .footer-payments .payment-method-title {
  	display:none;
  }
  .ps-product-list .ps-section__links {
      text-align: center;
  }
  .ps-section__header h3 {
      padding-left: unset !important;
        margin-left: auto;
    margin-right: auto;
  }
  .ps-section__header img {
  display: none;
  }
}

.navigation__right .current-menu-item {
	background: #A73A38;
}
.navigation__right li a:hover {
	color: #FCECEC !important;
}
   .custom-ps-shop-categories {
        margin-bottom: 20px;
    }

    .custom-ps-block-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 20px;
    }

    .custom-ps-block__wrapper {
        display: flex;
        align-items: stretch; /* Ensure both elements fill available height */
        justify-content: center;
        width: 100%;
        max-width: 350px; /* Adjust as needed for overall width */
        margin-bottom: 10px;
       
        overflow: hidden; /* Ensure the image and color grid are visually combined */
          transition: transform 150ms ease-in-out;
    }
.custom-ps-block__wrapper:hover {
 transform: scale(1.05) translateY(4px);
}
   
    .custom-ps-block__thumbnail {
        flex: 1;
        display: flex;
    }

    .custom-ps-block__thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .custom-color-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Two columns */
        grid-template-rows: repeat(3, 1fr); /* Three rows */
        flex: 1;
        gap: 0; /* Remove any space between color blocks */
        width: 100%;
        max-width: 120px; /* Width of color grid */
    }

    .custom-color-box {
        width: 100%;
        height: 100%;
    }

    .custom-ps-block__content h4 {
        margin-top: 10px;
    }
.custom-groups-collections h3 {
	     margin-bottom: 0px;
    font-size: 18px;
    font-weight: 600;
}
.group_wrapper {
background-color: #f6f7fb;
}
.h_wrapper {
   margin-left: 35px;
      padding-top: 10px;
    padding-bottom: 10px;
}
.h_wrapper p {
    margin-bottom: 0px;
}
.custom-groups-collections-content {
margin-top: 30px;
}
.custom-groups-collections {
 margin-bottom: 30px;
}
/* color collections inside page */


.custom-page-layout {
    display: flex;
    flex-direction: row;
    padding: 20px;
    gap: 20px;
}

/* Left panel */
.custom-left-panel {
    flex: 0 0 320px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 50px);
}

.custom-main-image-wrapper {
    width: 100%;
    margin-bottom: 20px;
}

.custom-main-image {
    width: 100%;
   
}

.custom-collection-info {
   
   
}

.custom-brand-logo {
    margin-bottom: 10px;
}

.custom-brand-logo-img {
    width: 60px;
    height: auto;
}

.custom-collection-title {
    font-size: 21px;
    font-weight: bold;
    margin-bottom: 10px;
}

.custom-collection-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Right panel */
.custom-right-panel {
    flex: 1;
    position: relative;
    overflow-y: auto;
    padding: 24px;
}

/* Responsive grid for color cards */
.custom-color-grid-mod {
    display: grid;
    grid-template-columns: repeat(2, minmax(100px, 1fr)); /* Default for smaller screens */
    grid-auto-rows: max-content;
    gap: 16px;
}

/* Responsive grid columns based on screen width */
@media (min-width: 900px) {
    .custom-color-grid-mod {
        grid-template-columns: repeat(4, minmax(100px, 1fr));
    }
}

@media (min-width: 1200px) {
    .custom-color-grid-mod {
        grid-template-columns: repeat(5, minmax(150px, 1fr));
    }
}

@media (min-width: 1536px) {
    .custom-color-grid-mod {
        grid-template-columns: repeat(6, minmax(180px, 1fr));
    }
}

/* Color card styling */
.custom-color-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Make color cards square */
      transition: transform 150ms ease-in-out;
    box-shadow: rgba(0, 0, 0, 0.13) 2px 2px 7px;
    background-color: #f9f7ed;
    overflow: hidden;
}
.custom-color-card:hover {
    transform: scale(1.05) translateY(4px);
}
.custom-color-card-link {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: flex-end;
    justify-content: flex-start;
    position: absolute;
    bottom: 0;
    text-decoration: none;
    color: inherit;
}

/* Color box and label */
.custom-color-box {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 8px;
}

.custom-color-label {
    position: absolute;
    bottom: 5px;
    left: 8px;
    font-size: 14px;
    color: #333;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 3px 5px;

    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.custom-color-main-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.custom-color-main-image {
    width: 100%;
    max-width: 300px; /* Sets the max width */
    aspect-ratio: 1 / 1; /* Keeps it square */
   
    background-size: cover; /* Ensures background covers the div if it's an image */
    background-position: center;
}

/* Responsive adjustments for color detail page */
@media (max-width: 768px) {
    .custom-color-main-image {
        max-width: 100%; /* Full width on tablets */
        width: 100%; /* Ensure it takes full available width */
        max-height: 400px; /* Limit height for reasonable proportions */
    }
    
    .custom-color-main-image-wrapper {
        padding: 10px; /* Reduce padding on smaller screens */
    }
}

@media (max-width: 480px) {
    .custom-color-main-image {
        max-width: 100%; /* Full width on mobile */
        width: 100%; /* Ensure it takes full available width */
        max-height: 300px; /* Slightly smaller height limit on very small screens */
    }
    
    .custom-color-main-image-wrapper {
        padding: 5px; /* Minimal padding on very small screens */
    }
}
.custom-color-ollection-link:hover {
 border: 1px solid #9b2321 !important; 
}

/* Responsive styles for custom panels on color palette pages */
@media (max-width: 991px) {
    /* Switch to column layout on tablets and mobile */
    .custom-page-layout {
        flex-direction: column;
        padding: 15px;
    }
    
    /* Make left panel full width on mobile */
    .custom-left-panel {
        flex: 1 1 100%;
        width: 100%;
        min-height: auto;
        margin-bottom: 20px;
    }
    
    /* Adjust right panel */
    .custom-right-panel {
        padding: 15px;
    }
    
    /* Center the main image on mobile */
    .custom-main-image-wrapper {
        text-align: center;
    }
    
    .custom-main-image {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 767px) {
    /* Further mobile optimizations */
    .custom-page-layout {
        padding: 10px;
        gap: 15px;
    }
    
    /* Optimize collection info for mobile */
    .custom-collection-info {
        padding: 0 10px;
    }
    
    .custom-collection-title {
        font-size: 18px;
    }
    
    .custom-collection-description {
        font-size: 13px;
    }
    
    /* Make right panel padding smaller on mobile */
    .custom-right-panel {
        padding: 10px;
    }
    
    /* Adjust color grid for very small screens */
    #color-palette-app .color-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
        gap: 8px !important;
    }
}

@media (max-width: 575px) {
    /* Extra small devices */
    .custom-page-layout {
        padding: 5px;
        gap: 10px;
    }
    
    /* Make color grid 2 columns on very small screens */
    #color-palette-app .color-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    
    /* Smaller font sizes for mobile */
    .custom-collection-title {
        font-size: 16px;
    }
    
    /* Adjust the total colors badge */
    #colors-badge {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    
    #colors-badge svg {
        width: 14px !important;
        height: 14px !important;
    }
}

@media (max-width: 374px) {
    /* Very small phones */
    #color-palette-app .color-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 4px !important;
    }
    
    /* Even smaller color cards on tiny screens */
    #color-palette-app .color-card div[style*="height: 100px"] {
        height: 80px !important;
    }
}

/* Ensure images don't overflow their containers on mobile */
.custom-page-layout img {
    max-width: 100%;
    height: auto;
}

/* Make search input responsive */
#color-palette-app input[type="text"] {
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure color cards maintain aspect ratio on all devices */
.color-card > div:first-child {
    width: 100% !important;
}

/* Fix any overflow issues on mobile */
@media (max-width: 767px) {
    .custom-page-layout {
        overflow-x: hidden;
    }
    
    body {
        overflow-x: hidden;
    }
    
    /* Ensure color detail page specific elements are fully responsive */
    .custom-main-image-wrapper {
        width: 100%;
        margin: 0 auto;
    }
    
    /* Override any inline styles for the color square on mobile */
    .custom-color-main-image[style*="background-color"] {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
        display: block;
    }
    
    /* Ensure the parent container doesn't restrict width */
    .custom-left-panel .custom-main-image-wrapper {
        max-width: none;
        width: 100%;
        padding: 10px;
    }
    
    /* Make the collection info section responsive */
    .custom-collection-info {
        width: 100%;
        padding: 10px;
    }
    
    /* Ensure tables in color details are responsive */
    .color-table-wrapper {
        width: 100%;
        overflow-x: auto;
    }
    
    .color-table-wrapper table {
        width: 100%;
        min-width: 280px;
    }
}

/* Fix color visualization responsiveness */
.color-visualization {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    background: #f8f8f8;
    border-radius: 3px;
    overflow: hidden;
    min-height: auto !important; /* Override inline min-height */
}

.color-visualization img {
    width: 100%;
    height: auto;
    display: block !important; /* Ensure image is visible */
}

/* Mobile-specific visualization fixes */
@media (max-width: 767px) {
    .color-visualization {
        min-height: auto !important; /* Remove min-height on mobile */
        max-width: 100% !important;
        background: transparent !important; /* Remove background when image loads */
    }
    
    /* Ensure the visualization container adapts to image height */
    #color-repaint-app .color-visualization {
        min-height: auto !important;
        height: auto !important;
    }
    
    /* Remove any fixed heights on mobile */
    .custom-right-panel .color-visualization {
        min-height: auto !important;
    }
}

@media (max-width: 480px) {
    /* Even more aggressive mobile overrides for very small screens */
    .color-visualization[style*="min-height"] {
        min-height: auto !important;
    }
    
    /* Ensure visualization image is fully responsive */
    .color-visualization img[style] {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }
}