/* ─── SHOP PAGE — Complete Style System ────────────────────────────────── */
/* Responsive for Desktop, Tablet, and Mobile */

/* Light Mode Overrides for Shop */
.light-mode {
    --bg-primary: #573621;
    --text-primary: #F5ECD7;
    --text-secondary: rgba(245, 236, 215, 0.7);
    --border-color: rgba(245, 236, 215, 0.1);
}


.light-mode .cart-drawer {
    background: rgba(15, 8, 4, 0.94);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid rgba(245, 236, 215, 0.1);
}

.light-mode .cart-drawer-header,
.light-mode .cart-footer {
    border-color: rgba(255,255,255,0.08);
}

.light-mode .mobile-filter-drawer {
    background: rgba(15, 8, 4, 0.94);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid rgba(245, 236, 215, 0.1);
}

.light-mode .cart-item {
    border-color: rgba(255,255,255,0.05);
}

.light-mode .cart-item-info .cart-item-name {
    color: #F5ECD7;
}

.light-mode .cart-item-qty .qty-num,
.light-mode .cart-item-price {
    color: rgba(245, 236, 215, 0.7);
}

.light-mode .qty-btn {
    background: rgba(245, 236, 215, 0.05);
    border-color: rgba(245, 236, 215, 0.1);
    color: #F5ECD7;
}

.light-mode .shop-hero {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.light-mode .shop-sidebar {
    background: transparent;
}

.light-mode .sidebar-heading {
    color: rgba(255, 255, 255, 0.4);
}

.light-mode .product-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.light-mode .product-info {
    border-top-color: rgba(255, 255, 255, 0.05);
}

.light-mode .product-title {
    color: #F5ECD7;
}

.light-mode .product-img-bg {
    background: #2C1A0E;
}

.light-mode .filter-btn {
    color: rgba(245, 236, 215, 0.6);
}

.light-mode .filter-btn:hover,
.light-mode .filter-btn.active {
    color: #fff;
}

.light-mode .filter-btn .count {
    color: rgba(245, 236, 215, 0.3);
    transition: color 0.3s ease;
}

.light-mode .filter-btn.active .count {
    color: #fff;
    opacity: 1;
}

.light-mode .results-count {
    color: rgba(245, 236, 215, 0.4);
}

.light-mode .view-toggle {
    color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.light-mode .shop-toolbar {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}


.active-link {
    color: var(--text-primary) !important;
    opacity: 1 !important;
}

/* Cart Toggle Button */
.cart-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    padding: 8px 14px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cart-toggle:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.05);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    line-height: 1;
}

.cart-badge.visible {
    transform: scale(1);
}

/* ─── CART DRAWER ────────────────────────────────────────────────────────── */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 105000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 95vw;
    height: 100dvh;
    height: 100%;
    background: #111;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 110000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}

.cart-drawer-header h2 {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.cart-close-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-close-btn:hover {
    background: rgba(255,255,255,0.1);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 100%;
    padding: 40px;
    text-align: center;
    min-height: 300px;
}

.cart-empty p {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
}

.cart-empty span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.3);
}

.cart-items-list {
    list-style: none;
    padding: 0;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 20px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    align-items: center;
    animation: slideInCart 0.4s ease;
}

