/* ============================================================
   Chiranjeev Retails — design system
   linen base · wine maroon · soft gold · Cormorant + Jost
   ============================================================ */
:root {
    --linen: #F6F1E9;
    --linen-2: #EFE7DA;
    --ink: #2A2320;
    --wine: #571C28;
    --wine-deep: #3E1019;
    --gold: #B08D57;
    --champagne: #D9C39A;
    --blush: #F4E4E6;
    --white: #FFFDF9;
    --ease: cubic-bezier(0.65, 0, 0.35, 1);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Jost', -apple-system, 'Segoe UI', sans-serif;
    --font-script: 'Great Vibes', cursive;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--linen);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 500; line-height: 1.12; color: var(--wine-deep); }
.script { font-family: var(--font-script); color: var(--gold); }
main { min-height: 60vh; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); filter: blur(5px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); }
.reveal.is-inview { opacity: 1; transform: none; filter: blur(0); }
.reveal-d1 { transition-delay: 0.1s; } .reveal-d2 { transition-delay: 0.2s; } .reveal-d3 { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; filter: none; transition: none; }
    * { animation-duration: 0.01ms !important; }
}

/* ---------- toasts ---------- */
.toast {
    position: fixed; top: 18px; right: 18px; z-index: 999;
    background: var(--wine-deep); color: var(--linen);
    padding: 14px 22px; border-radius: 12px; border: 1px solid var(--gold);
    font-size: 14px; letter-spacing: 0.02em; box-shadow: 0 12px 40px rgba(62,16,25,0.35);
    animation: toastIn 0.45s var(--ease);
    max-width: 340px;
}
.toast-error { background: #7A1E1E; border-color: #C96A6A; }
.toast-info { background: var(--wine); }
.toast.hide { opacity: 0; transform: translateY(-8px); transition: all 0.4s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* ---------- announcement bar ---------- */
.announce {
    background: var(--wine-deep); color: var(--champagne);
    text-align: center; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
    padding: 9px 16px; position: relative; height: 36px; overflow: hidden;
}
.announce-item { position: absolute; inset: 9px 16px auto; opacity: 0; transition: opacity 0.6s; }
.announce-item.is-on { opacity: 1; }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(246,241,233,0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(176,141,87,0.22);
    transition: box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(62,16,25,0.08); }
.header-inner {
    max-width: 1180px; margin: 0 auto; padding: 14px 24px;
    display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1px solid var(--champagne); }
.brand-name { font-family: var(--font-display); font-size: 22px; color: var(--wine-deep); letter-spacing: 0.01em; }
.brand-name em { font-style: normal; color: var(--gold); margin-left: 6px; font-size: 15px; letter-spacing: 0.22em; text-transform: uppercase; font-family: var(--font-body); font-weight: 400; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); position: relative; padding: 4px 0; }
.main-nav a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--gold); transition: width 0.35s var(--ease); }
.main-nav a:hover::after { width: 100%; }
.cart-link { position: relative; display: flex; align-items: center; }
.cart-link svg { width: 24px; height: 24px; color: var(--wine); }
.cart-badge {
    position: absolute; top: -7px; right: -9px;
    background: var(--wine); color: var(--linen);
    font-size: 10.5px; min-width: 17px; height: 17px; border-radius: 99px;
    display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nav-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 1.5px; background: var(--wine-deep); transition: 0.3s; }

/* ---------- hero (split: copy panel + image, never overlapping) ---------- */
.hero { padding: 28px 24px 6px; }
.hero-split {
    display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px;
    max-width: 1180px; margin: 0 auto; align-items: stretch;
}
.hero-panel {
    background: var(--wine-deep); border-radius: 28px;
    padding: clamp(34px, 5vw, 64px) clamp(26px, 4vw, 54px);
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    position: relative; overflow: hidden;
}
.hero-panel::before {
    content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%;
    background: radial-gradient(circle, rgba(176,141,87,0.25), transparent 70%);
    bottom: -140px; right: -110px; pointer-events: none;
}
.hero-panel .script { font-size: clamp(24px, 2.6vw, 34px); }
.hero-panel h1 { color: var(--linen); font-size: clamp(30px, 3.8vw, 50px); margin: 8px 0 14px; }
.hero-panel p.sub { color: rgba(246,241,233,0.72); font-size: 15px; margin-bottom: 26px; max-width: 380px; }
.hero-panel .hero-links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-panel .text-link { color: var(--champagne); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 1px solid rgba(217,195,154,0.5); padding-bottom: 3px; }
.hero-panel .text-link:hover { color: var(--linen); }
.hero-frame {
    position: relative;
    border-radius: 200px 200px 24px 24px; overflow: hidden;
    background: var(--white); border: 1px solid rgba(176,141,87,0.25);
    box-shadow: 0 24px 60px rgba(62,16,25,0.12);
    min-height: 380px;
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); padding: 18px; }
.hero-slide.is-on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.hero-slide.is-on img { animation: kenburns 6.5s var(--ease) forwards; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-dots { display: flex; gap: 8px; justify-content: center; padding: 14px 0 4px; }
.hero-dots button { width: 26px; height: 3px; border: 0; background: rgba(87,28,40,0.2); cursor: pointer; transition: 0.3s; border-radius: 2px; }
.hero-dots button.is-on { background: var(--gold); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font-body); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
    padding: 15px 34px; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
    transition: all 0.35s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--wine-deep); }
