/* ============================================
   EARLEE - Junk & Customized Jewellery Store CSS
   Aesthetic: Elegant editorial jewellery brand
============================================ */

:root {
    --deep-rose: #8B2252;
    --gold: #D4AF37;
    --gold-light: #F0D060;
    --cream: #FAF5EE;
    --warm-white: #FDF9F4;
    --charcoal: #1A1A1A;
    --text-body: #3D3530;
    --border: #E0D4C4;
    --success: #2D6A4F;
    --error: #C0392B;
    --shadow: 0 4px 30px rgba(139, 34, 82, 0.1);
    --text-muted: #9A8880;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--warm-white);
    color: var(--text-body);
    line-height: 1.7;
}

h1, h2, h3, h4, .logo-text {
    font-family: 'Cormorant Garamond', serif;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

/* ========== NAVBAR ========== */
.navbar {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cream);
}

.logo-earring {
    flex-shrink: 0;
    display: block;
}

/* Brand logo image */
.logo-img {
    height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: brightness(1.05);
    transition: transform 0.2s ease;
}
.logo-img:hover { transform: scale(1.03); }

.footer-logo-img {
    height: 100px;
    width: auto;
    display: block;
    object-fit: contain;
    margin-bottom: 4px;
    filter: brightness(1.05);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 1px;
    color: var(--gold);
}

.logo-text em {
    font-style: italic;
    color: var(--gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    color: var(--charcoal);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 50px;
    background: var(--gold);
    border: 2px solid var(--gold);
    transition: background 0.2s, color 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.nav-links a:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-1px);
}

.nav-links a.active,
.nav-links a:focus {
    background: var(--charcoal);
    color: var(--gold);
    border-color: var(--gold);
}

.nav-actions { display: flex; align-items: center; gap: 16px; }

.cart-btn {
    background: var(--gold);
    color: var(--charcoal);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s, transform 0.2s;
}

.cart-btn:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

.cart-count {
    background: var(--deep-rose);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--charcoal);
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background: #ffffff;
    padding: 16px 24px;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.mobile-menu a {
    color: var(--charcoal);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.mobile-menu a:hover { color: var(--gold); }

.mobile-menu.open { display: flex; }

/* ========== HERO ========== */
.hero {
    background: linear-gradient(135deg, var(--charcoal) 0%, #1A0A1E 50%, #2D0A2E 100%);
    min-height: 10vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 34, 82, 0.2) 0%, transparent 50%);
}

.hero-pattern {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 45%;
    background: linear-gradient(135deg, rgba(212,175,55,0.05) 25%, transparent 25%) -10px 0,
                linear-gradient(225deg, rgba(212,175,55,0.05) 25%, transparent 25%) -10px 0,
                linear-gradient(315deg, rgba(212,175,55,0.05) 25%, transparent 25%),
                linear-gradient(45deg, rgba(212,175,55,0.05) 25%, transparent 25%);
    background-size: 20px 20px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}

.hero-badge {
    display: block;
    width: fit-content;
    margin: 0 auto 24px;
    background: rgba(212,175,55,0.2);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 80px);
    color: var(--cream);
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 700px;
}

.hero h1 em {
    color: var(--gold-light);
    font-style: italic;
}

.hero p {
    font-size: 18px;
    color: #B8A89A;
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gold);
    color: var(--charcoal);
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    border: 2px solid var(--gold);
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201,146,42,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--cream);
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
    cursor: pointer;
    display: inline-block;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--gold-light);
}

.stat-label {
    font-size: 13px;
    color: #8A7A6E;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== HOME BANNER (admin/home-banner.php) ========== */
/* Full-bleed, replaces .hero when an admin has an active banner set.
   The whole image is the link — "Shop Now" is part of the uploaded
   graphic, so no overlaid text/button here. */
.home-banner {
    line-height: 0; /* kill the inline-image whitespace gap under the <a> */
}

.home-banner a {
    display: block;
}

.home-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== SECTIONS ========== */
.section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 500;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 48px);
    color: var(--charcoal);
    margin-bottom: 16px;
}

.section-header p {
    color: #6B6060;
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
}

/* ========== CATEGORIES ========== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

.category-card {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--gold);
}

.category-card:hover::before { transform: scaleX(1); }

.cat-icon { font-size: 36px; margin-bottom: 12px; }
.cat-name { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 700; color: var(--charcoal); margin-bottom: 4px; }
.cat-count { font-size: 12px; color: #9A8880; }

/* ========== PRODUCTS GRID ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 28px;
}

.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(139, 34, 82, 0.12);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.1;
    background: var(--cream);
}

.product-image img {
    width: 100%;
    height: 100%;
    /* contain, not cover — several uploaded product photos are wide
       collage-style shots (multiple pieces laid out in one image), and
       cover was cropping most of the composition off to fill the 3:4 box */
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img { transform: scale(1.05); }

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F5EDE3, #E8D5C0);
    font-size: 60px;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--deep-rose);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.campaign { background: var(--gold); color: var(--charcoal); }

.product-card.sold-out { opacity: 0.78; }
.product-card.sold-out:hover { transform: none; box-shadow: none; }
.product-card.sold-out .product-image img,
.product-card.sold-out .product-placeholder { filter: grayscale(40%); }

.sold-out-ribbon {
    position: absolute;
    top: 18px;
    left: -32px;
    width: 130px;
    background: var(--warm-white);
    color: var(--charcoal);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    padding: 6px 0;
    transform: rotate(-45deg);
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 11px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 6px;
}