@keyframes slideInCart {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.cart-item-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.cart-item-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-img svg {
    width: 48px;
    height: 48px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cart-item-cat {
    font-size: 0.75rem;
    color: var(--accent);
    opacity: 0.7;
    margin-bottom: 6px;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.qty-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.qty-btn:hover { background: rgba(255,255,255,0.15); }

.qty-num {
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: color 0.3s;
    padding: 4px;
}

.cart-item-remove:hover { color: #ff6b6b; }

.cart-footer {
    padding: 24px 28px;
    padding-bottom: max(32px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.cart-subtotal span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

.btn-checkout {
    width: 100%;
    background: var(--text-primary);
    color: var(--bg-color);
    border: none;
    padding: 16px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.btn-checkout:hover {
    background: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 143, 163, 0.3);
}

.cart-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
}

/* ─── SHOP HERO ──────────────────────────────────────────────────────────── */
.shop-hero {
    padding: 160px 8% 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 100%;
}

.shop-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    display: block;
    margin-bottom: 12px;
    opacity: 0.8;
}

.shop-hero-title {
    font-size: clamp(2.2rem, 12vw, 4rem);
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--text-primary);
}

.shop-hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ─── SHOP LAYOUT (Sidebar + Main) ─────────────────────────────────────── */
.shop-layout {
    display: flex;
    max-width: 1600px;
    margin: 0;
    padding: 0 4%;
    gap: 60px;
    padding-bottom: 100px;
    min-height: 80vh;
}

/* ─── SIDEBAR ────────────────────────────────────────────────────────────── */
.shop-sidebar {
    width: 220px;
    flex-shrink: 0;
    padding-top: 40px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 40px;
}

.sidebar-heading {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.3);
    margin-bottom: 16px;
    font-weight: 500;
}

.sidebar-nav {
    list-style: none;
}

.filter-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.55);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 0;
    width: 100%;
    text-align: left;
    transition: all 0.25s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid transparent;
}

.filter-btn:hover {
    color: var(--text-primary);
    padding-left: 6px;
}

.filter-btn.active,
.filter-btn.active-sort {
    color: var(--text-primary);
    font-weight: 500;
}

.filter-btn.active .count {
    color: var(--text-primary);
    opacity: 1;
}

.filter-btn .count {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
    height: 1rem;
    display: inline-block; /* Override glitch-link block */
    min-width: 20px;
    text-align: right;
}

.filter-btn .count span {
    text-align: right;
}

.results-count.glitch-link {
    display: inline-block;
    height: auto;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}


/* ─── SHOP MAIN ─────────────────────────────────────────────────────────── */
.shop-main {
    flex: 1;
    min-width: 0;
    padding-top: 40px;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 32px;
    gap: 16px;
}

.shop-toolbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.results-count {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.35);
}

.mobile-filter-btn {
    display: none;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 100px;
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.mobile-filter-btn:hover { background: rgba(255,255,255,0.1); }

.view-toggles {
    display: flex;
    gap: 8px;
}

.view-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
}

.view-toggle.active {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.2);
}

/* ─── NO RESULTS MESSAGE ───────────────────────────────────────────────── */
.no-results {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    margin-top: 20px;
}

.no-results svg {
    margin-bottom: 24px;
    opacity: 0.4;
    filter: drop-shadow(0 0 15px rgba(245, 151, 104, 0.1));
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.no-results p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 400px;
    line-height: 1.6;
}

/* ─── PRODUCT GRID ───────────────────────────────────────────────────────── */
.product-grid {
    display: grid;
    gap: 24px;
}

.product-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.product-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ─── PRODUCT CARD ───────────────────────────────────────────────────────── */
.product-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.015);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.4s ease, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
}

.product-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}

.product-card.hidden {
    display: none;
}

/* Product Image Wrapper */
.product-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.product-img-bg {
    width: 100%;
    height: 100%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.5s ease;
    position: relative;
}

.product-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent);
    padding: 4px 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* The SVG icon fills the card nicely */
.product-svg-icon {
    width: 75%;
    height: 75%;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-card:hover .product-svg-icon {
    transform: scale(1.08);
}

/* Real product photo styles */
.product-real-img {
    padding: 0;
}

.product-real-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    display: block;
}

.product-card:hover .product-real-photo {
    transform: scale(1.06);
}

/* Glow effect on hover using CSS custom property */
.product-hover-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 60%,
        rgba(var(--glow, 255, 143, 163), 0.12) 0%,
        transparent 65%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.product-card:hover .product-hover-glow {
    opacity: 1;
}

/* Tech-Luxury Quantity & Add Unit */
.card-qty-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 3px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.card-qty-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4), inset 0 2px 4px rgba(0,0,0,0.3);
}

.card-qty-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.card-qty-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
}

.card-qty-btn {
    background: transparent;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
}

.card-qty-btn:hover {
    color: var(--accent);
}

.card-qty-num {
    min-width: 14px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    opacity: 0.9;
}

