/*
Theme Name: weYOUNG
Theme URI: https://weyoungcambodia.com/en
Author: weYOUNG Cambodia
Description: Headless-style WooCommerce storefront for weYOUNG Cambodia. Design system cloned from bare-official.com (Jost, black & white, 0px radius); catalogue, cart and checkout run on the WooCommerce Store API.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: weyoung
Tags: e-commerce, one-column, custom-logo
*/

/* ==========================================================================
   weYOUNG Cambodia — design system cloned from bare-official.com
   Jost typeface · pure black & white · 0px radius · warm neutral surfaces
   ========================================================================== */

:root {
  --background: 40 20% 98%;
  --foreground: 0 0% 0%;
  --card: 40 20% 97%;
  --primary: 0 0% 0%;
  --primary-foreground: 40 20% 98%;
  --secondary: 30 15% 92%;
  --muted: 30 10% 94%;
  --muted-foreground: 0 0% 0%;
  --accent: 20 25% 85%;
  --accent-foreground: 30 10% 15%;
  --border: 30 15% 88%;
  --input: 30 15% 88%;
  --ring: 30 10% 30%;
  --success: 142 55% 45%;
  --warning: 38 85% 55%;
  --destructive: 0 84.2% 60.2%;
  --radius: 0px;
  --header-h: 62px;
  --gutter: 24px;
  --font-sans: "Jost", sans-serif;
  --font-khmer: "Kantumruy Pro", "Jost", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; border: 0 solid hsl(var(--border)); }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: #fff !important;
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.025em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.lang-kh { font-family: var(--font-khmer); letter-spacing: 0; }
body.lang-kh :where(.menu-label, .heading-elegant, .heading-display, .btn-primary, .btn-outline, .section-title, .intro h1, .intro p,
  .chip, .card-cta, .badge, .card-badge, .tab-btn, .acc-btn, .variant-label, .label, .collection-title, .product-note, .stock-line,
  .search-row input, .footer-grid h4, .mega-head, .page-title, .checkout h2, .drawer-head h2, .sheet-title, .view360, .filter-panel h5,
  .search-label, .search-viewall, .prose h2, .about-grid .cell h3, .contact-info dt, .order-card .status, .brand-strip h2, .tab-panel h3,
  .marquee-item .handle, .category-tile span, .order-done h1) { letter-spacing: 0.03em; line-height: 1.6; }
