/* Color palette derived from the Salvina Flowers theme */
:root {
    --bg-main: #d8c397;
    /* Warm Gold/Beige */
    --text-dark: #2b261f;
    /* Dark Espresso */
    --text-muted: #6e614d;
    /* Subtle Secondary Text */
    --btn-bg: #2e2821;
    /* Dark Accent for Buttons */
    --btn-text: #d8c397;
    /* Gold Button Text */
    --dropdown-bg: #211c17;
    /* Dark Overlay Background */
    --border-subtle: rgba(43, 38, 31, 0.12);
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', sans-serif;
}

/* Global Reset & Unselectable Text Rule */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow interaction and selection for input controls */
input,
select,
textarea {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-family: var(--font-serif);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
}

/* Navigation Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 5%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.brand-logo {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-dark);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.brand-logo:hover {
    opacity: 0.7;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 3rem;
}

/* Navigation Links */
.nav-center a,
.dropdown-btn {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.nav-center a:hover,
.dropdown-btn:hover {
    opacity: 0.6;
}

.mobile-cart-link {
    display: none;
}

/* Desktop Dropdown Styling */
.dropdown {
    position: relative;
    display: inline-block;
}

.arrow {
    font-size: 0.8rem;
    margin-left: 4px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.dropdown.open .arrow,
.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dropdown-bg);
    min-width: 180px;
    padding: 0.8rem 0;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    border-radius: 2px;
    z-index: 10;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}

.dropdown-content a {
    color: var(--bg-main);
    padding: 0.7rem 1.4rem;
    display: block;
    font-size: 1.1rem;
    transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #352d25;
    opacity: 1;
}

/* Open dropdown via JS toggle or Desktop Hover */
.dropdown.open .dropdown-content {
    display: block;
}

@media (min-width: 901px) {
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/* Desktop Cart Icon */
.nav-right .cart-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dark);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-right .cart-btn:hover {
    opacity: 0.6;
}

.cart-icon {
    display: block;
}

.cart-count {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Mobile Hamburger Icon */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-toggle span {
    width: 26px;
    height: 2px;
    background-color: var(--text-dark);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Background Dim Overlay */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
    z-index: 98;
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ==========================================================================
   Full-Screen Editorial Shop Overlay Menu
   ========================================================================== */

.shop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #f7f3eb;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow-y: auto;
}

.shop-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.shop-close-btn {
    position: absolute;
    top: 2.2rem;
    left: 4.5rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 10;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.shop-close-btn:hover {
    transform: rotate(90deg);
    opacity: 0.6;
}

.shop-overlay-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.3fr;
    min-height: 100vh;
    width: 100%;
}

.shop-col-main {
    padding: 7.5rem 4.5rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #f7f3eb;
}

.shop-categories-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.shop-cat-item {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--text-dark);
    text-decoration: none;
    position: relative;
    white-space: nowrap;
    transition: color 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: inline-block;
    width: fit-content;
}

.shop-cat-item::before {
    content: '— ';
    opacity: 0;
    margin-right: 0;
    transition: opacity 0.4s ease, margin-right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.shop-cat-item.active,
.shop-cat-item:hover {
    color: #a48248;
    transform: translateX(8px);
}

.shop-cat-item.active::before,
.shop-cat-item:hover::before {
    opacity: 1;
    margin-right: 8px;
}

.shop-cat-item.highlight {
    color: #8c6e3d;
}

.shop-col-footer {
    display: flex;
    gap: 2.2rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    margin-top: auto;
}

.shop-col-footer a {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.4s ease;
}

.shop-col-footer a:hover {
    color: var(--text-dark);
}

.shop-col-sub {
    background-color: var(--dropdown-bg);
    color: var(--bg-main);
    padding: 7.5rem 3.5rem 3.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    overflow-y: auto;
}

.sub-panel {
    display: none;
}

.sub-panel.active {
    display: block;
    animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.sub-panel-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--bg-main);
    margin-bottom: 2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(216, 195, 151, 0.2);
}

.sub-category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.sub-category-list a {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: #d1c5b4;
    text-decoration: none;
    transition: color 0.4s ease, padding-left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.sub-category-list a:hover {
    color: var(--bg-main);
    padding-left: 6px;
}

.shop-col-image {
    background-image: url('https://images.unsplash.com/photo-1526047932273-341f2a7631f9?q=80&w=1200&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
}

.shop-col-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 38, 31, 0.15);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Slide-out Left Filter Drawer & Trigger Button
   ========================================================================== */

.shop-header-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3.5rem;
}

