/* ==========================================================
   MJ Perfumery — storefront styles
   Palette taken from the logo: black velvet + brushed gold
   ========================================================== */
:root {
  --black: #000;
  --ink: #0e0d0b;
  --ink-2: #181611;
  --ink-3: #221f18;
  --gold: #c9a14a;
  --gold-hi: #ebd08f;
  --gold-lo: #8a6a2c;
  --gold-grad: linear-gradient(120deg, #8a6a2c 0%, #e6c97f 38%, #b8913f 62%, #f3dda0 100%);
  --ivory: #f2eadb;
  --text: #ddd4c3;
  --muted: #a39a89;
  --pearl: #ece5d8;
  --line: rgba(201, 161, 74, .22);
  --line-soft: rgba(242, 234, 219, .1);
  --sale: #c75b4a;
  --ok: #6fae7c;
  --display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --ui: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --container: 1240px;
  --r-sm: 4px;
  --r: 10px;
  --header-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--black); color: var(--text);
  font: 400 15px/1.7 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; color: var(--ivory); line-height: 1.12; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
::selection { background: var(--gold); color: #000; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.left { text-align: left; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.lead { font-size: 1.05rem; color: var(--text); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: 10px 16px; z-index: 999; }
.skip:focus { left: 10px; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 30px; border-radius: 999px; font-weight: 600; font-size: .82rem;
  letter-spacing: .08em; transition: transform .2s, box-shadow .2s, background .2s, color .2s; white-space: nowrap;
}
.btn-gold { background: var(--gold-grad); color: #1a1408; box-shadow: 0 6px 24px -10px rgba(233, 201, 127, .7); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(233, 201, 127, .9); }
.btn-ghost { border: 1px solid var(--gold); color: var(--gold-hi); }
.btn-ghost:hover { background: var(--gold); color: #000; }
.btn-sm { min-height: 40px; padding: 0 20px; }
.btn-block { width: 100%; }
.link-line { color: var(--gold-hi); border-bottom: 1px solid currentColor; padding-bottom: 2px; font-weight: 500; }
.link-line:hover { color: var(--ivory); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ivory); transition: color .2s, background .2s; }
.icon-btn:hover { color: var(--gold-hi); }
.icon-btn.ring { border: 1px solid var(--line); }
.icon-btn.ring:hover { border-color: var(--gold); }
.icon-btn.is-on svg { fill: var(--gold); stroke: var(--gold); }
.badge { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: #000; font: 600 10px/18px var(--ui); text-align: center; }
.badge[hidden] { display: none; }

/* ---------- Announcement ---------- */
.announce { background: var(--gold-grad); color: #1a1408; font-size: .78rem; font-weight: 500; overflow: hidden; white-space: nowrap; }
.announce-track { display: inline-flex; gap: 70px; padding: 8px 0; animation: ticker 40s linear infinite; }
.announce-track span::before { content: "✦"; margin-right: 12px; opacity: .6; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-text { font-family: var(--display); font-size: 1.7rem; font-weight: 600; color: var(--gold-hi); line-height: .9; display: flex; flex-direction: column; letter-spacing: .04em; }
.brand-text small { font-family: var(--ui); font-size: .58rem; font-weight: 500; letter-spacing: .42em; color: var(--gold); margin-top: 4px; }
.main-nav { display: flex; gap: 26px; margin: 0 auto; }
.main-nav a { font-size: .84rem; font-weight: 500; color: var(--text); position: relative; padding: 6px 0; letter-spacing: .02em; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.main-nav a:hover, .main-nav a.active { color: var(--gold-hi); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-icons { display: flex; gap: 2px; margin-left: auto; }
.main-nav + .header-icons { margin-left: 0; }
.only-mobile { display: none !important; }
.nav-backdrop { display: none; }

.search-overlay { position: fixed; inset: 0 0 auto; z-index: 60; background: var(--black); border-bottom: 1px solid var(--line); padding: 26px 0; }
.search-form { display: flex; align-items: center; gap: 14px; }
.search-form input { flex: 1; background: none; border: 0; border-bottom: 1px solid var(--gold); padding: 12px 0; font: 400 1.8rem var(--display); color: var(--ivory); outline: none; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: 96px; right: 20px; z-index: 90; display: grid; gap: 10px; }
.toast { background: var(--ink-2); border: 1px solid var(--line); border-left: 3px solid var(--gold); color: var(--ivory); padding: 12px 18px; border-radius: var(--r-sm); font-size: .88rem; max-width: 340px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: toastIn .3s ease; }
.toast-error { border-left-color: var(--sale); }
.toast-success { border-left-color: var(--ok); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: min(86vh, 760px); display: grid; background: radial-gradient(60% 70% at 72% 50%, #2a2112 0%, #0b0906 55%, #000 100%); border-bottom: 1px solid var(--line); }
.hero-penta { position: absolute; right: max(2vw, calc(50% - 600px)); top: 50%; width: min(52vw, 640px); transform: translateY(-50%); fill: none; stroke: var(--gold); stroke-width: 1.4; opacity: .55; z-index: 0; }
.hero-penta polygon { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 2.4s .2s cubic-bezier(.6, .1, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-slide { grid-area: 1 / 1; display: grid; align-items: center; opacity: 0; visibility: hidden; transition: opacity .8s, visibility .8s; z-index: 1; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding: 70px 0 90px; }
.hero-eyebrow { font-family: var(--display); font-style: italic; font-size: 1.35rem; color: var(--gold); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.9rem, 6.2vw, 5.4rem); line-height: 1; margin-bottom: 22px; font-weight: 500; }
.hero-sub { font-size: 1.05rem; max-width: 46ch; color: var(--text); margin-bottom: 34px; }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual img { max-height: 520px; width: auto; filter: drop-shadow(0 40px 40px rgba(0, 0, 0, .6)); }
.hero-slide.is-active .hero-copy > * { animation: rise .9s both; }
.hero-slide.is-active .hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-slide.is-active .hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-slide.is-active .hero-copy > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 34px; display: flex; gap: 10px; z-index: 2; }
.hero-dots button { width: 44px; height: 20px; display: grid; align-items: center; }
.hero-dots span { height: 2px; background: rgba(242, 234, 219, .25); display: block; }
.hero-dots .is-active span { background: var(--gold); }

/* ---------- USPs ---------- */
.usps { background: var(--ink); border-bottom: 1px solid var(--line); }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.usp { display: flex; gap: 14px; align-items: center; padding: 24px 18px; }
.usp + .usp { border-left: 1px solid var(--line-soft); }
.usp .ico { width: 30px; height: 30px; color: var(--gold); flex-shrink: 0; stroke-width: 1.2; }
.usp strong { display: block; color: var(--ivory); font-weight: 600; font-size: .9rem; }
.usp span { font-size: .8rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--ink); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head p { color: var(--muted); max-width: 56ch; margin-inline: auto; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; text-align: left; gap: 20px; }
.section-head.split p { margin-inline: 0; }
.rail-nav { display: flex; gap: 8px; }

/* ---------- Product card ---------- */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 22px; }
.grid-products.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-products[hidden] { display: none; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 66px) / 4); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.pcard { display: flex; flex-direction: column; }
.pcard-media { position: relative; border-radius: var(--r-sm); overflow: hidden; background: radial-gradient(80% 70% at 50% 40%, #f7f2e8, var(--pearl)); aspect-ratio: 4 / 5; }
.pcard-img { position: absolute; inset: 0; display: grid; place-items: center; padding: 8%; }
.pcard-img img { width: 100%; height: 100%; object-fit: contain; transition: opacity .45s, transform .6s; }
.pcard-alt { position: absolute; inset: 8%; width: 84% !important; height: 84% !important; opacity: 0; }
.pcard:hover .pcard-img img:first-child { transform: scale(1.04); }
.pcard:hover .pcard-alt { opacity: 1; }
.pcard-tags { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tag { display: inline-block; background: #000; color: var(--gold-hi); font-size: .7rem; font-weight: 600; padding: 3px 10px; border-radius: 2px; letter-spacing: .04em; }
.tag-sale { background: var(--sale); color: #fff; }
.tag-out { background: #555; color: #fff; }
.pcard-wish { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; background: #fff; color: #1a1408; box-shadow: 0 2px 10px rgba(0, 0, 0, .1); }
.pcard-wish svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.pcard-wish.is-on svg { fill: var(--sale); stroke: var(--sale); }
.pcard-actions { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 8px; transform: translateY(14px); opacity: 0; transition: .3s; }
.pcard:hover .pcard-actions, .pcard:focus-within .pcard-actions { transform: none; opacity: 1; }
.btn-mini { flex: 1; min-height: 38px; border-radius: 999px; background: #fff; color: #1a1408; font-size: .74rem; font-weight: 600; letter-spacing: .03em; }
.btn-mini:hover { background: #000; color: var(--gold-hi); }
.btn-mini-gold { background: #000; color: var(--gold-hi); }
.btn-mini-gold:hover { background: var(--gold); color: #000; }
.pcard-body { padding: 16px 2px 0; text-align: center; }
.pcard-brand { font-size: .74rem; color: var(--muted); letter-spacing: .06em; margin: 0 0 2px; }
.pcard-title { font-size: 1.32rem; margin: 0 0 2px; }
.pcard-title a:hover { color: var(--gold-hi); }
.pcard-vol { font-size: .78rem; color: var(--muted); margin: 0 0 4px; }
.price { color: var(--gold-hi); font-weight: 600; margin: 0; }
.price del { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: .88em; }
.price-lg { font-size: 1.5rem; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

/* ---------- Banners ---------- */
.banner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.banner-grid.count-3 { grid-template-columns: 1.4fr 1fr 1fr; }
.banner-grid.count-4 .banner:nth-child(1), .banner-grid.count-4 .banner:nth-child(4) { grid-column: span 1; }
.banner-grid.count-4 { grid-template-columns: 1.35fr 1fr; }
.banner-grid.count-4 .banner:nth-child(2) { grid-row: span 1; }
.banner-grid.count-1 { grid-template-columns: 1fr; }
.banner { position: relative; min-height: 340px; border-radius: var(--r-sm); overflow: hidden; background: var(--bg); display: flex; align-items: flex-end; isolation: isolate; border: 1px solid var(--line-soft); }
.banner img { position: absolute; right: 4%; top: 50%; height: 88%; width: auto; transform: translateY(-50%); object-fit: contain; z-index: -1; transition: transform .7s; }
.banner img[src*="uploads/"] { inset: 0; height: 100%; width: 100%; object-fit: cover; transform: none; right: 0; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .65), transparent 70%); z-index: -1; }
.banner:hover img { transform: translateY(-50%) scale(1.04); }
.banner:hover img[src*="uploads/"] { transform: scale(1.04); }
.banner-copy { padding: 34px; max-width: 70%; }
.banner-copy p { font-family: var(--display); font-style: italic; color: var(--gold-hi); font-size: 1.15rem; margin-bottom: 6px; }
.banner-copy h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-bottom: 18px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; background: var(--black); }
.marquee-track { display: inline-flex; align-items: center; gap: 44px; white-space: nowrap; animation: ticker 50s linear infinite; }
.marquee-track span { font: italic 500 clamp(2.2rem, 5vw, 4rem)/1 var(--display); color: transparent; -webkit-text-stroke: 1px var(--gold); }
.marquee .spark { width: 26px; height: 26px; fill: var(--gold); flex-shrink: 0; }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-grid.count-3 { grid-template-columns: repeat(3, 1fr); }
.cat-grid.count-2 { grid-template-columns: repeat(2, 1fr); }
.cat-tile { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-sm); overflow: hidden; background: linear-gradient(180deg, var(--ink-3), #000); border: 1px solid var(--line-soft); display: flex; align-items: flex-end; isolation: isolate; }
.cat-tile img { position: absolute; inset: 10% 10% 26%; width: 80%; height: 64%; object-fit: contain; z-index: -1; transition: transform .7s; }
.cat-tile img[src*="uploads/"] { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent 55%); z-index: -1; }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile:hover { border-color: var(--gold); }
.cat-copy { padding: 24px; width: 100%; }
.cat-copy h3 { margin: 0; font-size: 1.7rem; }
.cat-copy p { margin: 0; font-size: .8rem; color: var(--gold); }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; gap: 6px; margin-top: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tabs button { padding: 8px 20px; border-radius: 999px; font-size: .84rem; font-weight: 500; color: var(--muted); }
.tabs button.is-active { background: var(--gold); color: #000; }
.section-alt .center { margin-top: 44px; }

/* ---------- Offer ---------- */
.offer { background: linear-gradient(110deg, #000 0%, #1d170d 60%, #2d2312 100%); border-block: 1px solid var(--line); padding: 80px 0; }
.offer-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.offer-visual { display: grid; place-items: center; }
.offer-visual img { max-height: 400px; width: auto; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .6)); }
.offer-copy > p:not(.hero-eyebrow) { max-width: 50ch; }
.countdown { display: flex; gap: 14px; margin: 26px 0 32px; }
.countdown div { min-width: 82px; text-align: center; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 6px; }
.countdown b { display: block; font: 500 2.4rem/1 var(--display); color: var(--gold-hi); }
.countdown span { font-size: .72rem; color: var(--muted); }

/* ---------- Story ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.story-img { aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--r-sm); display: grid; place-items: center; background: radial-gradient(circle, #1f1910, #000 70%); overflow: hidden; }
.story-img img { width: 70%; object-fit: contain; }
.story-img img[src*="uploads/"] { width: 100%; height: 100%; object-fit: cover; }
.story-copy p { color: var(--text); max-width: 56ch; }
.story-copy .btn { margin-top: 12px; }

/* ---------- Testimonials ---------- */
.rail-quotes { grid-auto-columns: calc((100% - 44px) / 3); }
.quote { margin: 0; background: var(--black); border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: 34px 30px; display: flex; flex-direction: column; }
.quote h3 { font-size: 1.4rem; margin: 14px 0 8px; }
.quote blockquote { margin: 0 0 22px; font-family: var(--display); font-size: 1.2rem; line-height: 1.5; color: var(--text); flex: 1; }
.quote figcaption strong { display: block; color: var(--ivory); font-weight: 600; font-size: .9rem; }
.quote figcaption span { font-size: .8rem; color: var(--muted); }
.stars { color: #3a3428; letter-spacing: 2px; }
.stars .on { color: var(--gold); }

/* ---------- Gallery ---------- */
.gallery-strip { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); }
.gallery-strip a { aspect-ratio: 1; overflow: hidden; background: var(--pearl); display: grid; place-items: center; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, opacity .3s; }
.gallery-strip img[src$=".svg"] { object-fit: contain; padding: 14%; }
.gallery-strip a:hover img { transform: scale(1.06); opacity: .85; }
.gallery-handle { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #000; color: var(--gold-hi); padding: 12px 22px; border-radius: 999px; display: flex; gap: 8px; align-items: center; font-weight: 500; pointer-events: none; border: 1px solid var(--gold); }

/* ---------- Newsletter / Footer ---------- */
.newsletter { background: var(--ink); border-top: 1px solid var(--line); padding: 64px 0; }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.newsletter h2 { margin-bottom: 6px; }
.newsletter p { color: var(--muted); margin: 0; }
.newsletter-form { display: flex; gap: 8px; background: var(--black); border: 1px solid var(--line); border-radius: 999px; padding: 6px; }
.newsletter-form input:not([type=radio]) { flex: 1; min-width: 0; background: none; border: 0; outline: none; padding: 0 18px; color: var(--ivory); }
.site-footer { background: var(--black); border-top: 1px solid var(--line); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer-brand img { margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 34ch; font-size: .9rem; }
.site-footer h3 { font-family: var(--ui); font-size: .9rem; font-weight: 600; color: var(--gold-hi); margin-bottom: 18px; letter-spacing: .04em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .9rem; }
.site-footer ul a:hover { color: var(--gold-hi); }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .ico { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 4px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--gold-hi); }
.socials a:hover { background: var(--gold); color: #000; }
.socials .ico { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line-soft); padding: 22px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.footer-bottom p { margin: 0; }

.to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--gold); background: #000; color: var(--gold-hi); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: .3s; z-index: 40; }
.to-top.show { opacity: 1; pointer-events: auto; }
.wa-svg { width: 20px; height: 20px; flex: none; }
.wa-float { position: fixed; right: 22px; bottom: 80px; height: 58px; min-width: 58px; padding: 0 14px; border-radius: 29px; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; z-index: 40; box-shadow: 0 6px 22px rgba(0, 0, 0, .45); transition: background .2s, transform .2s; }
.wa-float:hover, .wa-float:focus-visible { background: #1ebe5a; transform: translateY(-2px); }
.wa-float .wa-svg { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #25d366; z-index: -1; animation: waPulse 2.4s ease-out infinite; }
.wa-label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 600; font-size: .9rem; transition: max-width .3s ease, margin .3s ease; }
.wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { max-width: 140px; margin-left: 10px; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }
.btn-wa { background: #25d366; border-color: #25d366; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-wa:hover { background: #1ebe5a; border-color: #1ebe5a; color: #fff; }
.contact-info .wa-row > .wa-svg { width: 28px; height: 28px; color: #25d366; margin-top: 2px; }

/* Recent sale pop (real orders only) */
.sale-pop { position: fixed; left: 20px; bottom: 20px; z-index: 45; display: flex; gap: 12px; align-items: center; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 36px 10px 10px; max-width: 320px; font-size: .82rem; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); transform: translateY(140%); transition: transform .5s; }
.sale-pop.show { transform: none; }
.sale-pop img { width: 54px; height: 54px; object-fit: contain; background: var(--pearl); border-radius: 3px; padding: 4px; }
.sale-pop p { margin: 0; line-height: 1.45; }
.sale-pop small { color: var(--muted); }
.sale-pop button { position: absolute; top: 6px; right: 8px; color: var(--muted); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .75); backdrop-filter: blur(4px); }
.modal-box { position: relative; width: min(920px, 100%); max-height: 90vh; overflow: auto; background: var(--ink); border: 1px solid var(--line); border-radius: var(--r); animation: rise .3s; }
.modal-close { position: absolute; top: 10px; right: 10px; z-index: 2; }
.quick { display: grid; grid-template-columns: 1fr 1fr; }
.quick-img { background: radial-gradient(80% 70% at 50% 40%, #f7f2e8, var(--pearl)); display: grid; place-items: center; padding: 40px; min-height: 420px; }
.quick-img img { max-height: 420px; object-fit: contain; }
.quick-info { padding: 46px 36px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.quick-info h2 { margin: 0; }

/* ---------- Page hero / crumbs ---------- */
.page-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); background: radial-gradient(50% 120% at 80% 0%, #1f1910, #000 70%); }
.page-hero h1 { margin: 0; }
.page-hero p { color: var(--muted); margin: 10px 0 0; max-width: 60ch; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--gold-hi); }

/* ---------- Shop ---------- */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 44px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); }
.filters fieldset { border: 0; border-bottom: 1px solid var(--line-soft); padding: 0 0 20px; margin: 0 0 20px; display: grid; gap: 8px; }
.filters legend { font: 500 1.25rem var(--display); color: var(--ivory); margin-bottom: 8px; padding: 0; }
.radio, .check { display: flex; align-items: center; gap: 10px; font-size: .88rem; cursor: pointer; }
.radio small { color: var(--muted); }
.radio input, .check input, .pay input { accent-color: var(--gold); width: 16px; height: 16px; }
.price-range { display: flex; gap: 8px; }
.price-range input { width: 100%; }
.filters .link-line { display: inline-block; margin-top: 14px; }
.shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.shop-bar p { margin: 0; color: var(--muted); font-size: .88rem; }
.sort { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pager a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.pager a.is-active, .pager a:hover { background: var(--gold); color: #000; border-color: var(--gold); }
.empty { text-align: center; padding: 70px 20px; border: 1px dashed var(--line); border-radius: var(--r-sm); }
.empty p { color: var(--muted); }

/* ---------- Forms ---------- */
input:not([type=radio]):not([type=checkbox]), select, textarea {
  width: 100%; background: var(--black); border: 1px solid rgba(242, 234, 219, .18); border-radius: var(--r-sm);
  padding: 12px 14px; color: var(--ivory); outline: none; transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.sort select { width: auto; padding-block: 8px; }
.field { display: grid; gap: 6px; font-size: .84rem; font-weight: 500; color: var(--text); margin-bottom: 16px; }
.field-error { color: #e48a7a; font-size: .8rem; font-weight: 400; }
.form-card { background: var(--ink); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 36px; }
.form-card h2 { font-size: 1.7rem; margin-top: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.span-2 { grid-column: span 2; }
.auth { max-width: 460px; }
.alert { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 16px; font-size: .9rem; border: 1px solid; }
.alert-error { border-color: rgba(199, 91, 74, .5); background: rgba(199, 91, 74, .1); color: #f0b3a8; }
.alert-info { border-color: var(--line); background: rgba(201, 161, 74, .08); color: var(--ivory); }
.alert p:last-child { margin: 0; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start; margin-top: 10px; }
.pdp-gallery { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
.pdp-main { aspect-ratio: 1; background: radial-gradient(80% 70% at 50% 40%, #f7f2e8, var(--pearl)); border-radius: var(--r-sm); display: grid; place-items: center; padding: 8%; overflow: hidden; }
.pdp-main img { max-height: 100%; object-fit: contain; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pdp-thumbs button { aspect-ratio: 1; background: var(--pearl); border-radius: var(--r-sm); padding: 8px; border: 2px solid transparent; }
.pdp-thumbs button.is-active { border-color: var(--gold); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info h1 { margin-bottom: 10px; }
.notes { border-block: 1px solid var(--line); margin: 24px 0; }
.note-row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px 0; align-items: baseline; }
.note-row + .note-row { border-top: 1px solid var(--line-soft); }
.note-row span { font: italic 500 1.15rem var(--display); color: var(--gold); }
.note-row p { margin: 0; color: var(--ivory); font-size: .92rem; }
.notes.compact .note-row { padding: 6px 0; grid-template-columns: 90px 1fr; }
.buy { display: flex; gap: 12px; align-items: center; margin: 22px 0 12px; flex-wrap: wrap; }
.buy .btn-gold { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid rgba(242, 234, 219, .2); border-radius: 999px; height: 48px; }
.qty button { width: 40px; height: 100%; font-size: 1.1rem; color: var(--gold-hi); }
.qty input { width: 44px !important; text-align: center; border: 0 !important; background: none !important; padding: 0 !important; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stock-low { color: #e9a86b; font-size: .85rem; margin-top: 10px; }
.stock-out { color: #e48a7a; font-weight: 500; }
.pdp-perks { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 10px; font-size: .88rem; }
.pdp-perks li { display: flex; gap: 12px; align-items: center; }
.pdp-perks .ico { color: var(--gold); width: 20px; height: 20px; }
.meta { display: grid; grid-template-columns: 100px 1fr; gap: 6px; font-size: .85rem; margin: 0; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; }
.pdp-desc { max-width: 760px; margin: 70px auto 0; }
.prose { color: var(--text); }
.prose h2 { margin-top: 1.4em; font-size: 1.8rem; }

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.cart-row { display: grid; grid-template-columns: 90px 1fr auto 100px 42px; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.cart-thumb { aspect-ratio: 1; background: var(--pearl); border-radius: var(--r-sm); padding: 8px; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-info { display: grid; gap: 2px; }
.cart-info strong { font: 500 1.25rem var(--display); color: var(--ivory); }
.cart-line { text-align: right; color: var(--gold-hi); }
.cart-actions { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; }
.summary { background: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; position: sticky; top: calc(var(--header-h) + 20px); }
.summary h2 { font-size: 1.7rem; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 20px 0; font-size: .92rem; }
.summary dd { margin: 0; text-align: right; }
.summary .total { font-size: 1.15rem; color: var(--ivory); font-weight: 600; border-top: 1px solid var(--line); padding-top: 14px; }
.summary dd.total { color: var(--gold-hi); }
.coupon { display: flex; gap: 8px; margin-bottom: 18px; }
.coupon-on { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: .88rem; padding: 10px 14px; border: 1px dashed var(--gold); border-radius: var(--r-sm); }
.ship-meter p { font-size: .84rem; color: var(--gold-hi); margin-bottom: 8px; }
.ship-meter div { height: 4px; background: var(--ink-3); border-radius: 2px; overflow: hidden; }
.ship-meter span { display: block; height: 100%; background: var(--gold-grad); }
.mini-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mini-items li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; font-size: .88rem; }
.mini-items img { width: 52px; height: 52px; object-fit: contain; background: var(--pearl); border-radius: 3px; padding: 4px; }
.mini-items small { color: var(--muted); }
.pay-options { display: grid; gap: 10px; margin-bottom: 24px; }
.pay { display: flex; gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); cursor: pointer; }
.pay:has(input:checked) { border-color: var(--gold); background: rgba(201, 161, 74, .06); }
.success-mark { margin: 0 auto 20px; }

/* ---------- Account ---------- */
.account { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.account-nav { display: grid; gap: 4px; border: 1px solid var(--line-soft); border-radius: var(--r); padding: 10px; }
.account-nav a { padding: 10px 14px; border-radius: var(--r-sm); font-size: .9rem; }
.account-nav a.active, .account-nav a:hover { background: var(--ink-2); color: var(--gold-hi); }
.order-card { border: 1px solid var(--line-soft); border-radius: var(--r); margin-bottom: 14px; background: var(--ink); }
.order-card summary { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; padding: 18px 22px; cursor: pointer; list-style: none; }
.order-card summary::-webkit-details-marker { display: none; }
.order-card summary small { display: block; color: var(--muted); font-size: .8rem; }
.order-card > :not(summary) { padding: 0 22px; }
.order-card > p { padding-bottom: 18px; margin-top: 14px; }
.status { font-size: .74rem; padding: 4px 12px; border-radius: 999px; background: var(--ink-3); color: var(--gold-hi); font-weight: 500; }
.status-delivered { color: var(--ok); }
.status-cancelled { color: #e48a7a; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; align-items: start; }
.contact-info { display: grid; gap: 26px; }
.contact-info > div { display: flex; gap: 16px; }
.contact-info .ico { width: 28px; height: 28px; color: var(--gold); flex-shrink: 0; }
.contact-info h3 { margin: 0 0 4px; }
.contact-info p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { gap: 18px; }
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .rail { grid-auto-columns: calc((100% - 44px) / 3); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .only-mobile { display: inline-grid !important; }
  .main-nav { position: fixed; inset: 0 auto 0 0; width: min(320px, 86vw); background: var(--ink); flex-direction: column; gap: 0; padding: 18px 24px; transform: translateX(-100%); transition: transform .35s; z-index: 70; border-right: 1px solid var(--line); overflow-y: auto; margin: 0; }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .main-nav a::after { display: none; }
  .nav-head { display: flex !important; justify-content: space-between; align-items: center; margin-bottom: 14px; }
  .nav-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 65; }
  .header-row { gap: 6px; }
  .brand { margin-right: auto; }
  .brand img { width: 36px; height: 36px; }
  .brand-text { font-size: 1.4rem; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding: 50px 0 80px; gap: 10px; }
  .hero-visual { order: -1; }
  .hero-visual img { max-height: 300px; }
  .hero-sub { margin-inline: auto; }
  .hero-penta { width: 90vw; right: 5vw; top: 32%; }
  .hero-dots { justify-content: center; }
  .usp-grid { grid-template-columns: 1fr 1fr; }
  .usp:nth-child(3) { border-left: 0; }
  .usp { padding: 16px 10px; }
  .grid-products, .grid-products.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .rail { grid-auto-columns: calc((100% - 14px) / 2); gap: 14px; }
  .rail-quotes { grid-auto-columns: 85%; }
  .banner-grid, .banner-grid.count-3, .banner-grid.count-4 { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px; }
  .offer-grid, .story-grid, .newsletter-inner, .pdp, .cart-layout, .contact-grid, .account { grid-template-columns: 1fr; gap: 32px; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(320px, 86vw); background: var(--ink); z-index: 70; padding: 24px; overflow-y: auto; transform: translateX(-100%); transition: transform .35s; border-right: 1px solid var(--line); top: 0; }
  .filters.open { transform: none; }
  .pdp-gallery, .summary { position: static; }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 64px 0; }
  .countdown div { min-width: 0; flex: 1; }
  .pcard-actions { opacity: 1; transform: none; }
  .btn-mini[data-quick] { display: none; }
  .quick { grid-template-columns: 1fr; }
  .quick-img { min-height: 260px; padding: 24px; }
  .quick-img img { max-height: 240px; }
  .quick-info { padding: 26px; }
}
@media (max-width: 600px) {
  .hide-sm { display: none !important; }
  .section-head.split { flex-direction: column; align-items: flex-start; }
  .rail-nav { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .form-card { padding: 24px 18px; }
  .cart-row { grid-template-columns: 70px 1fr 36px; grid-template-areas: "img info rm" "img qty line"; gap: 8px 14px; }
  .cart-thumb { grid-area: img; }
  .cart-info { grid-area: info; }
  .cart-row .qty { grid-area: qty; height: 40px; justify-self: start; }
  .cart-line { grid-area: line; align-self: center; }
  .cart-row > .icon-btn { grid-area: rm; }
  .pcard-title { font-size: 1.15rem; }
  .newsletter-form { flex-direction: column; border-radius: var(--r); }
  .newsletter-form input { padding: 12px 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .order-card summary { grid-template-columns: 1fr auto; }
  .order-card summary > b { grid-column: span 2; }
  .sale-pop { left: 10px; right: 76px; bottom: 10px; }
  .banner { min-height: 250px; }
  .banner img:not([src*="uploads/"]) { height: 72%; right: -2%; }
  .banner-copy { max-width: 62%; padding: 24px; }
  .tabs { gap: 2px; }
  .tabs button { padding: 7px 12px; font-size: .78rem; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-penta polygon { stroke-dashoffset: 0; }
}
