@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Bai+Jamjuree:wght@400;500;600;700&family=Trirong:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* PALETTE — Celestial Atelier (bright luxury) */
  --paper:        oklch(0.972 0.008 80);
  --paper-soft:   oklch(0.945 0.012 80);
  --paper-warm:   oklch(0.915 0.018 75);
  --ink:          oklch(0.16 0.025 290);
  --ink-mid:      oklch(0.32 0.035 290);
  --ink-soft:     oklch(0.50 0.020 290);
  --ink-faint:    oklch(0.68 0.015 290);
  --rule:         oklch(0.83 0.012 290);
  --rule-soft:    oklch(0.90 0.010 290);
  --gold:         oklch(0.70 0.105 78);
  --gold-deep:    oklch(0.58 0.110 70);
  --gold-light:   oklch(0.82 0.075 82);
  --amethyst:     oklch(0.42 0.130 295);
  --amethyst-deep:oklch(0.30 0.110 295);
  --amethyst-soft:oklch(0.84 0.040 295);

  /* Legacy mappings for other pages */
  --primary: var(--ink);
  --primary-deep: oklch(0.10 0.020 290);
  --primary-light: var(--ink-mid);
  --accent: var(--gold);
  --accent-light: var(--gold-light);
  --accent-dark: var(--gold-deep);
  --text: var(--ink);
  --text-muted: var(--ink-soft);
  --text-dark: var(--ink);
  --surface: var(--paper-soft);
  --surface-hover: var(--paper-warm);
  --surface-glass: rgba(247,243,234,.86);
  --border: var(--rule);
  --border-light: var(--rule-soft);
  --border-gold: var(--gold);
  --success: #2ecc71;
  --error: #e74c3c;
  --warning: #f39c12;
  --info: #3498db;
  --glass: rgba(247,243,234,.92);
  --glass-light: rgba(247,243,234,.6);
  --shadow-gold: 0 4px 30px rgba(40,20,70,.06);
  --shadow-deep: 0 20px 60px rgba(20,10,40,.18);
  --shadow-soft: 0 1px 2px rgba(40,20,70,.04), 0 8px 24px rgba(40,20,70,.06);
  --shadow-card: 0 1px 2px rgba(40,20,70,.05), 0 12px 32px rgba(40,20,70,.08);
  --shadow-luxury: var(--shadow-card);
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 2px;
  --radius-xl: 2px;
  --radius-2xl: 2px;

  /* Fonts — Celestial Atelier */
  --font-thai: 'Bai Jamjuree', system-ui, sans-serif;
  --font-serif: 'Trirong', 'Cormorant Garamond', serif;
  --font-display: 'Cormorant Garamond', 'Trirong', serif;
  --thai-display: 'Trirong', 'Cormorant Garamond', serif;
  --body: 'Bai Jamjuree', 'Cormorant Garamond', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --max-width: 1280px;
  --nav-height: 84px;
  --bottom-nav-height: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
  font-weight: 500;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Paper grain texture */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(50,30,90,.025) 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 80%, rgba(50,30,90,.022) 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 60%, rgba(50,30,90,.02) 50%, transparent 51%);
  background-size: 220px 220px, 180px 180px, 260px 260px;
  opacity: .6;
}
main, header, footer, section, nav, .navbar { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; transition: color .25s; }
a:hover { color: var(--amethyst); }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 48px; }
.narrow { max-width: 1080px; margin: 0 auto; padding: 0 48px; }

/* Type system */
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -.005em; line-height: 1.05; }
.display-thai { font-family: var(--thai-display); font-weight: 600; line-height: 1.15; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: .04em; font-weight: 500; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft);
}
.eyebrow .roman { color: var(--gold-deep); }
.gold { color: var(--gold-deep); }
.amethyst { color: var(--amethyst); }
.ital { font-family: var(--font-display); font-style: italic; font-weight: 500; }

/* Section header pattern */
.sec-head {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr);
  gap: 64px; align-items: end; margin-bottom: 72px;
}
.sec-head .label { display: flex; flex-direction: column; gap: 14px; padding-top: 10px; border-top: 1px solid var(--rule); }
.sec-head .label .roman { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .32em; color: var(--gold-deep); }
.sec-head .label .en { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .28em; color: var(--ink-soft); text-transform: uppercase; }
.sec-head h2 { font-family: var(--thai-display); font-size: clamp(36px, 4.5vw, 64px); font-weight: 600; line-height: 1.15; }
.sec-head h2 .ital { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--amethyst); }
.sec-head p { font-size: 15px; color: var(--ink-soft); max-width: 560px; margin-top: 18px; }

