/* ============================================================
   Anoli Art — theme.css
   Tokens, base, header, footer, buttons, tweaks panel
   ============================================================ */

/* ---------- Fonts ---------- */
/* Cormorant Garamond (display), Jost (UI/body), Pinyon Script (accent) */

/* ---------- Palette tokens ---------- */
:root,
body[data-palette="oxblood"] {
  --primary: #6E1423;
  --primary-deep: #2B1416;
  --garnet: #9A2A3A;
  --gold: #C9A24B;
  --gold-deep: #9A7B33;
  --gold-soft: #E7C98E;
  --ink: #2B1416;
  --ink-soft: #6E6457;
  --surface: #FBF9F4;
  --ivory: #F6EFE3;
  --bg-1: #FBF7EE;
  --bg-2: #F3E9D6;
  --hairline: #E4D8C2;
  --on-primary: #F6EFE3;
  --dark-bg: #211012;
  --dark-bg-2: #2B1416;
}
body[data-palette="bordeaux"] {
  --primary: #7A1E2E;
  --primary-deep: #4A2126;
  --garnet: #9A3A48;
  --gold: #C99A86;
  --gold-deep: #B07D6B;
  --gold-soft: #E7C9C4;
  --ink: #44232A;
  --ink-soft: #8A6A66;
  --surface: #FFFFFF;
  --ivory: #FBF4F1;
  --bg-1: #FBF4F1;
  --bg-2: #F2DFDA;
  --hairline: #EBD8D3;
  --on-primary: #FBF4F1;
  --dark-bg: #3A1820;
  --dark-bg-2: #4A2126;
}
body[data-palette="aubergine"] {
  --primary: #3D2438;
  --primary-deep: #241320;
  --garnet: #5A3450;
  --gold: #C99A86;
  --gold-deep: #A87E68;
  --gold-soft: #D6B58E;
  --ink: #2A1726;
  --ink-soft: #6E5A68;
  --surface: #FFFFFF;
  --ivory: #F6EEF2;
  --bg-1: #F7F1F5;
  --bg-2: #EFE2EC;
  --hairline: #E8D9E4;
  --on-primary: #F1E8EC;
  --dark-bg: #1E0F1A;
  --dark-bg-2: #2A1726;
}

/* mood-driven spacing */
:root { --section-pad: 104px; --container: 1280px; }
body[data-mood="editorial"] { --section-pad: 132px; }
body[data-mood="atelier"]   { --section-pad: 100px; }
body[data-mood="opulent"]   { --section-pad: 96px; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  font-family: 'Jost', sans-serif;
  color: var(--ink);
  background: var(--bg-1);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Type helpers ---------- */
.serif { font-family: 'Cormorant Garamond', serif; }
.script { font-family: 'Pinyon Script', cursive; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 500;
}
body[data-mood="editorial"] .eyebrow { letter-spacing: 0.46em; }
.eyebrow-center { display: flex; align-items: center; justify-content: center; gap: 16px; }
.eyebrow-center::before, .eyebrow-center::after {
  content: ""; width: 38px; height: 1px; background: var(--gold-deep); opacity: .55;
}
.display {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  line-height: 1.04; letter-spacing: 0.005em; color: var(--primary);
}
.section-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(30px, 4vw, 50px); line-height: 1.08; color: var(--primary);
}
.lede { font-weight: 300; font-size: 16.5px; line-height: 1.75; color: var(--ink-soft); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 40px; }
.section { padding: var(--section-pad) 0; }
.center { text-align: center; }
.sec-head { max-width: 640px; margin: 0 auto 56px; }
.sec-head .section-title { margin-top: 18px; }
.sec-head .lede { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  padding: 15px 32px; border-radius: 999px; transition: all .35s cubic-bezier(.2,.7,.3,1);
  border: 1px solid transparent; white-space: nowrap;
}
body[data-mood="atelier"] .btn { border-radius: 2px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-1px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); }
.btn-outline { border-color: var(--gold-deep); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn-ghost { color: var(--ink-soft); }
.btn-ghost:hover { color: var(--primary); }
.btn-gold { background: var(--gold); color: var(--primary-deep); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 40px; font-size: 12px; }

/* link with underline sweep */
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary); font-weight: 500;
}
.link-arrow svg { transition: transform .35s ease; }
.link-arrow:hover svg { transform: translateX(6px); }

