/* ===== Fonts ===== */
@font-face {
  font-family: 'Alta';
  src: url('fonts/Alta-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Didact Gothic';
  src: url('fonts/DidactGothic-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat Var';
  src: url('fonts/Montserrat-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Prompt ExtraLight';
  src: url('fonts/Prompt-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

/* ===== Tokens ===== */
/* Colors are fixed to the original cream/gold palette regardless of the
   visitor's device dark-mode setting — no prefers-color-scheme override. */
:root{
  color-scheme: light;
  --bg: #f6f1e9;
  --bg-soft: #faf2e3;
  --surface: #ffffff;
  --surface-2: #fbf8f2;
  --ink: #2c2824;
  --ink-soft: #756c60;
  --ink-faint: #a89d8d;
  --gold: #a9824f;
  --gold-deep: #8a6a3d;
  --gold-soft: #d9bf95;
  --line: #e6dcc9;
  --line-strong: #d8cbb0;
  --sale: #b5423a;
  --shadow: 222 30% 20%;
  --radius-card: 2px;
  --radius-pill: 999px;
  --maxw: 1280px;
  --ease: cubic-bezier(.16,.8,.24,1);
}
:root[data-theme="dark"]{
  --bg: #17140f;
  --bg-soft: #1e1a14;
  --surface: #221e18;
  --surface-2: #1c1812;
  --ink: #ede4d6;
  --ink-soft: #b8ac9a;
  --ink-faint: #7d7365;
  --gold: #d3ac72;
  --gold-deep: #e6c48c;
  --gold-soft: #8a7248;
  --line: #372f24;
  --line-strong: #453b2c;
  --sale: #e0776e;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Montserrat Var','Montserrat',system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
::selection{ background:var(--gold-soft); color:var(--ink); }

.th{ font-family:'Prompt','Prompt ExtraLight','Noto Sans Thai',sans-serif; font-weight:500; }
.alta{ font-family:'Alta','Cormorant Garamond',Georgia,serif; }
.mono-sku{ font-family:'Didact Gothic',monospace; letter-spacing:.04em; }

a{ color:inherit; }
button{ font-family:inherit; }

img{ display:block; }

::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-track{ background:transparent; }
::-webkit-scrollbar-thumb{ background:var(--line-strong); border-radius:99px; }

/* ===== Layout shells ===== */
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 clamp(16px,4vw,48px); }

/* ===== Header =====
   The tab row is visible right away (no scrolling needed to filter), but the
   small duplicate logo + search row only fades in once the welcome hero has
   scrolled out of view, then the whole bar stays pinned to the top. */
header.site{
  position:sticky; top:0; z-index:50;
  background:color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter:blur(14px) saturate(1.1);
  border-bottom:1px solid var(--line);
  transition:box-shadow .5s var(--ease), background .3s;
}
header.site.scrolled{ box-shadow:0 8px 30px -20px rgba(0,0,0,.35); }

.logorow{
  display:flex; align-items:center; justify-content:center; position:relative;
  max-height:0; opacity:0; padding:0; overflow:hidden;
  transition:max-height .4s var(--ease), opacity .3s var(--ease), padding .4s var(--ease);
}
header.site.scrolled .logorow{ max-height:80px; opacity:1; padding:10px 0 6px; }
.brandmark{ display:flex; text-decoration:none; }
.full-logo{ height:38px; width:auto; flex:none; }

.head-actions{ position:absolute; right:0; top:50%; transform:translateY(-50%); }
.search-box{
  display:flex; align-items:center; gap:8px;
  border:1px solid var(--line); border-radius:var(--radius-pill);
  padding:7px 14px; background:var(--surface);
  transition:border-color .25s, box-shadow .25s; width:190px;
}
.search-box:focus-within{ border-color:var(--gold-soft); box-shadow:0 0 0 3px color-mix(in srgb, var(--gold) 15%, transparent); }
.search-box input{
  border:none; outline:none; background:none; font-size:14px; width:100%; color:var(--ink); font-family:inherit;
}
.search-box svg{ flex:none; opacity:.55; }

.tabrow{ padding:0 0 16px; }
@media (min-width:761px){ .tabrow{ display:flex; justify-content:center; } }
nav.tabs{
  display:flex; gap:10px; overflow-x:auto; scrollbar-width:none; padding:2px 2px;
  max-width:100%; width:100%; min-width:0;
  -webkit-overflow-scrolling:touch; touch-action:pan-x;
}
nav.tabs::-webkit-scrollbar{ display:none; }
.tab-btn{
  appearance:none; cursor:pointer; flex:none;
  padding:11px 22px; font-size:13.5px; font-weight:600; letter-spacing:.1em; text-transform:uppercase;
  border-radius:var(--radius-pill); border:1.5px solid var(--ink);
  background:transparent; color:var(--ink);
  transition:color .3s, background .3s, border-color .3s, transform .3s; white-space:nowrap;
}
.tab-btn:hover{ transform:translateY(-1px); border-color:var(--gold); }
.tab-btn.active{ background:var(--ink); color:var(--bg); border-color:var(--ink); }
.tab-btn[data-tab="PROMOTION"]{ border-color:var(--sale); color:var(--sale); }
.tab-btn[data-tab="PROMOTION"].active{ background:var(--sale); color:#fff; border-color:var(--sale); }

.icon-btn{
  border:1px solid var(--line); background:var(--surface); width:34px; height:34px; border-radius:50%;
  display:grid; place-items:center; cursor:pointer; transition:border-color .25s, transform .25s;
}
.icon-btn:hover{ border-color:var(--gold-soft); transform:translateY(-1px); }

/* ===== Hero ===== */
.hero{
  position:relative; padding:clamp(56px,9vw,108px) 0 clamp(40px,6vw,64px);
  text-align:center; overflow:hidden;
  background:
    radial-gradient(60% 70% at 50% 0%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 70%),
    var(--bg);
}
.hero::before{
  content:''; position:absolute; inset:0; pointer-events:none; opacity:.5;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, var(--gold-soft) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 22%, var(--gold-soft) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 60% 68%, var(--gold-soft) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 12% 75%, var(--gold-soft) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 90% 80%, var(--gold-soft) 0, transparent 60%);
}
.hero-logo{
  width:clamp(220px,32vw,340px); margin:0 auto 26px;
  opacity:0; animation:riseIn .9s var(--ease) .15s forwards;
}
.hero p.lead{
  max-width:560px; margin:0 auto; color:var(--ink-soft); font-size:16.5px; line-height:1.85;
  opacity:0; animation:riseIn .9s var(--ease) .55s forwards;
}
@keyframes riseIn{ from{ opacity:0; transform:translateY(14px);} to{opacity:1; transform:translateY(0);} }

/* ===== Grid ===== */
.grid{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:clamp(16px,2.4vw,28px);
  padding:32px 0 70px;
}
@media (max-width:600px){
  .grid{ grid-template-columns:repeat(2,1fr); gap:12px; }
}
.card{
  background:var(--surface); border:1px solid var(--line); border-radius:14px; overflow:hidden;
  cursor:pointer; display:flex; flex-direction:column;
  opacity:0; transform:translateY(18px);
  transition:transform .6s var(--ease), box-shadow .6s var(--ease), border-color .35s;
}
.card.show{ opacity:1; transform:translateY(0); transition:opacity .7s var(--ease), transform .7s var(--ease), box-shadow .6s var(--ease), border-color .35s; }
.card:hover{ transform:translateY(-6px); box-shadow:0 26px 46px -28px rgba(0,0,0,.32); border-color:var(--gold-soft); }
.card .thumb{
  aspect-ratio:1; position:relative; overflow:hidden; background:var(--surface);
}
.card .thumb img{ width:100%; height:100%; object-fit:contain; object-position:center; padding:3%; transition:transform .8s var(--ease); }
.card:hover .thumb img{ transform:scale(1.06); }
.card .thumb .ph{ position:absolute; inset:0; display:grid; place-items:center; }
.card .thumb .ph svg{ width:44%; height:44%; opacity:.85; }
.card .thumb .badge{
  position:absolute; top:8px; left:8px; max-width:calc(100% - 16px);
  background:linear-gradient(135deg, var(--gold-soft), var(--gold));
  font-size:8.5px; font-weight:700; letter-spacing:.06em;
  text-transform:uppercase; padding:3px 8px; border-radius:5px; color:#ffffff;
  box-shadow:0 4px 10px -4px rgba(0,0,0,.35);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.card .body{ padding:16px 16px 18px; display:flex; flex-direction:column; gap:5px; flex:1; background:var(--bg-soft); }
.card .nm{
  font-family:'Alta',serif; font-size:19px; letter-spacing:.03em; line-height:1.25;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.card .sku{ font-size:12px; color:var(--ink-soft); }
.card .spacer{ flex:1; }
.card .pricerow{ display:flex; align-items:baseline; justify-content:space-between; margin-top:6px; }
.card .from{ font-size:11px; color:var(--ink-soft); }
.card .price-group{ display:flex; align-items:baseline; gap:6px; }
.card .old-price{ font-size:13px; color:var(--ink-faint); text-decoration:line-through; font-variant-numeric:tabular-nums; }
.card .price{ font-size:20px; font-weight:700; color:var(--gold-deep); font-variant-numeric:tabular-nums; }
.card .price.sale{ color:var(--sale); }
.card .price .bt{ font-size:15px; margin-right:1px; }

.empty-state{ text-align:center; padding:90px 20px; color:var(--ink-faint); }
.empty-state .alta{ font-size:22px; color:var(--ink-soft); display:block; margin-bottom:8px; }

/* ===== Modal ===== */
.modal-veil{
  position:fixed; inset:0; background:color-mix(in srgb, #14100b 60%, transparent);
  backdrop-filter:blur(6px); z-index:100; opacity:0; pointer-events:none; transition:opacity .45s var(--ease);
}
.modal-veil.open{ opacity:1; pointer-events:auto; }
.modal{
  position:fixed; inset:0; z-index:101; display:flex; align-items:flex-end; justify-content:center;
  pointer-events:none;
}
@media (min-width:760px){ .modal{ align-items:center; padding:30px; } }
.modal-card{
  background:var(--surface); width:100%; max-width:900px; max-height:92vh; overflow:hidden;
  border-radius:20px 20px 0 0; transform:translateY(100%); transition:transform .5s var(--ease);
  display:flex; flex-direction:column; position:relative;
  box-shadow:0 40px 90px -30px rgba(0,0,0,.5);
}
@media (min-width:760px){
  .modal-card{ border-radius:18px; transform:translateY(24px) scale(.97); opacity:0; transition:transform .5s var(--ease), opacity .4s var(--ease); flex-direction:row; }
}
.modal-veil.open + .modal .modal-card{ transform:translateY(0); }
@media (min-width:760px){ .modal-veil.open + .modal .modal-card{ transform:translateY(0) scale(1); opacity:1; } }
.modal-veil.open + .modal{ pointer-events:auto; }
.modal-media{ position:relative; aspect-ratio:1; background:var(--surface); flex:none; }
@media (min-width:760px){ .modal-media{ aspect-ratio:auto; width:50%; flex:none; } }
.modal-media img{ width:100%; height:100%; object-fit:contain; object-position:center; padding:1%; }
.modal-media .ph{ position:absolute; inset:0; display:grid; place-items:center; }
.modal-media .ph svg{ width:38%; opacity:.85; }
.modal-close{
  position:absolute; top:14px; right:14px; width:38px; height:38px; border-radius:50%;
  background:var(--surface); border:1px solid var(--line); box-shadow:0 6px 18px -6px rgba(0,0,0,.4);
  display:grid; place-items:center; cursor:pointer; z-index:20; transition:transform .3s, background .3s, border-color .3s;
  color:var(--ink); padding:0;
}
.modal-close:hover{ transform:rotate(90deg); border-color:var(--gold-soft); }
.modal-info{
  padding:clamp(22px,4vw,40px); display:flex; flex-direction:column;
  overflow-y:auto; min-height:0; flex:1;
}
.modal-info .coll-eyebrow{ font-size:11.5px; font-weight:600; letter-spacing:.22em; text-transform:uppercase; color:var(--gold); margin-bottom:8px; }
.modal-info h2{ font-family:'Alta',serif; font-weight:400; font-size:clamp(24px,3vw,32px); margin:0 0 6px; letter-spacing:.02em; }
.modal-info .sku{ font-size:13.5px; color:var(--ink-faint); margin-bottom:18px; }
.size-select{ display:flex; gap:8px; margin-bottom:18px; }
.size-opt{
  flex:1; border:1px solid var(--line); border-radius:10px; padding:10px 8px; text-align:center; cursor:pointer;
  transition:border-color .25s, background .25s;
}
.size-opt b{ display:block; font-family:'Alta',serif; font-size:16px; }
.size-opt span{ font-size:11px; color:var(--ink-faint); }
.size-opt.active{ border-color:var(--gold); background:color-mix(in srgb, var(--gold) 8%, transparent); }
.price-display{ display:flex; align-items:baseline; gap:8px; margin-bottom:20px; }
.price-display .lbl{ font-size:12px; color:var(--ink-faint); }
.price-display .amt{ font-size:32px; font-weight:700; color:var(--gold-deep); font-variant-numeric:tabular-nums; display:flex; align-items:baseline; gap:10px; }
.price-display .amt .bt{ font-size:20px; margin-right:2px; }
.price-display .amt.sale{ color:var(--sale); }
.price-display .amt .old-price-lg{ font-size:17px; font-weight:500; color:var(--ink-faint); text-decoration:line-through; }
.free-ship{
  display:flex; align-items:center; gap:8px; margin-bottom:18px; padding:9px 13px;
  background:color-mix(in srgb, var(--gold) 12%, transparent);
  border:1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius:10px; color:var(--gold-deep); font-size:13.5px; font-weight:700;
}
.free-ship svg{ flex:none; }
.flower-list{ margin-bottom:24px; }
.flower-list .lbl{ font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-faint); margin-bottom:10px; }
.chips{ display:flex; flex-wrap:wrap; gap:7px; }
.chip{
  font-size:13.5px; padding:6px 12px; border-radius:99px; background:var(--surface-2); border:1px solid var(--line);
  color:var(--ink-soft);
}
.remark-list{
  list-style:none; margin:0 0 20px; padding:12px 14px;
  background:var(--surface-2); border:1px solid var(--line); border-radius:12px;
  font-size:13.5px; font-weight:500; line-height:1.8; color:var(--ink-soft);
}
.remark-list li{ position:relative; padding-left:14px; }
.remark-list li::before{ content:'—'; position:absolute; left:0; }
.remark-list li + li{ margin-top:3px; }

.modal-cta{
  margin-top:auto; display:flex; gap:10px; flex-wrap:wrap;
  position:sticky; bottom:0; left:0; right:0; z-index:5;
  padding:14px 0 calc(6px + env(safe-area-inset-bottom,0px));
  margin-left:calc(clamp(22px,4vw,40px) * -1); margin-right:calc(clamp(22px,4vw,40px) * -1);
  padding-left:clamp(22px,4vw,40px); padding-right:clamp(22px,4vw,40px);
  background:linear-gradient(to top, var(--surface) 65%, transparent);
}
.modal-cta .btn-primary{ flex:1; justify-content:center; }
@media (min-width:760px){ .modal-cta{ position:static; background:none; padding:0; margin:0; } .modal-cta .btn-primary{ flex:none; } }
.btn{
  appearance:none; border:none; cursor:pointer; border-radius:99px; padding:14px 26px; font-size:14px; font-weight:600;
  letter-spacing:.05em; text-transform:uppercase; display:inline-flex; align-items:center; gap:8px;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
}
.btn-primary{ background:linear-gradient(135deg, var(--gold), var(--gold-deep)); color:#fff; }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 14px 28px -12px color-mix(in srgb, var(--gold) 60%, transparent); }
.btn-ghost{ background:none; border:1px solid var(--line); color:var(--ink); }
.btn-ghost:hover{ border-color:var(--gold-soft); }

/* ===== Footer ===== */
footer{ border-top:1px solid var(--line); margin-top:20px; padding:44px 0; }
.foot-grid{ display:grid; grid-template-columns:1.4fr 1fr; gap:32px; }
@media (max-width:760px){ .foot-grid{ grid-template-columns:1fr; gap:28px; } }
footer .fname{ font-family:'Alta',serif; font-size:20px; letter-spacing:.1em; margin-bottom:8px; }
footer .fdesc{ font-size:14.5px; color:var(--ink-soft); line-height:1.95; letter-spacing:.01em; max-width:440px; margin-bottom:16px; }
@media (max-width:760px){ footer .fdesc{ max-width:none; } }
footer .foot-tagline{
  font-family:'Alta',serif; font-style:italic; font-size:14.5px; letter-spacing:.02em;
  color:var(--gold-deep); margin:0 0 12px; max-width:320px;
}
footer .foot-tagline--bottom{ margin:8px 0 0; }
footer h4{ font-size:12px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-faint); margin:0 0 14px; }
footer .flinks{ display:flex; flex-direction:column; gap:10px; font-size:14.5px; color:var(--ink-soft); }
footer .flinks a{ text-decoration:none; transition:color .25s; }
footer .flinks a:hover{ color:var(--gold-deep); }
.foot-social{ display:flex; flex-direction:column; gap:10px; }
.foot-social-row{
  display:flex; align-items:center; gap:11px; text-decoration:none;
  font-size:14.5px; color:var(--ink-soft); transition:color .25s;
}
.foot-social-row:hover{ color:var(--gold-deep); }
.foot-social-icon{
  flex:none; width:30px; height:30px; border-radius:50%; display:grid; place-items:center;
  background:linear-gradient(135deg, var(--gold-soft), var(--gold)); color:#fff;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow:0 6px 14px -8px rgba(0,0,0,.4);
}
.foot-social-icon svg{ width:14px; height:14px; }
.foot-social-icon--line{ font-size:7.5px; font-weight:800; letter-spacing:.02em; }
.foot-social-row:hover .foot-social-icon{ transform:translateY(-1px); box-shadow:0 10px 20px -10px rgba(0,0,0,.45); }
.foot-bottom{
  margin-top:40px; padding-top:20px; border-top:1px solid var(--line);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-size:12.5px; color:var(--ink-faint);
}

/* ===== Back to top ===== */
.top-btn{
  position:fixed; right:20px; bottom:20px; width:44px; height:44px; border-radius:50%;
  background:var(--surface); border:1px solid var(--line); box-shadow:0 10px 26px -12px rgba(0,0,0,.3);
  display:grid; place-items:center; cursor:pointer; z-index:60;
  opacity:0; transform:translateY(10px) scale(.9); pointer-events:none;
  transition:opacity .4s var(--ease), transform .4s var(--ease), border-color .3s;
}
.top-btn.show{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.top-btn:hover{ border-color:var(--gold-soft); }

/* ===== Social FAB ===== */
.social-fab{ position:fixed; left:20px; bottom:20px; z-index:60; display:flex; flex-direction:column; align-items:center; gap:10px; }
.social-fab-btn{
  width:50px; height:50px; border-radius:50%; border:1px solid var(--line-strong);
  background:linear-gradient(135deg, var(--surface), var(--surface-2));
  display:grid; place-items:center; cursor:pointer;
  box-shadow:0 12px 28px -14px rgba(0,0,0,.4);
  transition:transform .3s var(--ease), border-color .3s;
}
.social-fab-btn:hover{ transform:translateY(-2px); border-color:var(--gold-soft); }
.social-fab-btn img{ width:24px; height:24px; object-fit:contain; }
.social-fab-menu{
  display:flex; flex-direction:column; gap:8px; align-items:center;
  opacity:0; transform:translateY(8px) scale(.9); pointer-events:none;
  transition:opacity .3s var(--ease), transform .3s var(--ease);
}
.social-fab.open .social-fab-menu{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.social-fab-item{
  width:40px; height:40px; border-radius:50%; display:grid; place-items:center;
  background:linear-gradient(135deg, var(--gold-soft), var(--gold)); color:#fff;
  box-shadow:0 8px 18px -8px rgba(0,0,0,.4); transition:transform .25s var(--ease);
}
.social-fab-item:hover{ transform:translateY(-2px) scale(1.06); }
.social-fab-item--line{ font-size:10px; font-weight:800; letter-spacing:.02em; }

/* ===== Mobile nav ===== */
@media (max-width:900px){
  .search-box{ width:130px; }
}
@media (max-width:760px){
  header.site .wrap{ padding-left:16px; padding-right:16px; }
  .head-actions{ display:none; }
  .full-logo{ height:46px; }
  header.site.scrolled .full-logo{ height:32px; }
  nav.tabs{ justify-content:flex-start; }
}
@media (max-width:640px){
  .foot-bottom{ flex-direction:column; }
}
@media (max-width:600px){
  .card .body{ padding:13px 11px 15px; }
  .card .nm{ font-size:12.5px; letter-spacing:.015em; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}