.btn-gold:hover { background: var(--champagne); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(176,141,87,0.35); }
.btn-wine { background: var(--wine); color: var(--linen); }
.btn-wine:hover { background: var(--wine-deep); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(62,16,25,0.3); }
.btn-outline { border-color: var(--gold); color: var(--wine); background: transparent; }
.btn-outline:hover { background: var(--wine); color: var(--linen); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn-sm { padding: 10px 20px; font-size: 12px; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: 26px 0; border-top: 1px solid rgba(176,141,87,0.25); border-bottom: 1px solid rgba(176,141,87,0.25); margin-top: 40px; }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marquee 26s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: 26px; color: var(--wine); white-space: nowrap; display: flex; align-items: center; gap: 60px; }
.marquee-track span::after { content: '✦'; color: var(--gold); font-size: 16px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 84px 24px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head .script { font-size: 30px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin-top: 4px; }
.section-head p { margin-top: 12px; color: rgba(42,35,32,0.72); }

/* ---------- stone gateway ---------- */
.stone-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1180px; margin: 0 auto; }
.stone-tile {
    border-radius: 999px 999px 18px 18px; padding: 54px 18px 30px; text-align: center;
    background: var(--white); border: 1px solid rgba(176,141,87,0.25);
    transition: all 0.4s var(--ease); position: relative; overflow: hidden;
}
.stone-tile:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(62,16,25,0.12); border-color: var(--gold); }
.stone-gem { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50% 50% 50% 6px; transform: rotate(45deg); }
.stone-tile h3 { font-size: 21px; margin-bottom: 4px; }
.stone-tile p { font-size: 13px; color: rgba(42,35,32,0.6); }

/* ---------- product grid & cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 30px 22px; max-width: 1180px; margin: 0 auto; }
.pcard { position: relative; transition: transform 0.4s var(--ease); }
.pcard:hover { transform: translateY(-6px); }
.pcard-img {
    display: block; width: 100%;
    border-radius: 120px 120px 16px 16px; overflow: hidden; aspect-ratio: 4/5; background: #fff;
    position: relative; border: 1px solid rgba(176,141,87,0.2);
}
.pcard-img img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform 0.8s var(--ease); }
.pcard:hover .pcard-img img { transform: scale(1.04); }
.pcard-badge {
    position: absolute; top: 14px; left: 14px;
    background: var(--wine); color: var(--linen); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 5px 12px; border-radius: 99px; z-index: 2; max-width: calc(100% - 88px);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pcard-off { position: absolute; top: 14px; right: 14px; background: var(--gold); color: var(--wine-deep); font-size: 11.5px; font-weight: 500; padding: 4px 10px; border-radius: 99px; z-index: 2; }
.pcard-body { text-align: center; padding: 14px 6px 0; }
.pcard-body h3 { font-size: 19px; line-height: 1.25; }
.pcard-body h3 a:hover { color: var(--gold); }
.pcard-stone { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 4px 0 6px; }
.pcard-price { font-family: var(--font-display); font-size: 19px; color: var(--wine-deep); }
.pcard-price s { color: rgba(42,35,32,0.4); font-size: 15px; margin-left: 10px; }
.pcard-stock { font-size: 12px; color: #A3543B; margin-top: 3px; }
.pcard .btn { margin-top: 12px; }

/* ---------- offer section ---------- */
.offer-band { background: var(--wine-deep); color: var(--linen); border-radius: 28px; padding: 64px 40px; max-width: 1180px; margin: 0 auto; text-align: center; position: relative; overflow: hidden; }
.offer-band::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(176,141,87,0.22), transparent 70%); top: -180px; right: -120px; }
.offer-band .script { font-size: 32px; }
.offer-band h2 { color: var(--linen); font-size: clamp(28px, 4vw, 44px); margin: 6px 0 10px; }
.offer-band p { color: rgba(246,241,233,0.75); max-width: 560px; margin: 0 auto 26px; }
.chip-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.chip {
    position: relative; overflow: hidden; cursor: pointer;
    border: 1px dashed var(--champagne); color: var(--champagne);
    padding: 12px 26px; border-radius: 12px; letter-spacing: 0.2em; font-size: 14px; background: transparent;
    transition: all 0.3s;
}
.chip:hover { background: rgba(217,195,154,0.12); }
.chip::after {
    content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,253,249,0.25), transparent);
    animation: shimmer 3.2s infinite;
}
@keyframes shimmer { 0% { left: -80%; } 60%, 100% { left: 130%; } }

