/* Aurelle — deep indigo header, clean white pages, round category images. */
:root {
  --indigo: #2b2466;
  --indigo-2: #3a3280;
  --gold: #c9a45c;
  --ink: #1d1b2c;
  --muted: #6b6980;
  --line: #e6e4ee;
  --bg: #ffffff;
  --soft: #f6f5fa;
  --accent: #2f6fe0;
  --green: #1a9e4a;
  --red: #c0392b;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---- Header ---- */
.site-header { background: var(--indigo); color: #fff; position: sticky; top: 0; z-index: 30; }
.top-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 14px 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.top-left { display: flex; gap: 26px; align-items: center; font-size: 17px; }
.top-left a { text-decoration: none; }
.top-left a:hover, .main-nav a:hover { color: #e9dcc0; }
.underline { text-decoration: underline !important; text-underline-offset: 4px; }
.logo { font-family: var(--serif); font-size: 34px; font-weight: 700; letter-spacing: 1px; text-decoration: none; color: #fff; }
.logo.small { font-size: 28px; color: var(--ink); }
.top-right { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.tagline { margin: 0 8px 0 0; font-size: 16px; text-align: right; padding-right: 16px; border-right: 1px solid rgba(255, 255, 255, 0.2); }
.icon-btn { background: none; border: 0; color: inherit; cursor: pointer; padding: 6px; border-radius: 50%; display: inline-flex; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.cart-btn { position: relative; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--gold); color: var(--indigo); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.menu-btn { display: none; }
.main-nav { display: flex; justify-content: center; gap: 30px; padding: 16px 20px 18px; font-size: 19px; font-weight: 500; }
.main-nav a { text-decoration: none; padding-bottom: 3px; border-bottom: 2px solid transparent; }
.main-nav a.active { border-bottom-color: var(--gold); }
.search-bar { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; padding: 0 20px 16px; }
.search-bar[hidden] { display: none; }
.search-bar input { flex: 1; height: 44px; border-radius: 22px; border: 0; padding: 0 18px; font: inherit; }

/* ---- Common ---- */
main { min-height: 60vh; outline: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 22px; }
.section { padding: 64px 0; }
.section.soft { background: var(--soft); }
.section-title { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 54px); font-weight: 600; text-align: center; margin: 0 0 8px; line-height: 1.1; }
.section-sub { text-align: center; color: var(--muted); font-size: 19px; margin: 0 0 40px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 30px; border-radius: 25px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font-weight: 500; font-size: 17px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink); color: #fff; }
.btn.dark { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.btn.dark:hover { background: var(--indigo-2); }
.btn.wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn.wa:hover { background: #1ebe5a; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.center { text-align: center; }
.muted { color: var(--muted); }
.price { font-weight: 600; }
.old-price { color: var(--muted); text-decoration: line-through; font-weight: 400; margin-left: 8px; font-size: 0.9em; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.3px; }
.tag.sale { background: var(--red); color: #fff; }
.tag.out { background: #555; color: #fff; }

/* Photo placeholder (shown until a product photo exists) */
.ph { position: relative; background: linear-gradient(135deg, #ece9f6, #f7f1e6); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.missing img { display: none; }
.ph.missing::after { content: attr(data-initial); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 44px; color: #a39cc6; }

/* ---- Hero ---- */
.hero { position: relative; min-height: 460px; display: flex; align-items: center; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 500px at 80% 20%, #4b42a0 0%, transparent 60%), linear-gradient(120deg, #231d58, #3a3280); }
.hero .ph-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.35; }
.hero-inner { position: relative; max-width: 1240px; margin: 0 auto; padding: 70px 22px; width: 100%; }
.hero h1 { font-family: var(--serif); font-size: clamp(42px, 6vw, 78px); line-height: 1.02; margin: 0 0 16px; font-weight: 600; max-width: 700px; }
.hero p { font-size: 20px; max-width: 540px; margin: 0 0 30px; color: #e7e3f7; }
.hero .btn { background: #fff; color: var(--indigo); border-color: #fff; }
.hero .btn:hover { background: var(--gold); border-color: var(--gold); color: var(--indigo); }

/* ---- Categories carousel ---- */
.cat-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 36px) / 6); gap: 36px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
.cat-track::-webkit-scrollbar { display: none; }
.cat { scroll-snap-align: start; text-align: center; text-decoration: none; }
.cat .ph { width: 100%; aspect-ratio: 1; border-radius: 50%; }
.cat .ph img { transition: transform 0.4s ease; }
.cat:hover .ph img { transform: scale(1.06); }
.cat-name { margin-top: 22px; font-size: 26px; text-transform: uppercase; line-height: 1.2; }
.dots { display: flex; justify-content: center; gap: 12px; margin: 30px 0 34px; }
.dots button { width: 32px; height: 4px; border: 0; background: #cfcdd8; cursor: pointer; padding: 0; }
.dots button.on { width: 50px; background: var(--ink); }

/* ---- Product grid ---- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.card { display: flex; flex-direction: column; }
.card .ph { aspect-ratio: 1; border-radius: 10px; }
.card .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 1; }
.card-name { font-size: 18px; margin: 14px 0 4px; text-decoration: none; }
.card-name:hover { text-decoration: underline; }
.card-cat { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.card .price { margin: 4px 0 14px; font-size: 17px; }
.card .btn { margin-top: auto; height: 44px; font-size: 15px; }

/* ---- Perks ---- */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.perk { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.perk h3 { font-family: var(--serif); font-size: 26px; margin: 0 0 6px; }
.perk p { margin: 0; color: var(--muted); }

/* ---- Shop page ---- */
.page-head { padding: 44px 0 10px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(36px, 4.5vw, 52px); margin: 0; font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 22px 0 30px; }
.chip { height: 40px; padding: 0 18px; border-radius: 20px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 15px; }
.chip.on { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.filters select, .filters input { height: 40px; border-radius: 20px; border: 1px solid var(--line); padding: 0 14px; font: inherit; font-size: 15px; background: #fff; }
.filters .spacer { flex: 1; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; font-size: 18px; }

/* ---- Product page ---- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 40px 0 60px; }
.gallery .ph { aspect-ratio: 1; border-radius: 14px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 74px; height: 74px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.thumbs button.on { border-color: var(--indigo); }
.thumbs .ph { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { text-decoration: none; }
.product h1 { font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); line-height: 1.1; margin: 0 0 12px; font-weight: 600; }
.product .price { font-size: 26px; }
.product .desc { color: #3c3a4d; margin: 20px 0 26px; white-space: pre-line; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 25px; height: 50px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 20px; }
.qty span { min-width: 34px; text-align: center; font-weight: 600; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.buy-row .btn { flex: 1; min-width: 180px; }
.note { font-size: 14px; color: var(--muted); }

/* ---- Text pages ---- */
.prose { max-width: 780px; margin: 0 auto; padding: 20px 0 70px; font-size: 17px; }
.prose h2 { font-family: var(--serif); font-size: 30px; margin: 30px 0 8px; }
.editable-note { background: #fff8e6; border: 1px solid #f0d9a0; color: #7a5a12; border-radius: 10px; padding: 10px 14px; font-size: 14px; }

/* ---- Cart drawer ---- */
.drawer-back { position: fixed; inset: 0; background: rgba(20, 16, 40, 0.45); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 100%); background: #fff; z-index: 41; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.28s ease; box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-family: var(--serif); font-size: 30px; }
.drawer-head .icon-btn:hover { background: var(--soft); }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 20px 22px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line .ph { width: 72px; height: 88px; border-radius: 8px; }
.line .ph.missing::after { font-size: 26px; }
.line-name { font-weight: 500; text-decoration: none; }
.line .qty { height: 36px; margin-top: 8px; }
.line .qty button { width: 32px; font-size: 17px; }
.line-remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; padding: 0; margin-top: 6px; }
.total-row { display: flex; justify-content: space-between; font-size: 19px; font-weight: 600; margin-bottom: 14px; }
.form label { display: block; font-size: 14px; font-weight: 500; margin: 10px 0 4px; }
.form input, .form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 15px; }
.form textarea { resize: vertical; min-height: 60px; }
.form .error { color: var(--red); font-size: 14px; min-height: 1.2em; margin: 6px 0; }

.wa-float { position: fixed; right: 22px; bottom: 22px; width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); z-index: 25; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 26px; z-index: 50; font-size: 15px; }

/* ---- Footer ---- */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); margin-top: 20px; }
.footer-grid { max-width: 1240px; margin: 0 auto; padding: 50px 22px 20px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; margin: 6px 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 6px 0; }
.footer-grid a { text-decoration: none; color: var(--muted); }
.footer-grid a:hover { color: var(--ink); }
.footer-grid p { color: var(--muted); margin: 6px 0; }
.copyright { text-align: center; color: var(--muted); font-size: 14px; padding: 16px; border-top: 1px solid var(--line); margin: 0; }

/* ---- Smaller screens ---- */
@media (max-width: 1100px) {
  .tagline { display: none; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cat-track { grid-auto-columns: calc((100% - 3 * 28px) / 4); gap: 28px; }
}
@media (max-width: 820px) {
  .top-bar { grid-template-columns: auto 1fr auto; padding: 10px 16px; }
  .top-left { display: none; }
  .logo { font-size: 30px; }
  .top-bar .logo { grid-column: 1; }
  .menu-btn { display: inline-flex; }
  .cart-btn { width: 44px; height: 44px; }
  .main-nav { display: none; flex-direction: column; gap: 0; padding: 0 16px 10px; font-size: 18px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .main-nav a.active { border-bottom-color: rgba(255, 255, 255, 0.1); color: #e9dcc0; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .cat-track { grid-auto-columns: calc((100% - 2 * 18px) / 2.6); gap: 18px; }
  .cat-name { font-size: 18px; margin-top: 12px; }
  .perks { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 44px 0; }
  .hero { min-height: 380px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .card-name { font-size: 16px; }
  .card .btn { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---- Colours ---- */
.ph-link { position: relative; display: block; }
.swatch-row { display: flex; align-items: center; gap: 5px; margin: 2px 0 2px; flex-wrap: wrap; }
.swatch-row .dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.15); }
.swatch-row .more, .swatch-row .count { font-size: 12px; color: var(--muted); }
.swatch-row .count { margin-left: 4px; }
.color-pick { margin: 18px 0 4px; }
.color-label { font-size: 15px; margin-bottom: 10px; }
.color-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.swatch.on { box-shadow: 0 0 0 2px var(--indigo); }
.cart-count[hidden] { display: none; }