/* ==================== NAVIGATION ==================== */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(247,243,234,.86);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--rule-soft);
  height: var(--nav-height);
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.navbar.scrolled {
  background: rgba(247,243,234,.96);
  border-bottom-color: var(--rule);
  box-shadow: var(--shadow-soft);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: 1fr;
  align-items: center; height: 100%; gap: 24px;
}
.nav-logo {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-align: center; padding: 6px 14px; grid-column: 2; grid-row: 1;
}
.nav-logo .logo-icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
}
.nav-logo .logo-icon img { width: 44px; height: 44px; opacity: .92; }
.nav-logo span, .nav-logo .wordmark {
  font-family: var(--font-display); font-size: 14px; letter-spacing: .42em;
  color: var(--ink); font-weight: 600; padding-left: .42em; margin-top: 2px;
}
.nav-links {
  display: flex; gap: 36px; align-items: center; list-style: none; grid-column: 1; grid-row: 1;
  white-space: nowrap; overflow: visible;
}
.nav-links li { position: relative; }
.nav-links a {
  font-family: var(--body); font-size: 14px; font-weight: 600;
  color: var(--ink-mid); transition: color .25s; padding: 6px 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-arrow { font-size: 8px; margin-left: 4px; color: var(--ink-faint); }

/* Nav dropdown */
.nav-dropdown {
  display: none; position: absolute; top: 100%; left: -12px;
  background: var(--paper); border: 1px solid var(--rule);
  min-width: 280px; padding: 8px; padding-top: 20px;
  box-shadow: var(--shadow-card); z-index: 100;
}
/* Invisible bridge so mouse can travel from link to dropdown */
.nav-dropdown::before {
  content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px;
}
.nav-links li:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: flex; gap: 14px; align-items: flex-start; padding: 12px 16px;
  color: var(--ink); font-size: 14px;
}
.nav-dropdown a:hover { background: var(--paper-soft); }
.dd-icon { font-size: 1.2rem; }
.dd-text { display: flex; flex-direction: column; }
.dd-label { font-weight: 600; font-size: 14px; }
.dd-sub { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.nav-dropdown-divider { height: 1px; background: var(--rule-soft); margin: 4px 0; }

.nav-actions {
  display: flex; gap: 16px; align-items: center; justify-content: flex-end; grid-column: 3; grid-row: 1;
  white-space: nowrap;
}
.lang-switcher { display: flex; gap: 2px; }
.lang-btn {
  padding: 2px 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em;
  color: var(--ink-faint); text-transform: uppercase; background: none; border: none; cursor: pointer;
  transition: color .2s;
}
.lang-btn.active { color: var(--ink); border-bottom: 1px solid var(--gold); }
/* ===== Top Bar ===== */
.top-bar { background: var(--ink); color: var(--paper-warm); padding: 6px 0; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.top-bar-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 48px; display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { display: flex; gap: 18px; align-items: center; }
.top-bar-left .glyph { font-size: 11px; letter-spacing: .25em; opacity: .7; }
.top-bar-right { display: flex; gap: 18px; align-items: center; }
.top-bar-right a { color: var(--gold-light); }
.top-bar-right a:hover { color: var(--gold); }
/* Lang buttons inside dark top-bar */
.top-bar .lang-btn { color: rgba(255,255,255,.4); }
.top-bar .lang-btn:hover { color: rgba(255,255,255,.8); }
.top-bar .lang-btn.active { color: var(--gold-light); border-bottom-color: var(--gold); }
.nav-cart {
  position: relative; cursor: pointer; font-size: 1.3rem; color: var(--ink-mid);
  transition: color .25s;
}
.nav-cart:hover { color: var(--ink); }
.badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--gold-deep); color: var(--paper);
  font-size: 10px; font-weight: 700; width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border: 1px solid var(--gold-deep);
  font-family: var(--body); font-size: 14px; font-weight: 700; letter-spacing: .06em;
  transition: all .25s;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 50%, var(--gold-deep));
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,247,228,.4) inset, 0 6px 16px -8px var(--gold-deep);
}
.nav-cta:hover { background: var(--gold-deep); color: var(--paper); border-color: var(--gold-deep); }
.nav-cta-sub {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 1.5px solid var(--gold);
  font-family: var(--body); font-size: 13px; font-weight: 600; letter-spacing: .04em;
  transition: all .25s; border-radius: 6px;
  background: transparent; color: var(--gold);
  text-decoration: none; white-space: nowrap;
}
.nav-cta-sub:hover { background: var(--gold); color: var(--ink); }
.menu-toggle {
  display: none; font-size: 1.5rem; color: var(--ink-mid); cursor: pointer; background: none; border: none;
}