.product-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 6px;
    line-height: 1.3;
}

.product-fabric {
    font-size: 13px;
    color: #8A7A6E;
    margin-bottom: 12px;
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--deep-rose);
    font-family: 'Cormorant Garamond', serif;
}

.product-original {
    font-size: 14px;
    color: #B0A090;
    text-decoration: line-through;
}

.product-discount {
    background: #E8F5E0;
    color: var(--success);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-cart {
    flex: 1;
    background: var(--charcoal);
    color: var(--cream);
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'DM Sans', sans-serif;
}

.btn-cart:hover { background: var(--deep-rose); }

.btn-buy {
    flex: 1;
    background: var(--gold);
    color: var(--charcoal);
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'DM Sans', sans-serif;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-buy:hover { background: var(--gold-light); }

/* ========== CAMPAIGN BANNER ========== */
.campaign-banner {
    background: linear-gradient(135deg, var(--deep-rose), #4A0E0E);
    border-radius: 20px;
    padding: 60px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 60px 0;
}

.campaign-banner::before {
    content: '✦ ✦ ✦';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(201,146,42,0.3);
    font-size: 20px;
    letter-spacing: 20px;
}

.campaign-banner h2 {
    font-size: clamp(32px, 5vw, 60px);
    color: var(--cream);
    margin-bottom: 16px;
}

.campaign-banner h2 span { color: var(--gold-light); }

.campaign-banner p {
    color: #C0A890;
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.timer-phase-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.campaign-timer {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 32px;
}

.timer-block {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(201,146,42,0.3);
    border-radius: 12px;
    padding: 16px 24px;
    min-width: 80px;
}

.timer-num {
    font-family: 'DM Sans', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: var(--gold-light);
    display: block;
    font-variant-numeric: tabular-nums;
}

.timer-label {
    font-size: 12px;
    color: #8A7A6E;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== TRUST BADGES ========== */
.trust-strip {
    background: var(--cream);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 24px;
}

.trust-items {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-body);
    font-weight: 500;
}

.trust-icon { font-size: 22px; }

/* ========== SHOP PAGE FILTERS ========== */
.shop-header {
    background: var(--charcoal);
    padding: 48px 24px;
    text-align: center;
}

.shop-header h1 {
    color: var(--cream);
    font-size: 48px;
    margin-bottom: 12px;
}

.shop-header p { color: #8A7A6E; }

.shop-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
}

.filter-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.filter-group {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.filter-group h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    margin-bottom: 14px;
    color: var(--charcoal);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-body);
    transition: color 0.2s;
}

.filter-option:hover { color: var(--deep-rose); }

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    accent-color: var(--gold);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.filter-btn {
    width: 100%;
    background: var(--charcoal);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.3s;
    font-family: 'DM Sans', sans-serif;
}

.filter-btn:hover { background: var(--deep-rose); }

/* Mobile filter bar pill row — hidden on desktop */
.mobile-filter-bar { display: none; }
.mfb-panel { display: none; }

/* ========== CART ========== */
.cart-layout {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
}

.cart-items { }

.cart-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.cart-item-img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.cart-item-info { flex: 1; }
.cart-item-name { font-family: 'Cormorant Garamond', serif; font-size: 16px; color: var(--charcoal); margin-bottom: 4px; }
.cart-item-price { color: var(--deep-rose); font-weight: 700; font-size: 18px; }
.cart-remove { color: #B0A090; cursor: pointer; font-size: 20px; transition: color 0.2s; }
.cart-remove:hover { color: var(--error); }

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

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-family: inherit;
}

.qty-btn:hover { background: var(--gold); border-color: var(--gold); }

.cart-summary {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    position: sticky;
    top: 90px;
    height: fit-content;
}

.cart-summary h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; margin-bottom: 20px; }

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--charcoal);
}

.cod-badge {
    background: #E8F5E0;
    border: 1px solid #A8D5A2;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    margin: 16px 0;
    font-size: 14px;
    color: var(--success);
    font-weight: 500;
}

/* ========== ORDER FORM ========== */
.order-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 24px;
}

.order-page h1 {
    font-size: 40px;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.order-page > p {
    color: #8A7A6E;
    margin-bottom: 40px;
}

.form-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
}

.form-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: var(--charcoal);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group.full { grid-column: 1 / -1; }

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"], input[type="tel"], input[type="email"],
textarea, select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    /* 16px, not 15 — iOS Safari auto-zooms the whole page on focus for any
       input under 16px, which fires on every checkout/signup/admin field */
    font-size: 16px;
    color: var(--text-body);
    background: var(--warm-white);
    transition: border-color 0.3s;
    outline: none;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--gold);
    background: white;
}

textarea { resize: vertical; min-height: 80px; }

/* ========== ALERTS ========== */
.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 500;
}

.alert-success {
    background: #E8F5E0;
    border: 1px solid #A8D5A2;
    color: var(--success);
}

.alert-error {
    background: #FDE8E8;
    border: 1px solid #F5A0A0;
    color: var(--error);
}