.filter-toggle-btn {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    border: 1px solid var(--border-subtle);
    padding: 0.65rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dark);
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-toggle-btn:hover {
    background-color: var(--btn-bg);
    color: var(--btn-text);
    border-color: var(--btn-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(43, 38, 31, 0.15);
}

.filter-toggle-btn:hover .filter-icon circle {
    fill: var(--btn-text);
}

.filter-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(43, 38, 31, 0.4);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 9000;
}

.filter-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.filter-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 430px;
    max-width: 92vw;
    height: 100vh;
    background-color: #f7f3eb;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.12);
    z-index: 9001;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.filter-drawer.active {
    transform: translateX(0);
}

.filter-drawer-header {
    padding: 2.2rem 2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
}

.filter-drawer-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-dark);
}

.filter-close-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.filter-close-btn:hover {
    transform: rotate(90deg);
    opacity: 0.6;
}

.filter-drawer-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.filter-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-dark);
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 0.3rem;
}

.filter-checkbox,
.filter-radio {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--text-dark);
}

.filter-checkbox input,
.filter-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark,
.radiomark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: transparent;
    border: 1px solid var(--text-dark);
    transition: all 0.2s ease;
}

.radiomark {
    border-radius: 50%;
}

.filter-checkbox:hover input~.checkmark,
.filter-radio:hover input~.radiomark {
    background-color: rgba(43, 38, 31, 0.08);
}

.filter-checkbox input:checked~.checkmark {
    background-color: var(--btn-bg);
}

.filter-radio input:checked~.radiomark {
    border-color: var(--btn-bg);
    border-width: 5px;
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid var(--btn-text);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-checkbox input:checked~.checkmark::after {
    display: block;
}

.price-range-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.4rem;
}

.range-slider {
    width: 100%;
    accent-color: var(--btn-bg);
    cursor: pointer;
}

.price-display {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.clear-filters-btn {
    background: transparent;
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    padding: 0.6rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-filters-btn:hover {
    background-color: var(--btn-bg);
    color: var(--btn-text);
}


/* Additional product characteristic filters */
.filter-subsection {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.25rem;
}

.filter-subsection + .filter-subsection {
    margin-top: 0.55rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(43, 38, 31, 0.10);
}

.filter-subtitle {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.range-values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--font-sans);
    font-size: 0.76rem;
    color: var(--text-muted);
}

.range-values strong {
    color: var(--text-dark);
    font-weight: 500;
}

.dual-range-stack {
    display: grid;
    gap: 0.75rem;
}

.range-field {
    display: grid;
    gap: 0.32rem;
}

.range-field > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.color-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.color-filter-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 36px;
    padding: 0.45rem 0.55rem;
    border: 1px solid rgba(43, 38, 31, 0.13);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.76rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.color-filter-option:hover {
    border-color: rgba(43, 38, 31, 0.30);
    transform: translateY(-1px);
}

.color-filter-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.color-filter-option:has(input:checked) {
    border-color: var(--btn-bg);
    background: rgba(43, 38, 31, 0.06);
}

.color-filter-swatch {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    border-radius: 50%;
    background: var(--filter-swatch);
    border: 1px solid rgba(43, 38, 31, 0.22);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.filter-actions {
    display: grid;
    grid-template-columns: 1fr 1.12fr;
    gap: 0.75rem;
    padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-subtle);
    background: rgba(247, 243, 235, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.filter-action-btn {
    min-height: 46px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.filter-action-btn:hover {
    transform: translateY(-1px);
}

.filter-action-primary {
    border: 1px solid var(--btn-bg);
    background: var(--btn-bg);
    color: var(--btn-text);
    box-shadow: 0 8px 22px rgba(43, 38, 31, 0.14);
}

.filter-action-secondary {
    border: 1px solid rgba(43, 38, 31, 0.30);
    background: transparent;
    color: var(--text-dark);
}

.filter-action-secondary:hover {
    background: rgba(43, 38, 31, 0.06);
}

/* ==========================================================================
   Shop Page & Main Product Grid
   ========================================================================== */

.shop-page {
    flex: 1;
    padding-top: 8.5rem;
    padding-bottom: 5rem;
    max-width: 1280px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
}

.shop-page-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem 2rem;
    margin-bottom: 4.5rem;
}

.product-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border: 1px solid var(--border-subtle);
    padding: 1.25rem 1rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.08);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    margin-bottom: 1.2rem;
    background-color: rgba(43, 38, 31, 0.04);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
    z-index: 10;
    transform: translateY(-8px);
    border-color: rgba(43, 38, 31, 0.35);
    box-shadow: 0 16px 32px rgba(43, 38, 31, 0.14);
    background-color: rgba(255, 255, 255, 0.25);
}

.product-card:hover .product-image {
    transform: scale(1.06);
}

.product-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
    letter-spacing: 0.3px;
}

