/* AYLIN storefront. Two themes share one set of tokens: luxe (default) and midnight. */
:root, [data-theme="luxe"] {
  --bg: #fbf7f2; --bg-alt: #f4ebe4; --card: #ffffff;
  --ink: #2b2023; --muted: #6f6266; --line: #e8dcd4;
  --accent: #9c6b73; --accent-ink: #ffffff; --silver: #9aa0a8;
  --hero-a: #f1d9d3; --hero-b: #e4e8ef;
  --announce-bg: #5a3c44; --announce-ink: #fbf1ee;
  --shadow: 0 10px 30px rgba(90,60,68,.10);
  --logo-filter: none;
}
[data-theme="midnight"] {
  --bg: #000; --bg-alt: #07080b; --card: #0b0c11;
  --ink: #e8eaee; --muted: #80848b; --line: #1c1e27;
  --accent: #c9ccd1; --accent-ink: #07080c; --silver: #c9ccd1;
  --hero-a: #0d1020; --hero-b: #000;
  --announce-bg: #181b27; --announce-ink: #e8eaee;
  --shadow: 0 10px 30px rgba(0,0,0,.5);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font: 300 16px/1.7 "Jost", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: "Cormorant Garamond", serif; font-weight: 400; line-height: 1.15; letter-spacing: .01em; }
