/* ══════════════════════════════════════════
   SHOP-SPECIFIC LAYOUT STYLES
══════════════════════════════════════════ */

/* Mobile Filter Drawer */
.filter-drawer {
    position: fixed;
    left: 0;
    top: var(--sticky-m);
    width: min(300px, 88vw);
    height: calc(100dvh - var(--sticky-m));
    background: var(--white);
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform var(--ease);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.filter-drawer.show {
    transform: translateX(0);
}

/* Ensure global right slide panels are truly full-width on mobile for shop pages */
@media (max-width: 991px) {
    .r-panel {
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }
}

.fd-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 2;
}

.fd-head span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.fd-foot {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    position: sticky;
    bottom: 0;
    background: var(--white);
    z-index: 2;
}

.fd-body {
    flex: 1;
    overflow-y: auto;
}

/* Sidebar & Shared Filter Styles */
.sb-sec {
    padding: 20px 18px;
    border-bottom: 1px solid var(--border);
}

.sb-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--fb);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--charcoal);
    cursor: pointer;
    user-select: none;
}

.sb-head i {
    color: var(--mid-grey);
    transition: transform var(--ease);
    font-size: 11px;
}

.sb-head.collapsed i {
    transform: rotate(-90deg);
}

.sb-body {
    margin-top: 12px;
}

.sb-links {
    list-style: none;
}

.sb-links li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    font-size: 13px;
    color: var(--mid-grey);
    border-radius: 2px;
    transition: all var(--ease);
}

.sb-links li a:hover,
.sb-links li a.active {
    color: var(--charcoal);
    background: var(--cream);
}

.sb-links li a.active {
    color: var(--gold);
    font-weight: 500;
}

.sb-cnt {
    font-size: 10px;
    color: var(--light-grey);
    background: var(--cream);
    padding: 1px 6px;
    border-radius: 8px;
    flex-shrink: 0;
}

.sb-links li a.active .sb-cnt {
    background: rgba(201, 168, 76, 0.12);
    color: var(--gold);
}

.sb-links-sub {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sb-links-sub li a {
    padding-left: 28px;
    font-size: 12px;
    color: var(--mid-grey);
}

.sb-links-sub li a::before {
    content: '—';
    margin-right: 6px;
    opacity: 0.4;
    font-size: 10px;
}

.price-slider-wrap {
    position: relative;
    height: 30px;
    margin: 10px 4px 5px;
}

.price-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 3px;
    background: var(--light-grey);
    border-radius: 4px;
    z-index: 1;
}

.price-fill {
    position: absolute;
    height: 100%;
    background: var(--gold);
    border-radius: 4px;
}

.price-slider-wrap input[type="range"] {
    position: absolute;
    width: 100%;
    background: none;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    height: 4px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    margin: 0;
}

.price-slider-wrap input[type="range"]::-webkit-slider-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--gold);
    cursor: pointer;
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s ease;
}

.price-slider-wrap input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.price-slider-wrap input[type="range"]::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--gold);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: var(--charcoal);
    margin-top: 5px;
}

.size-grp {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sz-btn {
    padding: 5px 9px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.07em;
    cursor: pointer;
    transition: all var(--ease);
    min-width: 40px;
    text-align: center;
}

.sz-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.sz-btn.active {
    border-color: var(--charcoal);
    background: var(--charcoal);
    color: #fff;
}

.shop-sidebar {
    background: var(--white);
    border-right: 1px solid var(--border);
    height: 100%;
}

@media (max-width: 767px) {
    .shop-sidebar-col {
        display: none;
    }
}

/* Page Hero / Breadcrumbs */
.page-hero {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 28px 20px 24px;
}

.breadcrumb-trail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--mid-grey);
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.breadcrumb-trail i {
    font-size: 9px;
}

.page-title {
    font-family: var(--fd);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 300;
    letter-spacing: 0.06em;
    line-height: 1;
    margin-bottom: 6px;
}

.page-title em {
    color: var(--gold);
    font-style: italic;
}

.page-desc {
    font-size: 12px;
    color: var(--mid-grey);
    letter-spacing: 0.04em;
}

/* Toolbar */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--sticky-d);
    z-index: 900;
}

@media (max-width: 767px) {
    .toolbar {
        top: var(--sticky-m);
    }
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.res-count {
    font-size: 12px;
    color: var(--mid-grey);
}

/* Active filter chips */
.filter-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.f-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    font-size: 11px;
    color: var(--mid-grey);
    cursor: pointer;
    transition: all var(--ease);
    border-radius: 2px;
}

.f-chip i {
    font-size: 9px;
}

.f-chip:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.f-chip-clear {
    border-color: rgba(201, 168, 76, 0.45);
    color: var(--gold-dark);
    font-weight: 600;
}

.btn-filter {
    display: none;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: var(--white);
    font-family: var(--fb);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--charcoal);
    cursor: pointer;
    transition: all var(--ease);
}

@media (max-width: 767px) {
    .btn-filter {
        display: flex;
    }
}

.btn-filter.active {
    background: var(--charcoal);
    color: var(--white);
    border-color: var(--charcoal);
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
}

.sort-sel {
    border: 1px solid var(--border);
    outline: none;
    font-family: var(--fb);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.07em;
    padding: 7px 26px 7px 11px;
    color: var(--charcoal);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 5 5-5' stroke='%236b6b6b' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 9px center;
    appearance: none;
    cursor: pointer;
}

