/* =====================================================
   LuxArc AI — style.css
   Theme: Luxury Dark · Gold Accent · Elegant UI
   Fonts: Cormorant Garamond + DM Sans
   FIX v4: Grid 2 kolom ala Shopee, gambar proporsional
   ===================================================== */

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold: #FFD700;
  --gold-dim: rgba(255, 215, 0, 0.12);
  --gold-border: rgba(255, 215, 0, 0.25);
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --surface: rgba(255,255,255,0.04);
  --surface2: rgba(255,255,255,0.08);
  --text: #f0ece4;
  --text-sub: #888;
  --text-muted: #555;
  --white: #ffffff;
  --danger: #ff4444;
  --success: #2ecc71;
  --radius: 12px;
  --radius-sm: 8px;
  --nav-h: 62px;
  --bnav-h: 68px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--nav-h);
  padding-bottom: var(--bnav-h);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo {
  font-family: 'Cormorant Garamond', serif;
}

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  border: none;
  background: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold-border); border-radius: 999px; }

/* =====================================================
   NAV
   ===================================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,215,0,0.08);
}

.logo {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
}

.logo span {
  color: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-btn {
  position: relative;
  background: var(--surface2);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition);
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-btn:hover {
  background: var(--gold-dim);
  border-color: var(--gold-border);
  color: var(--gold);
}

/* ── Sembunyikan tombol legacy ── */
.nav-btn[data-legacy="gift"],
.nav-btn[data-lang-toggle],
#nav-lang-btn,
#nav-gift-btn,
button[onclick*="toggleGift"],
button[onclick*="toggleLang"],
.nav-actions > button:not(.nav-btn):not([data-keep]) {
  display: none !important;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* =====================================================
   PAGE SYSTEM
   ===================================================== */
.page {
  display: none;
  animation: fadeUp 0.35s ease both;
}

.page.active {
  display: block;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  padding: 28px 16px 22px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,215,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  font-weight: 300;
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 8px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.74rem;
  color: var(--text);
}

.stat-pill b {
  color: var(--gold);
}

.stat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* =====================================================
   SEARCH
   ===================================================== */
.search-wrap {
  padding: 0 12px 12px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 8px 12px;
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.06);
}

.search-icon {
  font-size: 1rem;
  flex-shrink: 0;
  opacity: 0.5;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-icon-btn {
  background: none;
  border: none;
  font-size: 1rem;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 2px 4px;
  flex-shrink: 0;
}

.search-icon-btn:hover {
  opacity: 1;
}

/* =====================================================
   CATEGORY FILTER
   ===================================================== */
.category-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 12px 12px;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar { display: none; }

.cat-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: var(--surface);
  color: var(--text-sub);
  font-size: 0.78rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}

.cat-btn:hover,
.cat-btn.active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}

/* =====================================================
   SECTION HEADER
   ===================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 10px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
}

.section-count {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* =====================================================
   PRODUCT GRID — 2 KOLOM ALA SHOPEE
   ===================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 10px 20px;
}

/* ── Product Card ── */
.product-card {
  position: relative;
  background: linear-gradient(145deg, var(--bg3), #0f0f0f);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  width: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-border);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,215,0,0.06);
}

/* ── Gambar Produk — kotak proporsional ── */
.product-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg2);
  flex-shrink: 0;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

/* ── Wishlist Button ── */
.wishlist-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2;
}

.wishlist-btn:hover,
.wishlist-btn.active {
  background: rgba(255,50,80,0.15);
  border-color: rgba(255,50,80,0.4);
}

/* ── Product Body ── */
.product-body {
  padding: 8px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4px;
}

.product-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stock-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  flex-shrink: 0;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}

.stock-tag.in {
  color: var(--text-sub);
  background: var(--surface2);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stars {
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: -0.03em;
}

.rating-count {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* =====================================================
   HARGA — proporsional untuk 2 kolom
   ===================================================== */
.product-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  font-style: normal !important;
  line-height: 1.1;
  letter-spacing: 0;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.price-currency {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65em;
  font-weight: 700;
  font-style: normal !important;
  margin-right: 1px;
  opacity: 0.9;
}

.price-val {
  font-family: 'DM Sans', sans-serif;
  font-size: 1em;
  font-weight: 700;
  font-style: normal !important;
  letter-spacing: 0;
}

/* ── Buttons ── */
.actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
}

.actions-row {
  display: flex;
  flex-direction: row;
  gap: 5px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
  gap: 2px;
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  border: 1.5px solid transparent;
  cursor: pointer;
  min-width: 0;
}
.btn:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}
.btn-ghost {
  background: var(--surface);
  border-color: rgba(255,255,255,0.1);
  color: var(--text);
}
.btn-ghost.btn-live {
  background: rgba(255, 215, 0, 0.06);
  border-color: rgba(255, 215, 0, 0.4);
  color: var(--gold);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
  animation: livePulse 2.5s ease-in-out infinite;
}