body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-family: inherit; font-weight: 500; font-size: inherit; }
p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- Utilities ---------- */
.heading-display { text-transform: uppercase; letter-spacing: 0.25em; font-family: var(--font-sans) !important; font-weight: 500; }
.heading-elegant { text-transform: uppercase; letter-spacing: 0.05em; font-weight: 400; }
.text-xs { font-size: 12px; line-height: 16px; }
.text-sm { font-size: 14px; line-height: 20px; }
.muted { color: hsl(var(--foreground) / 0.65); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; flex-shrink: 0; }
.icon-xs { width: 12px; height: 12px; flex-shrink: 0; }
.container { width: 100%; padding-left: var(--gutter); padding-right: var(--gutter); }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.75rem 2rem;
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 300;
  text-transform: uppercase; letter-spacing: 0.2em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius);
}
.btn-primary:hover { background-color: hsl(var(--foreground) / 0.9); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary.btn-lg { padding: 1rem 2rem; }
.btn-primary.w-full { width: 100%; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid hsl(var(--foreground));
  background: transparent; color: hsl(var(--foreground));
  padding: 0.75rem 2rem;
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 300;
  text-transform: uppercase; letter-spacing: 0.2em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-outline:hover { background-color: hsl(var(--foreground)); color: hsl(var(--background)); }

.input {
  width: 100%; background: transparent;
  border: 1px solid hsl(var(--border));
  padding: 0.75rem 1rem; font-size: 14px; line-height: 20px;
  outline: none; transition: border-color 0.15s;
  border-radius: 0;
}
.input:focus { border-color: hsl(var(--foreground)); }
.input::placeholder { color: hsl(var(--foreground) / 0.45); }
.label { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }

/* ---------- Keyframes (copied from source) ---------- */
@keyframes shimmer { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes fade-in { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { 0% { opacity: 0; transform: scale(0.95); } 100% { opacity: 1; transform: scale(1); } }
@keyframes slideUp { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes slideInRight { 0% { transform: translateX(100%); } 100% { transform: translateX(0); } }
@keyframes menuSlideDown { 0% { opacity: 0; transform: translateY(-20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes menuFadeIn { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes sparkle { 0% { opacity: 0; transform: translateY(0) scale(0); } 50% { opacity: 1; transform: translateY(-8px) scale(1); } 100% { opacity: 0; transform: translateY(-16px) scale(0.5); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.5; } }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

.animate-shimmer { animation: shimmer 2s ease-in-out infinite; background: hsl(var(--muted)); }
.animate-fade-in { animation: fade-in 0.6s ease-out forwards; }
.animate-slide-in-right { animation: slideInRight 0.3s ease-out forwards; }
.animate-menu-slide-down { animation: menuSlideDown 0.2s ease-out forwards; }
.animate-menu-fade-in { animation: menuFadeIn 0.3s ease-out forwards; opacity: 0; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-marquee { animation: marquee 60s linear infinite; will-change: transform; display: inline-flex; min-width: max-content; }
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in { animation: fade-in 0.6s ease-out forwards; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid hsl(var(--border));
}
.header-inner {
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--header-h);
  padding: 0 var(--gutter);
}
.header-side { display: flex; align-items: center; transition: opacity 0.3s ease; }
.header-left { justify-content: flex-start; }
.header-right { justify-content: flex-end; gap: 12px; }
.site-header.compact .header-side { opacity: 0; pointer-events: none; }
.menu-btn { display: flex; align-items: center; gap: 10px; }
.menu-label { font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 400; }
.menu-btn:hover { opacity: 0.7; }
.header-logo { display: flex; align-items: center; justify-content: center; z-index: 10; }
.header-logo img { height: 40px; width: auto; object-fit: contain; }
.header-text-btn { display: flex; align-items: center; gap: 4px; font-size: 12px; transition: color 0.15s; }
.header-icon-btn { display: flex; align-items: center; justify-content: center; transition: opacity 0.15s; position: relative; }
.header-icon-btn:hover { opacity: 0.7; }
.header-dd { position: relative; }
.cart-count {
  position: absolute; top: -6px; right: -8px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: hsl(var(--foreground)); color: #fff;
  font-size: 10px; line-height: 16px; text-align: center; border-radius: 999px;
}
.cart-btn.bump svg { animation: bump 0.4s ease; }
.dropdown {
  position: absolute; top: 100%; right: 0; margin-top: 8px;
  background: #fff; border: 1px solid hsl(var(--border));
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  z-index: 60; min-width: 140px; border-radius: 6px; padding: 4px 0;
}
.dropdown-item {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; font-size: 14px; text-align: left;
  transition: background-color 0.15s;
}
.dropdown-item:hover, .dropdown-item.active { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.dropdown-item .dot { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--foreground)); visibility: hidden; }
.dropdown-item.active .dot { visibility: visible; }
@media (max-width: 767px) { .hidden-md { display: none !important; } }
@media (min-width: 768px) { .header-right { gap: 20px; } }

/* Mega menu */
.mega {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid hsl(var(--border));
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  z-index: 60; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  animation: menuSlideDown 0.2s ease-out forwards;
}
.mega-inner {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  padding: 32px var(--gutter) 40px;
}
.mega-head { display: block; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 400; margin-bottom: 12px; }
a.mega-head:hover { opacity: 0.6; }
.mega-col ul { display: flex; flex-direction: column; gap: 12px; }
.mega-col a { font-size: 14px; transition: opacity 0.15s; display: inline-block; }
.mega-col a:hover { opacity: 0.6; }
.mega-col .mega-sub { display: block; font-size: 11px; opacity: 0.6; margin-top: 2px; }
.mega-promo { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 0 16px; }
.mega-promo img { width: 160px; height: 160px; object-fit: cover; background: hsl(var(--secondary)); }
.mega-promo p { font-size: 14px; font-weight: 500; }
.mega-promo small { font-size: 12px; display: block; font-weight: 400; margin-top: 2px; }
.mega-promo .btn-outline { padding: 0.5rem 1.25rem; font-size: 11px; }
.mega-mobile-extra { display: flex; gap: 16px; font-size: 12px; padding-top: 16px; border-top: 1px solid hsl(var(--border)); }
@media (min-width: 768px) {
  .mega-inner { grid-template-columns: 1fr 1fr 1fr 1.2fr; gap: 24px; padding-bottom: 56px; }
  .mega-promo { border-left: 1px solid hsl(var(--border)); }
  .mega-mobile-extra { display: none; }
}
.mega-footer-line { height: 1px; background: hsl(var(--border)); margin: 0 var(--gutter); }

/* Search */
.search-panel {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid hsl(var(--border));
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  z-index: 60; max-height: calc(100vh - 104px); overflow-y: auto;
  animation: menuSlideDown 0.2s ease-out forwards;
}
.search-row { display: flex; align-items: center; gap: 16px; padding: 16px var(--gutter); border-bottom: 1px solid hsl(var(--border) / 0.5); }
.search-row input { flex: 1; background: transparent; border: 0; outline: none; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.search-row input::placeholder { color: hsl(var(--foreground) / 0.5); }
.search-body { padding: 32px var(--gutter); }
.search-label { font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 16px; }
.search-list { display: flex; flex-direction: column; gap: 8px; }
.search-list button { font-size: 14px; text-align: left; transition: opacity 0.15s; }
.search-list button:hover { opacity: 0.7; }
.search-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.search-products .product-card-info { padding-top: 8px; }
.search-viewall { display: inline-block; margin-top: 24px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.search-hint { font-size: 14px; color: hsl(var(--foreground) / 0.6); }
@media (min-width: 768px) { .search-products { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .search-products { grid-template-columns: repeat(6, 1fr); } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; width: 100%; overflow: hidden; background: #fff;
  aspect-ratio: 3840 / 1600;
  min-height: 180px;
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; z-index: 0; pointer-events: none; }
.hero-slide.active { opacity: 1; z-index: 10; pointer-events: auto; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 20; }
.hero-dots button { width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--foreground) / 0.3); transition: all 0.3s; }
.hero-dots button.active { background: hsl(var(--foreground)); width: 18px; border-radius: 3px; }

/* Intro text block */
.intro { text-align: center; padding: 40px var(--gutter) 48px; max-width: 1100px; margin: 0 auto; }
.intro h1 {
  text-transform: uppercase; font-weight: 400; letter-spacing: 0.18em;
  font-size: 16px; line-height: 1.6;
}
.intro p { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 16px; }
.intro .btn-primary { margin-top: 24px; }
@media (min-width: 768px) { .intro h1 { font-size: 18px; } .intro p { font-size: 12px; } }
@media (min-width: 1024px) { .intro { padding: 48px var(--gutter) 56px; } .intro h1 { font-size: 24px; line-height: 38.4px; } .intro p { font-size: 13px; } }
@media (min-width: 1400px) { .intro h1 { font-size: 25px; line-height: 50.4px; } }

/* Section titles */
.section { padding: 32px 0 40px; }
.section-head { text-align: center; padding: 0 var(--gutter); margin-bottom: 24px; }
.section-title { font-weight: 400; text-transform: uppercase; letter-spacing: 0.2em; font-size: 22px; line-height: 1.3; }
.section-title.title-case { text-transform: none; letter-spacing: 0.15em; font-weight: 300; }
.section-sub { font-size: 12px; margin-top: 8px; }
@media (min-width: 768px) { .section-title { font-size: 28px; } }
@media (min-width: 1024px) { .section-title { font-size: 32px; } .section-head { margin-bottom: 28px; } }

/* ==========================================================================
   Product card
   ========================================================================== */
.product-card { cursor: pointer; display: block; }
.product-card-image {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background-color: hsl(var(--secondary));
}
.product-card-image img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card-image .img-hover { opacity: 0; }
.product-card:hover .product-card-image .img-hover { opacity: 1; }
.product-card:hover .product-card-image .img-main.has-hover { opacity: 0; }
.card-cta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: hsl(var(--foreground)); color: #fff;
  padding: 12px 16px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 300;
  transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-cta .icon-sm { width: 16px; height: 16px; }
.product-card:hover .card-cta { transform: translateY(0); }
.card-cta:hover { background: hsl(var(--foreground) / 0.9); }
.card-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: hsl(var(--foreground)); color: #fff;
  font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; padding: 4px 8px; font-weight: 500;
}
.product-card-info { padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.product-card-name { font-size: 14px; line-height: 20px; font-weight: 400; }
.rating-row { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 11px; height: 11px; }
.stars .off { opacity: 0.25; }
.variant-count { font-size: 12px; color: hsl(var(--foreground) / 0.65); }
.product-card-price { font-size: 12px; font-weight: 700; }
.product-card-price .unit { font-weight: 400; font-size: 11px; opacity: 0.6; }
.product-card-price .compare { font-weight: 400; text-decoration: line-through; color: #ef4444; margin-left: 6px; font-size: 10px; }
@media (hover: none) { .card-cta { transform: translateY(0); } .product-card-image .img-hover { display: none; } }

/* Carousel */
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 4px; overflow-x: auto; scroll-behavior: auto;
  scroll-snap-type: x mandatory; padding: 0 var(--gutter);
  -ms-overflow-style: none; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { flex: 0 0 200px; scroll-snap-align: start; }
@media (min-width: 640px) { .carousel-item { flex-basis: 220px; } }
@media (min-width: 768px) { .carousel-item { flex-basis: 240px; } }
@media (min-width: 1024px) { .carousel-item { flex-basis: 360px; } }
.carousel-nav {
  position: absolute; top: var(--nav-top, 40%); transform: translateY(-50%); z-index: 20;
  width: 40px; height: 40px; border-radius: 50%;
  background: hsl(0 0% 100% / 0.9); border: 1px solid hsl(var(--border));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  transition: all 0.3s; opacity: 0;
}
.carousel:hover .carousel-nav { opacity: 1; }
.carousel-nav:hover { background: #fff; box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1); }
.carousel-nav.prev { left: 8px; }
.carousel-nav.next { right: 8px; }
.carousel-nav[disabled] { opacity: 0 !important; pointer-events: none; }
.carousel-nav svg { width: 16px; height: 16px; }
@media (max-width: 767px) { .carousel-nav { display: none; } }

/* Categories */
.categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 0 var(--gutter); }
.category-tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: hsl(var(--secondary)); display: block; }
.category-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.category-tile:hover img { transform: scale(1.04); }
.category-tile span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 400;
  color: hsl(var(--foreground));
}
@media (min-width: 768px) { .category-tile { aspect-ratio: 1 / 1; } .category-tile span { font-size: 14px; padding: 20px; } }
@media (max-width: 639px) { .categories { grid-template-columns: 1fr; } .category-tile { aspect-ratio: 16 / 10; } }

/* Community */
.community { background: hsl(var(--muted)); padding: 40px 0 48px; margin-top: 16px; overflow: hidden; }
.community .section-head { margin-bottom: 28px; }
.marquee { display: flex; overflow: hidden; }
.marquee-track { display: inline-flex; gap: 16px; padding-right: 16px; }
.marquee-item { width: 220px; flex: 0 0 auto; }
.marquee-item .frame { width: 220px; height: 220px; overflow: hidden; background: #fff; }
.marquee-item img { width: 100%; height: 100%; object-fit: cover; }
.marquee-item p { font-size: 12px; margin-top: 10px; line-height: 1.5; }
.marquee-item .handle { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; margin-top: 4px; }
.marquee:hover .animate-marquee { animation-play-state: paused; }
@media (min-width: 1024px) { .marquee-item, .marquee-item .frame { width: 280px; } .marquee-item .frame { height: 280px; } }

/* Brand strip (ingredients) */
.brand-strip { padding: 48px var(--gutter) 8px; display: grid; gap: 32px; align-items: center; }
.brand-strip img { width: 100%; background: #fff; }
.brand-strip h2 { font-size: 20px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 400; }
.brand-strip p { font-size: 14px; line-height: 1.7; margin-top: 16px; }
.brand-strip .btn-outline { margin-top: 24px; }
@media (min-width: 1024px) { .brand-strip { grid-template-columns: 1.4fr 1fr; gap: 48px; padding: 64px var(--gutter) 16px; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #fff; border-top: 1px solid hsl(var(--border)); margin-top: 32px; }
.footer-top { padding: 32px 8px 40px; border-bottom: 1px solid hsl(var(--border)); }
.footer-top-inner { max-width: 36rem; margin: 0 auto; text-align: center; }
.site-footer .footer-logo { height: 40px !important; width: auto !important; max-width: 160px; margin: 0 auto 4px; object-fit: contain; }
.footer-tagline { margin-bottom: 24px; font-size: 16px; }
.footer-join { font-size: 14px; margin-bottom: 24px; }
.newsletter { display: flex; max-width: 28rem; margin: 0 auto; }
.newsletter input {
  flex: 1; min-width: 0; background: transparent; border: 1px solid hsl(var(--border)); border-right: 0;
  padding: 12px 16px; font-size: 14px; outline: none; transition: border-color 0.15s;
}
.newsletter input:focus { border-color: hsl(var(--foreground)); }
.newsletter .btn-primary { white-space: nowrap; }
.socials { display: flex; justify-content: center; gap: 24px; margin-top: 32px; }
.socials a { transition: opacity 0.15s; }
.socials a:hover { opacity: 0.6; }
.footer-grid { padding: 48px var(--gutter); display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.footer-grid h4 { font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 400; margin-bottom: 16px; }
.footer-grid ul { display: flex; flex-direction: column; gap: 12px; }
.footer-grid a, .footer-grid button { font-size: 14px; transition: color 0.15s, opacity 0.15s; }
.footer-grid a:hover, .footer-grid button:hover { opacity: 0.6; }
.footer-grid .cur { display: flex; align-items: center; gap: 8px; }
.footer-grid .cur.active { font-weight: 500; }
.pay-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-badge { font-size: 9px; font-weight: 700; letter-spacing: 0.05em; color: #fff; padding: 4px 6px; border-radius: 3px; line-height: 1; }
.pay-badge.aba { background: #005b8e; }
.pay-badge.khqr { background: #e2242e; }
.footer-bottom { border-top: 1px solid hsl(var(--border)); padding: 20px var(--gutter); text-align: center; font-size: 12px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(5, 1fr); } .footer-top { padding: 48px 24px; } }

/* ==========================================================================
   Overlay, drawers, toast
   ========================================================================== */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgb(0 0 0 / 0.4); animation: overlayIn 0.3s ease-out forwards; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: 85%; max-width: 28rem; background: #fff;
  display: flex; flex-direction: column;
  animation: slideInRight 0.3s ease-out forwards;
  box-shadow: -10px 0 30px rgb(0 0 0 / 0.08);
}
.drawer-lg { max-width: 32rem; overflow-y: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid hsl(var(--border)); }
.drawer-head h2 { font-size: 18px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 400; }
.drawer-close { transition: opacity 0.15s; }
.drawer-close:hover { opacity: 0.7; }
.drawer-body { flex: 1; overflow-y: auto; }
.cart-empty { display: flex; align-items: center; justify-content: center; height: 100%; padding: 24px; text-align: center; }
.cart-empty svg { width: 64px; height: 64px; margin: 0 auto 16px; opacity: 0.3; }
.cart-empty p { margin-bottom: 24px; }
.cart-items { padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.cart-line { display: flex; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid hsl(var(--border)); }
.cart-line:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-line img { width: 64px; height: 64px; object-fit: cover; background: hsl(var(--secondary)); flex-shrink: 0; }
.cart-line .line-body { flex: 1; min-width: 0; }
.cart-line h3 { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.cart-line .line-variant { font-size: 13px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.02em; }
.cart-line .line-variant button { margin-left: 8px; text-decoration: underline; text-transform: none; letter-spacing: 0; }
.cart-line .line-variant button:hover { opacity: 0.7; }
.qty { display: inline-flex; align-items: center; gap: 8px; border: 1px solid hsl(var(--border)); margin-top: 8px; }
.qty button { padding: 4px; transition: all 0.15s; display: flex; }
.qty button:hover { background: hsl(var(--foreground)); color: hsl(var(--primary-foreground)); }
.qty button:disabled { opacity: 0.4; pointer-events: none; }
.qty span { padding: 4px 12px; font-size: 14px; }
.cart-line .line-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-line .line-price { font-weight: 500; }
.cart-line .line-remove { font-size: 12px; text-decoration: underline; opacity: 0.7; }
.cart-line .line-remove:hover { opacity: 1; }
.drawer-foot { border-top: 1px solid hsl(var(--border)); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.ship-progress { font-size: 12px; text-align: center; }
.ship-bar { height: 2px; background: hsl(var(--border)); margin-top: 8px; overflow: hidden; }
.ship-bar span { display: block; height: 100%; background: hsl(var(--foreground)); transition: width 0.5s ease; }
.subtotal-row { display: flex; justify-content: space-between; font-size: 14px; }
.subtotal-row strong { font-weight: 500; }

/* Quick-add sheet */
.sheet-body { padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.sheet-title { font-size: 18px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 400; text-align: left; }
.sheet-product { display: flex; gap: 16px; }
.sheet-product img { width: 80px; height: 80px; object-fit: cover; background: hsl(var(--secondary)); }
.sheet-product h3 { font-size: 18px; font-weight: 500; margin-bottom: 4px; text-transform: uppercase; }
.sheet-product .desc { font-size: 14px; margin-bottom: 8px; color: hsl(var(--foreground) / 0.7); }
.sheet-product .price { font-size: 18px; font-weight: 500; }
.sheet-section { padding-top: 16px; border-top: 1px solid hsl(var(--border)); display: flex; flex-direction: column; gap: 8px; }
.sheet-section .lbl { font-size: 14px; font-weight: 500; }
.sheet-section .sub { font-size: 12px; color: hsl(var(--foreground) / 0.7); }
.swatch-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.swatch {
  position: relative; aspect-ratio: 1 / 1; border: 1px solid hsl(var(--border)); border-radius: 4px;
  overflow: hidden; background: hsl(var(--secondary)); transition: all 0.15s;
}
.swatch img { width: 100%; height: 100%; object-fit: cover; }
.swatch:hover { border-color: hsl(var(--foreground) / 0.5); }
.swatch.selected { border: 2px solid hsl(var(--foreground)); box-shadow: 0 0 0 1px hsl(var(--foreground)); }
.swatch .num { position: absolute; right: 2px; bottom: 2px; font-size: 8px; line-height: 1; background: rgb(255 255 255 / 0.9); padding: 2px 3px; border-radius: 2px; }
.swatch .check { position: absolute; left: 0; bottom: 0; background: rgb(255 255 255 / 0.9); padding: 1px 2px; border-top-right-radius: 3px; display: flex; }
.swatch .check svg { width: 12px; height: 12px; }
.swatch.oos { opacity: 0.5; cursor: not-allowed; }
.swatch.oos::after { content: "OUT"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 9px; color: #000; background: rgb(255 255 255 / 0.5); }
.stock-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--success)); }
.stock-dot.low { background: #eab308; }
.stock-dot.oos { background: #ef4444; }
.added-ok { width: 100%; background: rgb(34 197 94 / 0.1); border: 1px solid #22c55e; color: #16a34a; padding: 16px; text-align: center; font-size: 14px; font-weight: 500; }

/* Toast */
.toast-root { position: fixed; left: 50%; bottom: 24px; z-index: 200; pointer-events: none; }
.toast {
  position: absolute; left: 0; bottom: 0; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  background: #fff; border: 1px solid hsl(var(--border)); box-shadow: 0 10px 25px rgb(0 0 0 / 0.12);
  padding: 12px 16px; border-radius: 8px; font-size: 13px;
  animation: toastIn 0.25s ease-out forwards;
}
.toast.out { opacity: 0; transition: opacity 0.3s; }
.toast .t-ok { width: 18px; height: 18px; border-radius: 50%; background: #22c55e; color: #fff; display: flex; align-items: center; justify-content: center; }
.toast .t-ok svg { width: 11px; height: 11px; }
.toast .t-err { background: #ef4444; }

/* Fly-to-cart bubble */
.fly-bubble {
  position: fixed; width: 40px; height: 40px; border-radius: 50%; z-index: 9999; pointer-events: none;
  background: hsl(var(--foreground)); color: hsl(var(--primary-foreground));
  display: flex; align-items: center; justify-content: center;
  transform: translate(-50%, -50%);
}
.fly-bubble svg { width: 20px; height: 20px; }

/* ==========================================================================
   Collections page
   ========================================================================== */
.collection-head { padding: 32px var(--gutter) 16px; }
.collection-title { display: flex; align-items: flex-start; gap: 8px; font-size: 28px; font-weight: 500; text-transform: uppercase; line-height: 1; }
.collection-title sup { font-size: 14px; font-weight: 300; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 10px; line-height: 1.4;
  background: hsl(var(--muted)); color: hsl(var(--foreground)); transition: all 0.15s; display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { background: hsl(var(--accent)); }
.chip.active { background: hsl(var(--foreground)); color: #fff; }
.chip .icon-xs { width: 10px; height: 10px; }
.filter-bar { margin-top: 20px; }
.filter-panel { margin-top: 16px; padding: 20px; border: 1px solid hsl(var(--border)); display: grid; gap: 24px; animation: menuFadeIn 0.3s ease-out forwards; }
.filter-panel h5 { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 400; margin-bottom: 12px; }
@media (min-width: 768px) { .filter-panel { grid-template-columns: 1fr 1fr; } .collection-title { font-size: 32px; } }
.collection-divider { height: 1px; background: hsl(var(--border)); margin: 16px var(--gutter) 24px; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 4px; padding: 0 var(--gutter) 24px; row-gap: 28px; }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
.empty-state { padding: 64px var(--gutter); text-align: center; font-size: 14px; }
.collection-search-note { font-size: 13px; margin-top: 12px; }

/* ==========================================================================
   Product page
   ========================================================================== */
.product-page { display: grid; grid-template-columns: 1fr; }
.gallery { position: relative; background: hsl(var(--secondary)); aspect-ratio: 1 / 1; overflow: hidden; }
.gallery-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track > div { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; }
.gallery .carousel-nav { top: 50%; opacity: 1; }
.gallery .carousel-nav.prev { left: 8px; }
.gallery .carousel-nav.next { right: 8px; }
.gallery-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 5; }
.gallery-dots button { width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--foreground) / 0.25); transition: all 0.3s; }
.gallery-dots button.active { background: hsl(var(--foreground)); }
.gallery-thumbs { display: none; }
.product-info { padding: 32px var(--gutter) 40px; }
.product-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.product-title { font-size: 20px; font-weight: 400; line-height: 1.3; }
.view360 { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; letter-spacing: 0.2em; white-space: nowrap; margin-top: 4px; }
.view360 svg { width: 14px; height: 14px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.badge { background: hsl(var(--foreground)); color: #fff; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 8px; font-weight: 500; }
.badge.outline { background: transparent; color: hsl(var(--foreground)); border: 1px solid hsl(var(--foreground)); }
.product-rating { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; }
.product-rating .stars svg { width: 13px; height: 13px; }
.product-rating .rate-link { text-decoration: underline; }
.product-rating .rate-link:hover { opacity: 0.7; }
.stock-line { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #16a34a; }
.stock-line.oos { color: #ef4444; }
.stock-line .stock-dot { width: 6px; height: 6px; }
.product-price { margin-top: 10px; font-size: 14px; font-weight: 700; }
.product-price .unit { font-weight: 400; font-size: 12px; opacity: 0.6; }
.product-price .compare { font-weight: 400; text-decoration: line-through; color: #ef4444; margin-left: 8px; font-size: 12px; }
.product-divider { height: 1px; background: hsl(var(--border)); margin: 16px 0; }
.variant-label { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.variant-label span { font-weight: 400; }
.product-swatches { display: grid; grid-template-columns: repeat(8, 40px); gap: 10px; }
.product-swatches .swatch { width: 40px; }
.product-swatches .swatch .num { font-size: 7px; }
.variant-desc { font-size: 12px; margin-top: 10px; color: hsl(var(--foreground) / 0.7); }
.product-cta { margin-top: 24px; }
.product-cta .btn-primary { width: 100%; padding: 1rem 2rem; font-weight: 400; }
.product-note { font-size: 10px; margin-top: 10px; letter-spacing: 0.02em; }
.accordion { margin-top: 24px; border-top: 1px solid hsl(var(--border)); }
.acc-item { border-bottom: 1px solid hsl(var(--border)); }
.acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }
.acc-btn .acc-plus { width: 14px; height: 14px; transition: transform 0.3s; }
.acc-btn .acc-chev { width: 14px; height: 14px; transition: transform 0.3s; }
.acc-item.open .acc-plus { transform: rotate(45deg); }
.acc-item.open .acc-chev { transform: rotate(180deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }
.acc-content { padding: 0 4px 20px; font-size: 13px; line-height: 1.7; }
.acc-content ul { list-style: disc; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.acc-content p + p { margin-top: 8px; }
.acc-content .kh { font-family: var(--font-khmer); letter-spacing: 0; }
.ship-list li { display: flex; gap: 8px; }
@media (min-width: 1024px) {
  .product-page { grid-template-columns: 1fr 1fr; }
  .product-info { padding: 32px 40px 48px; position: sticky; top: var(--header-h); align-self: start; }
  .product-title { font-size: 22px; }
}

/* Tabs */
.tabs { padding: 24px var(--gutter) 0; max-width: 1400px; }
.tab-list { display: flex; margin: 0 16px; }
.tab-btn {
  flex: 1; padding: 12px 16px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  text-align: center; border-bottom: 2px solid hsl(var(--border)); transition: all 0.2s; background: hsl(var(--muted) / 0.4);
}
.tab-btn.active { border-bottom-color: hsl(var(--foreground)); background: hsl(var(--muted)); font-weight: 500; }
.tab-panel { padding: 24px 16px 8px; font-size: 13px; line-height: 1.8; animation: menuFadeIn 0.3s ease-out forwards; }
.tab-panel h3 { font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 400; margin-bottom: 16px; }
.tab-panel strong { font-weight: 600; }
.tab-panel p + p { margin-top: 8px; }
.tab-panel ul { display: flex; flex-direction: column; gap: 4px; }
.tab-panel .kh { font-family: var(--font-khmer); letter-spacing: 0; }
.ingredient-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; margin-top: 8px; }
.ingredient-grid div { border-left: 1px solid hsl(var(--border)); padding-left: 12px; }
.ingredient-grid b { display: block; font-weight: 500; font-size: 13px; }
.ingredient-grid span { font-size: 12px; opacity: 0.7; }
@media (min-width: 768px) { .ingredient-grid { grid-template-columns: repeat(4, 1fr); } }
.related { padding-top: 40px; }

/* ==========================================================================
   Static pages
   ========================================================================== */
main .page { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 64px; }
main .page-wide { max-width: 1200px; }
.page-title { font-size: 24px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 400; text-align: center; margin-bottom: 8px; }
.page-sub { text-align: center; font-size: 13px; margin-bottom: 40px; }
.prose { font-size: 14px; line-height: 1.8; }
.prose h2 { font-size: 14px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; margin: 32px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.prose a { text-decoration: underline; }
.about-hero { width: 100%; aspect-ratio: 2400 / 1429; object-fit: cover; margin-bottom: 40px; background: hsl(var(--secondary)); }
.about-grid { display: grid; gap: 24px; margin-top: 40px; }
.about-grid .cell { padding: 24px; background: hsl(var(--muted)); }
.about-grid .cell h3 { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; margin-bottom: 8px; }
.about-grid .cell p { font-size: 13px; line-height: 1.7; }
@media (min-width: 768px) { .about-grid { grid-template-columns: repeat(3, 1fr); } }
.faq-item { border-bottom: 1px solid hsl(var(--border)); }
.faq-item:first-child { border-top: 1px solid hsl(var(--border)); }
.faq-item .acc-btn { text-transform: none; letter-spacing: 0.02em; font-size: 14px; font-weight: 400; padding: 18px 4px; text-align: left; }
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info dt { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 20px; }
.contact-info dd { margin: 4px 0 0; font-size: 14px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
textarea.input { min-height: 120px; resize: vertical; }
.form-ok { padding: 16px; background: rgb(34 197 94 / 0.1); border: 1px solid #22c55e; color: #16a34a; font-size: 14px; text-align: center; }

/* Auth */
.auth { max-width: 420px; margin: 0 auto; padding: 56px var(--gutter) 80px; }
.auth .page-title { margin-bottom: 32px; }
.auth .alt { text-align: center; font-size: 13px; margin-top: 20px; }
.auth .alt a { text-decoration: underline; }

/* Account */
.account-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .account-grid { grid-template-columns: 240px 1fr; } }
.account-nav { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.order-card { border: 1px solid hsl(var(--border)); padding: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.order-card + .order-card { margin-top: 12px; }
.order-card .row { display: flex; justify-content: space-between; }
.order-card .status { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; background: hsl(var(--muted)); padding: 3px 8px; }

/* Checkout */
.checkout { display: grid; gap: 40px; padding: 40px var(--gutter) 64px; max-width: 1200px; margin: 0 auto; }
@media (min-width: 1024px) { .checkout { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.checkout h2 { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; margin: 32px 0 16px; }
.checkout h2:first-child { margin-top: 0; }
.pay-options { display: flex; flex-direction: column; gap: 8px; }
.pay-option { display: flex; align-items: center; gap: 12px; border: 1px solid hsl(var(--border)); padding: 14px 16px; cursor: pointer; font-size: 14px; transition: border-color 0.15s; }
.pay-option:hover { border-color: hsl(var(--foreground) / 0.5); }
.pay-option.selected { border-color: hsl(var(--foreground)); }
.pay-option input { accent-color: #000; }
.pay-option small { display: block; font-size: 12px; opacity: 0.6; }
.checkout-side { display: grid; gap: 16px; align-self: start; position: sticky; top: calc(var(--header-h) + 16px); }
.checkout .checkout-side .btn-primary { margin-top: 0; }
.summary { background: hsl(var(--muted)); padding: 24px; }
.summary h2 { margin-top: 0; }
.summary-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid hsl(var(--border)); font-size: 13px; }
.summary-line img { width: 56px; height: 56px; object-fit: cover; background: #fff; }
.summary-line .body { flex: 1; }
.summary-line .body small { display: block; opacity: 0.7; font-size: 12px; }
.summary-line .line-amount { text-align: right; }
.summary-totals { padding-top: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.summary-totals div { display: flex; justify-content: space-between; }
.summary-totals .total { font-weight: 600; font-size: 18px; padding-top: 8px; border-top: 1px solid hsl(var(--border)); }
.checkout .btn-primary { width: 100%; margin-top: 24px; padding: 1rem; }
.order-done { text-align: center; max-width: 560px; margin: 0 auto; padding: 72px var(--gutter) 96px; }
.order-done .big-check { width: 64px; height: 64px; border-radius: 50%; background: #22c55e; color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.order-done .big-check svg { width: 28px; height: 28px; }
.order-done h1 { font-size: 22px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 400; }
.order-done p { font-size: 14px; margin-top: 12px; line-height: 1.7; }
.order-done .btn-primary { margin-top: 32px; }
.order-done .pay-qr { display: block; margin: 24px auto 0; width: 220px; max-width: 100%; height: auto; border-radius: 8px; }
.ship-eta { display: block; font-size: 11px; opacity: 0.65; margin-top: 2px; }
.field-err { border-color: #ef4444 !important; }

/* 404 */
.notfound { text-align: center; padding: 96px var(--gutter); }
.notfound h1 { font-size: 64px; font-weight: 300; letter-spacing: 0.2em; }
.notfound p { margin: 12px 0 24px; font-size: 14px; }

/* Loading skeleton */
.skeleton { background: hsl(var(--muted)); animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* Mobile bottom padding to avoid overlap with toast */
@media (max-width: 767px) {
  :root { --gutter: 16px; --header-h: 56px; }
  .header-logo img { height: 34px; }
  .menu-label { font-size: 11px; }
  .drawer { width: 92%; }
}

/* ==========================================================================
   WooCommerce pages rendered inside the theme chrome (/my-account, /cart, /checkout)
   ========================================================================== */
.wp-page { min-height: 50vh; }
.wc-content { font-size: 14px; }
.wc-content .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 24px; }
.wc-content .woocommerce-MyAccount-navigation a { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; }
.wc-content .woocommerce-MyAccount-navigation .is-active a { border-bottom: 1px solid currentColor; }
.wc-content .button, .wc-content button[type="submit"], .wc-content .wc-block-components-button, .wc-content .wp-element-button {
  background: hsl(var(--primary)) !important; color: hsl(var(--primary-foreground)) !important; border: 0 !important; border-radius: 0 !important;
  padding: 0.75rem 2rem !important; font-size: 0.875rem !important; font-weight: 300 !important; text-transform: uppercase; letter-spacing: 0.2em; line-height: 1.25rem !important;
}
.wc-content .button:hover, .wc-content button[type="submit"]:hover { background: hsl(var(--foreground) / 0.9) !important; }
.wc-content input.input-text, .wc-content input[type="text"], .wc-content input[type="email"], .wc-content input[type="password"], .wc-content input[type="tel"], .wc-content select, .wc-content textarea, .wc-content .wc-block-components-text-input input {
  width: 100%; border: 1px solid hsl(var(--border)); border-radius: 0 !important; padding: 0.75rem 1rem; font: inherit; background: transparent;
}
.wc-content input:focus, .wc-content textarea:focus { outline: none; border-color: hsl(var(--foreground)); }
.wc-content label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.wc-content .woocommerce-form-login, .wc-content .woocommerce-form-register { border: 1px solid hsl(var(--border)) !important; border-radius: 0 !important; padding: 24px !important; }
.wc-content .u-columns { display: grid; gap: 32px; }
@media (min-width: 768px) { .wc-content .u-columns { grid-template-columns: 1fr 1fr; } }
.wc-content h2, .wc-content h3 { font-size: 14px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; margin: 24px 0 12px; }
.wc-content table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wc-content th, .wc-content td { text-align: left; padding: 10px 8px; border-bottom: 1px solid hsl(var(--border)); }
.wc-content .woocommerce-message, .wc-content .woocommerce-info, .wc-content .woocommerce-error { border: 1px solid hsl(var(--border)); padding: 12px 16px; font-size: 13px; margin-bottom: 16px; list-style: none; }
.wc-content .woocommerce-error { border-color: #ef4444; color: #b91c1c; }
.wc-content a { text-decoration: underline; }
.wc-content .wc-block-components-notice-banner { border-radius: 0; }

/* WordPress admin bar (logged-in store staff) sits above the sticky header */
body.admin-bar .site-header { top: 32px; }
body.admin-bar .drawer, body.admin-bar .overlay { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header, body.admin-bar .drawer, body.admin-bar .overlay { top: 46px; } }

/* ==========================================================================
   Backend-driven extras: badges, promotions, gifts, vouchers
   ========================================================================== */
.card-badges { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.card-badges .card-badge { position: static; }
.card-badge.outline { background: #fff; color: hsl(var(--foreground)); border: 1px solid hsl(var(--foreground)); }
.card-badge.soldout { background: #b91c1c; }
.card-badge.promo { background: #7c3aed; }
.badge.soldout { background: #b91c1c; color: #fff; }
.badge.promo { background: #7c3aed; color: #fff; }
.card-cta.disabled, .card-cta:disabled { background: hsl(var(--foreground) / 0.55); cursor: not-allowed; }
.product-card-price .compare, .product-price .compare { font-weight: 400; text-decoration: line-through; color: hsl(var(--foreground) / 0.5); margin-right: 6px; margin-left: 0; font-size: 0.95em; }
.muted { color: hsl(var(--foreground) / 0.5); }
.cart-line.gift { background: hsl(var(--muted)); margin: 0 -8px; padding: 12px 8px 20px; }
.gift-tag { display: inline-block; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; background: hsl(var(--foreground)); color: #fff; padding: 2px 6px; vertical-align: middle; margin-left: 6px; }
.line-promo { font-size: 12px; color: #C8233F; margin-top: 4px; }
/* Brand coral (deal/free): the "20% OFF" pill on a discounted line, same size family as .gift-tag. */
.pct-tag { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 9px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #D63F2A, #C8233F); }
/* Discount row: "Discount" like "Subtotal", then the coral tag + text; the coral part wraps under it when narrow. */
.discount { align-items: flex-start; }
.discount .disc-left { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 2px; min-width: 0; }
.disc-what { min-width: 0; overflow-wrap: anywhere; color: #C8233F; }
.disc-amt { flex: none; margin-left: 12px; white-space: nowrap; color: #C8233F; }
.cart-line .line-right .pct-tag, .cart-line .line-right .line-promo { margin-top: 0; }
/* Totals while a new quote is on its way: never shown as final. */
.cart-totals { display: flex; flex-direction: column; gap: inherit; }
.summary-totals .cart-totals { flex-direction: column; justify-content: flex-start; gap: 8px; }
.is-updating { opacity: 0.55; transition: opacity 0.15s; }
.gift-pick { margin: 0 24px 16px; font-size: 12px; }
.gift-pick > p { margin: 0 0 8px; letter-spacing: 0.05em; }
.gift-options { display: flex; flex-wrap: wrap; gap: 8px; }
.gift-option { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1px solid hsl(var(--border)); border-radius: 12px; background: rgb(255 255 255 / 0.6); font: inherit; font-size: 12px; cursor: pointer; text-align: left; }
.gift-option img { width: 32px; height: 32px; object-fit: cover; border-radius: 8px; }
.gift-option:disabled { cursor: default; opacity: 0.5; }
.gift-option em { font-style: normal; color: hsl(var(--destructive)); }
.gift-option.on { border-color: hsl(var(--foreground)); box-shadow: inset 0 0 0 1px hsl(var(--foreground)); }
.cart-warning { margin: 0 24px 16px; padding: 10px 12px; background: #fef3c7; color: #92400e; font-size: 12px; }
.voucher { display: flex; gap: 0; }
.voucher input { flex: 1; min-width: 0; border: 1px solid hsl(var(--border)); border-right: 0; padding: 10px 12px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; outline: none; background: transparent; }
.voucher input:focus { border-color: hsl(var(--foreground)); }
.voucher .btn-outline { padding: 0.6rem 1rem; font-size: 11px; }
.voucher-msg { font-size: 12px; margin-top: -8px; }
.voucher-msg.ok { color: #15803d; }
.voucher-msg.bad { color: #b91c1c; }
.subtotal-row.total { border-top: 1px solid hsl(var(--border)); padding-top: 10px; font-size: 15px; }
.subtotal-row.total strong { font-weight: 600; }
.voucher-row { padding: 8px 0; }
.voucher-row .voucher input { background: #fff; }
.auth .form .skeleton, .account-grid .skeleton { min-height: 120px; }

/* ==========================================================================
   Page-builder sections (only on published pages; colours from glass.css)
   ========================================================================== */
.hero-slide picture { display: contents; }
.sec-white { background: var(--glass-fill-strong); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow-sm); }
.sec-dark { background: var(--glass-dark); border: 1px solid var(--glass-dark-edge); box-shadow: var(--glass-dark-shadow); color: #fff; }
.sec-peach { /* the "free" accent, as the gift line in the cart */
  background: linear-gradient(135deg, rgb(255 222 206 / 0.95), rgb(255 238 230 / 0.6));
  border: 1px solid rgb(255 150 125 / 0.55);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.9), 0 6px 18px rgb(255 105 85 / 0.18);
}
.sec-coral, .sec-purple, .sec-red, .sec-green, .sec-blue, .sec-gold { /* label palette: solid colour, white text */
  color: #fff; border: 1px solid transparent; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), var(--glass-shadow-sm);
}
.sec-coral { background: linear-gradient(135deg, #D63F2A, #C8233F); }
.sec-purple { background: #7C3AED; }
.sec-red { background: #B91C1C; }
.sec-green { background: #15803D; }
.sec-blue { background: #1D6FD8; }
.sec-gold { background: #A16207; }
.sec-transparent { background: transparent; }
.announcement { margin: 10px var(--gutter) 0; padding: 8px 16px; border-radius: var(--r-pill); text-align: center; font-size: 12px; letter-spacing: 0.1em; }
.announcement a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.wy-preview-selected { outline: 2px solid #000; outline-offset: 2px; }
.sec-center .prose { text-align: center; }
.sec-center .prose ul { list-style-position: inside; padding-left: 0; }
@media (min-width: 1024px) {
  .sec-grid { grid-template-columns: repeat(var(--cols), 1fr); }
  .brand-strip-right { grid-template-columns: 1fr 1.4fr; }
  .brand-strip-right > img { order: 1; }
}

.sec-banner { position: relative; margin: 32px var(--gutter); }
.sec-banner img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); background: rgb(255 255 255 / 0.5); }
.sec-banner-text { margin-top: 12px; padding: 24px; border-radius: var(--r-md); text-align: center; }
.sec-banner-text h2, .sec-countdown h2 { font-size: 20px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 400; }
.sec-banner-text p, .sec-countdown p { font-size: 14px; line-height: 1.7; margin-top: 12px; }
.sec-banner-text a, .sec-countdown a { margin-top: 20px; }
@media (min-width: 768px) {
  .sec-banner img { aspect-ratio: 21 / 9; }
  .sec-banner-text { position: absolute; top: 50%; transform: translateY(-50%); margin: 0; max-width: 420px; backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
  .sec-banner-left .sec-banner-text { left: 40px; text-align: left; }
  .sec-banner-right .sec-banner-text { right: 40px; text-align: left; }
  .sec-banner-center .sec-banner-text { left: 50%; transform: translate(-50%, -50%); }
}

.sec-countdown { margin: 32px var(--gutter); padding: 40px 24px; border-radius: var(--r-lg); text-align: center; }
.sec-countdown-clock { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.sec-countdown-clock span { display: flex; flex-direction: column; align-items: center; min-width: 60px; }
.sec-countdown-clock b { font-size: 32px; font-weight: 300; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sec-countdown-clock small { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; }

.sec-video-frame { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.sec-video-frame iframe, .sec-video-poster { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--r-lg); overflow: hidden; background: #000; cursor: pointer; }
.sec-video-poster img { width: 100%; height: 100%; object-fit: cover; }
.sec-video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%;
  background: var(--glass-dark); border: 1px solid var(--glass-dark-edge); box-shadow: var(--glass-dark-shadow); color: #fff; font-size: 22px;
}

.sec-reviews-list { display: grid; gap: 16px; padding: 0 var(--gutter); }
.sec-review { margin: 0; padding: 24px; border-radius: var(--r-md); background: var(--glass-fill); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow-sm); text-align: center; }
.sec-review img { width: 72px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; margin: 0 auto 12px; }
.sec-review blockquote { margin: 12px 0 0; font-size: 14px; line-height: 1.7; }
.sec-review figcaption { margin-top: 12px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
@media (min-width: 768px) { .sec-reviews-list { grid-template-columns: repeat(3, 1fr); } }

.sec-newsletter .newsletter { width: calc(100% - 2 * var(--gutter)); }

.gallery-grid { display: grid; gap: 16px; padding: 0 var(--gutter); }
.gallery-grid .marquee-item, .gallery-grid .marquee-item .frame { width: auto; }
.gallery-grid .marquee-item .frame { height: auto; aspect-ratio: 1 / 1; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.sec-spacer-s { height: 24px; }
.sec-spacer-m { height: 48px; }
.sec-spacer-l { height: 96px; }

/* Khmer: 0.03em letter spacing and 1.6 line height for the uppercase-style section text (brand guidelines). */
body.lang-kh .sec-banner-text h2, body.lang-kh .sec-countdown h2, body.lang-kh .sec-countdown-clock small, body.lang-kh .sec-review figcaption, body.lang-kh .announcement { letter-spacing: .03em; line-height: 1.6; }

/* ==========================================================================
   Sign in and My account (member card)
   ========================================================================== */
main .signin { max-width: 480px; text-align: center; }
.signin .page-title { font-size: 40px; letter-spacing: 0.04em; margin-bottom: 12px; }
.signin-sub { font-size: 16px; margin-bottom: 32px; }
.signin-error { color: hsl(var(--destructive)); font-size: 14px; margin-bottom: 16px; }
.signin-buttons { display: flex; flex-direction: column; gap: 12px; }
.signin-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 12px 16px;
  border: 1px solid var(--glass-edge, hsl(var(--border))); background: var(--glass-fill, hsl(var(--card)));
  box-shadow: var(--glass-shadow-sm, none); border-radius: var(--r-pill, 0); font-size: 16px; color: hsl(var(--foreground));
  transition: transform .25s, box-shadow .25s;
}
.signin-btn:hover { transform: translateY(-1px); box-shadow: var(--glass-shadow, none); }
.signin-btn .icon { width: 22px; height: 22px; }

.account { max-width: 760px; }
.account-heading { font-size: 14px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; margin: 32px 0 12px; }
/* Points: balance, rewards to add to the cart, history. */
.points-box { margin-top: 24px; }
.points-balance { font-size: 15px; letter-spacing: 0.05em; }
/* The history opens from the balance (a tap), so it doesn't fill the page. */
.points-details > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.points-details > summary::-webkit-details-marker { display: none; }
.points-toggle { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; color: hsl(var(--muted-foreground)); }
.points-toggle::after { content: ' ▾'; text-decoration: none; display: inline-block; margin-left: 4px; }
.points-details[open] .points-toggle::after { transform: rotate(180deg); }
.points-details[open] > summary { margin-bottom: 8px; }
.points-balance strong { font-size: 28px; font-weight: 500; margin-right: 4px; }
.points-note { font-size: 13px; color: hsl(var(--muted-foreground)); margin-top: 4px; }
.reward-list, .points-history { list-style: none; padding: 0; margin: 0; }
.reward { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid hsl(var(--border)); }
.reward img { width: 56px; height: 56px; object-fit: cover; flex: none; }
.reward-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.reward-body small, .reward-body span { color: hsl(var(--muted-foreground)); font-size: 12px; }
.reward .btn-primary, .reward .btn-outline { flex: none; padding: 8px 12px; font-size: 11px; }
/* Small phones: the button goes under the reward, so its name keeps the width. */
@media (max-width: 420px) {
  .reward { flex-wrap: wrap; }
  .reward .btn-primary, .reward .btn-outline { flex: 1 0 100%; }
}
.points-history li { display: grid; grid-template-columns: 7.5em 1fr auto; gap: 12px; padding: 8px 0; border-bottom: 1px solid hsl(var(--border)); font-size: 13px; }
.points-row span { color: hsl(var(--muted-foreground)); font-size: 13px; }
.account .order-card + .order-card { margin-top: 10px; }
.account > p:last-child { margin-top: 32px; text-align: center; }

/* The member card (owner's design, the same for every member): a shiny card in the level's colour (--tier, silver
   by default), a big faded weYOUNG down the right side, the level badge and a points bar to the next level.
   Sizes follow the card's width (cqw), with minimums for small phones. The parts sit in a column, so on a narrow
   phone the card grows taller instead of letting them overlap (overflow: clip, unlike hidden, allows that). */
.member-card {
  --tier: #c0c0c0;
  position: relative; overflow: clip; container-type: inline-size; aspect-ratio: 1.6;
  display: flex; flex-direction: column; gap: 12px; padding: 6% 20% 6% 6%;
  border-radius: 22px; color: #1a1a1a;
  background: linear-gradient(115deg, #f4f4f4, #dcdcdc 45%, #fafafa 60%, #d6d6d6);
  background: linear-gradient(115deg,
    color-mix(in srgb, var(--tier) 22%, #fff) 0%, color-mix(in srgb, var(--tier) 48%, #fff) 38%,
    color-mix(in srgb, var(--tier) 8%, #fff) 58%, color-mix(in srgb, var(--tier) 40%, #fff) 82%,
    color-mix(in srgb, var(--tier) 62%, #fff) 100%);
  border: 1px solid color-mix(in srgb, var(--tier) 30%, #fff);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .9), 0 14px 34px rgb(30 45 70 / .14);
}
/* The card fills the page width; wider screens get a wider shape, so it never becomes huge. */
@media (min-width: 640px) {
  .member-card { aspect-ratio: 2.4; padding: 4% 15% 4% 4.5%; }
  .member-card .member-mark { width: 40%; right: -12%; }
}
@media (min-width: 1000px) {
  .member-card { aspect-ratio: 3.2; padding: 3% 12% 3% 3.5%; }
  .member-card .member-mark { width: 31%; right: -9.5%; }
}
.member-mark {
  position: absolute; top: 50%; right: -20%; width: 60%; height: auto; opacity: .09; pointer-events: none;
  transform: translateY(-50%) rotate(-90deg);
}
.member-who { position: relative; z-index: 1; display: flex; align-items: center; gap: 3.5cqw; margin-bottom: auto; min-width: 0; }
.member-who > div { min-width: 0; }
.member-avatar {
  width: clamp(44px, 16cqw, 96px); height: clamp(44px, 16cqw, 96px); border-radius: 50%; object-fit: cover; flex: none;
  box-shadow: 0 0 0 0.8cqw color-mix(in srgb, var(--tier) 55%, #fff), 0 0 0 1.1cqw rgb(255 255 255 / .8), 0 4px 12px rgb(0 0 0 / .15);
  display: inline-flex; align-items: center; justify-content: center; font-size: clamp(15px, 5cqw, 30px); font-weight: 600; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tier) 55%, #fff), color-mix(in srgb, var(--tier) 85%, #333));
}
.member-name { font-size: clamp(18px, 6.6cqw, 38px); font-weight: 500; line-height: 1.1; overflow-wrap: anywhere; }
.member-badge {
  display: inline-block; max-width: 100%; margin-top: 1.4cqw; padding: max(2px, 0.7cqw) max(8px, 2.6cqw); border-radius: 999px;
  font-size: clamp(9px, 2.3cqw, 13px); letter-spacing: .4em; text-transform: uppercase; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--tier) 42%, #fff));
  border: 1px solid color-mix(in srgb, var(--tier) 75%, #fff); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgb(0 0 0 / .12);
}
.member-progress { position: relative; z-index: 1; font-size: clamp(11px, 2.2cqw, 15px); }
.member-progress-text { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 2cqw; margin-bottom: max(6px, 1.4cqw); }
.member-progress-text span { white-space: nowrap; }
.member-progress b { font-weight: 600; }
.member-bar { height: clamp(4px, 1.3cqw, 8px); border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--tier) 45%, #fff); }
.member-bar span { display: block; height: 100%; border-radius: inherit; background: #111; }
.member-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 3cqw; }
.member-since { font-size: clamp(12px, 3.2cqw, 18px); white-space: nowrap; }
.member-logo { width: clamp(72px, 22cqw, 150px); height: auto; margin-left: auto; }
}