/* ---------- story ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1080px; margin: 0 auto; }
.story-img { border-radius: 160px 160px 18px 18px; overflow: hidden; aspect-ratio: 4/5; border: 1px solid var(--champagne); background: #fff; padding: 16px; max-width: 430px; width: 100%; margin: 0 auto; }
.story-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.story h2 { font-size: clamp(30px, 4vw, 46px); margin: 6px 0 18px; }
.story p { color: rgba(42,35,32,0.75); margin-bottom: 14px; }

/* ---------- assurances ---------- */
.assurances { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1180px; margin: 60px auto; padding: 0 24px; }
.assurance { text-align: center; padding: 26px 14px; background: var(--white); border: 1px solid rgba(176,141,87,0.22); border-radius: 18px; }
.assurance strong { display: block; font-family: var(--font-display); font-size: 19px; color: var(--wine-deep); font-weight: 600; }
.assurance span { font-size: 12.5px; color: rgba(42,35,32,0.62); }

/* ---------- footer ---------- */
.site-footer { background: var(--wine-deep); color: rgba(246,241,233,0.82); margin-top: 40px; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 70px 24px 40px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; }
.footer-brand .script { font-size: 30px; }
.footer-name { font-family: var(--font-display); font-size: 30px; color: var(--linen); }
.footer-tag { font-size: 14px; margin-top: 10px; max-width: 340px; color: rgba(246,241,233,0.6); }
.footer-col h4 { font-family: var(--font-body); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--champagne); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; padding: 5px 0; color: rgba(246,241,233,0.75); }
.footer-col a:hover { color: var(--champagne); }
.footer-copy { text-align: center; padding: 22px; font-size: 12.5px; border-top: 1px solid rgba(217,195,154,0.18); color: rgba(246,241,233,0.5); }

/* ---------- page hero (inner pages) ---------- */
.page-head { text-align: center; padding: 64px 24px 40px; }
.page-head .script { font-size: 30px; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 52px); }

/* ---------- shop filters ---------- */
.filters { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; padding: 0 24px; }
.filters select, .filters input {
    font-family: var(--font-body); font-size: 14px; color: var(--ink);
    background: var(--white); border: 1px solid rgba(176,141,87,0.35); border-radius: 999px;
    padding: 11px 20px; outline: none;
}
.filters input { min-width: 220px; }
.filters select:focus, .filters input:focus { border-color: var(--gold); }

/* ---------- product detail ---------- */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; max-width: 1080px; margin: 0 auto; padding: 30px 24px 80px; }
.pd-img { border-radius: 200px 200px 20px 20px; overflow: hidden; aspect-ratio: 4/5; border: 1px solid var(--champagne); background: #fff; padding: 22px; }
.pd-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.pd-info { padding-top: 20px; }
.pd-info .badge-line { display: flex; gap: 10px; align-items: center; }
.pd-badge { background: var(--blush); color: var(--wine); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 14px; border-radius: 99px; }
.pd-info h1 { font-size: clamp(30px, 3.6vw, 44px); margin: 14px 0 4px; }
.pd-stone { color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase; font-size: 13px; }
.pd-price { font-family: var(--font-display); font-size: 32px; color: var(--wine-deep); margin: 18px 0 4px; }
.pd-price s { font-size: 20px; color: rgba(42,35,32,0.4); margin-left: 14px; }
.pd-off { color: #A3543B; font-size: 14px; }
.pd-desc { margin: 20px 0 26px; color: rgba(42,35,32,0.75); }
.qty-row { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.qty-box { display: flex; align-items: center; border: 1px solid rgba(176,141,87,0.4); border-radius: 999px; overflow: hidden; }
.qty-box button { width: 42px; height: 46px; background: none; border: 0; font-size: 19px; cursor: pointer; color: var(--wine); }
.qty-box input { width: 52px; text-align: center; border: 0; background: transparent; font-family: var(--font-body); font-size: 16px; outline: none; }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wine); margin-bottom: 7px; }
.field input, .field select, .field textarea {
    width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink);
    background: var(--white); border: 1px solid rgba(176,141,87,0.35); border-radius: 12px;
    padding: 13px 16px; outline: none; transition: border 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: rgba(42,35,32,0.6); }