.card-quick-add {
    background: linear-gradient(135deg, var(--accent) 0%, #f57d4a 100%);
    color: #000;
    border: none;
    border-radius: 100px;
    padding: 6px 18px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(245, 151, 104, 0.3);
}

.card-quick-add:hover {
    background: #fff;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.card-quick-add svg {
    transition: transform 0.3s ease;
}

.card-quick-add:hover svg {
    transform: rotate(90deg);
}

.card-quick-add.added {
    background: #2ed573;
    color: #fff;
    box-shadow: 0 4px 15px rgba(46, 213, 115, 0.3);
}

.product-info {
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.04);
    display: flex;
    flex-direction: column;
    min-height: auto; /* Allow it to fit content more tightly */
}

.product-details-top {
    margin-bottom: 4px; /* Significantly reduced */
}

.product-card-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 6px;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.7;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.product-details-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4px; /* Significantly reduced */
    margin-top: 0;
}

.product-price-tag {
    font-size: 1.05rem;
    color: #fff;
    font-weight: 400;
    letter-spacing: 0.01em;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.product-price-tag::first-letter {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--accent);
    margin-right: 1px;
}



/* ─── MOBILE FILTER DRAWER ──────────────────────────────────────────────── */
.mobile-filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 105000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-filter-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-action-bar {
    display: none;
}

.mobile-filter-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 90vw;
    height: 100dvh;
    height: 100%;
    background: #111;
    border-right: 1px solid rgba(255,255,255,0.08);
    z-index: 110000;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
}

.mobile-filter-drawer.open {
    transform: translateX(0);
}

.mobile-filter-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

.mobile-sidebar-nav {
    margin-bottom: 32px;
}

.mobile-filter-drawer .sidebar-heading {
    display: none;
}


/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */

/* Large screens — 3 column default */
@media (min-width: 1400px) {
    .product-grid.cols-2 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet breakpoint */
@media (max-width: 1024px) {
    nav {
        padding: 0 16px !important;
        width: 94% !important;
    }

    .shop-layout {
        gap: 0;
    }

    .shop-sidebar {
        display: none;
    }

    .mobile-filter-btn {
        display: flex !important;
        margin-right: auto;
    }

    .shop-toolbar-left {
        width: 100%;
        justify-content: space-between;
    }
}

/* Mobile small */
@media (max-width: 600px) {
    .product-grid.cols-2,
    .product-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .product-details-bottom {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        position: relative !important;
        z-index: 50 !important;
    }

    .product-title {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
    }

    .product-card-desc {
        font-size: 0.65rem !important;
        -webkit-line-clamp: 1 !important;
        margin-top: 4px !important;
    }

    .product-price-tag {
        font-size: 0.85rem !important;
        justify-content: flex-start !important;
    }

    .product-info {
        padding: 12px 14px !important;
    }

    .card-qty-wrapper {
        width: 100% !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border-radius: 8px !important;
        padding: 4px !important;
        display: flex !important;
        justify-content: space-between !important;
    }

    .card-quick-add {
        padding: 6px 12px !important;
        font-size: 0.65rem !important;
        flex: 1 !important;
        justify-content: center !important;
        margin-left: 6px !important;
    }

    .mobile-action-bar {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 60px !important;
        background: #000 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        z-index: 100000 !important;
        backdrop-filter: blur(15px) !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .action-bar-btn {
        flex: 1 !important;
        background: transparent !important;
        border: none !important;
        color: #fff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        font-family: 'Outfit', sans-serif !important;
        font-size: 0.8rem !important;
        font-weight: 500 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.1em !important;
        height: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        outline: none !important;
    }

    .action-bar-btn svg {
        color: var(--accent) !important;
    }

    .action-bar-divider {
        width: 1px !important;
        height: 30px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        align-self: center !important;
    }

    .mobile-filter-btn {
        display: none !important;
    }

    .shop-layout {
        padding-bottom: 120px !important;
    }

    .whatsapp-float {
        bottom: 80px !important;
    }
}
/* ─── PRODUCT DETAIL MODAL ────────────────────────────────────────── */
.detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 3, 2, 0.7);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    z-index: 200000;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    overflow-y: auto;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-modal.active {
    display: flex;
    opacity: 1;
}

.detail-modal-content {
    background: radial-gradient(circle at top right, rgba(32, 24, 18, 0.98), rgba(12, 10, 9, 0.99));
    border: 1px solid rgba(208, 156, 84, 0.15);
    width: 100%;
    max-width: 980px;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    transform: translateY(40px) scale(0.96);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    margin: auto;
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.detail-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-modal-close svg {
    transition: transform 0.4s ease;
}

.detail-modal-close:hover {
    background: rgba(208, 156, 84, 0.15);
    border-color: rgba(208, 156, 84, 0.3);
    color: #fff;
    transform: scale(1.05);
}

.detail-modal-close:hover svg {
    transform: rotate(90deg);
}

.detail-img-side {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
    position: relative;
    border-right: 1px solid rgba(208, 156, 84, 0.06);
}

.detail-img-side::after {
    content: '';
    position: absolute;
    inset: 36px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    pointer-events: none;
}

.detail-img-side img {
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transition: transform 0.5s ease;
}

.detail-img-side:hover img {
    transform: scale(1.02);
}

.detail-info-side {
    padding: 50px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    max-height: 85vh;
}

.detail-info-side::-webkit-scrollbar {
    width: 4px;
}

.detail-info-side::-webkit-scrollbar-thumb {
    background: rgba(208, 156, 84, 0.15);
    border-radius: 10px;
}

.detail-cat {
    letter-spacing: 0.18em;
    font-size: 0.65rem;
    color: #d09c54;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
}

.cat-bullet {
    color: #d09c54;
    font-size: 0.95rem;
    margin-left: 2px;
    opacity: 0.8;
}

.detail-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.6rem;
    line-height: 1.15;
    margin-bottom: 10px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
}

.detail-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 26px;
    color: #d09c54;
}