.product-price {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text-muted);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.page-btn {
    background: none;
    border: 1px solid var(--border-subtle);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
    background-color: var(--btn-bg);
    color: var(--btn-text);
    border-color: var(--btn-bg);
}

/* Responsive Overrides */
@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem 2rem;
    }

    .shop-overlay-grid {
        grid-template-columns: 1fr 1fr;
        min-height: 100vh;
        height: auto;
    }

    .shop-col-image {
        display: none;
    }
}

@media (max-width: 900px) {
    .navbar {
        padding: 1.6rem 6%;
    }

    .nav-right {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-center {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: #bfa87a;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 6.5rem 2.2rem 3.5rem;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 99;
        overflow-y: auto;
    }

    .nav-center.active {
        right: 0;
    }

    .nav-center a,
    .dropdown-btn {
        width: 100%;
        text-align: left;
        padding: 1.1rem 0;
        font-size: 1.4rem;
        border-bottom: 1px solid var(--border-subtle);
    }

    /* Mobile Dropdown Accordion Styling */
    .dropdown {
        width: 100%;
    }

    .dropdown-btn {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown-content {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        box-shadow: none;
        margin-top: 0;
        width: 100%;
        background-color: transparent;
        padding: 0 0 0.5rem 1.25rem;
        border-radius: 0;
    }

    .dropdown-content::before {
        display: none;
    }

    .dropdown-content a {
        color: var(--text-dark);
        font-size: 1.15rem;
        font-weight: 400;
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--border-subtle);
        opacity: 0.85;
        transition: padding-left 0.3s ease, opacity 0.3s ease;
    }

    .dropdown-content a:last-child {
        border-bottom: none;
    }

    .dropdown-content a:hover {
        background-color: transparent;
        opacity: 1;
        padding-left: 6px;
    }

    .mobile-cart-link {
        display: flex;
        align-items: center;
        gap: 10px;
        font-family: var(--font-serif);
        font-size: 1.4rem;
        font-weight: 500;
        color: var(--text-dark);
        text-decoration: none;
        width: 100%;
        padding: 1.1rem 0;
        border-bottom: 1px solid var(--border-subtle);
    }

    .shop-page {
        padding-top: 7rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1.8rem;
    }

    .shop-overlay-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .shop-col-main {
        padding: 6rem 2rem 2.5rem;
    }

    .shop-col-sub {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 576px) {
    .shop-header-wrap {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .filter-toggle-btn {
        position: static;
    }

    .shop-page {
        padding-top: 6rem;
    }

    .shop-page-title {
        font-size: 2.2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .product-title {
        font-size: 1.25rem;
    }

    .shop-cat-item {
        font-size: 1.7rem;
    }
}

/* ==========================================================================
   Shop Editorial Hero Slider
   ========================================================================== */
.shop-hero-banner {
    width: 100%;
    margin: 0 auto 4.5rem;
}

.banner-slider-viewport {
    position: relative;
    width: 100%;
    height: clamp(330px, 31vw, 440px);
    overflow: hidden;
    border-radius: 26px;
    background: #d8c39a;
    box-shadow: 0 22px 55px rgba(43, 38, 31, 0.10);
}

.banner-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translateX(0);
    transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.banner-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner-slide img,
.banner-slide video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.015);
}

.banner-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(25, 20, 16, 0.68) 0%, rgba(25, 20, 16, 0.43) 38%, rgba(25, 20, 16, 0.07) 72%),
        linear-gradient(0deg, rgba(25, 20, 16, 0.20), transparent 45%);
}