/* User menu dropdown (auth area) */
.user-menu-wrap {
  position: relative; display: flex; align-items: center;
}
.user-menu-btn {
  background: none; border: 2px solid var(--rule); border-radius: 50%;
  cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; overflow: hidden; transition: border-color .25s;
}
.user-menu-btn:hover { border-color: var(--gold); }
.user-menu-btn img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.user-menu {
  display: none; position: absolute; top: calc(100% + 12px); right: 0;
  background: var(--paper); border: 1px solid var(--rule);
  min-width: 220px; padding: 0; z-index: 200;
  box-shadow: 0 12px 40px -8px rgba(40,20,70,.15);
  animation: menuFadeIn .2s ease;
}
@keyframes menuFadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.user-menu.show { display: block; }
.user-menu-header {
  padding: 16px 18px 12px; border-bottom: 1px solid var(--rule-soft);
}
.user-menu-name {
  font-family: var(--body); font-weight: 700; font-size: 14px; color: var(--ink);
}
.user-menu-email {
  font-family: var(--mono); font-size: 11px; color: var(--ink-faint);
  letter-spacing: .02em; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-menu-item {
  display: block; padding: 10px 18px; font-size: 14px; color: var(--ink-mid);
  font-weight: 500; transition: all .2s; text-decoration: none;
}
.user-menu-item:hover { background: var(--paper-soft); color: var(--ink); }
.user-menu-divider { height: 1px; background: var(--rule-soft); margin: 4px 0; }
.user-menu-logout { color: var(--ink-faint); }
.user-menu-logout:hover { color: #e74c3c; background: rgba(231,76,60,.06); }
.btn-auth {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border: 1px solid var(--rule);
  font-family: var(--body); font-size: 13px; font-weight: 600;
  color: var(--ink-mid); background: var(--paper); transition: all .25s;
  text-decoration: none;
}
.btn-auth:hover { border-color: var(--gold); color: var(--ink); }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: var(--nav-height); left: 0; right: 0;
  background: var(--paper); border-bottom: 1px solid var(--rule);
  padding: 20px 24px; z-index: 999; max-height: calc(100vh - var(--nav-height));
  overflow-y: auto; box-shadow: var(--shadow-card);
}
.mobile-menu.active { display: block; }
.mobile-menu a {
  display: block; padding: 12px 0; font-size: 16px; color: var(--ink);
  border-bottom: 1px solid var(--rule-soft);
}
.mobile-menu a:hover { color: var(--amethyst); }
.mm-section {
  font-family: var(--mono); font-size: 10px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--ink-faint); padding: 18px 0 6px;
}