h1 { font-size: clamp(36px, 6vw, 68px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 22px; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.eyebrow { font-size: 12px; letter-spacing: .35em; text-transform: uppercase; color: var(--muted); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 40px; display: grid; gap: 10px; }
.center { text-align: center; }

/* Silver divider and starfield, carried over from the coming-soon page */
.section-head::after, .page-head::after { content: ""; justify-self: center; width: min(260px, 50vw); height: 1px; margin-top: 10px; background: linear-gradient(90deg, transparent, var(--silver), transparent); opacity: .5; }
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: none; }
[data-theme="midnight"] #sky { display: block; }
main, footer.site { position: relative; z-index: 1; }
.hero:not(.has-img) { background: radial-gradient(120% 90% at 20% 10%, var(--hero-a), transparent 60%), radial-gradient(100% 80% at 90% 90%, var(--hero-b), transparent 60%); }
.section.alt { background: color-mix(in srgb, var(--bg-alt) 72%, transparent); }
[data-theme="midnight"] .brand, [data-theme="midnight"] .hero h1 { font-weight: 300; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  letter-spacing: .18em; text-transform: uppercase; font-size: 12px; transition: .25s; border-radius: 999px;
}
.btn:hover { background: transparent; color: var(--ink); box-shadow: var(--shadow); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn:focus-visible, .chip:focus-visible, .size:focus-visible, .cdot:focus-visible, .icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn.wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.btn.wa:hover { background: transparent; color: #1fa855; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* Header */
.announce { background: var(--announce-bg); color: var(--announce-ink); text-align: center; font-size: 12px; letter-spacing: .18em; padding: 9px 16px; }
header.site {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { font-family: "Cormorant Garamond", serif; font-size: 28px; letter-spacing: .45em; padding-left: .45em; }
.menu { display: flex; gap: 32px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.menu a { padding: 6px 0; border-bottom: 1px solid transparent; transition: .2s; }
.menu a:hover, .menu a.on { border-color: var(--accent); color: var(--accent); }
.nav-r { display: flex; align-items: center; gap: 14px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.burger { display: none; }
@media (max-width: 820px) {
  .burger { display: grid; }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); display: none; padding: 8px 20px 18px;
  }
  .menu.open { display: flex; }
  .menu a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .brand { font-size: 24px; }
}

/* Hero */
.hero {
  position: relative; min-height: min(86vh, 760px); display: grid; place-items: center; text-align: center; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 10%, var(--hero-a), transparent 60%), radial-gradient(100% 80% at 90% 90%, var(--hero-b), transparent 60%), var(--bg);
}
.hero.has-img { color: #fff; background-size: cover; background-position: center; }
.hero.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,10,14,.35), rgba(20,10,14,.55)); }
.hero-in { position: relative; display: grid; gap: 22px; justify-items: center; padding: 60px 0; max-width: 780px; }
.hero .eyebrow { color: inherit; opacity: .8; letter-spacing: .55em; padding-left: .55em; }
.hero p { font-size: clamp(16px, 2vw, 20px); color: inherit; opacity: .85; max-width: 520px; }
.hero-mark { width: 110px; opacity: .9; }
[data-theme="luxe"] .hero:not(.has-img) .hero-mark { filter: brightness(.55) saturate(.8); }

/* Cards & grids */
.grid { display: grid; gap: 28px 20px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; } }
.card { display: grid; gap: 12px; }
.thumb { position: relative; aspect-ratio: 2/3; overflow: hidden; background: var(--bg-alt); border-radius: 6px; transition: box-shadow .3s; }
.card:hover .thumb { box-shadow: var(--shadow); }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform .6s; }
.card:hover .thumb img { transform: scale(1.04); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: var(--accent-ink); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.badge.out { background: var(--muted); }
.card h3 { font-size: 20px; }
.price { font-size: 15px; letter-spacing: .05em; color: var(--accent); }
.pill { display: inline-block; margin-left: 10px; background: var(--accent); color: var(--accent-ink); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; vertical-align: middle; }
.sale-note { color: var(--accent); font-size: 13px; letter-spacing: .08em; margin-top: -8px; }
.price s { color: var(--muted); opacity: .8; margin-right: 8px; }
.swatches { display: flex; gap: 6px; }
.sw { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); }

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 800px) { .cats { grid-template-columns: repeat(2, 1fr); } }
.cat { position: relative; aspect-ratio: 4/5; display: grid; place-items: end start; padding: 20px; overflow: hidden; border-radius: 4px; background: var(--bg-alt); }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cat:hover img { transform: scale(1.05); }
.cat span { position: relative; font-family: "Cormorant Garamond", serif; font-size: 26px; color: var(--ink); background: var(--bg); padding: 6px 16px; border-radius: 999px; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
@media (max-width: 800px) { .values { grid-template-columns: 1fr; } }
.values > * { padding: 28px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.values h3 { margin-bottom: 8px; color: var(--accent); }
.values p { color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.split.solo { grid-template-columns: 1fr; max-width: 720px; margin-inline: auto; }
.split .pic { aspect-ratio: 4/5; background: var(--bg-alt); border-radius: 4px; overflow: hidden; }
.split .pic img { width: 100%; height: 100%; object-fit: cover; }
.split .txt { display: grid; gap: 18px; justify-items: start; color: var(--muted); }
.split .txt h2 { color: var(--ink); }

/* Shop */
.page-head { padding: 56px 0 28px; text-align: center; display: grid; gap: 10px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 13px; letter-spacing: .08em; transition: .2s; }
.chip.on, .chip:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
select.sort { background: var(--card); color: var(--ink); border: 1px solid var(--line); padding: 9px 14px; border-radius: 999px; font: inherit; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* Product */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); padding: 40px 0 80px; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } }
.gallery { display: grid; gap: 12px; }
.gallery .main { aspect-ratio: 5/8; background: var(--bg-alt); border-radius: 4px; overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumbs button { width: 72px; aspect-ratio: 5/8; padding: 0; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--bg-alt); opacity: .65; }
.thumbs button.on { opacity: 1; border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info { display: grid; gap: 22px; align-content: start; }
.info .price { font-size: 20px; }
.opt h4 { font-weight: 400; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.opt .row { display: flex; gap: 8px; flex-wrap: wrap; }
.size { min-width: 48px; padding: 10px 14px; border: 1px solid var(--line); background: transparent; border-radius: 999px; }
.size:hover { border-color: var(--accent); }
.size.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cdot { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border: 1px solid var(--line); border-radius: 999px; background: transparent; }
.cdot i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); }
.cdot:hover { border-color: var(--accent); }
.cdot.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.hint { font-size: 13px; color: var(--accent); font-weight: 400; min-height: 20px; }
.details { color: var(--muted); }
.details ul { padding-left: 18px; }
.crumbs { font-size: 13px; color: var(--muted); padding-top: 24px; }

/* Text pages */
.prose { max-width: 720px; margin-inline: auto; display: grid; gap: 20px; color: var(--muted); font-size: 17px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid > div { transition: box-shadow .3s, border-color .3s; padding: 28px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); display: grid; gap: 6px; }
.contact-grid > div:hover { box-shadow: var(--shadow); border-color: var(--accent); }
.contact-grid h3 { font-size: 20px; color: var(--accent); }
.contact-grid p, .contact-grid a { color: var(--muted); }

/* Footer */
footer.site { position: relative; padding: 64px 0 32px; background: color-mix(in srgb, var(--bg-alt) 72%, transparent); }
footer.site::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(420px, 70vw); height: 1px; background: linear-gradient(90deg, transparent, var(--silver), transparent); opacity: .6; }
.foot { display: grid; justify-items: center; text-align: center; gap: 34px; }
.foot > div { display: grid; justify-items: center; gap: 6px; }
.foot h4 { font-weight: 400; letter-spacing: .4em; padding-left: .4em; text-transform: uppercase; font-size: 12px; color: var(--accent); margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; font-size: 14px; letter-spacing: .08em; }
.foot a { transition: color .2s; }
.foot a:hover { color: var(--accent); }
.foot .logo { width: 130px; margin-bottom: 6px; }
[data-theme="luxe"] .foot .logo { filter: brightness(.6); }
.legal { text-align: center; color: var(--muted); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }

.fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #1fa855; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.fab svg { width: 28px; height: 28px; fill: #fff; }
.theme-toggle { position: fixed; left: 14px; bottom: 14px; z-index: 40; display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.theme-toggle button { background: none; border: 0; padding: 8px 14px; }
.theme-toggle button.on { background: var(--accent); color: var(--accent-ink); }
.fade { animation: fade .6s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
