/* Marvero Perfumes — storefront styles */
:root {
  --brown: #7b3408;
  --brown-dark: #53250e;
  --brown-bar: #723816;
  --gold: #986e0a;
  --gold-light: #d4af37;
  --ink: #0a0500;
  --text: #504e4a;
  --muted: #8a7f78;
  --cream: #fcf2ee;
  --cream-2: #f6e8e1;
  --white: #fff;
  --line: #eadbd3;
  --danger: #e53935;
  --ok: #2e7d32;
  --radius: 4px;
  --container: 1100px;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 6px 24px rgba(60, 25, 5, .08);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 15px; line-height: 1.65; color: var(--text); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: var(--font-head); color: var(--brown); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(30px, 4.4vw, 46px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }
.hp { position: absolute; left: -9999px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 14px; font-weight: 500; line-height: 1.2; cursor: pointer; text-align: center; transition: background .2s, color .2s, border-color .2s; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--brown); color: #fff; }
.btn-brown { background: var(--brown-dark); color: #fff; }
.btn-brown:hover { background: var(--gold); color: #fff; }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-gold { border-color: var(--gold-light); color: var(--gold-light); background: transparent; }
.btn-outline-gold:hover { background: var(--gold-light); color: var(--brown-dark); }
.btn-block { display: flex; width: 100%; }
.btn-grow { flex: 1; }
.btn[disabled], .btn-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-link { background: none; border: 0; padding: 0; color: var(--brown); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn.is-loading { opacity: .7; pointer-events: none; }

/* ---------- topbar + header ---------- */
.topbar { background: var(--brown-bar); color: #fff; text-align: center; padding: 7px 16px; font-size: 13px; font-weight: 500; letter-spacing: .3px; }
.topbar strong { color: var(--gold-light); }
.topbar a { color: #fff; border-bottom: 1px solid var(--gold-light); margin-left: 6px; font-weight: 600; }
.topbar a:hover { color: var(--gold-light); }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo img { width: 118px; height: auto; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: #3a332e; font-size: 12.5px; font-weight: 600; letter-spacing: .4px; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--brown); border-bottom-color: var(--gold-light); }
.header-icons { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: none; border: 0; border-radius: 50%; color: #2a2420; cursor: pointer; }
.icon-btn:hover { background: var(--cream); color: var(--brown); }
.cart-count { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--brown); color: #fff; font-size: 10.5px; font-weight: 600; line-height: 17px; text-align: center; }
.menu-toggle { display: none; }
.search-panel { border-top: 1px solid var(--line); background: #fff; padding: 14px 0; }
.search-form { display: flex; gap: 10px; }
.search-form input { flex: 1; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }

.mobile-nav { position: fixed; inset: 0; z-index: 100; background: rgba(20, 8, 2, .45); }
.mobile-nav-panel { width: min(84vw, 320px); height: 100%; background: #fff; padding: 16px 24px; overflow-y: auto; }
.mobile-nav ul { list-style: none; margin: 20px 0 0; padding: 0; }
.mobile-nav li a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; letter-spacing: .4px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: clamp(420px, 62vh, 620px); display: flex; align-items: center; overflow: hidden; background: #c9ad97; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40, 18, 4, .55) 0%, rgba(40, 18, 4, .25) 55%, rgba(40, 18, 4, 0) 100%); }
.hero-inner { position: relative; z-index: 1; color: #fff; }
.hero .eyebrow { color: #f3e6da; }
.hero h1 { color: #fff; max-width: 520px; font-size: clamp(36px, 5.4vw, 58px); }
.hero-text { max-width: 480px; font-size: 15.5px; color: #f7ede6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.hero-actions .btn { min-width: 170px; padding: 14px 24px; letter-spacing: .5px; }
.eyebrow { font-size: 12.5px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 10px; }
.eyebrow-gold { color: var(--gold-light); }

.badges { background: var(--cream); padding: 26px 0 6px; }
.badges-inner { display: flex; justify-content: space-around; gap: 16px; flex-wrap: wrap; }
.badge-item { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 14.5px; }
.badge-item svg { color: var(--muted); }

/* ---------- sections + product grid ---------- */
.collection { padding: 56px 0 40px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 34px; }
.section-head h2 { margin-bottom: 8px; }
.section-sub { color: #b0705a; font-style: italic; font-size: 14px; max-width: 760px; margin: 0; }
.section-head .btn { flex-shrink: 0; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.card { display: flex; flex-direction: column; }
.card-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 2px; background: var(--cream-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--brown); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .4px; padding: 4px 10px; border-radius: 3px; }
.badge-muted { background: #555; }
.card-body { padding-top: 16px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 17px; margin: 0 0 6px; letter-spacing: .2px; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--brown); }
.price { margin: 0 0 6px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price ins { text-decoration: none; color: #2a2420; font-weight: 600; font-size: 14.5px; }
.price del { color: #9b9089; font-size: 12px; }
.card-actions { margin-top: auto; padding-top: 10px; }
.low-stock { color: var(--danger); font-weight: 600; font-size: 13.5px; margin: 8px 0 0; }

.stars { position: relative; display: inline-block; font-size: 15px; letter-spacing: 3px; color: #e2d6c6; line-height: 1; }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: var(--gold); }

/* ---------- discovery banner ---------- */
.discovery-banner { display: grid; grid-template-columns: 1fr 1fr; background: var(--brown-dark); color: #f2e6dc; margin: 30px 0; }
.discovery-text { padding: clamp(40px, 7vw, 90px) clamp(20px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.discovery-text h2 { color: #fff; font-size: clamp(32px, 4.2vw, 48px); }
.discovery-text p { max-width: 440px; }
.discovery-media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }

.seo-text { padding: 50px 0; text-align: center; }
.seo-text p { color: var(--text); }

.insta { padding: 40px 0 70px; }
.insta h2 a { color: inherit; }
.insta-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 2px 16px; scrollbar-width: thin; }
.insta-item { scroll-snap-align: start; min-width: 0; }
.insta-item .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; border-radius: 12px !important; box-shadow: var(--shadow) !important; }

/* ---------- page heads, breadcrumbs ---------- */
.page-head { padding: 40px 0 10px; }
.page-head h1 { margin-top: 6px; }
.breadcrumbs { font-size: 12px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--text); }
.breadcrumbs a { color: var(--brown); }
.breadcrumbs span { margin: 0 3px; }
.cat-hero { position: relative; min-height: 300px; display: flex; align-items: flex-end; overflow: hidden; }
.cat-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.5), rgba(0,0,0,.1) 70%); }
.cat-hero-inner { position: relative; z-index: 1; padding-bottom: 34px; }
.cat-hero h1, .cat-hero .breadcrumbs, .cat-hero .breadcrumbs a { color: #fff; text-shadow: 2px 2px 6px rgba(0,0,0,.6); }

/* ---------- shop ---------- */
.shop { padding: 30px 0 60px; }
.cat-desc { margin-bottom: 20px; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.result-count { margin: 0; font-size: 14px; }
.sort-form select { padding: 9px 34px 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); font-weight: 500; }
.pagination span[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { text-align: center; padding: 50px 0; }

.cat-bottom { padding: 60px 0; margin-top: 20px; border-top: 1px solid var(--line); }
.cat-bottom-inner > :not(h1, h2, h3, p:first-of-type) { display: none; }
.cat-bottom.is-open .cat-bottom-inner > * { display: revert; }
.cat-bottom h2 { font-size: 28px; }

/* ---------- product page ---------- */
.product-page { padding: 32px 16px 70px; }
.product-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; margin: 24px 0 50px; }
.gallery-main { position: relative; aspect-ratio: 1; background: var(--cream-2); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-zoom { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; margin-top: 12px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.gallery-thumbs button.is-active { border-color: var(--brown); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-title { color: var(--ink); font-size: clamp(28px, 3.4vw, 36px); letter-spacing: .5px; margin-bottom: 8px; }
.summary .price ins { font-size: 20px; }
.summary .price del { font-size: 14px; }
.rating-link { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text); margin-bottom: 8px; }
.note-chips { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; padding: 0; margin: 18px 0 10px; }
.note-chips li { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 70px; text-align: center; font-size: 11.5px; }
.note-chips img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.note-letter { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); color: var(--brown); font-family: var(--font-head); font-size: 28px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.buy-form { margin: 18px 0 22px; display: grid; gap: 12px; }
.buy-row { display: flex; gap: 12px; }
.qty { display: flex; align-items: center; border: 1px solid var(--ink); border-radius: var(--radius); background: #fff; }
.qty button { width: 38px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty input { width: 40px; border: 0; text-align: center; background: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.buy-form .btn { padding: 13px 22px; }
.out-of-stock { color: var(--danger); font-weight: 600; }
.short-desc { margin-top: 10px; }
.meta-cats { font-size: 13px; color: var(--muted); }
.product-section { margin-top: 50px; }
.product-section h2 { font-size: 24px; text-transform: uppercase; letter-spacing: .6px; color: #3a2b22; }
.info-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.info-table th, .info-table td { text-align: left; padding: 11px 14px; border: 1px solid var(--line); }
.info-table th { width: 40%; font-weight: 600; color: var(--ink); }
.info-table tr:nth-child(even) { background: #fbf6f3; }
.prose > * + * { margin-top: 1em; }
.prose img { border-radius: var(--radius); }

.reviews-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.review-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.review-list li { background: #fff; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); }
.review-meta { font-size: 13px; margin: 6px 0; }
.review-form { display: grid; gap: 14px; align-content: start; }
.review-form h3 { margin: 0; color: var(--ink); }
.review-form label { display: block; font-size: 14px; }
.review-form input[type=text], .review-form input[type=email], .review-form textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.review-form .check { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.review-form .btn { justify-self: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.req { color: var(--danger); }
.notice { background: #fff8e1; border-left: 3px solid var(--gold); padding: 10px 14px; margin: 0; font-size: 14px; }
.rating-input { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rating-input legend { width: 100%; font-size: 14px; margin-bottom: 4px; float: left; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { font-size: 26px; color: #d9cbbb; cursor: pointer; line-height: 1; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--gold); }
.rating-input input:focus-visible + label { outline: 2px solid var(--gold); }

/* ---------- discovery builder ---------- */
.discovery { padding: 20px 0 120px; }
.scent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; list-style: none; margin: 0; padding: 0; }
.scent { background: #fff; border: 2px solid var(--line); border-radius: 8px; padding: 12px; transition: border-color .2s, box-shadow .2s; }
.scent label { position: relative; display: block; cursor: pointer; }
.scent input { position: absolute; opacity: 0; }
.scent img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 4px; }
.scent-name { display: block; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink); margin: 10px 0 4px; }
.scent-check { position: absolute; top: 8px; right: 8px; z-index: 1; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.9); border: 2px solid var(--line); color: transparent; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.scent:has(input:checked) { border-color: var(--gold-light); box-shadow: var(--shadow); }
.scent input:checked ~ .scent-check { background: var(--gold-light); border-color: var(--gold-light); color: #fff; }
.scent input:focus-visible ~ .scent-check { outline: 2px solid var(--gold); }
.scent.is-oos { opacity: .55; }
.scent-notes { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; font-size: 12.5px; margin: 6px 0 8px; }
.scent-notes dt { font-weight: 600; color: var(--ink); }
.scent-notes dd { margin: 0; }
.scent .btn-link { font-size: 12.5px; }
.discovery-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.08); padding: 12px 16px; display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; }
.discovery-bar p { margin: 0; }

/* ---------- content pages ---------- */
.page-content { padding: 20px 0 70px; }

/* ---------- footer ---------- */
.site-footer { background: #1e1e1e; color: #bdb7b2; font-size: 14px; }
.site-footer a { color: #e8e2dd; }
.site-footer a:hover { color: var(--gold-light); }
.footer-top { border-bottom: 1px solid #2c2c2c; padding: 26px 0; }
.footer-top-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.socials { display: flex; gap: 14px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 32px; padding-top: 50px; padding-bottom: 50px; }
.footer-cols h3 { color: #fff; font-size: 17px; margin-bottom: 14px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-contact dl { margin: 0; display: grid; gap: 4px; }
.footer-contact dt { font-weight: 600; color: #d8d2cc; margin-top: 8px; }
.footer-contact dd { margin: 0; }
.footer-bottom { border-top: 1px solid #2c2c2c; padding: 18px 0; font-size: 13px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 200; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 6px; font-size: 14px; transition: .25s; pointer-events: none; max-width: calc(100% - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .main-nav ul { gap: 18px; }
  .insta-track { grid-auto-columns: calc((100% - 24px) / 2.2); }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { min-height: 64px; gap: 8px; }
  .logo { margin-right: auto; }
  .logo img { width: 104px; }
  .product-main, .reviews-grid { grid-template-columns: 1fr; gap: 28px; }
  .discovery-banner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  body { font-size: 14.5px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .card-title { font-size: 15.5px; }
  .card-actions .btn { width: 100%; padding: 9px 8px; }
  .section-head { flex-direction: column; gap: 14px; margin-bottom: 22px; }
  .collection { padding: 40px 0 24px; }
  .hero { min-height: 460px; }
  .hero::after { background: linear-gradient(0deg, rgba(40,18,4,.7) 0%, rgba(40,18,4,.3) 100%); }
  .hero-actions .btn { min-width: 0; flex: 1; padding: 13px 12px; }
  .badges-inner { justify-content: space-between; }
  .badge-item { flex-direction: column; gap: 6px; font-size: 12.5px; text-align: center; flex: 1; }
  .insta-track { grid-auto-columns: 82%; gap: 14px; }
  .form-row { grid-template-columns: 1fr; }
  .scent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .scent-name { font-size: 16px; }
  .footer-top-inner { flex-direction: column; }
  .footer-cols { grid-template-columns: 1fr; gap: 26px; }
  .cat-hero { min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.contact-form { max-width: 640px; margin-top: 18px; }

/* ---- cart & checkout ---------------------------------------------------- */
.notice-error { background: #fdecea; border-left-color: var(--danger); color: #8a1c1c; }
.cart-page, .checkout-page, .order-received { padding: 10px 0 60px; }
.cart-page .notice, .checkout-page .notice { margin-bottom: 16px; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.cart-lines { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-thumb img { width: 90px; height: 90px; object-fit: cover; border-radius: var(--radius); background: #fff; }
.cart-info { display: grid; gap: 4px; }
.cart-name { font-weight: 600; color: var(--ink); }
.cart-unit { font-size: 14px; color: var(--muted); }
.cart-scents { margin: 2px 0; padding-left: 18px; font-size: 13px; }
.cart-actions { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.cart-qty-fixed { font-size: 13px; color: var(--muted); }
.qty-sm button { width: 32px; height: 36px; }
.cart-remove { font-size: 13px; color: var(--muted); }
.cart-total { color: var(--ink); white-space: nowrap; }
.cart-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 90px; display: grid; gap: 14px; }
.cart-summary h2 { font-size: 26px; margin: 0; }
.cart-summary table, .order-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cart-summary th, .cart-summary td, .order-table th, .order-table td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cart-summary td, .order-table td:last-child, .order-table tfoot td { text-align: right; }
.cart-summary .grand th, .cart-summary .grand td { font-size: 17px; color: var(--ink); font-weight: 600; border-bottom: 0; }
.continue { justify-self: center; font-size: 14px; }
.samples { margin-top: 32px; }
.samples h2 { font-size: 28px; margin-bottom: 4px; }
.sample-grid { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sample-grid label { display: flex; align-items: center; gap: 10px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-size: 13px; line-height: 1.3; height: 100%; }
.sample-grid img { width: 44px; height: 44px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.sample-grid input { accent-color: var(--brown); flex-shrink: 0; }
.sample-grid label:has(input:checked) { border-color: var(--brown); box-shadow: 0 0 0 1px var(--brown); }
.sample-grid .is-oos label, .sample-grid label:has(input:disabled:not(:checked)) { opacity: .5; cursor: not-allowed; }
.cart-float { position: fixed; right: 16px; bottom: 80px; z-index: 199; background: var(--brown); color: #fff; padding: 12px 18px; border-radius: 6px; box-shadow: var(--shadow); font-size: 14px; font-weight: 500; opacity: 0; transform: translateY(10px); transition: .25s; pointer-events: none; }
.cart-float.is-on { opacity: 1; transform: none; pointer-events: auto; }
.cart-float:hover { color: #fff; background: var(--brown-dark); }

.checkout-fields { display: grid; gap: 14px; }
.checkout-fields h2 { font-size: 28px; margin: 0; }
.checkout-fields label { display: block; font-size: 14px; }
.checkout-fields input, .checkout-fields select, .checkout-fields textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.checkout-fields [aria-invalid="true"] { border-color: var(--danger); }
.field-error { display: block; color: var(--danger); font-size: 13px; margin-top: 4px; }
.order-lines { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.order-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.order-lines small, .order-table small { display: block; color: var(--muted); font-size: 12px; }
.order-lines .muted { color: var(--muted); }
.pay-methods { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.pay-methods legend { font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.pay-method { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-size: 14px; line-height: 1.45; }
.pay-method:has(input:checked) { border-color: var(--brown); background: var(--cream); }
.pay-method input { margin-top: 3px; accent-color: var(--brown); }
.pay-method small { display: block; color: var(--muted); margin-top: 2px; }
.checkout-summary .check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.45; }
.checkout-summary .check input { margin-top: 3px; accent-color: var(--brown); }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.secure-note { font-size: 12.5px; color: var(--muted); text-align: center; margin: 0; }
.place-order { padding: 14px 22px; }

.order-overview { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.order-overview li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.order-overview strong { display: block; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--ink); margin-top: 2px; }
.cod-box { background: #fff8e1; border-left: 3px solid var(--gold); padding: 12px 16px; margin-bottom: 24px; }
.cod-box p { margin: 0 0 4px; }
.order-table { margin-bottom: 28px; background: #fff; }
.order-table th, .order-table td { padding: 10px 12px; }
.order-received address { font-style: normal; margin-bottom: 24px; }
.order-received h2 { font-size: 28px; }

@media (max-width: 860px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .order-overview { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .cart-line { grid-template-columns: 64px minmax(0, 1fr); }
  .cart-thumb img { width: 64px; height: 64px; }
  .cart-total { grid-column: 2; }
}
.sim-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ---- account, coupons, points --------------------------------------------- */
.account-page { padding: 10px 0 60px; }
.account-page .notice { margin-bottom: 16px; }
.account-perk { text-align: center; }
.auth-card { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: -24px -24px 20px; border-bottom: 1px solid var(--line); }
.auth-tabs button { padding: 14px; border: 0; background: var(--cream-2); font-weight: 600; cursor: pointer; color: var(--muted); }
.auth-tabs button[aria-selected="true"] { background: #fff; color: var(--brown); box-shadow: inset 0 -2px 0 var(--brown); }
.auth-form, .account-form { display: grid; gap: 14px; }
.auth-form label, .account-form label { display: block; font-size: 14px; }
.auth-form input, .account-form input, .account-form select { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.auth-form .btn-link { justify-self: center; font-size: 14px; }
.account-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 12px; margin: 0; }
.account-form legend { font-weight: 600; color: var(--ink); padding: 0 6px; }
.account-form .btn { justify-self: start; }
.account-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.account-nav ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.account-nav li + li { border-top: 1px solid var(--line); }
.account-nav a, .account-logout { display: block; width: 100%; padding: 12px 16px; color: var(--text); background: none; border: 0; text-align: left; cursor: pointer; font-size: 14.5px; }
.account-nav a[aria-current="page"] { color: var(--brown); font-weight: 600; box-shadow: inset 3px 0 0 var(--brown); }
.account-body h2 { font-size: 28px; }
.points-card { background: var(--brown-bar); color: #fff; border-radius: 6px; padding: 18px 20px; margin-bottom: 24px; display: grid; gap: 2px; }
.points-card span { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; opacity: .85; }
.points-card strong { font-family: var(--font-head); font-size: 36px; line-height: 1.1; }
.points-card small { font-family: var(--font-body); font-size: 14px; font-weight: 400; opacity: .85; }
.points-card p { margin: 6px 0 0; font-size: 14px; }
.points-card a { color: var(--gold-light); }
.data-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; margin-bottom: 24px; }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.data-table th { background: var(--cream-2); font-weight: 600; color: var(--ink); }
.pts-plus { color: var(--ok); font-weight: 600; }
.pts-minus { color: var(--danger); font-weight: 600; }
.status { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12.5px; font-weight: 500; background: #eee; color: #555; white-space: nowrap; }
.status-processing { background: #fff3cd; color: #7a5b00; }
.status-shipped { background: #e3f2fd; color: #0d47a1; }
.status-completed { background: #e8f5e9; color: #1b5e20; }
.status-cancelled, .status-failed, .status-refunded { background: #fdecea; color: #8a1c1c; }
.coupon-form { display: flex; gap: 8px; flex-wrap: wrap; }
.coupon-form input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.coupon-form .hint { width: 100%; }
.login-nudge { font-size: 13.5px; margin: 0; background: var(--cream); padding: 10px 12px; border-radius: var(--radius); }
.points-toggle { background: var(--cream); padding: 12px; border-radius: var(--radius); border: 1px solid var(--line); }
@media (max-width: 860px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-nav ul { display: flex; overflow-x: auto; }
  .account-nav li + li { border-top: 0; border-left: 1px solid var(--line); }
  .account-nav a, .account-logout { white-space: nowrap; }
  .account-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brown); }
}
@media (max-width: 600px) {
  .data-table thead { display: none; }
  .data-table tr { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .data-table td { border: 0; padding: 4px 12px; }
  .data-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; text-transform: uppercase; color: var(--muted); }
}