.banner-content {
    position: absolute;
    z-index: 2;
    left: clamp(34px, 5vw, 72px);
    bottom: clamp(34px, 5vw, 62px);
    max-width: 590px;
    color: #fff;
    text-align: left;
}

.banner-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: var(--font-sans);
    font-size: 0.67rem;
    font-weight: 500;
    letter-spacing: 0.16em;
}

.banner-content h2 {
    margin: 15px 0 9px;
    font-family: var(--font-serif);
    font-size: clamp(2.45rem, 4.3vw, 4.15rem);
    line-height: 0.98;
    font-weight: 400;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.banner-content p {
    margin: 0;
    max-width: 510px;
    font-family: var(--font-sans);
    font-size: clamp(0.82rem, 1vw, 0.96rem);
    line-height: 1.65;
    font-weight: 300;
    opacity: 0.94;
}

.slider-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.90);
    color: #241f1a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.slider-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
}

.slider-prev {
    left: 18px;
}

.slider-next {
    right: 18px;
}

.banner-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateX(-50%);
    margin: 0;
}

.banner-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}

.banner-dot.active {
    width: 24px;
    background: #fff;
}

@media (max-width: 900px) {
    .shop-hero-banner {
        margin-bottom: 3.6rem;
    }

    .banner-slider-viewport {
        height: clamp(320px, 48vw, 390px);
        border-radius: 22px;
    }

    .banner-content {
        left: 36px;
        right: 92px;
        bottom: 42px;
        max-width: 540px;
    }

    .slider-arrow {
        width: 44px;
        height: 44px;
    }

    .slider-prev {
        left: 14px;
    }

    .slider-next {
        right: 14px;
    }
}

@media (max-width: 576px) {
    .shop-hero-banner {
        margin-bottom: 2.8rem;
    }

    .banner-slider-viewport {
        height: 360px;
        border-radius: 18px;
    }

    .banner-slide img,
.banner-slide video {
        object-position: 58% center;
    }

    .banner-shade {
        background: linear-gradient(0deg, rgba(24, 19, 15, 0.76) 0%, rgba(24, 19, 15, 0.30) 62%, rgba(24, 19, 15, 0.08) 100%);
    }

    .banner-content {
        left: 22px;
        right: 22px;
        bottom: 48px;
        max-width: none;
    }

    .banner-tag {
        min-height: 27px;
        padding: 0 11px;
        font-size: 0.58rem;
    }

    .banner-content h2 {
        margin-top: 12px;
        font-size: clamp(2.05rem, 10vw, 2.8rem);
        line-height: 1;
    }

    .banner-content p {
        display: block;
        max-width: 92%;
        font-size: 0.75rem;
        line-height: 1.45;
    }

    /* Keep mobile navigation away from the headline/text block.
       Centered arrows were overlapping the first lines of the slide copy. */
    .slider-arrow {
        top: 22%;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.92);
        font-size: 0.88rem;
        box-shadow: 0 5px 16px rgba(0, 0, 0, 0.12);
    }

    .slider-prev {
        left: 12px;
    }

    .slider-next {
        right: 12px;
    }

    .banner-dots {
        bottom: 16px;
    }
}



/* ==========================================================================
   Advanced Shop Filtering + Event Personalization
   ========================================================================== */
.filter-eyebrow,
.subfilter-kicker {
    display: block;
    margin-bottom: 0.35rem;
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8c6e3d;
}

.filter-result-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-subtle);
    background: rgba(216, 195, 151, 0.14);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.clear-filters-link {
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: var(--text-dark);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    cursor: pointer;
}