/* ---------- cards / panels ---------- */
.panel { background: var(--white); border: 1px solid rgba(176,141,87,0.24); border-radius: 20px; padding: 28px; }
.panel h3 { font-size: 22px; margin-bottom: 18px; }

/* ---------- cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; max-width: 1080px; margin: 0 auto; padding: 0 24px 80px; }
.cart-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid rgba(176,141,87,0.2); align-items: center; }
.cart-item img { width: 92px; height: 112px; object-fit: contain; background: #fff; border: 1px solid rgba(176,141,87,0.2); border-radius: 50px 50px 10px 10px; padding: 4px; }
.cart-item h4 { font-family: var(--font-display); font-size: 19px; color: var(--wine-deep); font-weight: 600; }
.cart-item .meta { font-size: 12.5px; color: rgba(42,35,32,0.6); }
.cart-item .qty-box { transform: scale(0.82); transform-origin: left; }
.cart-line-price { font-family: var(--font-display); font-size: 19px; color: var(--wine-deep); text-align: right; }
.cart-remove { background: none; border: 0; color: #A3543B; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; margin-top: 6px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14.5px; }
.summary-row.total { border-top: 1px solid rgba(176,141,87,0.3); margin-top: 10px; padding-top: 14px; font-family: var(--font-display); font-size: 22px; color: var(--wine-deep); }
.summary-row .free { color: #4A7A4E; }
.progress-shell { height: 6px; background: var(--linen-2); border-radius: 99px; overflow: hidden; margin: 12px 0 6px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--champagne)); border-radius: 99px; transition: width 0.6s var(--ease); }

/* ---------- checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; max-width: 1080px; margin: 0 auto; padding: 0 24px 80px; align-items: start; }
.pay-methods { display: grid; gap: 12px; margin-top: 8px; }
.pay-method { display: flex; gap: 14px; align-items: flex-start; border: 1px solid rgba(176,141,87,0.35); border-radius: 14px; padding: 16px; cursor: pointer; transition: 0.25s; }
.pay-method:hover, .pay-method.is-sel { border-color: var(--gold); background: rgba(217,195,154,0.1); }
.pay-method input { margin-top: 4px; accent-color: var(--wine); }
.pay-method strong { display: block; font-weight: 500; font-size: 15px; }
.pay-method span { font-size: 13px; color: rgba(42,35,32,0.62); }
.coupon-row { display: flex; gap: 10px; }
.coupon-row input { flex: 1; }
.coupon-ok { color: #4A7A4E; font-size: 13.5px; margin-top: 8px; }
.coupon-err { color: #A3543B; font-size: 13.5px; margin-top: 8px; }

/* ---------- order timeline ---------- */
.track-line { position: relative; margin: 26px 0 10px 10px; padding-left: 34px; }
.track-line::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: rgba(176,141,87,0.3); }
.track-step { position: relative; padding: 12px 0; }
.track-step::before {
    content: ''; position: absolute; left: -32px; top: 16px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--linen); border: 2px solid rgba(176,141,87,0.5);
}
.track-step.done::before { background: var(--gold); border-color: var(--gold); }
.track-step.now::before { background: var(--wine); border-color: var(--wine); box-shadow: 0 0 0 5px rgba(87,28,40,0.15); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(87,28,40,0.18); } 50% { box-shadow: 0 0 0 9px rgba(87,28,40,0.06); } }
.track-step strong { display: block; font-family: var(--font-display); font-size: 18px; color: var(--wine-deep); font-weight: 600; }
.track-step.muted strong { color: rgba(42,35,32,0.4); }
.track-step span { font-size: 12.5px; color: rgba(42,35,32,0.55); }

/* ---------- auth pages ---------- */
.auth-shell { max-width: 440px; margin: 0 auto; padding: 40px 24px 80px; }
.auth-tabs { display: flex; border-bottom: 1px solid rgba(176,141,87,0.3); margin-bottom: 28px; }
.auth-tabs a { flex: 1; text-align: center; padding: 13px; font-size: 13.5px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(42,35,32,0.55); }
.auth-tabs a.is-on { color: var(--wine); border-bottom: 2px solid var(--gold); }