/* ============================================================
   HEADER
   ============================================================ */
.hdr {
  position: sticky; top: 0; z-index: 60; background: var(--bg-1);
  border-bottom: 1px solid var(--hairline); transition: box-shadow .3s, padding .3s, background .3s;
}
.admin-bar .hdr { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .hdr { top: 46px; } }
.hdr.scrolled { box-shadow: 0 8px 30px -18px rgba(40,20,10,.4); }
.hdr .container { display: flex; flex-direction: column; }
.hdr-logo img { height: 56px; width: auto; transition: height .3s; }
.hdr.scrolled .hdr-logo img { height: 46px; }
.hdr-icons { display: flex; align-items: center; gap: 18px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); transition: color .25s; }
.icon-btn:hover { color: var(--primary); }
.cart-count {
  position: absolute; top: -7px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--primary); color: var(--on-primary); border-radius: 999px;
  font-size: 10px; font-weight: 500; display: flex; align-items: center; justify-content: center;
}
.hdr-announce {
  background: var(--primary-deep); color: var(--gold-soft); text-align: center;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; padding: 9px 16px; font-weight: 300;
}

/* Two layout blocks share one markup; toggled per nav variant */
.hdr-classic, .hdr-single { display: none; }
.hdr-announce { display: none; }

/* link styling shared by row2 / inline / left menus */
.hdr-menu a {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
  position: relative; padding: 6px 0; transition: color .25s;
}
.hdr-menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold-deep); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.hdr-menu a:hover { color: var(--primary); }
.hdr-menu a:hover::after { transform: scaleX(1); }

