/* ============================================
   BASE RESET & VARIABLES
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Source Sans Pro", sans-serif;
    background: #f5f7fa;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Playfair Display", serif;
}

:root {
    --gold: #d4af37;
    --gold-accent: #c5a059;
    --white: #ffffff;
    --dark: #1a1a1a;
    --text-main: #333;
    --bg-light: #f9f9f9;
    --border-color: #eee;
    --sidebar-width: 270px;
}

/* ============================================
   MOBILE FILTER TOGGLE BUTTON
   (hidden on desktop, visible on tablet/mobile)
============================================ */
/* ============================================
   MOBILE FILTER TOGGLE BUTTON
   Top-right position, hides when drawer open
============================================ */
.mobile-filter-toggle {
    display: none;
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 13px;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease, opacity 0.25s ease, visibility 0.25s ease;
    align-items: center;
    gap: 8px;
}

.mobile-filter-toggle i {
    font-size: 15px;
}

.mobile-filter-toggle:hover {
    background: var(--gold-accent);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ✅ Hide filter button when drawer is open */
.mobile-filter-toggle.filter-btn-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mobile-filter-toggle.active {
    background: var(--gold-accent);
}

/* ============================================
   DRAWER OVERLAY
============================================ */
.filter-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.filter-drawer-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================
   DRAWER CLOSE BUTTON
   (hidden on desktop, visible inside drawer)
============================================ */
/* ============================================
   DRAWER CLOSE BUTTON
   (left side since drawer opens from right)
============================================ */
.filter-drawer-close {
    display: none;
    position: absolute;
    top: 7px;
    left: 14px;
    /* ← Changed from right to left */
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    color: #555;
    font-size: 16px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.filter-drawer-close:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* ============================================
   MOBILE APPLY FILTERS BUTTON
   (hidden on desktop, visible inside drawer)
============================================ */
.mobile-apply-filters-btn {
    display: none;
    width: 100%;
    padding: 16px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.mobile-apply-filters-btn:hover {
    background: var(--gold-accent);
}

/* ============================================
   SHOP CONTAINER (DESKTOP DEFAULT)
============================================ */
.shop-container {
    background-color: #f9f7f2;
    display: flex;
    align-items: flex-start;
    max-width: 100%;
    margin: 0 auto;
    gap: 20px;
}

/* ============================================
   FILTER SIDEBAR (DESKTOP)
============================================ */
.filter-sidebar {
    flex: 0 0 var(--sidebar-width);
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 24px 20px;
    background: #fff;
    border-right: 1px solid var(--border-color);
    border-radius: 15px;
    margin-left: 50px;
    margin-top: 30px;
    font-family: "Inter", sans-serif;
    transition: none;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.filter-header h3 {
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.clear-btn {
    background: none;
    border: none;
    color: #888;
    text-decoration: underline;
    font-size: 0.8rem;
    cursor: pointer;
}

.filter-group {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.filter-group h4 {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--text-main);
    text-transform: uppercase;
    font-weight: 600;
}

.options label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
}

input[type="checkbox"] {
    accent-color: var(--gold-accent);
    margin-right: 10px;
}

/* Price Slider */
.price-slider-container {
    padding: 10px 0;
}

.slider {
    width: 100%;
    accent-color: var(--gold-accent);
    cursor: pointer;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-top: 10px;
    color: #777;
}

.gold-text {
    color: var(--gold-accent);
    font-weight: bold;
}

/* ============================================
   SHOP CONTENT
============================================ */
.shop-content {
    flex: 1;
    min-width: 0;
    padding: 20px;
}

.shop-section {
    padding: 40px 20px;
}

/* ============================================
   PRODUCT GRID — 4 COLUMNS DEFAULT
============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ============================================
   PRODUCT CARD
============================================ */
.product-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: 0.3s;
    position: relative;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Image Container */
.image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 300px;
    background: #f9f7f4;
    border-radius: 18px 18px 0 0;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: opacity 0.4s ease;
}

.image-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Image Action Buttons */
.image-actions {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .image-actions {
    opacity: 1;
}

.action-btn.wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 20;
    transition: all 0.2s ease;
}

.action-btn.quick-view {
    position: absolute;
    top: 55px;
    right: 10px;
    background: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 20;
    transition: all 0.2s ease;
}

.action-btn.wishlist:hover,
.action-btn.quick-view:hover {
    transform: scale(1.1);
    background: black;
    color: white;
}

.action-btn.wishlist.active {
    color: red;
    animation: pop 0.4s ease;
}

.action-btn.wishlist.active i {
    color: #e05c5c;
}

@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

.action-btn.add-to-cart {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    width: auto;
    background: #fff;
    backdrop-filter: blur(8px);
    color: #4a403a;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    z-index: 30;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.35s ease;
}

.product-card:hover .action-btn.add-to-cart {
    opacity: 1;
    transform: translateY(0);
}

.action-btn.add-to-cart:hover {
    background: linear-gradient(135deg, #000, #2c2c2c);
    color: white;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.action-btn.add-to-cart i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.action-btn.add-to-cart:hover i {
    transform: translateX(3px);
}

/* Product Details */
.product-details {
    padding: 16px 20px 20px;
    text-align: center;
    background: #fff;
}

.product-title {
    font-size: 15px;
    margin: 10px 0;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-box {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.current-price {
    font-weight: bold;
    font-size: 17px;
}

/* ============================================
   QUICK VIEW MODAL
============================================ */
.qv-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100001;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 16px;
    visibility: hidden;
}

.qv-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.qv-modal-content {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
    max-width: 900px;
    min-width: 0;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: translateY(30px) scale(0.98);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.qv-modal-overlay.active .qv-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.qv-scroll-container {
    overflow-y: auto;
    width: 100%;
    flex: 1;
    overscroll-behavior: contain;
}

.qv-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 300;
    color: #8d817a;
    cursor: pointer;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s, background-color 0.3s, box-shadow 0.3s;
    padding: 0;
    line-height: 1;
}

.qv-close:hover {
    color: #ffffff;
    background-color: #8a5a44;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 6px 16px rgba(138, 90, 68, 0.3);
}

.qv-grid {
    display: flex;
    min-height: 500px;
    width: 100%;
}

.qv-image-section {
    flex: 1.2;
    background-color: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    border-right: 1px solid #f0eae8;
}

.qv-image-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qv-image-wrapper img {
    width: 95%;
    max-height: 95%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.5s ease;
}

.qv-image-wrapper:hover img {
    transform: scale(1.05);
}

.qv-details-section {
    flex: 1;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.qv-badge {
    display: inline-block;
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8a5a44;
    font-weight: 600;
    margin-bottom: 15px;
}

.qv-product-title {
    font-family: "Playfair Display", serif;
    font-size: 26px;
    color: #2c2c2c;
    margin: 0 0 8px 0;
    font-weight: 600;
    line-height: 1.3;
}

.qv-product-sku {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    color: #9b8b8d;
    margin: 0 0 20px 0;
}

.qv-product-sku span {
    font-weight: 600;
    color: #4a3b3d;
}

.qv-price {
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #8a5a44;
    margin-bottom: 25px;
}

.qv-breakdown {
    margin-bottom: 20px;
}

.qv-breakdown h4 {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #4a3b3d;
    margin-bottom: 10px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.breakdown-item span:first-child {
    font-weight: 500;
}

.breakdown-item span:last-child {
    font-weight: 600;
    color: #8a5a44;
}

.qv-divider {
    border: 0;
    height: 1px;
    background: #f0eae8;
    margin-bottom: 30px;
}

.qv-label {
    display: block;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    color: #8d817a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.custom-select-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 35px;
}

.meta-select {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #d5c9c1;
    border-radius: 4px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: #2c2c2c;
    outline: none;
    cursor: pointer;
    background-color: transparent;
    appearance: none;
    transition: all 0.3s;
}

.meta-select:focus {
    border-color: #8a5a44;
}

.select-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #8d817a;
    pointer-events: none;
    font-size: 12px;
}

.qv-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: stretch;
}

.btn-qv-cart {
    flex: 1;
    background-color: #2c2c2c;
    color: #ffffff;
    border: none;
    padding: 16px;
    border-radius: 4px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-qv-cart:hover {
    background-color: #000000;
}

.btn-qv-wishlist {
    width: 54px;
    background: transparent;
    border: 1px solid #d5c9c1;
    border-radius: 4px;
    color: #8d817a;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.btn-qv-wishlist:hover {
    border-color: #8a5a44;
    color: #8a5a44;
}

.qv-full-details-link {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    color: #8d817a;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
    width: fit-content;
}

.qv-full-details-link:hover {
    color: #8a5a44;
}

/* ============================================
   PAGINATION
============================================ */
.pagination-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.pagi-btn {
    padding: 10px 18px;
    border: none;
    background: #111;
    color: #fff;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.pagi-btn:hover {
    background: #333;
}

.pagi-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-numbers a {
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    color: #111;
    font-weight: 500;
    transition: 0.3s;
    border: 1px solid transparent;
}

.page-numbers a:hover {
    border: 1px solid #111;
}

.page-numbers a.active {
    background: #111;
    color: #fff !important;
}


/* ── LARGE TABLETS (≤ 1199px) ── 3-column grid ── */
@media (max-width: 1199px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .image-container {
        height: 260px;
    }

    .shop-section {
        padding: 30px 15px;
    }
}

@media (max-width: 991px) {
    .qv-modal-overlay {
        align-items: flex-end;
        /* slides up from bottom like a sheet */
        padding: 0;
    }

    .qv-modal-content {
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
        /* leaves header visible above */
        height: 85vh;
        width: 100%;
        max-width: 100%;
        transform: translateY(100%);
        /* slides in from bottom */
    }

    .qv-modal-overlay.active .qv-modal-content {
        transform: translateY(0);
    }

    /* Close button — floating absolute circular, slightly smaller */
    .qv-close {
        position: absolute;
        top: 16px;
        right: 16px;
        left: auto;
        width: 32px;
        height: 32px;
        font-size: 20px;
        z-index: 1000;
        background: #ffffff;
        border-radius: 50%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(0, 0, 0, 0.06);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
    }

    .qv-grid {
        flex-direction: column;
        min-height: auto;
    }

    .qv-image-section {
        height: 280px;
        padding: 24px;
        border-right: none;
        border-bottom: 1px solid #f0eae8;
        flex-shrink: 0;
    }

    .qv-details-section {
        padding: 24px 20px 30px;
        overflow: visible;
    }

    .qv-product-title {
        font-size: 22px;
    }

    .qv-price {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .qv-divider {
        margin-bottom: 20px;
    }

    .custom-select-wrapper {
        margin-bottom: 20px;
    }

    .qv-actions {
        margin-bottom: 16px;
    }

    /* Show the filter toggle button — top right */
    .mobile-filter-toggle {
        display: flex;
        top: 80px;
        right: 16px;
        padding: 8px 14px;
        font-size: 12px;
    }

    /* Show the drawer close button */
    .filter-drawer-close {
        display: flex;
    }

    /* Show the apply button */
    .mobile-apply-filters-btn {
        display: block;
    }

    /* ✅ Sidebar becomes a RIGHT drawer */
    .filter-sidebar {
        position: fixed;
        top: 59px;
        right: 0;
        /* ← RIGHT side */
        left: auto;
        /* ← NOT left */
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        z-index: 999;
        border-radius: 0;
        border-left: 1px solid #ddd;
        /* ← border on LEFT edge */
        border-right: none;
        margin: 0;
        transform: translateX(100%);
        /* ← hidden off RIGHT */
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
        padding: 50px 20px 30px 20px;
        /* room for close button */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .filter-sidebar.drawer-open {
        transform: translateX(0);
        /* ← slides IN from right */
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
        /* ← shadow on LEFT */
    }

    /* Shop container: no gap since sidebar is overlay */
    .shop-container {
        gap: 0;
    }

    .shop-content {
        padding: 10px 0;
        width: 100%;
    }

    /* 2-column grid */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .image-container {
        height: 240px;
    }

    .shop-section {
        padding: 20px 12px;
    }


}

/* ── LARGE PHONES (≤ 767px) ── 2-column tighter grid ── */
@media (max-width: 767px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .image-container {
        height: 200px;
    }

    .product-details {
        padding: 12px 10px 14px;
    }

    .product-title {
        font-size: 13px;
        margin: 6px 0;
        -webkit-line-clamp: 1;
    }

    .current-price {
        font-size: 14px;
    }

    .shop-section {
        padding: 16px 8px;
    }

    .shop-content {
        padding: 0;
    }

    .action-btn.wishlist,
    .action-btn.quick-view {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .action-btn.quick-view {
        top: 48px;
    }

    .action-btn.add-to-cart {
        padding: 8px 12px;
        font-size: 12px;
        left: 8px;
        right: 8px;
        bottom: 8px;
    }

    .pagination-wrapper {
        gap: 8px;
        margin-top: 30px;
    }

    .pagi-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .page-numbers a {
        padding: 6px 10px;
        font-size: 13px;
    }

    .qv-image-section {
        padding: 20px;
        height: 220px;
    }

    .qv-details-section {
        padding: 24px 20px;
    }

    .qv-product-title {
        font-size: 20px;
    }

    .qv-price {
        font-size: 20px;
    }

    .btn-qv-cart {
        padding: 14px;
        font-size: 13px;
    }

    .btn-qv-wishlist {
        width: 48px;
        font-size: 18px;
    }

    /* ✅ Filter button — top right */
    .mobile-filter-toggle {
        top: 75px;
        right: 12px;
        padding: 7px 12px;
        font-size: 11px;
    }

    .mobile-filter-toggle i {
        font-size: 13px;
    }

    /* ✅ Sidebar narrower on phones */
    .filter-sidebar {
        width: 290px;
        max-width: 82vw;
    }

    #noResults>div {
        padding: 40px 16px;
    }

    #noResults h3 {
        font-size: 18px !important;
    }

    #noResults p {
        font-size: 13px !important;
    }
}

/* ── SMALL PHONES (≤ 480px) ── */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .image-container {
        height: 170px;
    }

    .product-title {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }

    .current-price {
        font-size: 13px;
    }

    .product-card {
        border-radius: 12px;
    }

    .image-container {
        border-radius: 12px 12px 0 0;
    }

    .product-details {
        padding: 10px 8px 12px;
    }


    .qv-modal-content {
        max-height: 88vh;
        height: 80vh;
    }

    .qv-image-section {
        height: 180px;
    }

    .qv-actions {
        flex-direction: row;
        /* keep side by side on small phones */
        gap: 10px;
    }

    .btn-qv-wishlist {
        width: 48px;
        flex-shrink: 0;
    }

    .action-btn.wishlist {
        top: 6px;
        right: 6px;
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .action-btn.add-to-cart {
        padding: 7px 10px;
        font-size: 11px;
        left: 6px;
        right: 6px;
        bottom: 6px;
        border-radius: 40px;
    }

    .filter-sidebar {
        width: 270px;
        max-width: 80vw;
    }

    .qv-image-section {
        padding: 16px;
        height: 200px;
    }

    .qv-details-section {
        padding: 20px 16px;
    }

    .qv-product-title {
        font-size: 18px;
    }

    .qv-price {
        font-size: 18px;
    }

    /* ✅ Filter button — top right compact */
    .mobile-filter-toggle {
        top: 70px;
        right: 8px;
        padding: 6px 10px;
        font-size: 11px;
        gap: 5px;
    }

    .mobile-filter-toggle i {
        font-size: 12px;
    }

    .filter-drawer-close {
        left: 10px;
    }

    .shop-section {
        padding: 12px 6px;
    }
}

/* ── EXTRA SMALL (≤ 360px) ── */
@media (max-width: 360px) {
    .product-grid {
        gap: 8px;
    }

    .image-container {
        height: 150px;
    }

    .current-price {
        font-size: 12px;
    }

    .product-title {
        font-size: 11px;
    }
}

/* ============================================
   TOUCH DEVICE — always show action buttons
   (no hover on touch)
============================================ */
@media (hover: none) and (pointer: coarse) {
    .image-actions {
        opacity: 1;
    }

    /* On tap the card will handle it */
    .action-btn.wishlist {
        opacity: 1;
        top: 8px;
        right: 8px;
    }

    .action-btn.add-to-cart {
        opacity: 1;
        transform: translateY(0);
        bottom: 8px;
        left: 8px;
        right: 8px;
    }

    .action-btn.quick-view {
        opacity: 1;
        top: 48px;
        right: 8px;
    }
}

/* ============================================
   LANDSCAPE PHONES
============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .filter-sidebar {
        padding-top: 50px;
    }

    .qv-modal-content {
        max-height: 95vh;
    }

    .qv-grid {
        flex-direction: row;
        min-height: auto;
    }

    .qv-image-section {
        height: auto;
        min-height: 250px;
        border-right: 1px solid #f0eae8;
        border-bottom: none;
    }
}

/* ============================================
   ACCESSIBILITY — Reduced Motion
============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .filter-sidebar {
        transition: none;
    }

    .product-card:hover {
        transform: none;
    }
}

/* ============================================
   RESPONSIVE CUSTOM TOAST NOTIFICATIONS
============================================ */
.zayyora-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #062037;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: "Inter", "Source Sans Pro", sans-serif;
    font-size: 14.5px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 8px 24px rgba(6, 32, 55, 0.25);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
    width: max-content;
    max-width: 90vw;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

.zayyora-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   TOAST MEDIA QUERIES (Custom & SweetAlert)
============================================ */

/* ── TABLET (≤ 991px) ── */
@media (max-width: 991px) {
    .zayyora-toast {
        bottom: 25px;
        font-size: 14px;
        padding: 12px 24px;
    }
}

/* ── MEDIUM MOBILE (≤ 767px) ── */
@media (max-width: 767px) {
    .zayyora-toast {
        bottom: 20px;
        padding: 12px 20px;
        font-size: 13.5px;
        width: 85vw;
        /* Expands to fit wrapped text */
        max-width: 400px;
        border-radius: 12px;
        /* Softer edges for multi-line text */
        white-space: normal;
        /* Allows text to wrap */
    }

    /* Force SweetAlert Toasts to fit mobile screens nicely */
    .swal2-container.swal2-bottom-start,
    .swal2-container.swal2-bottom-end,
    .swal2-container.swal2-bottom {
        inset: auto 16px 20px 16px !important;
        width: auto !important;
        justify-content: center !important;
    }

    .swal2-popup.swal2-toast {
        width: 100% !important;
        max-width: 400px !important;
        padding: 12px 16px !important;
        font-size: 13.5px !important;
        border-radius: 10px !important;
    }
}

/* ── SMALL MOBILE (≤ 480px) ── */
@media (max-width: 480px) {
    .zayyora-toast {
        bottom: 16px;
        padding: 10px 16px;
        font-size: 12.5px;
        width: calc(100vw - 32px);
        /* Full width minus a 16px margin on each side */
        border-radius: 8px;
    }

    .swal2-container.swal2-bottom-start,
    .swal2-container.swal2-bottom-end,
    .swal2-container.swal2-bottom {
        inset: auto 12px 16px 12px !important;
    }

    .swal2-popup.swal2-toast {
        padding: 10px 14px !important;
        font-size: 12.5px !important;
        border-radius: 8px !important;
    }
}

/* Swiper hover image styles */
.product-card-swiper {
    width: 100%;
    height: 100%;
}

.product-card-swiper .swiper-pagination {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-card-swiper .swiper-pagination {
    opacity: 1;
}

.product-card-swiper .swiper-slide img,
.product-card-swiper .swiper-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-swiper .swiper-pagination-bullet {
    background: #c5a059;
}


.product-card-swiper .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-card-swiper .swiper-slide img,
.product-card-swiper .swiper-slide video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   HOVER SWIPER — Product Card Image Carousel
   Append these to your existing shop CSS.
   No Swiper.js library needed — pure CSS + JS.
============================================ */

/* ── image-container must clip the sliding track ── */
.image-container {
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

/* ── Single media (no swiper): original first-img ── */
.image-container>.first-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    /* Subtle scale on hover for single-image products */
    transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .image-container>.first-img {
    transform: scale(1.04);
}

/* Single video */
.image-container>video.first-img {
    transition: none;
    transform: none !important;
}

/* ── hover-swiper wrapper fills container fully ── */
.hover-swiper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ── Track: horizontal strip of all slides ── */
.hs-track {
    display: flex;
    width: 100%;
    height: 100%;
    will-change: transform;
    /* Default: no transition (set dynamically by JS) */
    transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Each slide is exactly 100% of container width ── */
.hs-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Image inside each slide */
.hs-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    /* Smooth crossfade when lazy-loaded image appears */
    transition: opacity 0.3s ease;
}

/* Unloaded lazy images start invisible, fade in when src is set */
.hs-slide img[src=""] {
    opacity: 0;
}

.hs-slide img:not([src=""]) {
    opacity: 1;
}

/* Video slide */
.hs-slide-video {
    background: #000;
}

.hs-slide-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* ── image-actions must float above swiper ── */
.image-actions {
    z-index: 20;
}

/* ── Reduced motion: disable all slide transitions ── */
@media (prefers-reduced-motion: reduce) {
    .hs-track {
        transition: none !important;
    }

    .hs-slide img {
        transition: none !important;
    }

    .image-container>.first-img {
        transform: none !important;
        transition: none !important;
    }
}