/* ---------- order cards (account) ---------- */
.order-card { border: 1px solid rgba(176,141,87,0.24); border-radius: 18px; padding: 22px 26px; margin-bottom: 18px; background: var(--white); display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.order-card h4 { font-family: var(--font-display); font-size: 20px; color: var(--wine-deep); }
.order-card .meta { font-size: 13px; color: rgba(42,35,32,0.6); }
.status-pill { display: inline-block; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 13px; border-radius: 99px; background: var(--blush); color: var(--wine); }
.status-pill.delivered { background: #E3EFE4; color: #3E6B45; }
.status-pill.cancelled { background: #F3DCDC; color: #8C3434; }

/* ---------- empty states ---------- */
.empty { text-align: center; padding: 80px 24px; }
.empty .script { font-size: 34px; }
.empty h2 { font-size: 34px; margin: 6px 0 18px; }

/* ---------- invoice ---------- */
.invoice-sheet { max-width: 820px; margin: 0 auto; background: #fff; color: #222; padding: 48px; font-size: 14px; }
.invoice-sheet h1, .invoice-sheet h2, .invoice-sheet h3 { color: #3E1019; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #571C28; padding-bottom: 20px; margin-bottom: 24px; }
.inv-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.inv-table th { text-align: left; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #571C28; border-bottom: 1px solid #D9C39A; padding: 8px; }
.inv-table td { padding: 9px 8px; border-bottom: 1px solid #eee; }
.inv-totals { margin-left: auto; width: 300px; }
.inv-totals div { display: flex; justify-content: space-between; padding: 5px 8px; }
.inv-totals .grand { font-weight: 600; font-size: 17px; border-top: 2px solid #571C28; margin-top: 6px; padding-top: 10px; }
.inv-actions { max-width: 820px; margin: 0 auto 24px; text-align: right; }
@media print {
    body * { visibility: hidden; }
    #invoice-print, #invoice-print * { visibility: visible; }
    #invoice-print { position: absolute; inset: 0; }
    .inv-actions, .site-header, .announce, .site-footer, .assurances { display: none !important; }
}

/* ---------- responsive ---------- */
@media (min-width: 1500px) {
    .wrap, .header-inner, .hero-split, .stone-grid, .product-grid,
    .offer-band, .assurances, .footer-inner { max-width: 1360px; }
}
@media (max-width: 900px) {
    .stone-grid { grid-template-columns: repeat(2, 1fr); }
    .story, .pd, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .assurances { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .hero-split { grid-template-columns: 1fr; }
    .hero-frame { min-height: 0; aspect-ratio: 4/5; border-radius: 120px 120px 18px 18px; }
}
@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; top: 0; right: -280px; width: 260px; height: 100vh; z-index: 200;
        background: var(--wine-deep); flex-direction: column; padding: 90px 30px; gap: 22px;
        transition: right 0.4s var(--ease); margin-left: 0;
    }
    .main-nav.is-open { right: 0; box-shadow: -20px 0 60px rgba(0,0,0,0.35); }
    .main-nav a { color: var(--linen); font-size: 15px; }
    .brand-name em { display: none; }
    .section { padding: 56px 18px; }
    .invoice-sheet { padding: 24px; }
}
@media (max-width: 560px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
    .pcard-img { border-radius: 60px 60px 12px 12px; }
    .pcard-badge { top: 10px; left: 10px; font-size: 9px; padding: 4px 9px; max-width: calc(100% - 20px); }
    .pcard-off { top: auto; bottom: 10px; right: 10px; font-size: 10px; padding: 3px 8px; }
    .pcard-body h3 { font-size: 16px; }
    .pcard-price { font-size: 16px; }
    .pcard-price s { font-size: 13px; }
    .hero-panel { border-radius: 20px; }
    .stone-grid { gap: 12px; }
    .assurances { grid-template-columns: 1fr 1fr; gap: 12px; margin: 40px auto; }
    .marquee-track span { font-size: 20px; }
}

/* ============================================================
   Admin panel
   ============================================================ */
.admin-body { background: var(--linen); }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side {
    background: var(--wine-deep); color: rgba(246,241,233,0.8);
    display: flex; flex-direction: column; padding: 26px 0; position: sticky; top: 0; height: 100vh;
}
.admin-brand { display: flex; align-items: center; gap: 12px; padding: 0 24px 24px; border-bottom: 1px solid rgba(217,195,154,0.18); }
.admin-brand img { width: 38px; height: 38px; border-radius: 50%; }
.admin-brand span { font-family: var(--font-display); font-size: 20px; color: var(--linen); }
.admin-brand em { font-style: normal; font-family: var(--font-body); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-left: 8px; }
.admin-side nav { display: flex; flex-direction: column; padding: 18px 14px; gap: 4px; }
.admin-side nav a {
    padding: 12px 16px; border-radius: 12px; font-size: 14px; letter-spacing: 0.04em;
    transition: 0.25s;
}
.admin-side nav a:hover { background: rgba(217,195,154,0.1); color: var(--linen); }
.admin-side nav a.is-on { background: var(--gold); color: var(--wine-deep); font-weight: 500; }
.admin-side-foot { margin-top: auto; padding: 18px 24px 0; border-top: 1px solid rgba(217,195,154,0.18); display: flex; flex-direction: column; gap: 8px; }
.admin-side-foot a { font-size: 13px; color: rgba(246,241,233,0.65); }
.admin-side-foot a:hover { color: var(--champagne); }
.admin-main { padding: 34px 38px 70px; }
.admin-main h1 { font-size: 34px; margin-bottom: 6px; }
.admin-sub { color: rgba(42,35,32,0.6); font-size: 14px; margin-bottom: 28px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.stat-card { background: var(--white); border: 1px solid rgba(176,141,87,0.24); border-radius: 18px; padding: 22px; }
.stat-card .num { font-family: var(--font-display); font-size: 32px; color: var(--wine-deep); }
.stat-card .lbl { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.stat-card.warn { border-color: #C96A6A; background: #FDF6F3; }
.stat-card.warn .num { color: #A3543B; }

.a-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid rgba(176,141,87,0.24); border-radius: 18px; overflow: hidden; }
.a-table th { text-align: left; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wine); background: rgba(217,195,154,0.16); padding: 13px 16px; }
.a-table td { padding: 13px 16px; border-top: 1px solid rgba(176,141,87,0.14); font-size: 14px; vertical-align: middle; }
.a-table tr:hover td { background: rgba(246,241,233,0.5); }
.a-table img { width: 44px; height: 54px; object-fit: cover; border-radius: 26px 26px 6px 6px; }
.a-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.a-btn {
    display: inline-block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 8px 16px; border-radius: 99px; border: 1px solid var(--gold); color: var(--wine);
    background: transparent; cursor: pointer; transition: 0.25s; font-family: var(--font-body);
}
.a-btn:hover { background: var(--wine); color: var(--linen); border-color: var(--wine); }
.a-btn.solid { background: var(--wine); color: var(--linen); }
.a-btn.solid:hover { background: var(--wine-deep); }
.a-btn.gold { background: var(--gold); border-color: var(--gold); color: var(--wine-deep); }
.a-btn.danger { border-color: #C96A6A; color: #A3543B; }
.a-btn.danger:hover { background: #A3543B; color: #fff; }

.a-form { background: var(--white); border: 1px solid rgba(176,141,87,0.24); border-radius: 18px; padding: 28px; max-width: 720px; }
.a-form .field label { color: var(--wine); }
.stock-pill { display: inline-block; min-width: 44px; text-align: center; padding: 4px 12px; border-radius: 99px; font-weight: 500; background: #E3EFE4; color: #3E6B45; }
.stock-pill.low { background: #F8E9D8; color: #A3543B; }
.stock-pill.out { background: #F3DCDC; color: #8C3434; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-toolbar h1 { margin: 0; }

.order-detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }
.status-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-pill { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; border-radius: 99px; background: var(--blush); color: var(--wine); }
.pay-pill.paid { background: #E3EFE4; color: #3E6B45; }
.pay-pill.failed { background: #F3DCDC; color: #8C3434; }

@media (max-width: 900px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 14px; }
    .admin-brand { border: 0; padding: 0 12px 0 0; }
    .admin-side nav { flex-direction: row; flex-wrap: wrap; padding: 8px 0; }
    .admin-side nav a { padding: 8px 12px; font-size: 12.5px; }
    .admin-side-foot { border: 0; margin: 0; padding: 0 0 0 12px; flex-direction: row; gap: 14px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .order-detail { grid-template-columns: 1fr; }
    .admin-main { padding: 22px 16px 50px; }
    .a-table { display: block; overflow-x: auto; }
}