.vt-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mid-grey);
    cursor: pointer;
    transition: all var(--ease);
    font-size: 14px;
}

.vt-btn.active {
    background: var(--charcoal);
    color: #fff;
    border-color: var(--charcoal);
}

/* Pagination */
.pagination-wrap {
    padding: 32px 14px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pg-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fb);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--mid-grey);
    cursor: pointer;
    transition: all var(--ease);
}

.pg-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.pg-btn.active {
    background: var(--charcoal);
    color: #fff;
    border-color: var(--charcoal);
}

.pg-btn.arrow {
    font-size: 14px;
}

.pg-sep {
    font-size: 12px;
    color: var(--light-grey);
    padding: 0 2px;
    line-height: 36px;
}

/* ══════════════════════════════════════════
   LIST VIEW REFINEMENT (3-Column)
══════════════════════════════════════════ */

.prod-actions-list {
    display: none;
}

/* Match /product related-card hover treatment in shop grid */
.shop-main .prod-card {
    background: var(--white);
    border: none;
    transition: box-shadow var(--ease), transform var(--ease);
}

.shop-main .prod-card:hover {
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.09), 0 0 22px rgba(201, 168, 76, 0.24);
    transform: translateY(-2px);
}

/* Give card hover glow room so edge cards don't look clipped */
.shop-main {
    padding: 8px 8px 0;
    overflow: visible;
}

#productGrid {
    margin-top: 2px;
}

@media (max-width: 767px) {
    .shop-main {
        padding: 6px 4px 0;
    }
}

/* Keep action areas above stretched-link overlay so buttons remain clickable */
.shop-main .prod-actions {
    z-index: 20;
}

.shop-main .prod-actions-list {
    position: relative;
    z-index: 20;
}

.quick-variant-menu {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: calc(100% + 8px);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.1);
    padding: 10px;
    display: none;
    z-index: 30;
}

.quick-variant-menu.show {
    display: block;
}

.quick-variant-menu-head {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mid-grey);
    margin-bottom: 8px;
}

.quick-variant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.quick-variant-btn {
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--charcoal);
    font-family: var(--fb);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 6px 10px;
    cursor: pointer;
    transition: all var(--ease);
}

.quick-variant-btn:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

/* Shop card price/savings polish to better match homepage hierarchy */
.shop-main .prod-price-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-height: 48px;
}

.shop-main .prod-was {
    display: block;
    margin: 0;
    font-size: 11px;
    line-height: 1;
    color: var(--mid-grey);
}

.shop-main .prod-price {
    font-size: 21px;
    line-height: 1.1;
    color: var(--charcoal);
}

.shop-main .prod-save {
    font-size: 10px;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.shop-main .prod-scope-note {
    font-size: 10px;
    color: var(--mid-grey);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Switch to List View */
#productGrid.list-view>div {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
}

#productGrid.list-view .prod-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    max-height: none;
    padding: 12px;
}

#productGrid.list-view .prod-img {
    width: 180px;
    height: 240px;
    flex-shrink: 0;
    margin-right: 20px;
}

#productGrid.list-view .prod-actions {
    display: none;
}

#productGrid.list-view .prod-body {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
}

#productGrid.list-view .prod-content {
    flex: 1;
    padding-right: 30px;
}

#productGrid.list-view .prod-meta {
    flex: 0 0 220px;
    padding-left: 30px;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

#productGrid.list-view .prod-actions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

#productGrid.list-view .quick-variant-menu {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 6px;
    width: 100%;
    box-shadow: none;
}

#productGrid.list-view .prod-actions-list .atb-btn {
    width: 100%;
    padding: 12px;
}

#productGrid.list-view .prod-actions-list .wl-btn {
    width: 100%;
    background: transparent;
}

#productGrid.list-view .prod-price {
    font-size: 26px;
    color: var(--charcoal);
}

#productGrid.list-view .prod-price-stack {
    align-items: center;
    text-align: center;
    min-height: auto;
}

#productGrid.list-view .prod-save,
#productGrid.list-view .prod-scope-note {
    font-size: 10px;
    line-height: 1.2;
}

#productGrid.list-view .prod-name {
    font-size: 22px;
    margin-bottom: 10px;
}

#productGrid.list-view .prod-notes {
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 991px) {
    #productGrid.list-view .prod-meta {
        flex: 0 0 180px;
        padding-left: 20px;
    }
}

@media (max-width: 767px) {
    #productGrid.list-view .prod-body {
        flex-direction: column;
        align-items: flex-start;
    }

    #productGrid.list-view .prod-content {
        padding-right: 0;
        margin-bottom: 20px;
    }

    #productGrid.list-view .prod-meta {
        flex: none;
        width: 100%;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--border);
        padding-top: 20px;
        align-items: flex-start;
        text-align: left;
    }

    #productGrid.list-view .prod-price-stack {
        align-items: flex-start;
        text-align: left;
    }

    #productGrid.list-view .prod-actions-list {
        flex-direction: row;
    }

    #productGrid.list-view .prod-actions-list .atb-btn {
        flex: 1;
    }

    #productGrid.list-view .prod-actions-list .wl-btn {
        width: 46px;
    }
}

@media (max-width: 575px) {
    #productGrid.list-view .prod-card {
        flex-direction: column;
    }

    #productGrid.list-view .prod-img {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 20px;
    }
}