/* Bottom nav (mobile) */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--paper); border-top: 1px solid var(--rule);
  box-shadow: 0 -2px 12px rgba(40,20,70,.06);
}
.bottom-nav-inner {
  display: flex; align-items: center; justify-content: space-around;
  max-width: var(--max-width); margin: 0 auto; height: var(--bottom-nav-height);
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--ink-soft); font-size: 10px; padding: 6px 12px;
}
.bottom-nav-item.active { color: var(--gold-deep); }
.bn-icon { font-size: 1.4rem; }
.bottom-nav-cta {
  display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: -18px;
}
.bn-cta-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--ink);
  box-shadow: 0 4px 16px rgba(180,140,60,.3);
}
.bn-cta-label { font-size: 10px; color: var(--gold-deep); font-weight: 600; }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  font-family: var(--body); font-size: 14px; font-weight: 700; letter-spacing: .06em;
  transition: all .25s; cursor: pointer; border: none; text-decoration: none;
}
.btn .arrow { font-family: var(--font-display); font-size: 14px; font-style: italic; letter-spacing: 0; }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 50%, var(--gold-deep));
  color: var(--ink); border: 1px solid var(--gold-deep);
  box-shadow: 0 1px 0 rgba(255,247,228,.4) inset, 0 6px 18px -8px var(--gold-deep);
}
.btn-primary:hover {
  background: var(--gold-deep); color: var(--paper); border-color: var(--gold-deep);
  box-shadow: 0 6px 22px -8px var(--gold-deep);
}
.btn-outline, .btn-ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
}
.btn-outline:hover, .btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-line {
  background: transparent; color: var(--ink); border: 1px solid #06c755;
}
.btn-line:hover { background: #06c755; color: #fff; border-color: #06c755; }
.btn-lg { padding: 18px 36px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 12px; }

/* ==================== SECTIONS ==================== */
section, .section { padding: 120px 0; position: relative; z-index: 1; }
.section-alt { background: var(--paper-soft); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .32em;
  color: var(--gold-deep); text-transform: uppercase; display: block; margin-bottom: 14px;
}
.section-title {
  font-family: var(--thai-display); font-size: clamp(32px, 4vw, 56px); font-weight: 600; line-height: 1.2;
}
.section-desc { font-size: 15px; color: var(--ink-soft); max-width: 560px; margin: 16px auto 0; }

/* ==================== GRIDS ==================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

/* ==================== CARDS ==================== */
.card, .product-card, .article-card {
  background: var(--paper); border: 1px solid var(--rule-soft);
  transition: all .35s; overflow: hidden;
}
.card:hover, .product-card:hover, .article-card:hover {
  border-color: var(--gold); transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.product-card { cursor: pointer; }
.product-img {
  aspect-ratio: 4/5; background: var(--paper-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; overflow: hidden; position: relative;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img .tag {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  background: var(--paper); padding: 6px 10px; border: 1px solid var(--gold);
  color: var(--gold-deep); text-transform: uppercase;
}
.product-info { padding: 18px 20px 22px; }
.product-name { font-family: var(--thai-display); font-weight: 600; font-size: 18px; line-height: 1.35; margin-bottom: 4px; }
.product-cat {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em;
  color: var(--ink-faint); text-transform: uppercase; margin-bottom: 10px;
}
.product-price {
  font-family: var(--font-display); font-size: 20px; color: var(--ink);
  padding-top: 12px; border-top: 1px solid var(--rule-soft);
}
.product-actions { display: flex; gap: 8px; margin-top: 12px; }

/* Article cards */
.article-card { display: block; }
.article-img {
  aspect-ratio: 4/3; background: var(--paper-warm);
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
  overflow: hidden; position: relative;
}
.article-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 18px 20px 22px; }
.article-tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em;
  color: var(--gold-deep); text-transform: uppercase;
}
.article-title { font-family: var(--thai-display); font-weight: 600; font-size: 20px; line-height: 1.35; margin-top: 8px; }
.article-excerpt { font-size: 14px; color: var(--ink-soft); line-height: 1.7; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta {
  display: flex; gap: 16px; margin-top: 12px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em;
  color: var(--ink-soft); text-transform: uppercase;
}

/* ==================== FORMS (for sub-pages) ==================== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--ink); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 16px; border: 1px solid var(--rule);
  background: var(--paper); color: var(--ink); font-family: var(--body);
  font-size: 14px; transition: border-color .25s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--gold);
}
.form-group select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 12L2 6h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}
.form-group select option { background: var(--paper); color: var(--ink); }

/* ==================== FOOTER ==================== */
.footer, footer {
  background: var(--paper-soft); border-top: 1px solid var(--rule);
  padding: 80px 0 32px; position: relative; z-index: 1;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 64px;
  padding-bottom: 64px; border-bottom: 1px solid var(--rule);
}
.footer-brand .logo {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display); letter-spacing: .32em; font-size: 16px; color: var(--ink);
}
.footer-brand .logo img { width: 48px; height: 48px; object-fit: contain; }
.footer-brand p { margin-top: 24px; font-size: 14px; color: var(--ink-soft); line-height: 1.7; max-width: 320px; }
.footer-col h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .28em;
  color: var(--ink-soft); font-weight: 600; text-transform: uppercase; margin-bottom: 22px;
}
.footer-col a {
  display: block; font-family: var(--thai-display); font-weight: 500;
  font-size: 16px; color: var(--ink); margin-bottom: 12px; transition: color .25s;
}
.footer-col a:hover { color: var(--amethyst); }
.footer-bottom, .footer-bot {
  margin-top: 28px; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em;
  color: var(--ink-faint); text-transform: uppercase;
}
.footer-social, .footer-bot .social { display: flex; gap: 16px; }
.footer-social a { color: var(--ink-soft); transition: color .25s; }
.footer-social a:hover { color: var(--amethyst); }

/* ==================== CART SIDEBAR ==================== */
.cart-overlay {
  display: none; position: fixed; inset: 0; background: rgba(20,10,40,.4);
  z-index: 2000; backdrop-filter: blur(4px);
}
.cart-overlay.active, .cart-overlay.open { display: block; }
.cart-sidebar {
  position: fixed; top: 0; right: -400px; width: 380px; height: 100vh;
  background: var(--paper); border-left: 1px solid var(--rule);
  z-index: 2001; transition: right .35s; display: flex; flex-direction: column;
  box-shadow: var(--shadow-deep);
}
.cart-sidebar.active, .cart-sidebar.open { right: 0; }
.cart-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--rule);
}
.cart-header h3 { font-family: var(--thai-display); font-size: 18px; font-weight: 600; }
.cart-close { font-size: 1.5rem; cursor: pointer; color: var(--ink-soft); background: none; border: none; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--rule); }
.cart-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.cart-total .amount { color: var(--gold-deep); font-family: var(--font-display); font-size: 22px; }
.cart-item {
  display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft);
}
.cart-item-icon { font-size: 1.5rem; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 14px; }
.cart-item-price { color: var(--gold-deep); font-family: var(--font-display); }
.cart-item-remove { color: var(--ink-faint); cursor: pointer; }
.cart-item-remove:hover { color: var(--error); }

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 3000;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--paper); border: 1px solid var(--rule);
  padding: 14px 20px; box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; animation: slideIn .3s;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--error); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ==================== AUTH AREA ==================== */