/* ========== ORDER SUCCESS ========== */
.order-success {
    text-align: center;
    padding: 80px 24px;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    font-size: 72px;
    margin-bottom: 24px;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.order-success h1 {
    font-size: 40px;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.order-success p { color: #6B6060; margin-bottom: 32px; font-size: 16px; }

.order-details-box {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: left;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.order-detail-row:last-child { border-bottom: none; }

.order-detail-row strong { color: var(--charcoal); }

.whatsapp-btn {
    background: #25D366;
    color: white;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.whatsapp-btn:hover {
    background: #22C35E;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,211,102,0.3);
}

/* ========== CAMPAIGN PAGE ========== */
.campaign-hero {
    background: linear-gradient(135deg, #1A0A0A, var(--deep-rose));
    padding: 80px 24px;
    text-align: center;
}

.campaign-hero h1 {
    font-size: clamp(36px, 5vw, 72px);
    color: var(--cream);
    margin-bottom: 16px;
}

.campaign-hero h1 span { color: var(--gold-light); }
.campaign-hero p { color: #B0A090; font-size: 18px; }

.campaign-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}

.campaign-card {
    background: linear-gradient(135deg, var(--cream), #F0E4D4);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px;
    margin-bottom: 32px;
    display: flex;
    gap: 40px;
    align-items: center;
}

.discount-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--deep-rose);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 4px solid var(--gold);
}

.discount-num {
    font-family: 'DM Sans', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
}

.discount-off { font-size: 14px; color: #C0A890; text-transform: uppercase; letter-spacing: 1px; }

.campaign-card-content h2 {
    font-size: 32px;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.campaign-card-content p {
    color: #6B6060;
    margin-bottom: 20px;
    font-size: 16px;
}

/* ========== FOOTER ========== */
.footer {
    background: #ffffff;
    margin-top: 80px;
    border-top: 2px solid var(--gold);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-logo {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand p {
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social { display: flex; flex-wrap: wrap; gap: 10px; }

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    transition: transform 0.2s, opacity 0.2s;
}
.social-btn:hover { transform: translateY(-3px); opacity: 0.88; }
.social-btn.whatsapp { background: #25D366; }
.social-btn.insta { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.fb { background: #1877F2; }

.footer-links summary,
.footer-contact summary {
    color: var(--charcoal);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    list-style: none;
    position: relative;
}
.footer-links summary::-webkit-details-marker,
.footer-contact summary::-webkit-details-marker { display: none; }

/* Footer "Legal"/"Contact" accordion — markup ships with the `open`
   attribute already set (see includes/footer.php), so desktop/tablet always
   shows the full list with zero CSS trickery, and the heading isn't
   clickable there (pointer-events:none) so it can't be closed by mistake.
   A small inline script in footer.php removes `open` on load when the
   viewport is ≤600px so mobile starts collapsed, and re-adds it if the
   viewport is ever resized back above 600px.
   (Earlier version of this tried to fake "always open" purely via CSS —
   `details:not([open]) > *:not(summary) { display:block !important }` —
   but Chrome keeps that content genuinely un-paintable at the engine level
   (confirmed via element.checkVisibility() returning false) regardless of
   the computed `display` value, so it silently failed above the mobile
   breakpoint. Using the real `open` attribute avoids that entirely.) */
.footer-accordion summary { cursor: default; pointer-events: none; }

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-body); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

.footer-contact p { color: var(--text-body); font-size: 14px; margin-bottom: 12px; }
.footer-contact a { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    text-align: center;
    color: var(--text-body);
    font-size: 13px;
}

/* ========== ADMIN ========== */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--charcoal), #2C1A10);
    padding: 24px;
}

.login-box {
    background: white;
    border-radius: 20px;
    padding: 48px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}

.login-box h1 {
    font-size: 36px;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.login-box p { color: #8A7A6E; margin-bottom: 32px; }

.admin-nav {
    background: #ffffff;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--gold);
    min-height: 60px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.admin-nav a {
    color: var(--charcoal);
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border-radius: 50px;
    background: var(--gold);
    border: 2px solid var(--gold);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.admin-nav a:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-1px);
}

.admin-nav a.active {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.admin-logo { display: flex; align-items: center; }

.admin-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    border-left: 4px solid var(--gold);
}

.stat-card .num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--charcoal);
}

.stat-card .label { font-size: 13px; color: #8A7A6E; margin-top: 4px; }

@keyframes pendingPulse {
    0%   { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.5); border-color: #C0392B; background: #fff; }
    50%  { box-shadow: 0 0 0 8px rgba(192, 57, 43, 0); border-color: #E74C3C; background: #FFF5F5; }
    100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0); border-color: #C0392B; background: #fff; }
}

.pending-alert {
    animation: pendingPulse 1.8s ease-in-out infinite;
    border-left-color: #C0392B !important;
}

.pending-alert .num { color: #C0392B; }
.pending-alert .label { color: #C0392B; font-weight: 600; }

@keyframes pendingRowPulse {
    0%, 100% { background: transparent; }
    50%       { background: #FFF5F5; }
}

tr.row-pending { animation: pendingRowPulse 2s ease-in-out infinite; }

.admin-table-wrap {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Below 1024px a wide table (orders/customers/products lists) needs a floor
   width so columns don't get crushed unreadably before the wrap scrolls
   instead — previously this only kicked in under 600px, so tablet widths
   (601-900px) silently clipped table content via the old `overflow:hidden`. */
@media (max-width: 1024px) {
    .admin-table-wrap table { min-width: 640px; }
}

.admin-table-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-table-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    color: var(--charcoal);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #F8F4EE;
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8A7A6E;
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid #F5F0EA;
    font-size: 14px;
    color: var(--text-body);
}

tr:hover td { background: #FDFAF6; }

.status-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending { background: #FEF3CD; color: #856404; }
.status-awaiting_verification { background: #FEF3CD; color: #856404; }
.status-confirmed { background: #D1ECF1; color: #0C5460; }
.status-shipped { background: #D4EDDA; color: #155724; }
.status-delivered { background: #C8E6C9; color: #1B5E20; }
.status-cancelled { background: #F8D7DA; color: #721C24; }
.status-payment_rejected { background: #F8D7DA; color: #721C24; }

.action-btn {
    padding: 5px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-view { background: #E8F0FE; color: #1A73E8; }
.btn-edit { background: #FEF3CD; color: #856404; }
.btn-delete { background: #F8D7DA; color: #721C24; }

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 80px 24px;
}

.empty-state .icon { font-size: 60px; margin-bottom: 20px; }
.empty-state h3 { font-size: 24px; color: var(--charcoal); margin-bottom: 10px; }
.empty-state p { color: #8A7A6E; margin-bottom: 24px; }

/* ========== PAGE HEADER ========== */
.page-header {
    background: var(--charcoal);
    padding: 60px 24px;
    text-align: center;
}

.page-header h1 { color: var(--cream); font-size: 48px; margin-bottom: 8px; }
.page-header p { color: #8A7A6E; }

/* ========== TOAST ========== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--charcoal);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid var(--gold);
}

.toast.show { transform: translateY(0); opacity: 1; }

/* ========== RESPONSIVE ========== */

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
    /* Navbar */
    .nav-links { display: none; }
    .hamburger { display: block; }
    .nav-container { padding: 0 16px; }
    .logo-text { font-size: 24px; }

    /* Shop layout */
    .shop-layout { grid-template-columns: 1fr; }
    .filter-sidebar { position: static; }
    .shop-header { padding: 36px 16px; }
    .shop-header h1 { font-size: 36px; }

    /* Cart */
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; top: auto; }

    /* Footer */
    .footer-container { grid-template-columns: 1fr 1fr; gap: 32px; }

    /* Admin */
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .admin-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
    .admin-nav a { white-space: nowrap; }

    /* Campaign */
    .campaign-card { flex-direction: column; text-align: center; }
    .campaign-banner { padding: 48px 28px; }

    /* Form */
    .form-grid { grid-template-columns: 1fr; }

    /* Hero */
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    .stat-num { font-size: 28px; }

    /* Page header */
    .page-header { padding: 48px 16px; }
    .page-header h1 { font-size: 36px; }

    /* Sections */
    .section { padding: 60px 16px; }
    .campaign-section { padding: 48px 16px; }
    .campaign-hero { padding: 60px 16px; }
}

/* ── Mobile filter bar (≤ 767px) ── */
@media (max-width: 767px) {
    /* Hide vertical sidebar, let product grid take full width */
    .filter-sidebar { display: none; }
    .shop-layout    { display: block; padding: 16px; }
    .products-area  { width: 100%; }

    /* Pill bar */
    .mobile-filter-bar {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 10px 16px;
        background: white;
        border-bottom: 1px solid var(--border);
        position: sticky;
        top: 72px; /* below desktop-size navbar */
        z-index: 100;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .mobile-filter-bar::-webkit-scrollbar { display: none; }

    /* Individual pills */
    .mfb-pill {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 7px 14px;
        border-radius: 20px;
        font-size: 13px;
        font-family: 'DM Sans', sans-serif;
        font-weight: 500;
        cursor: pointer;
        border: 1px solid var(--border);
        background: white;
        color: var(--text-body);
        transition: background 0.15s, color 0.15s, border-color 0.15s;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        -webkit-tap-highlight-color: transparent;
        line-height: 1;
    }
    .mfb-pill--active {
        background: var(--charcoal);
        color: white;
        border-color: var(--charcoal);
    }
    .mfb-pill--clear {
        background: var(--deep-rose);
        color: white;
        border-color: var(--deep-rose);
    }

    /* Dropdown panels (position:fixed, set via JS) */
    .mfb-panel {
        position: fixed;
        left: 0;
        right: 0;
        width: 100vw;
        background: white;
        border-top: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0,0,0,0.13);
        z-index: 200;
        max-height: 60vh;
        overflow-y: auto;
    }
    .mfb-panel--open { display: block; }
    .mfb-panel-inner { padding: 16px; }

    /* Option list */
    .mfb-option-list { margin-bottom: 4px; }
    .mfb-option {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 4px;
        font-size: 14px;
        color: var(--text-body);
        cursor: pointer;
        border-bottom: 1px solid var(--border);
    }
    .mfb-option:last-child { border-bottom: none; }
    .mfb-option input[type="radio"] {
        accent-color: var(--gold);
        width: 16px;
        height: 16px;
        cursor: pointer;
        flex-shrink: 0;
    }
    .mfb-option--parent { font-weight: 600; }
    .mfb-option--sub    { padding-left: 20px; font-size: 13px; }
    .mfb-count          { font-size: 11px; color: var(--text-muted); margin-left: 2px; }

    /* Price inputs row */
    .mfb-price-inputs {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 4px;
    }
    .mfb-price-inputs input {
        flex: 1;
        padding: 10px 12px;
        border: 1px solid var(--border);
        border-radius: 8px;
        font-size: 14px;
        font-family: 'DM Sans', sans-serif;
        color: var(--text-body);
        background: white;
    }
    .mfb-price-sep { color: var(--text-muted); font-size: 16px; }

    /* Apply / Clear row */
    .mfb-panel-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 14px;
        border-top: 1px solid var(--border);
        margin-top: 8px;
    }
    .mfb-clear-link {
        font-size: 13px;
        color: var(--text-muted);
        text-decoration: underline;
        cursor: pointer;
    }
    .mfb-apply-btn {
        background: var(--charcoal);
        color: white;
        border: none;
        padding: 10px 28px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        font-family: 'DM Sans', sans-serif;
        cursor: pointer;
        transition: background 0.2s;
    }
    .mfb-apply-btn:active { background: var(--deep-rose); }
}

/* ── Mobile (≤ 600px) ── */
@media (max-width: 600px) {
    /* Navbar */
    .nav-container { padding: 0 12px; height: 60px; }
    .logo-text { font-size: 20px; }
    .logo-icon { font-size: 18px; }
    .cart-btn { padding: 6px 12px; font-size: 13px; }
    .notif-dropdown { width: calc(100vw - 24px); right: -4px; }

    /* Hero */
    .hero { min-height: 75vh; }
    .hero-content { padding: 36px 16px; }
    .hero p { font-size: 15px; margin-bottom: 24px; }
    .hero-btns { flex-direction: column; align-items: flex-start; gap: 10px; }
    .btn-primary { padding: 12px 28px; font-size: 14px; }
    .btn-outline { padding: 12px 28px; font-size: 14px; }
    .hero-stats { flex-direction: column; gap: 12px; margin-top: 36px; padding-top: 24px; }
    .stat-num { font-size: 26px; }
    .stat-label { font-size: 12px; }

    /* Sections */
    .section { padding: 36px 16px; }
    .section-header { margin-bottom: 28px; }

    /* Categories */
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-card { padding: 22px 12px; }
    .cat-icon { font-size: 28px; }
    .cat-name { font-size: 18px; }

    /* Products */
    .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .product-info { padding: 12px; }
    .product-name { font-size: 14px; }
    .product-price { font-size: 18px; }
    .product-fabric { font-size: 12px; margin-bottom: 8px; }
    .product-actions { gap: 6px; }
    .btn-cart, .btn-buy { font-size: 12px; padding: 8px 8px; }

    /* Shop page */
    .mobile-filter-bar { top: 60px; } /* navbar shrinks to 60px on small phones */
    .shop-header { padding: 28px 16px; }
    .shop-header h1 { font-size: 28px; }

    /* Cart */
    .cart-layout { padding: 20px 12px; }
    .cart-item { flex-wrap: wrap; gap: 10px; }
    .cart-item-info { min-width: 0; flex: 1 1 calc(100% - 110px); }
    /* 28px is too small a touch target on a phone; widen tap area without
       changing the visual footprint much */
    .qty-btn { width: 40px; height: 40px; font-size: 18px; }
    .cart-quantity { gap: 14px; }

    /* Campaign */
    .campaign-banner { padding: 32px 16px; margin: 24px 0; border-radius: 14px; }
    .campaign-timer { gap: 8px; }
    .timer-block { padding: 10px 12px; min-width: 56px; }
    .timer-num { font-size: 22px; }
    .campaign-section { padding: 32px 12px; }
    .campaign-hero { padding: 48px 16px; }
    .campaign-hero p { font-size: 15px; }
    .campaign-card { padding: 24px 16px; }
    .campaign-card-content h2 { font-size: 24px; }

    /* Footer */
    .footer-container { grid-template-columns: 1fr; padding: 22px 16px 28px; gap: 28px; }

    /* Footer accordion — "Legal" and "Contact" collapse under their own
       tappable heading on mobile instead of always showing all 5 policy
       links / contact lines at once. Re-enables the native <details>
       toggle disabled by the desktop-default rule above; the inline script
       in includes/footer.php strips the `open` attribute at this width so
       there's actually something to expand. */
    .footer-accordion summary {
        cursor: pointer;
        pointer-events: auto;
        padding-right: 24px;
    }
    .footer-accordion summary::after {
        content: '+';
        position: absolute;
        right: 0;
        top: -2px;
        font-size: 18px;
        line-height: 1;
    }
    .footer-accordion[open] summary::after { content: '−'; }

    /* Admin */
    .admin-stats { grid-template-columns: 1fr 1fr; }
    .admin-content { padding: 20px 12px; }

    /* Order form */
    .order-page { padding: 28px 12px; }
    .order-page h1 { font-size: 28px; }
    .form-card { padding: 20px 14px; }

    /* Order success */
    .order-success { padding: 36px 12px; }
    .order-success h1 { font-size: 30px; }
    .success-icon { font-size: 56px; }
    .order-details-box { padding: 16px; }

    /* Page headers */
    .page-header { padding: 36px 16px; }
    .page-header h1 { font-size: 28px; }

    /* Toast — full width on mobile */
    .toast { left: 12px; right: 12px; bottom: 12px; }
}

/* ── Small mobile (≤ 420px) ── */
@media (max-width: 420px) {
    /* Show only avatar in nav, hide name to save space */
    .user-fname { display: none; }
    .user-menu-btn { padding: 5px 8px 5px 5px; }

    /* Products: single column */
    .products-grid { grid-template-columns: 1fr; }

    /* Admin stats: single column */
    .admin-stats { grid-template-columns: 1fr; }

    /* Hero buttons: full width */
    .hero-btns .btn-primary,
    .hero-btns .btn-outline { width: 100%; text-align: center; justify-content: center; }

    /* Cart item: full stack */
    .cart-item { align-items: flex-start; }
    .cart-remove { align-self: flex-start; }

    /* WhatsApp button */
    .whatsapp-btn { padding: 12px 20px; font-size: 14px; }

    /* Campaign timer */
    .timer-block { min-width: 48px; padding: 8px 10px; }
    .timer-num { font-size: 20px; }
}

/* ========== PRODUCT DETAIL ========== */
.product-detail {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.product-detail-image {
    aspect-ratio: 3/4;
    border-radius: 16px;
    overflow: hidden;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    position: relative;
}

.product-detail-image .gallery-single-img {
    width: 100%;
    height: 100%;
    /* contain, not cover — same reasoning as .product-image img above:
       collage-style source photos were getting cropped hard by cover */
    object-fit: contain;
    background: var(--cream);
    border-radius: 16px;
}

/* ── Swipeable gallery (only present when a product has 2+ images) ────────── */
.product-detail-image.has-gallery { touch-action: pan-y; }

.gallery-track {
    position: absolute;
    inset: 0;
    display: flex;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}
.gallery-track.dragging { cursor: grabbing; }

.gallery-slide {
    flex: 0 0 100%;
    min-width: 0;
    min-height: 0;
}
.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--cream);
    -webkit-user-drag: none;
    pointer-events: none; /* the track handles drag/swipe, not the image itself */
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: var(--charcoal);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: background 0.15s ease, transform 0.15s ease;
}
.gallery-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.gallery-arrow:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gallery-arrow-prev { left: 14px; }
.gallery-arrow-next { right: 14px; }

.gallery-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.gallery-dot.active {
    background: var(--gold);
    transform: scale(1.25);
}

@media (max-width: 700px) {
    /* Touch target, not shrunk — this used to go 38px -> 34px on mobile,
       backwards for a finger instead of a cursor */
    .gallery-arrow { width: 44px; height: 44px; font-size: 20px; }
}

.product-detail-info { }

.product-detail-info .product-category { margin-bottom: 8px; font-size: 13px; }
.product-detail-info h1 { font-size: 36px; color: var(--charcoal); margin-bottom: 12px; line-height: 1.2; }
.product-detail-info .product-price { font-size: 32px; }
.product-detail-info .product-pricing { margin-bottom: 24px; }
.product-detail-info p { color: #6B6060; line-height: 1.8; margin-bottom: 28px; }

.product-meta {
    background: var(--cream);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 28px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.meta-row:last-child { border-bottom: none; }
.meta-row strong { color: var(--charcoal); }
.meta-row span { color: #6B6060; }

.detail-actions { display: flex; gap: 12px; }

@media (max-width: 700px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 16px;
    }

    .product-detail-image { aspect-ratio: 4/3; }
}

/* ========== CONTACT PAGE ========== */
.contact-layout {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 700px) {
    .contact-layout {
        grid-template-columns: 1fr;
        margin: 36px auto;
        padding: 0 16px;
        gap: 28px;
    }
}

/* ========== GUEST GATE (order.php split screen) ========== */
.guest-gate {
    max-width: 960px;
    margin: 0 auto;
    padding: 60px 24px;
}

.guest-gate-heading {
    text-align: center;
    margin-bottom: 40px;
}

.guest-gate-heading h2 {
    font-size: 36px;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.guest-gate-heading p {
    color: #8A7A6E;
    font-size: 15px;
}

.guest-gate-split {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 0;
}

.guest-gate-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
}

.guest-gate-panel .guest-gate-icon {
    font-size: 40px;
    text-align: center;
    margin-bottom: 14px;
}

.guest-gate-panel h3 {
    font-size: 24px;
    color: var(--charcoal);
    text-align: center;
    margin-bottom: 10px;
}

.guest-gate-panel > p {
    font-size: 14px;
    color: #8A7A6E;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.6;
}

.guest-gate-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    align-self: center;
}

.guest-gate-divider span {
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #8A7A6E;
    font-weight: 600;
    flex-shrink: 0;
}

.guest-gate-link {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: #8A7A6E;
    text-decoration: underline;
}

/* Guest CTA card on confirmation page */
.guest-cta-card {
    background: white;
    border: 1.5px solid var(--gold);
    border-radius: 16px;
    padding: 32px 36px;
    text-align: center;
    margin-top: 24px;
}

.guest-cta-card h3 {
    font-size: 22px;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.guest-cta-card p {
    font-size: 14px;
    color: #8A7A6E;
    margin-bottom: 20px;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .guest-gate { padding: 36px 16px; }
    .guest-gate-heading h2 { font-size: 26px; }
    .guest-gate-split {
        grid-template-columns: 1fr;
    }
    .guest-gate-divider {
        padding: 20px 0;
    }
    .guest-gate-panel { padding: 24px 20px; }
    .guest-cta-card { padding: 24px 20px; }
}

/* ========== POLICY PAGES ========== */
.policy-container   { max-width: 780px; margin: 0 auto; padding: 40px 20px 80px; }
.policy-hero        { text-align: center; padding: 48px 0 36px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.policy-hero h1     { font-family: 'Cormorant Garamond', serif; font-size: 38px; font-weight: 600; margin-bottom: 10px; }
.policy-meta        { font-size: 13px; color: var(--text-muted); }
.policy-section     { margin-bottom: 36px; }
.policy-section h2  { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: var(--charcoal); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.policy-section p,
.policy-section li  { font-size: 14.5px; line-height: 1.8; color: #444; margin-bottom: 10px; }
.policy-section ul,
.policy-section ol  { padding-left: 20px; }
.policy-highlight   { background: var(--cream); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 16px 0; font-size: 14px; }

/* ========== HEADER: USER MENU / NOTIFICATION BELL DROPDOWNS ==========
   Moved out of an inline <style> block in includes/header.php (session 29) —
   it was pure CSS with no PHP interpolation, so it was being re-downloaded
   and re-parsed as part of every single page's HTML instead of being served
   once from this file under the site's existing 1-month CSS cache header. */
.user-menu-wrap { position: relative; }
.user-menu-btn {
    display: flex; align-items: center; gap: 7px;
    background: rgba(212,175,55,.10); border: 1.5px solid var(--gold);
    border-radius: 24px; padding: 5px 12px 5px 6px;
    cursor: pointer; font-family: 'DM Sans', sans-serif;
    font-size: 13px; color: var(--charcoal);
    transition: border-color .18s, background .18s; white-space: nowrap;
}
.user-menu-btn:hover, .user-menu-btn.open { border-color: var(--gold); background: rgba(212,175,55,.20); }
.user-avatar {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--gold); color: #fff;
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.user-fname { font-weight: 500; color: var(--charcoal); }
.user-chevron { font-size: 10px; color: var(--charcoal); transition: transform .2s; }
.user-menu-btn.open .user-chevron { transform: rotate(180deg); }
.user-dropdown {
    display: none; position: absolute; top: calc(100% + 8px); right: 0;
    background: #fff; border: 1.5px solid var(--border);
    border-radius: 12px; min-width: 180px;
    box-shadow: 0 8px 24px rgba(0,0,0,.10); z-index: 999; overflow: hidden;
    animation: ddFadeIn .15s ease;
}
.user-dropdown.open { display: block; }
@keyframes ddFadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.user-dd-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; font-size: 14px; color: var(--charcoal);
    text-decoration: none; transition: background .15s; font-family: 'DM Sans', sans-serif;
}
.user-dd-item:hover { background: #FDF8F2; }
.user-dd-icon { font-size: 16px; width: 20px; text-align: center; }
.user-dd-divider { height: 1px; background: var(--border); margin: 4px 0; }
.user-dd-logout { color: #C0392B; }
.user-dd-logout:hover { background: #FFF0F0; }
.bell-wrap { position: relative; }
.bell-btn {
    background: none; border: none; cursor: pointer;
    font-size: 20px; padding: 4px 6px; line-height: 1; position: relative; color: var(--charcoal); transition: transform .2s;
}
.bell-btn:hover { transform: scale(1.1); }
.bell-badge {
    position: absolute; top: -2px; right: -2px; background: #E74C3C; color: #fff;
    font-size: 10px; font-weight: 700; min-width: 16px; height: 16px;
    border-radius: 8px; padding: 0 4px; display: flex; align-items: center; justify-content: center;
    line-height: 1; pointer-events: none;
}
.bell-badge.hidden { display: none; }
@keyframes bellRing {
    0%,100%{transform:rotate(0)} 10%{transform:rotate(18deg)} 20%{transform:rotate(-16deg)}
    30%{transform:rotate(14deg)} 40%{transform:rotate(-12deg)} 50%{transform:rotate(8deg)}
    60%{transform:rotate(-6deg)} 70%{transform:rotate(3deg)}
}
.bell-btn.ringing { animation: bellRing .8s ease; }
.notif-dropdown {
    display: none; position: absolute; top: calc(100% + 10px); right: 0;
    background: #fff; border: 1.5px solid var(--border); border-radius: 14px; width: 320px;
    box-shadow: 0 10px 32px rgba(0,0,0,.13); z-index: 1000; overflow: hidden; animation: ddFadeIn .15s ease;
}
.notif-dropdown.open { display: flex; flex-direction: column; }
.notif-dd-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.notif-dd-title { font-family: 'DM Sans',sans-serif; font-weight: 600; font-size: 14px; color: var(--charcoal); }
.notif-mark-all { font-size: 12px; color: var(--gold); background: none; border: none; cursor: pointer; font-family: 'DM Sans',sans-serif; padding: 0; }
.notif-mark-all:hover { text-decoration: underline; }
.notif-list { max-height: 340px; overflow-y: auto; }
.notif-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; cursor: pointer; border-bottom: 1px solid #F5EFE6; transition: background .15s; text-decoration: none; }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: #FDF8F2; }
.notif-item.unread { background: #FFFBF5; }
.notif-item.unread:hover { background: #FDF3E3; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 5px; opacity: 0; }
.notif-item.unread .notif-dot { opacity: 1; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 13px; font-weight: 600; color: var(--charcoal); font-family: 'DM Sans',sans-serif; margin-bottom: 2px; }
.notif-text  { font-size: 12px; color: #7A6A60; font-family: 'DM Sans',sans-serif; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-time  { font-size: 11px; color: #B0A090; font-family: 'DM Sans',sans-serif; margin-top: 3px; }
.notif-empty { padding: 28px 16px; text-align: center; color: #9A8880; font-size: 13px; font-family: 'DM Sans',sans-serif; }
.notif-footer { border-top: 1px solid var(--border); padding: 10px 16px; text-align: center; }
.notif-footer a { font-size: 13px; color: var(--gold); text-decoration: none; font-family: 'DM Sans',sans-serif; }
.notif-footer a:hover { text-decoration: underline; }

/* ========== ADMIN NAV: BELL / USER / HAMBURGER DROPDOWNS ==========
   Moved out of an echoed inline <style> string in admin/auth.php's adminNav()
   (session 29) — same reasoning as the header dropdown block above: it was
   static CSS re-sent on every admin page load instead of being cached. */
@keyframes adminBellRing {
    0%,100%{transform:rotate(0)} 10%{transform:rotate(18deg)} 20%{transform:rotate(-16deg)}
    30%{transform:rotate(14deg)} 40%{transform:rotate(-12deg)} 50%{transform:rotate(8deg)}
    60%{transform:rotate(-5deg)} 70%{transform:rotate(3deg)}
}
.admin-bell-ring { animation: adminBellRing .9s ease 0s 3; }

/* Notification dropdown items — reset .admin-nav a gold pill, then apply clean style */
#adminNotifList .notif-item {
    background: #fff !important;
    border: none !important;
    border-bottom: 1px solid #F5EFE6 !important;
    border-radius: 0 !important;
    padding: 12px 16px !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    white-space: normal !important;
    transform: none !important;
    transition: background .15s !important;
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer !important;
}
#adminNotifList .notif-item:last-child { border-bottom: none !important; }
#adminNotifList .notif-item:hover { background: #FDF8F2 !important; transform: none !important; }
#adminNotifList .notif-item.unread { background: #FFFBF5 !important; }
#adminNotifList .notif-item.unread:hover { background: #FDF3E3 !important; }
.notif-dot { width:8px; height:8px; border-radius:50%; background:var(--gold); flex-shrink:0; margin-top:5px; opacity:0; }
#adminNotifList .notif-item.unread .notif-dot { opacity:1; }
.notif-body { flex:1; min-width:0; }
.notif-title { font-size:13px; font-weight:600; color:var(--charcoal); font-family:"DM Sans",sans-serif; margin-bottom:2px; }
.notif-text  { font-size:12px; color:#7A6A60; font-family:"DM Sans",sans-serif; line-height:1.4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.notif-time  { font-size:11px; color:#B0A090; font-family:"DM Sans",sans-serif; margin-top:3px; }
.notif-empty { padding:28px 16px; text-align:center; color:#9A8880; font-size:13px; font-family:"DM Sans",sans-serif; }
#adminNotifFooter a {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    display: inline !important;
    color: var(--gold) !important;
    transform: none !important;
    text-decoration: none !important;
    white-space: normal !important;
}
#adminNotifFooter a:hover { text-decoration: underline !important; transform: none !important; background: none !important; }

/* Reset gold pill style for dropdown links */
#adminUserDropdown a {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: var(--charcoal) !important;
    text-decoration: none !important;
    white-space: normal !important;
    transform: none !important;
    transition: background .15s !important;
}
#adminUserDropdown a:hover {
    background: #FDF8F2 !important;
    transform: none !important;
}
#adminUserDropdown a[href="logout.php"] { color: #C0392B !important; }
#adminUserDropdown a[href="logout.php"]:hover { background: #FFF0F0 !important; }

.admin-hamburger {
    display: block;
    background: none;
    border: 1.5px solid var(--gold);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 18px;
    cursor: pointer;
    color: var(--charcoal);
    line-height: 1;
    transition: background .15s;
}
.admin-hamburger:hover { background: rgba(212,175,55,.12); }

.admin-mobile-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    min-width: max-content;
    overflow: hidden;
}
.admin-mobile-menu a {
    background: none !important;
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: 0 !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    display: block !important;
    color: var(--charcoal) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transform: none !important;
    transition: background .15s, color .15s !important;
}
.admin-mobile-menu a:last-child { border-bottom: none !important; }
.admin-mobile-menu a:hover { color: var(--gold) !important; background: #FDF8F2 !important; transform: none !important; }
.admin-mobile-menu.open { display: flex; }
.admin-hamburger-divider { height: 1px; background: var(--border); }

/* Main-nav links section of hamburger: hidden on desktop, shown on mobile */
.admin-hamburger-main { display: none !important; }

@media (max-width: 768px) {
    .admin-nav-links { display: none !important; }
    .admin-hamburger-main { display: block !important; }
}

/* Homepage bulk-order-discount marquee — shown only when admin has enabled
   the automatic threshold discount (Shop Config > Bulk Order Discount).
   Scrolling track holds two identical copies of the message back-to-back;
   animating to translateX(-50%) shifts by exactly one copy's width, so the
   loop is seamless with no visible jump/reset. */
.bulk-discount-marquee {
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    overflow: hidden;
    white-space: nowrap;
}
.bulk-discount-marquee-track {
    display: inline-flex;
    width: max-content;
    animation: bulk-discount-scroll 16s linear infinite;
}
.bulk-discount-marquee-track span {
    display: inline-block;
    padding: 11px 40px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .3px;
    color: var(--charcoal);
}
@keyframes bulk-discount-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .bulk-discount-marquee-track { animation: none; }
}
@media (max-width: 600px) {
    .bulk-discount-marquee-track span { padding: 10px 24px; font-size: 13px; }
}