.filter-hint {
    margin: -0.05rem 0 0.25rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.event-subfilter {
    padding: 1.1rem 1rem 1.15rem;
    border: 1px solid rgba(140, 110, 61, 0.22);
    background: rgba(216, 195, 151, 0.10);
    animation: filterReveal 0.28s ease both;
}

.event-subfilter .filter-title {
    margin-bottom: 0.45rem;
}

@keyframes filterReveal {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.filter-count {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    margin-left: 0.15rem;
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-text);
    font-family: var(--font-sans);
    font-size: 0.64rem;
    line-height: 1;
}

.filter-toggle-btn:hover .filter-count {
    background: var(--btn-text);
    color: var(--btn-bg);
}

.wreath-configurator {
    padding: 1.25rem;
    border: 1px solid rgba(43, 38, 31, 0.18);
    background: #efe8db;
    box-shadow: 0 12px 30px rgba(43, 38, 31, 0.08);
    animation: filterReveal 0.3s ease both;
}

.wreath-config-head h3 {
    margin: 0 0 0.3rem;
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 500;
}

.wreath-config-head p {
    margin: 0 0 1.15rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.config-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.95rem;
    font-family: var(--font-sans);
    font-size: 0.74rem;
    color: var(--text-dark);
}

.config-field > span,
.ribbon-colors legend {
    font-weight: 500;
    letter-spacing: 0.04em;
}

.config-field select,
.config-field textarea {
    width: 100%;
    border: 1px solid rgba(43, 38, 31, 0.22);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.46);
    color: var(--text-dark);
    padding: 0.72rem 0.8rem;
    outline: none;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.config-field textarea {
    resize: vertical;
    min-height: 76px;
    line-height: 1.45;
}

.config-field select:focus,
.config-field textarea:focus {
    border-color: #8c6e3d;
    background: rgba(255, 255, 255, 0.72);
}

.config-field small {
    align-self: flex-end;
    color: var(--text-muted);
    font-size: 0.65rem;
}

.ribbon-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1rem 0 0;
    padding: 0;
    border: 0;
}

.ribbon-colors legend {
    width: 100%;
    margin-bottom: 0.1rem;
    font-family: var(--font-sans);
    font-size: 0.74rem;
}

.color-choice {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.color-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.color-choice span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(43, 38, 31, 0.22);
    background: var(--swatch);
    box-shadow: 0 0 0 2px transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-choice input:checked + span {
    transform: scale(0.88);
    box-shadow: 0 0 0 2px #efe8db, 0 0 0 3px var(--text-dark);
}

.wreath-preview {
    position: relative;
    display: grid;
    place-items: center;
    height: 210px;
    margin-top: 1.15rem;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.58) 0 26%, transparent 27%),
        linear-gradient(145deg, #ded2bd, #f8f4ec);
    border: 1px solid rgba(43, 38, 31, 0.12);
}

.wreath-ring {
    width: 126px;
    height: 126px;
    border: 24px solid #52634d;
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 4px rgba(255,255,255,0.12),
        0 8px 18px rgba(43, 38, 31, 0.14);
}

.wreath-ring::before,
.wreath-ring::after {
    content: '';
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8ddd0;
    box-shadow: 27px 15px 0 #b9aa8d, -22px 25px 0 #f3eee7, 12px -30px 0 #d9c3b2;
}

.wreath-ring::before { transform: translate(-34px, -17px) scale(0.7); }
.wreath-ring::after { transform: translate(36px, 24px) scale(0.6); }

.preview-ribbon {
    position: absolute;
    left: 50%;
    bottom: 37px;
    width: 72%;
    min-height: 34px;
    transform: translateX(-50%) rotate(-4deg);
    display: grid;
    place-items: center;
    padding: 7px 16px;
    background: var(--ribbon-color);
    color: #1f1c18;
    box-shadow: 0 5px 10px rgba(43, 38, 31, 0.16);
    font-family: var(--font-serif);
    font-size: 0.84rem;
    text-align: center;
}

.preview-ribbon[data-style="wide"] { min-height: 46px; width: 78%; }
.preview-ribbon[data-style="double"]::after {
    content: '';
    position: absolute;
    inset: 7px -8px -7px 8px;
    z-index: -1;
    background: var(--ribbon-color);
    opacity: 0.72;
}

.preview-caption {
    position: absolute;
    right: 10px;
    top: 9px;
    font-family: var(--font-sans);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(43, 38, 31, 0.55);
}