/* ---- classic: tagline | centered logo | icons, links below ---- */
body[data-nav="classic"] .hdr-classic { display: block; }
.hdr-row1 { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 20px 0; }
.hdr-tagline { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.hdr-classic .hdr-logo { justify-self: center; }
.hdr-classic .hdr-icons { justify-self: end; }
.hdr-row2 { display: flex; justify-content: center; gap: 34px; padding-bottom: 18px; }

/* ---- minimal: logo left · centered links · icons right ---- */
body[data-nav="minimal"] .hdr-single { display: flex; align-items: center; gap: 40px; height: 80px; }
body[data-nav="minimal"] .hdr-single .hdr-logo { order: 0; }
body[data-nav="minimal"] .hdr-menu-inline { order: 1; flex: 1; display: flex; justify-content: center; gap: 30px; }
body[data-nav="minimal"] .hdr-single .hdr-icons { order: 2; }
body[data-nav="minimal"] .hdr-menu-left { display: none; }

/* ---- bordered: announce bar · menu left | logo center | icons right ---- */
body[data-nav="bordered"] .hdr-single { display: flex; align-items: center; height: 94px; }
body[data-nav="bordered"] .hdr-announce { display: block; }
body[data-nav="bordered"] .hdr-menu-left { order: 0; flex: 1; display: flex; gap: 28px; }
body[data-nav="bordered"] .hdr-single .hdr-logo { order: 1; }
body[data-nav="bordered"] .hdr-single .hdr-icons { order: 2; flex: 1; justify-content: flex-end; }
body[data-nav="bordered"] .hdr-menu-inline { display: none; }
body[data-nav="bordered"] .hdr { border-bottom-width: 2px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--primary-deep); color: var(--gold-soft); padding: 84px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-brand img { height: 70px; width: auto; margin-bottom: 22px; }
.footer-brand p { font-weight: 300; font-size: 14px; line-height: 1.8; color: #C9B49A; max-width: 280px; }
.footer-col h4 {
  font-family: 'Jost'; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px; font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.footer-col a { font-size: 14px; font-weight: 300; color: #D8C6AE; transition: color .25s; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-news p { font-size: 14px; font-weight: 300; color: #C9B49A; line-height: 1.7; margin-bottom: 18px; }
.footer-news form { display: flex; border-bottom: 1px solid rgba(201,162,75,.5); }
.footer-news input {
  flex: 1; background: transparent; border: none; color: var(--gold-soft); padding: 10px 0;
  font-family: inherit; font-size: 14px; outline: none;
}
.footer-news input::placeholder { color: #9A876A; }
.footer-news button { color: var(--gold); font-size: 18px; padding: 0 6px; }
.footer-bottom {
  margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(201,162,75,.22);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 12px; color: #A8967C; font-weight: 300; letter-spacing: 0.04em; }
.footer-script { font-family: 'Clicker Script', cursive; font-size: 26px; color: var(--gold); }

/* ============================================================
   TWEAKS PANEL (vanilla)
   ============================================================ */
#tweaks {
  position: fixed; top: 18px; right: 18px; z-index: 200; width: 300px;
  background: #1B1310; color: #EDE3D2; border: 1px solid rgba(201,162,75,.34);
  border-radius: 14px; box-shadow: 0 30px 70px -24px rgba(0,0,0,.7);
  font-family: 'Jost', sans-serif; display: none; overflow: hidden;
}
#tweaks.show { display: block; }
.tw-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid rgba(201,162,75,.2); cursor: move; }
.tw-head h3 { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; color: var(--gold-soft, #E7C98E); }
.tw-close { color: #C9B49A; font-size: 16px; line-height: 1; }
.tw-close:hover { color: #fff; }
.tw-body { padding: 8px 18px 20px; max-height: 76vh; overflow-y: auto; }
.tw-sec { margin-top: 18px; }
.tw-sec > label { display: block; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: #B89653; margin-bottom: 9px; font-weight: 500; }
.tw-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.tw-seg button {
  flex: 1; min-width: fit-content; padding: 8px 10px; font-size: 11px; letter-spacing: 0.04em;
  background: rgba(255,255,255,.05); color: #D8C6AE; border: 1px solid transparent; border-radius: 7px;
  transition: all .2s; text-transform: capitalize;
}
.tw-seg button:hover { background: rgba(255,255,255,.1); }
.tw-seg button.active { background: var(--gold, #C9A24B); color: #1B1310; font-weight: 500; }
.tw-swatches { display: flex; gap: 8px; }
.tw-sw { flex: 1; height: 38px; border-radius: 7px; border: 2px solid transparent; position: relative; overflow: hidden; }
.tw-sw.active { border-color: var(--gold-soft, #E7C98E); }
.tw-note { font-size: 11px; color: #9A876A; font-weight: 300; line-height: 1.5; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(201,162,75,.15); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translate(-50%, 20px);
  background: var(--primary-deep); color: var(--gold-soft); padding: 14px 26px; border-radius: 999px;
  font-size: 12.5px; letter-spacing: 0.1em; z-index: 150; opacity: 0; pointer-events: none;
  transition: all .4s cubic-bezier(.2,.7,.3,1); box-shadow: 0 18px 40px -18px rgba(0,0,0,.6);
  border: 1px solid rgba(201,162,75,.3);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Mobile menu panel ---------- */
.hdr-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hdr-burger span { width: 22px; height: 1.5px; background: var(--ink); display: block; transition: transform .3s; }
.hdr-mobile {
  display: none; flex-direction: column; gap: 4px; padding: 10px 22px 22px;
  border-top: 1px solid var(--hairline); background: var(--bg-1);
}
.hdr-mobile a { padding: 13px 0; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--hairline); }
body.nav-open .hdr-mobile { display: flex; }

/* ---------- Responsive header ---------- */
@media (max-width: 900px) {
  .hdr-classic { display: none !important; }
  .hdr-single { display: flex !important; align-items: center; height: 68px !important; gap: 0 !important; }
  .hdr-menu-inline, .hdr-menu-left { display: none !important; }
  .hdr-single .hdr-logo { order: 1 !important; margin: 0 auto; }
  .hdr-single .hdr-icons { order: 2 !important; flex: 0 0 auto !important; }
  .hdr-burger { display: flex; order: 0; }
  .hdr-announce { display: none !important; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .container { padding: 0 22px; }
  #tweaks { width: calc(100vw - 36px); }
}
@media (min-width: 901px) { .hdr-mobile { display: none !important; } }