.detail-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.spec-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 14px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.spec-item:hover {
    border-color: rgba(208, 156, 84, 0.2);
    background: rgba(208, 156, 84, 0.02);
}

.spec-label {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 6px;
}

.spec-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
}

.detail-desc-label {
    font-size: 0.65rem;
    color: rgba(208, 156, 84, 0.6);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

.detail-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    font-weight: 300;
}

/* Luxury E-Commerce Quantity & Add Panel */
.detail-info-side .card-qty-wrapper {
    display: inline-flex;
    align-items: center;
    background: rgba(208, 156, 84, 0.04);
    border: 1px solid rgba(208, 156, 84, 0.15);
    border-radius: 100px;
    padding: 4px;
    max-width: fit-content;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-info-side .card-qty-wrapper:hover {
    border-color: rgba(208, 156, 84, 0.3);
    background: rgba(208, 156, 84, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.detail-info-side .card-qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
}

.detail-info-side .card-qty-btn {
    background: transparent;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
}

.detail-info-side .card-qty-btn:hover {
    color: #d09c54;
    background: rgba(255,255,255,0.05);
}

.detail-info-side .card-qty-num {
    min-width: 16px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.detail-info-side .card-quick-add {
    background: linear-gradient(135deg, #d09c54 0%, #b27a35 100%);
    color: #000;
    border: none;
    border-radius: 100px;
    padding: 10px 26px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(208, 156, 84, 0.2);
}

.detail-info-side .card-quick-add:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.detail-info-side .card-quick-add.added {
    background: #2ed573;
    color: #fff;
    box-shadow: 0 4px 15px rgba(46, 213, 115, 0.3);
}

/* Light Mode Overrides for Modal */
.light-mode .detail-modal {
    background: rgba(26, 8, 10, 0.6);
}

.light-mode .detail-modal-content {
    background: radial-gradient(circle at top right, rgba(46, 16, 20, 0.98), rgba(26, 8, 10, 0.99));
    border-color: rgba(212, 122, 96, 0.2);
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.light-mode .detail-img-side {
    background: transparent;
    border-right-color: rgba(212, 122, 96, 0.08);
}

.light-mode .detail-img-side::after {
    border-color: rgba(212, 122, 96, 0.03);
}

.light-mode .detail-cat {
    color: #d47a60;
}

.light-mode .cat-bullet {
    color: #d47a60;
}

.light-mode .detail-title {
    color: #f5d7da;
}

.light-mode .detail-price {
    color: #d47a60;
}

.light-mode .spec-item {
    background: rgba(255, 215, 218, 0.03);
    border-color: rgba(212, 122, 96, 0.08);
}

.light-mode .spec-item:hover {
    border-color: rgba(212, 122, 96, 0.25);
    background: rgba(212, 122, 96, 0.03);
}

.light-mode .spec-label {
    color: rgba(245, 215, 218, 0.4);
}

.light-mode .spec-value {
    color: #f5d7da;
}

.light-mode .detail-desc-label {
    color: rgba(212, 122, 96, 0.7);
}

.light-mode .detail-desc {
    color: rgba(245, 215, 218, 0.75);
}

.light-mode .detail-modal-close {
    background: rgba(255, 215, 218, 0.03);
    border-color: rgba(212, 122, 96, 0.12);
    color: #f5d7da;
}

.light-mode .detail-modal-close:hover {
    background: rgba(212, 122, 96, 0.15);
    border-color: rgba(212, 122, 96, 0.3);
    color: #fff;
}

.light-mode .detail-info-side .card-qty-wrapper {
    background: rgba(212, 122, 96, 0.05);
    border-color: rgba(212, 122, 96, 0.2);
}

.light-mode .detail-info-side .card-qty-btn {
    color: rgba(245, 215, 218, 0.6);
}

.light-mode .detail-info-side .card-qty-btn:hover {
    color: #d47a60;
    background: rgba(255, 215, 218, 0.04);
}

.light-mode .detail-info-side .card-qty-num {
    color: #f5d7da;
}

.light-mode .detail-info-side .card-quick-add {
    background: linear-gradient(135deg, #d47a60 0%, #aa543d 100%);
    color: #1a080a;
    box-shadow: 0 4px 15px rgba(212, 122, 96, 0.25);
}

.light-mode .detail-info-side .card-quick-add:hover {
    background: #f5d7da;
    color: #1a080a;
    box-shadow: 0 6px 20px rgba(245, 215, 218, 0.3);
}

@media (max-width: 900px) {
    .detail-modal-content {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    .detail-img-side {
        padding: 24px;
        border-right: none;
        border-bottom: 1px solid rgba(208, 156, 84, 0.06);
    }
    .light-mode .detail-img-side {
        border-bottom-color: rgba(212, 122, 96, 0.08);
    }
    .detail-img-side::after {
        inset: 24px;
    }
    .detail-info-side {
        padding: 36px 30px;
        max-height: 50vh;
    }
    .detail-title {
        font-size: 2.1rem;
    }
}

@media (max-width: 600px) {
    .detail-modal {
        padding: 10px;
    }
    .detail-modal-content {
        max-width: 100%;
        border-radius: 20px;
        max-height: 90vh;
    }
    .detail-img-side {
        padding: 16px;
    }
    .detail-img-side::after {
        inset: 16px;
        border-radius: 12px;
    }
    .detail-img-side img {
        max-height: 240px;
        border-radius: 12px;
    }
    .detail-info-side {
        padding: 24px 20px;
    }
    .detail-cat {
        font-size: 0.58rem;
        margin-bottom: 6px;
    }
    .detail-title {
        font-size: 1.55rem !important;
        margin-bottom: 8px;
    }
    .detail-price {
        font-size: 1.35rem;
        margin-bottom: 16px;
    }
    .detail-specs-grid {
        gap: 8px;
        margin-bottom: 20px;
    }
    .spec-item {
        padding: 10px 14px;
        border-radius: 8px;
    }
    .spec-label {
        font-size: 0.5rem;
        margin-bottom: 4px;
    }
    .spec-value {
        font-size: 0.8rem;
    }
    .detail-desc-label {
        font-size: 0.58rem;
        margin-bottom: 6px;
    }
    .detail-desc {
        font-size: 0.82rem;
        margin-bottom: 20px;
        line-height: 1.55;
    }
    .detail-info-side .card-qty-wrapper {
        width: 100%;
        justify-content: space-between;
    }
    .detail-info-side .card-quick-add {
        flex: 1;
        justify-content: center;
    }
}

body.modal-active .mobile-action-bar {
    display: none !important;
}