.btn-ghost.btn-live::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.2), transparent);
  animation: liveShimmer 2s linear infinite;
}

@keyframes liveShimmer {
  to { left: 160%; }
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255,215,0,0.15); }
  50% { box-shadow: 0 0 18px rgba(255,215,0,0.35); }
}
.btn-white.btn-cart {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-white.btn-cart:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.btn-white.btn-cart:active {
  transform: scale(0.93);
}

.btn-white.btn-cart.added {
  background: rgba(46, 204, 113, 0.15);
  border-color: rgba(46, 204, 113, 0.5);
  color: #2ecc71;
}
.btn-ghost:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.15);
}

.btn-white {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: var(--white);
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
  font-weight: 600;
  width: 100%;
}

.btn-gold:hover {
  background: #ffe033;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.45), 0 4px 12px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}

.btn-gold:active {
  transform: scale(0.96) translateY(0);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.shimmer-btn {
  position: relative;
  overflow: hidden;
}

.shimmer-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  to { left: 160%; }
}

/* =====================================================
   BOTTOM NAV
   ===================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--bnav-h);
  display: flex;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,215,0,0.08);
  padding-bottom: env(safe-area-inset-bottom);
}

.bnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 500;
  transition: var(--transition);
  padding: 8px 0;
  font-family: 'DM Sans', sans-serif;
}

.bnav-btn .icon {
  font-size: 1.3rem;
  transition: transform var(--transition);
}

.bnav-btn.active,
.bnav-btn:hover {
  color: var(--gold);
}

.bnav-btn.active .icon,
.bnav-btn:hover .icon {
  transform: translateY(-2px);
}

/* =====================================================
   AI ADVISOR PAGE
   ===================================================== */
.chat-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--nav-h) - var(--bnav-h));
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.chat-header h2 {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
}

.chat-header h2 span {
  color: var(--gold);
  font-style: italic;
}

.btn-scan {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--gold-dim);
  border: 1.5px solid var(--gold-border);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 500;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}

.btn-scan:hover {
  background: rgba(255,215,0,0.2);
}

.chat-history {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: none;
}

.chat-history::-webkit-scrollbar { display: none; }

.chat-msg {
  max-width: 85%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.55;
}

.chat-msg.bot {
  align-self: flex-start;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--text);
  border-bottom-left-radius: 4px;
  text-align: left !important;
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  border-bottom-right-radius: 4px;
}

.ai-quick-replies {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-self: flex-start;
  width: 100%;
}

.ai-quick-btn {
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  font-size: 0.82rem;
  text-align: left;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}

.ai-quick-btn:hover {
  background: var(--gold-dim);
  border-color: var(--gold-border);
  color: var(--gold);
}

.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  background: var(--bg);
}

#chat-input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 11px 14px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition);
}

#chat-input:focus {
  border-color: var(--gold-border);
}

#chat-input::placeholder {
  color: var(--text-muted);
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gold);
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-send-btn:hover {
  background: #ffe033;
  box-shadow: 0 4px 16px rgba(255,215,0,0.3);
}

.ai-product-rec {
  display: flex;
  gap: 12px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(255,215,0,0.03));
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 6px;
  max-width: 88%;
}

.ai-product-rec img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255,215,0,0.15);
}

.ai-product-rec-info {
  flex: 1;
  min-width: 0;
}

.ai-product-rec-name {
  font-size: 0.88em;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.ai-product-rec-desc {
  font-size: 0.72em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.ai-product-rec-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 0.72em;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: var(--transition);
}

.ai-product-rec-btn:hover {
  background: rgba(255,215,0,0.2);
}

.ai-submenu {
  padding: 14px 16px 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  overflow: hidden;
}

.submenu-label {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.submenu-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  overflow-y: hidden;
}

.submenu-scroll::-webkit-scrollbar { display: none; }

.submenu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--surface);
  width: 76px;
  min-width: 76px;
  max-width: 76px;
  flex-shrink: 0;
  color: var(--text);
  font-size: 0.7rem;
  text-align: center;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
  overflow: hidden;
}

.submenu-item img {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.submenu-item span {
  font-size: 0.68rem;
  line-height: 1.3;
  word-break: break-word;
  white-space: normal;
}

.submenu-item:hover {
  border-color: var(--gold-border);
  background: var(--gold-dim);
  color: var(--gold);
}

.submenu-back {
  margin-top: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-sub);
  font-size: 0.78rem;
  font-family: 'DM Sans', sans-serif;
  transition: var(--transition);
}

