﻿/* --- Premium Ecommerce Card Polish --- */
.product-card.ecommerce-premium {
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(60, 31, 12, 0.13), 0 1.5px 8px rgba(204, 122, 0, 0.07);
    border: 1.5px solid #f6bd71;
    transition: box-shadow 0.22s, transform 0.18s;
    background: linear-gradient(135deg, #fffefb 80%, #fdf7ec 100%);
    margin-bottom: 2.2rem;
    position: relative;
}
.product-card.ecommerce-premium:hover {
    box-shadow: 0 16px 48px rgba(204, 122, 0, 0.16), 0 2px 12px rgba(60, 31, 12, 0.10);
    transform: translateY(-2px) scale(1.012);
    z-index: 3;
}
.product-card.ecommerce-premium .product-media {
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    background: #fff;
    position: relative;
}
.product-card.ecommerce-premium .product-media img {
    border-radius: 18px 18px 0 0;
    box-shadow: 0 2px 12px rgba(204, 122, 0, 0.07);
}
.badge-best {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    background: linear-gradient(90deg, #ffb347, #ffcc33);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.32rem 0.8rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(204, 122, 0, 0.13);
    letter-spacing: 0.5px;
    z-index: 2;
}
.shadow-sm {
    box-shadow: 0 2px 8px rgba(204, 122, 0, 0.08) !important;
}
/* --- Real Ecommerce Mobile/Product Card Enhancements --- */
@media (max-width: 900px) {
    .product-actions.modern {
        flex-direction: column;
        gap: 0.6rem;
        align-items: stretch;
    }
    .product-actions .button,
    .product-actions button,
    .product-actions .button-outline {
        width: 100%;
        min-width: unset;
        justify-content: center;
        font-size: 1.08rem;
        padding: 0.85rem 0.5rem;
    }
    .product-card.modern {
        margin-bottom: 1.2rem;
        box-shadow: 0 4px 18px rgba(60, 31, 12, 0.13);
        border-radius: 18px;
    }
    .product-media img {
        height: 180px;
    }
    .product-body {
        padding: 0.7rem 0.7rem 0.9rem 0.7rem;
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .product-card.modern {
        margin-bottom: 1.2rem;
        border-radius: 16px;
        box-shadow: 0 2px 8px rgba(60, 31, 12, 0.10);
    }
    .product-media img {
        height: 150px;
    }
    .product-actions.modern {
        gap: 0.7rem;
    }
    .product-actions .button,
    .product-actions button,
    .product-actions .button-outline {
        width: 100%;
        min-width: unset;
        font-size: 1.13rem;
        padding: 1rem 0.5rem;
    }
    .product-body {
        padding: 0.6rem 0.5rem 0.8rem 0.5rem;
    }
}

/* Wishlist and Details as links below actions on mobile */
@media (max-width: 600px) {
    .product-actions .button-wishlist,
    .product-actions .button-outline.text-decoration-none {
        margin-top: 0.2rem;
        font-size: 1.02rem;
        border-radius: 12px;
        padding: 0.7rem 0.5rem;
    }
}
/* Responsive and mobile enhancements */
@media (max-width: 900px) {
    .store-main-grid {
        display: block;   /* ← not grid; sidebar is fixed drawer, not a column */
    }
    .store-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 1200;
        height: 100vh;
        width: 82vw;
        max-width: 340px;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s;
        box-shadow: none;                          /* ← no overlay when hidden */
        pointer-events: none;                      /* ← never capture clicks when hidden */
        border-radius: 0 18px 18px 0;
        padding-top: 4.5rem;
    }
    .store-sidebar.open {
        transform: translateX(0);
        pointer-events: auto;
    }
    .store-content {
        width: 100%;
        margin-left: 0;
    }
    .store-nav-inner {
        flex-direction: row;
        gap: 0.5rem;
    }
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.7rem;
    }
}

@media (max-width: 600px) {
    .store-hero-content {
        padding: 1.1rem 0.7rem 1.2rem;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .store-nav-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    .store-sidebar {
        width: 96vw;
        max-width: 99vw;
        padding-top: 4.5rem;
    }
}

/* Hamburger and search icon styles */
.mobile-filter-bar {
    display: none;  /* shown via inline style on Store page only */
}

.hamburger {
    width: 34px;
    height: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 8px;
    border: 1.5px solid var(--brand-saffron);
    background: #fff7e5;
    transition: background 0.2s;
}
.hamburger span {
    display: block;
    width: 20px;
    height: 3px;
    margin: 2.5px 0;
    background: var(--brand-saffron);
    border-radius: 2px;
    transition: all 0.3s;
}
.search-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1.5px solid var(--brand-teal);
    background: #e6f7f6;
    color: var(--brand-teal);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Improved button styles */
.button-buy-now {
    background: linear-gradient(90deg, #ffb347, #ffcc33);
    color: #fff;
    border: none;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(204, 122, 0, 0.08);
    border-radius: 16px;
    padding: 0.7rem 1.2rem;
    font-size: 1.08rem;
}
.button-buy-now:hover {
    background: linear-gradient(90deg, #ffcc33, #ffb347);
    color: #fff;
}
.button-add-cart {
    background: linear-gradient(90deg, #0f6b68, #1fc8a3);
    color: #fff;
    border: none;
    font-weight: 700;
    border-radius: 16px;
    padding: 0.7rem 1.2rem;
    font-size: 1.08rem;
}
.button-add-cart:hover {
    background: linear-gradient(90deg, #1fc8a3, #0f6b68);
    color: #fff;
}
.button-wishlist {
    color: var(--brand-deep);
    border: 1.5px solid var(--brand-saffron);
    background: #fff7e5;
    border-radius: 16px;
    padding: 0.7rem 1.2rem;
    font-size: 1.08rem;
}
.button-wishlist:hover {
    background: var(--brand-saffron);
    color: #fff;
}
/* Modern sidebar and product grid for ecommerce */
.store-main-grid {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 2.5rem;
    align-items: flex-start;
}

.store-sidebar {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 24px rgba(60, 31, 12, 0.08);
    padding: 2rem 1.2rem 1.2rem 1.2rem;
    min-width: 220px;
    max-width: 270px;
    position: sticky;
    top: 90px;
    height: fit-content;
}
.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-deep);
    margin-bottom: 1.2rem;
}
.sidebar-section {
    margin-bottom: 1.5rem;
}
.sidebar-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 0.5rem;
    display: block;
}
.sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.sidebar-categories label {
    margin-left: 0.4rem;
    font-size: 0.97rem;
}
.sidebar-range {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.sidebar-range input[type="range"] {
    width: 100%;
    accent-color: var(--brand-saffron);
}
.sidebar-search {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #e6d6bf;
    padding: 0.5rem 0.7rem;
    font-size: 1rem;
}
.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.store-content {
    width: 100%;
}

/* Modern product card styles */
.product-card.modern {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 18px rgba(60, 31, 12, 0.07);
    padding: 1.2rem 1.2rem 1.1rem 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: box-shadow 0.18s;
    position: relative;
}
.product-card.modern:hover {
    box-shadow: 0 8px 32px rgba(204, 122, 0, 0.13);
    z-index: 2;
}
.product-actions.modern {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.1rem;
    flex-wrap: wrap;
}
.button-buy-now {
    background: linear-gradient(90deg, var(--brand-saffron), var(--brand-teal));
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(204, 122, 0, 0.08);
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.button-buy-now:hover {
    background: linear-gradient(90deg, var(--brand-teal), var(--brand-saffron));
    color: #fff;
}
.button-add-cart {
    background: var(--brand-teal);
    color: #fff;
    border: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.button-add-cart:hover {
    background: var(--brand-saffron);
    color: #fff;
}
.button-wishlist {
    color: var(--brand-deep);
    border: 1.5px solid var(--brand-saffron);
    background: #fff7e5;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.button-wishlist:hover {
    background: var(--brand-saffron);
    color: #fff;
}
.icon-cart::before {
    content: "🛒";
    margin-right: 2px;
}
.icon-basket::before {
    content: "🧺";
    margin-right: 2px;
}
.icon-heart::before {
    content: "❤";
    margin-right: 2px;
}
@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bg-ivory: #fdf7ec;
    --bg-surface: #fffefb;
    --brand-saffron: #cc7a00;
    --brand-deep: #6d2600;
    --brand-teal: #0f6b68;
    --text-dark: #2f1c11;
    --text-soft: #6d5b52;
    --success: #1f8b4c;
    --danger: #c93232;
    --shadow-soft: 0 14px 36px rgba(88, 43, 14, 0.12);
    --radius-xl: 24px;
    --radius-lg: 16px;
}

* {
    box-sizing: border-box;
}

body.storefront-body {
    margin: 0;
    color: var(--text-dark);
    background:
        radial-gradient(circle at 20% -10%, rgba(240, 191, 121, 0.45), transparent 35%),
        radial-gradient(circle at 85% 20%, rgba(181, 224, 219, 0.45), transparent 30%),
        linear-gradient(180deg, #fffef8 0%, var(--bg-ivory) 100%);
    font-family: "Manrope", sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.store-shell {
    width: min(1180px, 92%);
    margin: 0 auto;
    flex: 1;        /* grows to fill available height → pushes footer down */
}

.store-nav {
    position: sticky;
    top: 0;
    z-index: 110;
    backdrop-filter: blur(10px);
    background: rgba(255, 249, 236, 0.86);
    border-bottom: 1px solid rgba(204, 122, 0, 0.18);
}

.store-nav-inner {
    width: min(1180px, 92%);
    margin: 0 auto;
    min-height: 78px;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.brand-link {
    display: inline-flex;
    gap: 0.75rem;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
}

.brand-link img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.brand-title {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.15;
    letter-spacing: 0.25px;
    font-family: "Marcellus", serif;
}

.brand-subtitle {
    display: block;
    font-size: 0.78rem;
    color: var(--text-soft);
}

.store-nav-links {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.store-nav-links a {
    text-decoration: none;
    color: var(--brand-deep);
    background: #fff;
    border: 1px solid rgba(109, 38, 0, 0.16);
    border-radius: 999px;
    padding: 0.48rem 0.86rem;
    font-weight: 700;
    font-size: 0.85rem;
}

.store-nav-links a.active,
.store-nav-links a:hover {
    background: linear-gradient(135deg, #f6bd71, #f6dda8);
    border-color: rgba(109, 38, 0, 0.26);
}

.badge-pill {
    display: inline-flex;
    min-width: 1.35rem;
    height: 1.35rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--brand-teal);
    color: #fff;
    font-size: 0.72rem;
    margin-left: 0.35rem;
}

.store-hero {
    margin: 1.35rem auto 0.85rem;
    background:
        linear-gradient(100deg, rgba(109, 38, 0, 0.9), rgba(204, 122, 0, 0.84)),
        url('https://images.unsplash.com/photo-1528715471579-d1bcf0ba5e83?auto=format&fit=crop&w=1400&q=80') center/cover;
    border-radius: var(--radius-xl);
    color: #fff7e5;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.store-hero-content {
    padding: 2rem 2rem 2.2rem;
}

.store-hero h1 {
    margin: 0 0 0.58rem;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-family: "Marcellus", serif;
}

.store-hero p {
    margin: 0;
    max-width: 720px;
    color: rgba(255, 245, 221, 0.92);
}

.filter-panel {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(109, 38, 0, 0.13);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 24px rgba(60, 31, 12, 0.08);
    padding: 1rem;
    margin-bottom: 1rem;
}

.filter-panel h2 {
    font-size: 1rem;
    margin: 0 0 0.8rem;
    color: var(--brand-deep);
}

.filter-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr 1fr 1fr 1.2fr auto;
}

.filter-grid .field label {
    display: block;
    font-size: 0.78rem;
    margin-bottom: 0.34rem;
    font-weight: 700;
    color: var(--text-soft);
}

.filter-grid input,
.filter-grid select {
    width: 100%;
    border: 1px solid #e6d6bf;
    border-radius: 12px;
    padding: 0.58rem 0.7rem;
    font-size: 0.9rem;
}

/* ── Product card action button base ── */
.button,
button.button {
    border: 0;
    border-radius: 12px;
    padding: 0.65rem 0.95rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    line-height: 1;
    vertical-align: middle;
    text-align: center;
}
.button i, button.button i {
    font-size: 0.95em;
    line-height: 1;
    vertical-align: middle;
    flex-shrink: 0;
}
.button:hover,
button.button:hover {
    transform: translateY(-2px);
}
.button:active,
button.button:active {
    transform: translateY(0) scale(0.97);
}

.button-primary {
    background: linear-gradient(135deg, #cc7a00, #f4b54f);
    color: #fff;
    box-shadow: 0 4px 12px rgba(204,122,0,0.3), inset 0 1px 0 rgba(255,255,255,0.18);
}
.button-primary:hover {
    box-shadow: 0 6px 20px rgba(204,122,0,0.45), inset 0 1px 0 rgba(255,255,255,0.18);
}

.button-outline {
    background: #fff;
    color: var(--brand-deep);
    border: 1.5px solid rgba(109,38,0,0.22);
    box-shadow: 0 2px 6px rgba(90,30,14,0.06);
}
.button-outline:hover {
    border-color: var(--brand-saffron);
    box-shadow: 0 4px 12px rgba(204,122,0,0.14);
}

/* ── BUY NOW — saffron gold gradient, glowing ── */
.button-buy-now {
    background: linear-gradient(135deg, #e87c1e 0%, #d4a017 100%);
    color: #fff; border: none; font-weight: 800; letter-spacing: 0.3px;
    box-shadow: 0 4px 16px rgba(232,124,30,0.42), inset 0 1px 0 rgba(255,255,255,0.22);
    border-radius: 12px;
}
.button-buy-now:hover {
    box-shadow: 0 7px 24px rgba(232,124,30,0.58), inset 0 1px 0 rgba(255,255,255,0.22);
    background: linear-gradient(135deg, #f08d2e 0%, #e0b020 100%);
}
.button-buy-now:disabled {
    opacity: 0.55; cursor: not-allowed; transform: none;
    box-shadow: none;
}

/* ── ADD TO CART — deep teal gradient ── */
.button-add-cart {
    background: linear-gradient(135deg, #0f6b68 0%, #16a09a 100%);
    color: #fff; border: none; font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15,107,104,0.32), inset 0 1px 0 rgba(255,255,255,0.15);
}
.button-add-cart:hover {
    box-shadow: 0 6px 22px rgba(15,107,104,0.48), inset 0 1px 0 rgba(255,255,255,0.15);
    background: linear-gradient(135deg, #107e7b 0%, #18b5ae 100%);
}
.button-add-cart:disabled {
    opacity: 0.55; cursor: not-allowed; transform: none;
    box-shadow: none;
}

/* ── WISHLIST — heart button ── */
.button-wishlist {
    color: #c93232 !important; background: rgba(255,245,245,0.9);
    border: 1.5px solid rgba(201,50,50,0.28) !important;
    border-radius: 12px;
}
.button-wishlist:hover {
    background: #c93232 !important; color: #fff !important;
    border-color: #c93232 !important;
    box-shadow: 0 4px 14px rgba(201,50,50,0.32);
}


.product-grid {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    margin-bottom: 2rem;
}

.product-card {
    background: var(--bg-surface);
    border-radius: 18px;
    border: 1px solid rgba(109, 38, 0, 0.12);
    box-shadow: 0 12px 28px rgba(81, 40, 15, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-media {
    position: relative;
}

.product-media img {
    width: 100%;
    height: 215px;
    object-fit: cover;
}

.stock-chip {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    border-radius: 999px;
    padding: 0.24rem 0.58rem;
    font-weight: 700;
    font-size: 0.75rem;
    background: rgba(12, 12, 12, 0.74);
    color: #fff;
}

.stock-chip.out {
    background: rgba(148, 17, 17, 0.82);
}

.product-body {
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.48rem;
    flex: 1;
}

.product-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.product-meta {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.82rem;
}

.product-price {
    margin: 0.1rem 0 0.2rem;
    font-weight: 800;
    color: var(--brand-teal);
    font-size: 1.05rem;
}

.product-actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-actions .button {
    flex: 1;
    min-width: 30%;
}

.empty-state {
    margin: 1rem 0 2rem;
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(109, 38, 0, 0.3);
    padding: 2rem;
    text-align: center;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.7);
}

.store-footer {
    margin-top: 2rem;
    border-top: 1px solid rgba(109, 38, 0, 0.18);
    color: var(--text-soft);
    padding: 1rem 0 1.8rem;
    text-align: center;
    font-size: 0.85rem;
}

.surface-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(109, 38, 0, 0.12);
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(81, 40, 15, 0.08);
}

.cart-item {
    display: grid;
    grid-template-columns: 86px 1fr auto;
    gap: 0.8rem;
    border-bottom: 1px solid rgba(109, 38, 0, 0.12);
    padding: 0.8rem 0;
}

.cart-item img {
    width: 86px;
    height: 86px;
    object-fit: cover;
    border-radius: 12px;
}

.item-title {
    margin: 0 0 0.2rem;
    font-weight: 700;
}

.item-small {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.83rem;
}

.item-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.icon-button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(109, 38, 0, 0.2);
    background: #fff;
    font-weight: 800;
}

.amount-line {
    font-weight: 700;
    color: var(--brand-teal);
}

.checkout-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1.3fr 0.9fr;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.form-grid label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-soft);
    font-weight: 700;
}

.form-grid input,
.form-grid textarea {
    width: 100%;
    border: 1px solid #e6d6bf;
    border-radius: 10px;
    padding: 0.6rem;
}

.order-list {
    display: grid;
    gap: 0.7rem;
}

.order-row {
    border-radius: 12px;
    border: 1px solid rgba(109, 38, 0, 0.12);
    padding: 0.75rem;
    background: #fff;
}

.status-paid {
    color: var(--success);
    font-weight: 700;
}

.stats-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(255, 239, 213, 0.9));
    border: 1px solid rgba(109, 38, 0, 0.14);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(81, 40, 15, 0.08);
}

.stat-card p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card h3 {
    margin: 0.35rem 0 0;
    color: var(--brand-deep);
    font-size: 1.4rem;
    font-weight: 800;
}

.profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(15, 107, 104, 0.08);
    border: 1px solid rgba(15, 107, 104, 0.2);
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
}

.avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #0f6b68, #16a39f);
}

@media (max-width: 980px) {
    .filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .store-nav-inner {
        min-height: auto;
        padding: 0.7rem 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .store-nav-links {
        width: 100%;
        justify-content: flex-start;
    }

    .filter-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 1fr;
    }
}

/* ========== PREMIUM STOREFRONT NAVBAR ========== */
.store-topnav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1050;
    background: rgba(255,255,255,0.86);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border-bottom: 1px solid rgba(255,255,255,0.55);
    padding: 0;
    min-height: 62px;        /* explicit nav height — matches body padding-top */
    box-shadow:
        0 1px 0 rgba(232,124,30,0.18),
        0 4px 28px rgba(90,30,14,0.08),
        0 1px 3px rgba(90,30,14,0.05);
    transition: background 0.35s ease, box-shadow 0.35s ease;
}
/* Gradient accent line at bottom */
.store-topnav::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, #e87c1e 25%, #ffc875 50%, #d4a017 75%, transparent 100%);
    opacity: 0.65; pointer-events: none;
}
/* Scrolled state (class added by JS) */
.store-topnav.nav-scrolled {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 8px 36px rgba(90,30,14,0.13), 0 1px 0 rgba(232,124,30,0.18);
}
.store-nav-container {
    padding: 0 1rem;
    height: 62px;         /* must match .store-topnav min-height */
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
}

/* Brand */
.store-brand {
    display: flex; align-items: center; gap: 0.65rem;
    text-decoration: none; flex-shrink: 0;
    padding-top: 0 !important; padding-bottom: 0 !important; /* kill Bootstrap navbar-brand padding */
}
.store-brand-logo {
    width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    /* gradient border trick */
    border: 2.5px solid transparent;
    background: linear-gradient(#fff,#fff) padding-box,
                linear-gradient(135deg,#e87c1e,#ffc875,#d4a017) border-box;
    box-shadow: 0 0 0 4px rgba(232,124,30,0.1), 0 4px 16px rgba(90,30,14,0.16);
    transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s;
}
.store-brand:hover .store-brand-logo {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 0 6px rgba(232,124,30,0.18), 0 8px 24px rgba(90,30,14,0.22);
}
.store-brand-name {
    display: block; font-size: 1.05rem; font-weight: 800;
    color: #5a1e0e; line-height: 1.2; letter-spacing: 0.2px;
}
.store-brand-tagline {
    display: block; font-size: 0.62rem; font-weight: 600;
    color: #e87c1e; letter-spacing: 0.7px; text-transform: uppercase;
}

/* Nav links with animated underline */
.store-nav-link {
    color: #2c1a0e !important; font-weight: 600;
    font-size: 0.9rem; padding: 0.5rem 0.78rem !important;
    border-radius: 8px; transition: color 0.2s, background 0.2s;
    position: relative;
}
.store-nav-link::after {
    content: ''; position: absolute;
    bottom: 4px; left: 50%; right: 50%;
    height: 2px;
    background: linear-gradient(90deg, #e87c1e, #d4a017);
    border-radius: 2px; transition: left 0.28s ease, right 0.28s ease;
}
.store-nav-link:hover::after { left: 12%; right: 12%; }
.store-nav-link:hover { color: #e87c1e !important; background: rgba(232,124,30,0.06); }

/* Badges */
.nav-pill-badge {
    background: linear-gradient(135deg, #e87c1e, #d4a017); color: #fff;
    font-size: 0.6rem; font-weight: 700;
    border-radius: 99px; padding: 1px 5px; margin-left: 2px;
    vertical-align: middle; box-shadow: 0 2px 6px rgba(232,124,30,0.45);
}

/* CTA buttons */
.store-nav-btn {
    background: linear-gradient(135deg, #e87c1e 0%, #d4a017 100%);
    color: #fff !important; padding: 0.46rem 1.3rem !important;
    border-radius: 99px; font-weight: 700 !important; font-size: 0.88rem !important;
    box-shadow: 0 4px 16px rgba(232,124,30,0.45), inset 0 1px 0 rgba(255,255,255,0.22);
    transition: box-shadow 0.22s, transform 0.18s; white-space: nowrap;
}
.store-nav-btn:hover {
    box-shadow: 0 8px 28px rgba(232,124,30,0.58), inset 0 1px 0 rgba(255,255,255,0.22);
    transform: translateY(-2px); color: #fff !important;
}
.store-nav-btn-outline {
    border: 1.5px solid #e87c1e; color: #e87c1e !important;
    padding: 0.42rem 1.05rem !important; border-radius: 99px;
    font-weight: 600 !important; font-size: 0.88rem !important; background: transparent;
    transition: all 0.22s; white-space: nowrap;
}
.store-nav-btn-outline:hover {
    background: rgba(232,124,30,0.1); color: #e87c1e !important;
    box-shadow: 0 2px 12px rgba(232,124,30,0.22);
}

/* Hamburger */
.store-hamburger {
    border: 1.5px solid rgba(232,124,30,0.28);
    background: rgba(232,124,30,0.07);
    padding: 7px 8px; border-radius: 10px;
    display: flex; flex-direction: column; gap: 5px; cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.store-hamburger:hover {
    background: rgba(232,124,30,0.14); border-color: rgba(232,124,30,0.5);
    box-shadow: 0 2px 10px rgba(232,124,30,0.2);
}
.ham-bar {
    display: block; width: 20px; height: 2px;
    background: #5a1e0e; border-radius: 2px; transition: all 0.3s;
}
.navbar-toggler:focus { box-shadow: none !important; }

/* Mobile icons — square pill with border */
.nav-mobile-icon {
    position: relative; color: #5a1e0e !important; text-decoration: none;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: rgba(232,124,30,0.07);
    border: 1.5px solid rgba(232,124,30,0.2);
    transition: background 0.2s, box-shadow 0.2s;
}
.nav-mobile-icon:hover {
    background: rgba(232,124,30,0.14);
    box-shadow: 0 2px 12px rgba(232,124,30,0.22);
}
.nav-badge-float {
    position: absolute; top: -5px; right: -6px;
    background: linear-gradient(135deg, #e87c1e, #d4a017); color: #fff;
    font-size: 0.58rem; font-weight: 700;
    border-radius: 99px; padding: 1px 4px; min-width: 16px;
    text-align: center; line-height: 1.4;
    box-shadow: 0 2px 6px rgba(232,124,30,0.45);
}

/* Mobile collapse — frosted glass */
@media (max-width: 991.98px) {
    .store-topnav .navbar-collapse {
        background: rgba(255,252,246,0.97);
        backdrop-filter: blur(24px);
        border-top: 1px solid rgba(232,124,30,0.1);
        padding: 0.9rem 0.75rem 1.2rem;
        margin: 0 -1.5rem;
        box-shadow: 0 14px 40px rgba(90,30,14,0.14);
    }
    .store-topnav .store-nav-link {
        padding: 0.72rem 0.9rem !important;
        border-bottom: 1px solid rgba(232,124,30,0.07);
        font-size: 1rem !important; border-radius: 0;
    }
    .store-topnav .store-nav-link::after { display: none; }
    .store-topnav .store-nav-btn,
    .store-topnav .store-nav-btn-outline {
        display: block; text-align: center;
        margin: 0.5rem 0 0; border-radius: 12px;
        padding: 0.75rem 1rem !important;
    }
    .store-brand-tagline { font-size: 0.58rem; }
    .store-topnav .d-lg-flex { display: none !important; }
}

/* Page body offset for fixed navbar */
.storefront-body { padding-top: 62px; }

/* ========== RESPONSIVE SYSTEM — STORE, DETAILS, ALL STOREFRONT PAGES ========== */

/* Base: prevent horizontal overflow everywhere */
html, body { max-width: 100%; overflow-x: hidden; }

/* ── Sidebar slide-in (mobile/tablet) ── */
@media (max-width: 1024px) {
    .store-main-grid {
        display: block;          /* sidebar is fixed drawer, not a grid column */
    }
    .store-sidebar {
        position: fixed;
        left: 0; top: 0;
        z-index: 1200;
        height: 100vh;
        width: min(82vw, 340px);
        transform: translateX(-110%);
        transition: transform 0.3s cubic-bezier(.4,0,.2,1);
        box-shadow: none;          /* NO shadow when hidden – use backdrop div */
        pointer-events: none;      /* not interactive when hidden */
        border-radius: 0 18px 18px 0;
        padding-top: 4.5rem;
        overflow-y: auto;
    }
    .store-sidebar.open {
        transform: translateX(0);
        pointer-events: auto;      /* interactive when open */
    }
    .store-content { width: 100%; margin-left: 0; }
}

/* ── Backdrop overlay (shown by JS when sidebar is open) ── */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1199;               /* just below sidebar (1200) */
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    cursor: pointer;
}

/* ── TABLET (641–1024px) ── */
@media (min-width: 641px) and (max-width: 1024px) {
    .store-shell { width: 100%; padding: 0 1.5rem; }
    .store-hero { margin: 0.85rem 0 0.75rem; }
    .store-hero h1 { font-size: 1.6rem; }
    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem;
    }
    .product-media img { height: 170px !important; object-fit: cover; }
    .product-name { font-size: .9rem; }
    .product-price { font-size: 1rem; }
    .product-body { padding: .6rem .7rem .75rem; }
    /* Tablet buttons: Buy Now full-width; Cart+Wish split; Details link */
    .product-actions.modern { gap: 0.45rem; }
    .button { font-size: .83rem !important; padding: .52rem .7rem !important; }
    .action-split-wish { min-width: 40px; max-width: 40px; }
    .wish-full { display: none; }
    .wish-icon { display: inline; }
}

/* ── MOBILE (≤640px) ── */
@media (max-width: 640px) {
    .store-shell { width: 100%; padding: 0 0.6rem; }
    .storefront-body { padding-top: 62px; }

    /* Hero compact */
    .store-hero { margin: 0.5rem 0 0.6rem; border-radius: 10px; overflow: hidden; }
    .store-hero-content { padding: 1rem 0.9rem 1.15rem; }
    .store-hero h1 { font-size: 1.2rem !important; line-height: 1.3; margin-bottom: .3rem; }
    .store-hero p { font-size: .82rem; line-height: 1.45; }

    /* 2-col product grid */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.55rem;
        margin-bottom: 1rem;
    }
    .product-card.ecommerce-premium {
        border-radius: 12px;
        margin-bottom: 0;
        padding: 0;
    }
    .product-media img { height: 140px !important; object-fit: cover; }
    .product-body { padding: .48rem .5rem .55rem; gap: .28rem; }
    .product-name { font-size: .8rem !important; line-height: 1.25; }
    .product-meta { font-size: .66rem !important; }
    .product-price { font-size: .9rem !important; }
    .stock-chip { font-size: .65rem; padding: .18rem .45rem; }
    .badge-best { font-size: .7rem; padding: .22rem .55rem; }

    /* Buttons compact */
    .button, button.button {
        font-size: .75rem !important;
        padding: .44rem .42rem !important;
        border-radius: 9px !important;
    }
    .product-actions.modern { margin-top: .45rem; gap: .32rem; }
    .action-split { gap: .32rem; }
    .action-split-wish { min-width: 36px; max-width: 36px; padding: .44rem !important; }
    .wish-full { display: none; }
    .wish-icon { display: inline; font-size: .95rem; }
    .btn-details-link { font-size: .72rem !important; padding: .28rem 0 !important; }
}

/* ── VERY SMALL phones (≤360px) ── */
@media (max-width: 360px) {
    .product-grid { grid-template-columns: 1fr !important; }
    .product-media img { height: 200px !important; }
}

/* ── Product card — button base styles ── */
.product-actions.modern {
    display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.6rem;
}
.action-split { display: flex; gap: 0.4rem; align-items: stretch; }
.action-split-main { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: .3rem; }
.action-split-wish {
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; border-radius: 9px !important;
}
.btn-full { width: 100%; }
.btn-details-link {
    display: block; text-align: center;
    font-size: .8rem; font-weight: 600;
    color: var(--brand-deep); text-decoration: none;
    padding: .34rem 0; border-radius: 9px;
    border: 1px solid rgba(109,38,0,.18);
    background: #fffef8; transition: background .18s;
}
.btn-details-link:hover { background: rgba(204,122,0,.08); color: var(--brand-deep); }

/* ── Details page responsive ── */
@media (max-width: 767px) {
    .surface-card { padding: 1rem 0.85rem !important; border-radius: 12px !important; }
    .product-price.fs-2 { font-size: 1.4rem !important; }
    .breadcrumb { flex-wrap: wrap; font-size: .78rem; }
    /* Swiper */
    .swiper-main .swiper-slide img { height: 255px !important; }
    .swiper-thumbs .swiper-slide img { height: 54px !important; }
    /* Action buttons full-width column */
    .d-flex.flex-wrap.gap-2.mb-4 {
        flex-direction: column !important;
        gap: .5rem !important;
    }
    .d-flex.flex-wrap.gap-2.mb-4 .button,
    .d-flex.flex-wrap.gap-2.mb-4 a.button {
        width: 100% !important;
        justify-content: center; text-align: center;
        padding: .72rem 1rem !important;
        font-size: .97rem !important;
    }
    .qty-btn { width: 38px; height: 38px; font-size: 1.2rem; }
    .info-tab .nav-link { font-size: .85rem; padding: .4rem .6rem; }
    h2 { font-size: 1.25rem !important; }
}
@media (max-width: 400px) {
    .swiper-main .swiper-slide img { height: 205px !important; }
    h2 { font-size: 1.1rem !important; }
}

/* ── Store footer ── */
.store-footer {
    padding: 1.2rem 1rem;
    text-align: center;
    font-size: .82rem;
    border-top: 1px solid rgba(109,38,0,.12);
    color: var(--text-soft);
    margin-top: auto;   /* pushes footer to bottom when content is short */
    background: rgba(255,252,246,0.7);
}

/* ── Index hero hide on very small ── */
@media (max-width: 767px) {
    .hero-visual { display: none !important; }
}
