 
.shop-master-canvas {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 30px 50px 100px 50px; /* Elevated top padding to clear absolute header layouts */
    background-color: var(--bg-color, #FAF9F6);
}

/* ==========================================================================
   TOP TOOLBAR HEADER STRIP GRID BOUNDARIES
   ========================================================================== */
.shop-utility-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 25px;
    margin-bottom: 45px;
    border-bottom: 1px solid var(--border-color, rgba(216, 207, 188, 0.3));
}

.entries-counter-text {
    font-family: var(--primary-font);
    font-size: 13px;
    color: var(--olive-drab);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.sorting-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-label {
    font-family: var(--primary-font);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--warm-taupe);
    font-weight: 600;
}

.shop-custom-select {
    appearance: none;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 10px 40px 10px 16px;
    font-family: var(--primary-font);
    font-size: 13px;
    color: var(--smokey-black);
    cursor: pointer;
    border-radius: 0;
    outline: none;
    transition: border-color 0.3s ease;
}

.shop-custom-select:focus {
    border-color: var(--smokey-black);
}

.select-custom-arrow {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23565449'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

/* ==========================================================================
   MAIN LAYOUT BODY MATRIX GRID ALLOCATION
   ========================================================================== */
.shop-layout-matrix {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    width: 100%;
}

/* Left Sidebar Filtering Panel (Sticky & Independently Scrollable without visible scrollbars) */
.shop-filter-sidebar {
    flex: 0 0 260px;
    width: 260px;
    position: sticky;
    top: 30px; 
    height: calc(100vh - 60px); 
    overflow-y: auto;           /* Keeps the scrolling functionality active */
    
    /* --- HIDE SCROLLBAR FOR FIREFOX --- */
    scrollbar-width: none;      
    
    /* --- HIDE SCROLLBAR FOR IE / EDGE --- */
    -ms-overflow-style: none;   
    
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: left;
}

/* --- HIDE SCROLLBAR FOR CHROME, SAFARI, & NEW EDGE --- */
.shop-filter-sidebar::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.filter-group-block {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.filter-block-title {
    font-family: var(--serif-font);
    font-size: 20px;
    font-weight: 500;
    color: var(--smokey-black);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 8px;
}

.filter-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-anchor {
    font-family: var(--primary-font);
    font-size: 13.5px;
    color: var(--olive-drab);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    justify-content: space-between;
    width: 100%;
}

.filter-anchor:hover, .filter-anchor.active-node {
    color: var(--smokey-black);
    font-weight: 500;
    padding-left: 4px;
}

.count-badge {
    font-size: 11px;
    color: var(--warm-taupe);
    font-weight: 400;
}

/* Filtering Swatches Grid Configuration */
.filter-swatches-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    width: 100%;
}

.filter-swatch-node {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    cursor: pointer;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.filter-swatch-node:hover {
    transform: scale(1.15);
}

.filter-swatch-node.active-filter-highlight {
    outline: 1px solid var(--smokey-black);
    outline-offset: 3px;
}

/* High-End Architecture Checkbox Rows Stack */
.filter-checkbox-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.custom-checkbox-container {
    display: block;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-family: var(--primary-font);
    font-size: 13px;
    color: var(--olive-drab);
    user-select: none;
    line-height: 18px;
}

.custom-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.custom-checkbox-container:hover input ~ .checkbox-checkmark {
    border-color: var(--smokey-black);
}

.custom-checkbox-container input:checked ~ .checkbox-checkmark {
    background-color: var(--smokey-black);
    border-color: var(--smokey-black);
}

.checkbox-checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.custom-checkbox-container input:checked ~ .checkbox-checkmark::after {
    display: block;
}

.clear-all-filters-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--smokey-black);
    color: var(--smokey-black);
    font-family: var(--primary-font);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.clear-all-filters-btn:hover {
    background-color: var(--smokey-black);
    color: #ffffff;
}

/* ==========================================================================
   RIGHT SIDE COLUMN: 4-COLUMN EDITORIAL SHOWCASE GRID (PC MODE)
   ========================================================================== */
.shop-products-showcase {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Products in 1 Row on PC mode */
    gap: 40px 24px; /* Balanced macro vertical and lateral grid spacings */
    width: 100%;
}

/* High-End Star Ratings inside Card Metadata */
.shop-ratings-stars-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 2px 0;
}

.stars-track {
    display: flex;
    gap: 3px;
    color: #ffcc00;
    font-size: 10px;
}

.ratings-count-hint {
    font-family: var(--primary-font);
    font-size: 11px;
    color: var(--warm-taupe);
}