.apply-ribbon-btn {
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.78rem 1rem;
    border: 1px solid var(--btn-bg);
    background: var(--btn-bg);
    color: var(--btn-text);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.apply-ribbon-btn:hover { opacity: 0.86; transform: translateY(-1px); }

.ribbon-save-status {
    min-height: 1.2em;
    margin-top: 0.55rem;
    font-family: var(--font-sans);
    font-size: 0.67rem;
    color: #5d6a49;
}

.empty-results {
    grid-column: 1 / -1;
    padding: 4.5rem 1.5rem;
    text-align: center;
    border: 1px solid var(--border-subtle);
}

.empty-results > span {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.empty-results h2 {
    margin: 0.7rem 0 0.45rem;
    font-family: var(--font-serif);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 400;
}

.empty-results p {
    margin-bottom: 1.15rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.empty-results button {
    border: 1px solid var(--text-dark);
    background: transparent;
    padding: 0.72rem 1.15rem;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

@media (max-width: 576px) {
    .filter-drawer-header { padding: 1.5rem 1.35rem 1.15rem; }
    .filter-drawer-body { padding: 1.35rem; gap: 1.75rem; }
    .wreath-configurator { padding: 1rem; }
    .wreath-preview { height: 190px; }
    .filter-checkbox, .filter-radio { font-size: 0.82rem; }
    .filter-actions { padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom)); }
    .filter-action-btn { min-height: 44px; font-size: 0.62rem; }
    .color-filter-grid { gap: 0.45rem; }
}

/* ==========================================================================
   v7 — Modern Product Cards & Catalog Pagination
   ========================================================================== */

.product-grid {
    align-items: stretch;
    gap: 2rem 1.5rem;
}

.product-card {
    align-items: stretch;
    text-align: left;
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(43, 38, 31, 0.12);
    background: rgba(255, 255, 255, 0.24);
    box-shadow: 0 5px 18px rgba(43, 38, 31, 0.045);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(43, 38, 31, 0.24);
    background: rgba(255, 255, 255, 0.42);
    box-shadow: 0 18px 38px rgba(43, 38, 31, 0.12);
}

.product-image-wrap {
    position: relative;
    margin-bottom: 0;
    aspect-ratio: 4 / 4.7;
    background: rgba(43, 38, 31, 0.045);
}

.product-image {
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.045);
}

.product-tier-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 999px;
    background: rgba(247, 243, 235, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: var(--font-sans);
    font-size: 0.59rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dark);
    box-shadow: 0 4px 16px rgba(43, 38, 31, 0.09);
}

.product-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.1rem 1.15rem 1.2rem;
}

.product-card-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.product-title {
    margin: 0;
    font-size: clamp(1.15rem, 1.35vw, 1.42rem);
    line-height: 1.08;
    letter-spacing: 0.15px;
}

.product-price {
    margin-top: 0.1rem;
    white-space: nowrap;
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.02em;
    color: var(--text-dark);
}