#authArea {
  display: flex; align-items: center; gap: 8px;
}
.auth-avatar {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--gold); cursor: pointer;
}
.auth-avatar img { width: 100%; height: 100%; object-fit: cover; }
.auth-dropdown {
  display: none; position: absolute; top: 100%; right: 0;
  background: var(--paper); border: 1px solid var(--rule);
  min-width: 200px; box-shadow: var(--shadow-card); z-index: 100;
}
.auth-dropdown.active { display: block; }
.auth-dropdown a {
  display: block; padding: 12px 20px; color: var(--ink); font-size: 14px;
}
.auth-dropdown a:hover { background: var(--paper-soft); }

/* ==================== PAGE-LEVEL STYLES ==================== */
.page-hero {
  padding: 140px 0 80px; text-align: center;
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 {
  font-family: var(--thai-display); font-size: clamp(40px, 5vw, 72px);
  font-weight: 700; line-height: 1.1;
}
.page-hero p { font-size: 17px; color: var(--ink-soft); margin-top: 16px; max-width: 600px; margin-inline: auto; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1100px) {
  .container, .narrow { padding: 0 28px; }
  .nav-inner { padding: 0 28px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .sec-head { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  .top-bar { display: none; }
  section, .section { padding: 80px 0; }
  .container, .narrow { padding: 0 20px; }
  .nav-inner { padding: 0 20px; grid-template-columns: auto 1fr auto; height: 64px; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-logo .logo-icon img { width: 36px; height: 36px; }
  .nav-logo span, .nav-logo .wordmark { font-size: 11px; }
  .nav-cta, .nav-cta-sub { display: none; }
  .bottom-nav { display: block; }
  body { padding-bottom: var(--bottom-nav-height); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom, .footer-bot {
    flex-direction: column; gap: 12px; align-items: center; text-align: center;
  }
  .footer, footer { padding-bottom: calc(var(--bottom-nav-height) + 24px); }
  .section-title { font-size: clamp(28px, 5vw, 40px); }
}

/* Ornament (legacy) */
.ornament { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 8px 0; }
.ornament::before, .ornament::after {
  content: ''; flex: 1; max-width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ornament-icon { color: var(--gold-deep); font-size: 0.9rem; opacity: .7; }