/* Card Integrated Text Discount Description Styles */
.product-discount-description-tag {
    font-family: var(--primary-font);
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--olive-drab);
    font-weight: 300;
    margin: 4px 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Truncates clean layout boundaries at 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mini Item Color Selector Swatches Track */
.shop-item-swatches-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
}

.shop-swatch-node {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.shop-swatch-node:hover {
    transform: scale(1.2);
}

.shop-swatch-node.active-selected {
    outline: 1px solid var(--smokey-black);
    outline-offset: 2px;
}

/* ==========================================================================
   PREMIUM PAGINATION NAVIGATION LANE STRIP
   ========================================================================== */
.shop-pagination-navigation-lane {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    border-top: 1px solid var(--border-color, rgba(216, 207, 188, 0.3));
    padding-top: 40px;
}

.pagination-matrix-track {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-numeric-anchor, .pagination-arrow-anchor {
    font-family: var(--primary-font);
    font-size: 13px;
    text-decoration: none;
    color: var(--smokey-black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.pagination-numeric-anchor {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid transparent;
}

.pagination-numeric-anchor:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.pagination-numeric-anchor.active-page-node {
    background-color: var(--smokey-black);
    color: #ffffff;
    font-weight: 500;
}

.pagination-arrow-anchor {
    padding: 0 16px;
    height: 38px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    font-weight: 600;
    gap: 8px;
}

.pagination-arrow-anchor:not(.disabled-control-node):hover {
    background-color: var(--smokey-black);
    color: #ffffff;
    border-color: var(--smokey-black);
}

.pagination-arrow-anchor.disabled-control-node {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-dots-separator {
    font-family: var(--primary-font);
    font-size: 14px;
    color: var(--warm-taupe);
    padding: 0 4px;
    user-select: none;
}

 
/* --- Breadcrumb Navigation System --- */
.breadcrumb-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 160px 50px 20px 50px; /* High top clearance for fixed absolute navbar headers */
    background-color: transparent;
    display: flex;
    justify-content: center; /* PERFECTLY CENTERED FOR EDITORIAL HARMONY */
    align-items: center;
}

.breadcrumb-trail {
    font-family: var(--primary-font);
    font-size: 13px;
    letter-spacing: 0.5px;
    color: var(--olive-drab);
    font-weight: 400;
    line-height: 1.5;
    text-align: center; /* Ensures text-based wrapper layers compute dead center */
}

.breadcrumb-trail a {
    color: var(--olive-drab);
    text-decoration: none;
    transition: color 0.25s ease;
}

.breadcrumb-trail a:hover {
    color: var(--smokey-black);
}

.breadcrumb-separator {
    margin: 0 12px;
    opacity: 0.35;
    color: var(--olive-drab);
    user-select: none;
}

.breadcrumb-trail span.active-node {
    color: var(--warm-taupe);
    font-weight: 400;
}

/* ==========================================================================
   RESPONSIVE BREADCRUMB TUNING UPGRADES
   ========================================================================== */
@media (max-width: 992px) {
    .breadcrumb-container {
        padding: 160px 20px 15px 20px;
        justify-content: center; /* Maintains centered tracking framework on smaller viewport layers */
    }
    .breadcrumb-trail {
        font-size: 12px;
        white-space: nowrap;
        overflow-x: auto;
        display: block;
        width: 100%;
        scrollbar-width: none; /* Hides secondary visual tracking tracks on Firefox */
        -webkit-overflow-scrolling: touch;
    }
    .breadcrumb-trail::-webkit-scrollbar {
        display: none; /* Hides dynamic webkit overflow sliders completely on touch devices */
        width: 0;
        height: 0;
    }
}

@media (max-width: 576px) {
    .breadcrumb-container {
        padding: 160px 20px 10px 20px; /* Compact top gaps on modern smartphones */
    }
} 

/* ==========================================================================
   BASE DESKTOP CONTROLS (Hide modern HTML button on wide screens)
   ========================================================================== */
@media (min-width: 769px) {
    .mobile-filter-trigger-btn {
        display: none !important;
    }
}

/* ==========================================================================
   HIGH-END MOBILE RESPONSIVE MATRIX ARCHITECTURE (Max-Width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Canvas Adjustments */
    .shop-master-canvas {
        padding: 20px 20px 60px 20px;
    }

    /* 2. Top Utility Strip Redesign matching the provided Layout Grid */
    .shop-utility-toolbar {
        display: grid;
        grid-template-areas: 
            "filter entries"
            "sortwrapper sortwrapper";
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 20px 12px;
        padding-bottom: 20px;
        margin-bottom: 30px;
    }

    .toolbar-left {
        grid-area: filter;
        display: flex;
        align-items: center;
    }

    /* Sleek Pill Button Style mapped to new HTML Element architecture */
    .mobile-filter-trigger-btn {
        display: inline-flex;
        align-items: center;
        gap: 10px; /* Balanced space between icon and text label */
        font-family: var(--primary-font);
        font-weight: 400;
        font-size: 13px;
        color: var(--text-color);
        background-color: var(--smokey-black);
        padding: 10px 24px;
         border: none;
        cursor: pointer;
        margin-right: 15px;
        outline: none;
        transition: opacity 0.2s ease;
    }

    /* New rules for your custom filter PNG image */
    .mobile-filter-png-icon {
        width: 16px;         /* Keeps it elegant and perfectly scaled */
        height: auto;
        object-fit: contain;
        display: inline-block;
        vertical-align: middle;
        flex-shrink: 0;
    }

    .mobile-filter-trigger-btn:hover {
        opacity: 0.9;
    }
    
    .mobile-filter-trigger-btn i {
        font-size: 12px;
    }

    .entries-counter-text {
        grid-area: entries;
        font-size: 12px;
        white-space: nowrap;
        color: #7f7f7f;
        text-align: left;
    }

    .toolbar-right {
        grid-area: sortwrapper;
        width: 100%;
    }

    .sorting-wrapper {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }

    .sort-label {
        font-size: 12px;
        color: #7f7f7f;
        letter-spacing: 1px;
        flex-shrink: 0;
    }

    .shop-custom-select {
        flex-grow: 1;
        width: 100%;
        max-width: 100%;
         border: 1px solid rgba(0, 0, 0, 0.08);
        padding: 12px 40px 12px 20px;
        background-color: #ffffff;
    }

    .select-custom-arrow {
        background-position: right 20px center;
    }

    /* 3. Main Matrix Stack */
    .shop-layout-matrix {
        flex-direction: column;
        gap: 30px;
    }
 
    /* 5. Product Cards Display Configuration: 1 BELOW 1 (Strict Stack Mode) */
    .shop-products-showcase {
        width: 100%;
    }

    .shop-products-grid {
        grid-template-columns: 1fr !important; /* Forces layout to stack precisely 1 below 1 */
        gap: 35px;
    }

    .product-card {
        width: 100%;
        margin: 0 auto;
    }

    /* 6. Mobile Minimalist Pagination Lane Configuration (< 1 > Display) */
    .pagination-matrix-track .pagination-node-item:has(.pagination-numeric-anchor:not(.active-page-node)),
    .pagination-matrix-track .pagination-node-item:has(.pagination-dots-separator) {
        display: none;
    }

    .pagination-arrow-anchor {
        padding: 0;
        width: 38px;
        height: 38px;
        border-radius: 50%; /* Perfect round alignment alongside active center page node */
        font-size: 0;        /* Safely strips away layout text elements ('Prev' / 'Next') */
    }

    .pagination-arrow-anchor i {
        font-size: 12px; /* Restores chevron visibility scale inside navigation tracks */
    }
}


.entries-counter-text {
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal; 
    text-align: center;  
}



/* ==========================================================================
   HIGH-END MOBILE RESPONSIVE FULL-SCREEN FILTER SCREEN (Max-Width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Base configuration container covers the complete mobile viewport */
    .shop-filter-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 3000; /* Dominates the e-commerce utility toolbars and header navs */
        display: block;
        pointer-events: none; /* Clicks bypass hidden screen state layer seamlessly */
    }

    /* Overlay mask transitions to a clean white canvas wash background instead of a dark tint blur */
    .filter-drawer-overlay-mask {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #ffffff;
        opacity: 0;
        transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        pointer-events: none;
    }

    /* The main structural filter tray container takes full-width and full-height screen properties */
    .filter-drawer-window {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 100%; /* Spreads edge to edge completely */
        height: 100%;
        background-color: #ffffff;
        display: flex;
        flex-direction: column;
        padding: 40px 24px 60px 24px; /* Generous padding layouts tailored for mobile fingertips */
        gap: 35px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Butter-smooth native iOS scroll inertia kinetics */
        
        /* Premium sliding aesthetic choice: Slides cleanly up from the bottom boundary line */
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }

    /* Active structural presentation status rules triggered by JS toggles */
    .shop-filter-sidebar.drawer-active {
        pointer-events: auto; /* Activates interactive checkbox / category parameters click actions */
    }

    .shop-filter-sidebar.drawer-active .filter-drawer-overlay-mask {
        opacity: 1;
        pointer-events: auto;
    }

    .shop-filter-sidebar.drawer-active .filter-drawer-window {
        transform: translateY(0); /* Shifts panel structure into exact viewpoint focus boundaries */
    }

    /* Top mobile header strip parameters adjusted for absolute clarity alignment */
    .filter-drawer-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        margin-bottom: 5px;
    }

    .filter-drawer-serif-title {
        font-family: var(--serif-font), 'Cormorant Garamond', serif;
        font-size: 24px; /* Slightly elevated scale signature for the full-screen canvas layout */
        font-weight: 500;
        color: var(--smokey-black, #010100);
        letter-spacing: 0.5px;
        margin: 0;
    }

    .filter-drawer-close-btn {
        background: transparent;
        border: none;
        font-size: 34px;
        color: var(--warm-taupe, #A0988A);
        cursor: pointer;
        line-height: 1;
        padding: 0;
        transition: color 0.3s ease;
    }

    .filter-drawer-close-btn:hover {
        color: var(--smokey-black, #010100);
    }
}

/* Ensure template grids collapse back into their normal desktop rules inside wide PC views */
@media (min-width: 769px) {
    .filter-drawer-overlay-mask,
    .filter-drawer-mobile-header {
        display: none !important;
    }
    .filter-drawer-window {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
}

 
/* ==========================================================================
   DYNAMIC SUBCATEGORIES & TREE HIERARCHY STYLES
   ========================================================================== */

/* Parent Category Container */
.category-tree-item {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Subcategory List Wrapper */
.filter-sublinks-list {
    list-style: none;
    padding: 6px 0 6px 14px;
    margin: 4px 0 6px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Subcategory Anchor Link */
.filter-subanchor {
    font-family: var(--primary-font);
    font-size: 12.5px;
    color: var(--olive-drab, #565449);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    width: 100%;
}

.filter-subanchor i {
    font-size: 9px;
    color: var(--warm-taupe, #A0988A);
    transition: transform 0.25s ease, color 0.25s ease;
}

.filter-subanchor:hover,
.filter-subanchor.active-subnode {
    color: var(--smokey-black, #1a1a1a);
    font-weight: 500;
    padding-left: 3px;
}

.filter-subanchor:hover i,
.filter-subanchor.active-subnode i {
    color: var(--smokey-black, #1a1a1a);
    transform: translateX(2px);
}

/* ==========================================================================
   RATING FILTER STACK & STAR DISPLAY
   ========================================================================== */

.filter-rating-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.filter-rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 2px;
    transition: background-color 0.25s ease;
    cursor: pointer;
}

.filter-rating-row:hover,
.filter-rating-row.active-rating-node {
    background-color: rgba(0, 0, 0, 0.04);
}

.filter-rating-row .stars-gold {
    display: flex;
    gap: 3px;
    color: #d4af37;
    font-size: 11px;
}

.filter-rating-row .rating-text-label {
    font-family: var(--primary-font);
    font-size: 12px;
    color: var(--olive-drab, #565449);
    font-weight: 400;
}

.filter-rating-row.active-rating-node .rating-text-label {
    color: var(--smokey-black, #1a1a1a);
    font-weight: 600;
}

/* ==========================================================================
   SWATCH & BUTTON LINK ENHANCEMENTS
   ========================================================================== */

/* Enables smooth link styling when swatches are rendered inside <a> tags */
a.filter-swatch-node {
    display: block;
    text-decoration: none;
    box-sizing: border-box;
}

/* Ensure reset button inside <a> renders correctly */
a.clear-all-filters-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

/* ==========================================================================
   MOBILE FULL-SCREEN ADJUSTMENTS FOR SUBCATEGORIES
   ========================================================================== */

@media (max-width: 768px) {
    .filter-sublinks-list {
        padding-left: 18px;
        margin-top: 8px;
        gap: 10px;
    }

    .filter-subanchor {
        font-size: 13.5px; /* Enhanced touch surface size for mobile displays */
        padding: 4px 0;
    }

    .filter-rating-row {
        padding: 8px 10px;
    }
}


/* ==========================================================================
   PRODUCT IMAGE CONTAINER FIT FIX (Removes Top/Bottom White Gaps)
   ========================================================================== */


.product-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;  
    overflow: hidden;
    background-color: transparent;
    display: flex;
}

.product-img-box > a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.product-img-box img.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
    display: block;
}