.product-card-specs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    margin-bottom: 0.8rem;
    font-family: var(--font-sans);
    font-size: 0.67rem;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.product-spec {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.product-height-spec::before {
    content: '';
    width: 1px;
    height: 12px;
    margin-right: 0.2rem;
    background: rgba(43, 38, 31, 0.18);
}

.product-color-swatch {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    border-radius: 50%;
    border: 1px solid rgba(43, 38, 31, 0.18);
    background: #ede6d8;
}

.product-color-swatch[data-color="red"] { background: #8f2f35; }
.product-color-swatch[data-color="pink"] { background: #dca0a8; }
.product-color-swatch[data-color="white"] { background: #f7f4ec; }
.product-color-swatch[data-color="peach"] { background: #e7b28f; }
.product-color-swatch[data-color="yellow"] { background: #d7b34e; }
.product-color-swatch[data-color="purple"] { background: #8e7398; }
.product-color-swatch[data-color="green"] { background: #73836c; }
.product-color-swatch[data-color="gold"] { background: #b69245; }

.product-card-description {
    margin: 0 0 0.9rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 300;
    line-height: 1.62;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-footer {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: auto;
}

.flower-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.flower-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.25rem 0.55rem;
    border: 1px solid rgba(43, 38, 31, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-family: var(--font-sans);
    font-size: 0.59rem;
    line-height: 1;
    letter-spacing: 0.035em;
    color: var(--text-muted);
}

.product-view-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(43, 38, 31, 0.10);
    font-family: var(--font-sans);
    font-size: 0.63rem;
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--text-dark);
}

.product-view-link span {
    display: inline-block;
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.product-card:hover .product-view-link span {
    transform: translateX(4px);
}

.pagination {
    flex-wrap: wrap;
    gap: 0.1rem;
    margin-top: 1rem;
    padding-top: 1.2rem;
    font-family: var(--font-sans);
}

.page-btn,
.page-next-btn {
    width: auto;
    height: auto;
    min-width: 34px;
    min-height: 38px;
    padding: 0.45rem 0.55rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.page-btn:hover,
.page-btn.active,
.page-next-btn:hover:not(:disabled) {
    border: 0;
    background: transparent;
    color: var(--text-dark);
}

.page-btn.active {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.page-next-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 62px;
    text-transform: uppercase;
    font-size: 0.65rem;
    font-weight: 500;
}

.page-next-btn:hover:not(:disabled) {
    transform: translateX(2px);
}

.page-next-btn:disabled {
    cursor: default;
    opacity: 0.34;
}

.page-separator,
.page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 0.16rem;
    font-size: 0.68rem;
    color: rgba(43, 38, 31, 0.34);
}

.page-ellipsis {
    min-width: 26px;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
}

@media (max-width: 1100px) {
    .product-card-heading {
        grid-template-columns: 1fr;
        gap: 0.28rem;
    }

    .product-price {
        margin-top: 0;
    }
}

@media (max-width: 900px) {
    .product-grid {
        gap: 1.7rem 1.2rem;
    }

    .product-card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .product-grid {
        width: min(100%, 420px);
        margin-left: auto;
        margin-right: auto;
    }

    .product-image-wrap {
        aspect-ratio: 4 / 4.35;
    }

    .product-card-heading {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.65rem;
    }

    .product-card-description {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }

    .pagination {
        gap: 0;
    }

    .page-btn,
    .page-next-btn,
    .page-separator,
    .page-ellipsis {
        min-height: 34px;
    }
}

/* Admin-managed catalog states */
.product-discount-badge{
    position:absolute;right:12px;top:12px;z-index:3;padding:.38rem .55rem;border-radius:999px;
    background:#7f3f39;color:#fff;font:600 .58rem 'Montserrat',sans-serif;letter-spacing:.04em;
}
.product-image-placeholder{background:linear-gradient(135deg,rgba(255,255,255,.2),rgba(43,38,31,.08));min-height:250px}
.catalog-preview-empty{grid-column:1/-1;min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px dashed rgba(43,38,31,.2);border-radius:18px;padding:1.2rem;color:rgba(43,38,31,.65)}
.catalog-preview-empty strong{font-family:'Cormorant Garamond',serif;font-size:1.5rem;font-weight:500;color:#2b261f}
.catalog-preview-empty span{max-width:430px;margin-top:.35rem;font:400 .65rem/1.55 'Montserrat',sans-serif}
.catalog-image-placeholder{width:100%;height:100%;min-height:140px;background:linear-gradient(145deg,#e6d6b7,#c7ae80)}

/* v14 QA: keep navigation arrows clear of slide copy between tablet and medium desktop widths. */
@media (min-width: 577px) and (max-width: 1353px) {
    .slider-arrow {
        /* Keep controls in the clear image zone above all editorial copy. */
        top: 8%;
    }
    .banner-content {
        left: clamp(34px, 5vw, 68px);
        right: 72px;
        max-width: min(590px, calc(100% - 150px));
    }
}

/* At the narrowest sizes, arrows stay in the image-only zone above the copy. */
@media (max-width: 576px) {
    .slider-arrow { top: 6%; }
}

/* v16 QA: improve filter readability and touch spacing. */
#assortmentFilterOptions,
#categoryFilterOptions,
#tierFilterOptions,
#subcategoryFilterGroups .event-subfilter {
    display: grid;
    gap: .42rem;
}
.filter-checkbox,
.filter-radio {
    min-height: 28px;
    line-height: 1.55;
    padding-top: .12rem;
    padding-bottom: .12rem;
}
.filter-checkbox + .filter-checkbox,
.filter-radio + .filter-radio { margin-top: .05rem; }
@media (max-width: 640px) {
    .filter-checkbox,
    .filter-radio { min-height: 32px; line-height: 1.6; font-size: .86rem; }
    #assortmentFilterOptions,
    #categoryFilterOptions,
    #tierFilterOptions { gap: .5rem; }
}

/* Narrow-tablet guard: keep the left control completely outside the copy column. */
@media (min-width: 577px) and (max-width: 700px) {
    .banner-content {
        left: 100px;
        right: 34px;
        max-width: calc(100% - 134px);
    }
}