.submenu-back:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}

/* =====================================================
   MODALS
   ===================================================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal.open {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  padding: 24px 20px 32px;
  animation: slideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1) both;
  scrollbar-width: none;
}

.modal-sheet::-webkit-scrollbar { display: none; }

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.glass-panel {
  background: rgba(18,18,18,0.97);
  border: 1px solid rgba(255,215,0,0.1);
  border-bottom: none;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-sub);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255,50,50,0.15);
  border-color: rgba(255,50,50,0.3);
  color: var(--danger);
}

.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 18px;
}

/* ── Lookbook ── */
.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.lookbook-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
}

/* ── Cart / Checkout ── */
#cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  font-size: 0.85rem;
}

.cart-item-name {
  color: var(--text);
  font-weight: 500;
}

.cart-item-price {
  color: var(--gold);
  font-weight: 600;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  font-weight: bold;
  font-size: 1.05rem;
}

/* =====================================================
   SETTINGS DRAWER
   ===================================================== */
.settings-drawer,
.settings-sheet {
  -webkit-translate: no;
  translate: no;
}

[data-setting-label],
.setting-option-label,
.setting-lang-label,
.setting-currency-label {
  font-family: 'DM Sans', sans-serif;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1.5px solid rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  transition: var(--transition);
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.lang-option:hover,
.lang-option.active {
  background: var(--gold-dim);
  border-color: var(--gold-border);
  color: var(--gold);
}

.lang-option .lang-flag {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.lang-option .lang-name {
  font-weight: 600;
}

.lang-option .lang-native {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.lang-option.active .lang-native {
  color: var(--gold);
  opacity: 0.7;
}

/* =====================================================
   CAMERA VIEW
   ===================================================== */
#camera-view {
  z-index: 900;
  background: #000;
  align-items: stretch;
}

.ai-match-badge {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 910;
  background: rgba(10,10,10,0.8);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.cam-ui {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 910;
  padding: 20px 20px 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.cam-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.cam-btn-main {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid rgba(255,255,255,0.3);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.cam-btn-main:hover {
  transform: scale(0.95);
}

.cam-btn-side {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.cam-btn-side:hover {
  background: rgba(255,255,255,0.25);
}

/* =====================================================
   TOAST
   ===================================================== */
#toast-stack {
  position: fixed;
  bottom: calc(var(--bnav-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  min-width: 220px;
  max-width: calc(100vw - 32px);
}

.toast {
  background: rgba(20,20,20,0.95);
  border: 1px solid var(--gold-border);
  color: var(--text);
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 0.83rem;
  text-align: center;
  backdrop-filter: blur(12px);
  animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both,
             toastOut 0.3s ease 2.7s both;
  pointer-events: auto;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.95); }
}

/* =====================================================
   ADMIN DASHBOARD
   ===================================================== */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.dash-kpi {
  background: linear-gradient(145deg, rgba(26,26,26,0.8), rgba(13,13,13,0.9));
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.dash-kpi-label {
  font-size: 0.75rem;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dash-kpi-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 6px;
  color: var(--white);
}

.dash-kpi-value.gold {
  color: var(--gold);
}

.mini-chart {
  display: flex;
  height: 80px;
  align-items: flex-end;
  gap: 4px;
  margin-top: 10px;
}

.mini-bar {
  flex: 1;
  background: var(--gold-dim);
  border-radius: 4px 4px 0 0;
  border: 1px solid var(--gold-border);
  transition: background var(--transition);
}

.mini-bar:hover {
  background: rgba(255,215,0,0.25);
}

/* =====================================================
   UTILITY
   ===================================================== */
.hidden { display: none !important; }

.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* HP kecil: tetap 2 kolom tapi lebih rapat */
@media (max-width: 360px) {
  .product-grid {
    gap: 6px;
    padding: 0 8px 16px;
  }
  .product-body {
    padding: 6px 6px 8px;
  }
  .product-name {
    font-size: 0.72rem;
  }
  .product-price {
    font-size: 0.95rem;
  }
  .btn {
    font-size: 0.58rem;
    padding: 5px 3px;
  }
}

/* Tablet: 3 kolom */
@media (min-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 14px 24px;
  }
  .product-name {
    font-size: 0.82rem;
  }
  .product-price {
    font-size: 1.15rem;
  }
}

/* Desktop: 4 kolom */
@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 0 20px 28px;
  }
  nav {
    padding: 0 32px;
  }
  .modal-sheet {
    border-radius: 24px;
    margin-bottom: 24px;
  }
}
@keyframes ripple-anim {
  to { transform: scale(2.5); opacity: 0; }
}
