/* ============================================
   ATG HubPay - Main Stylesheet Redesign
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.hidden {
  display: none !important;
}

:root {
  --primary: #d4b178;
  --primary-dark: #a17946;
  --accent: #7ea184;
  --accent2: #f0d7a2;
  --accent-red: #d97c73;
  --bg: #071210;
  --bg2: #0d1917;
  --bg3: #12211e;
  --surface: rgba(255, 255, 255, 0.075);
  --surface2: rgba(255, 255, 255, 0.12);
  --surface3: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.095);
  --glass-strong: rgba(255, 255, 255, 0.16);
  --glass-dark: rgba(8, 18, 16, 0.58);
  --border: rgba(255, 244, 222, 0.16);
  --border-strong: rgba(255, 244, 222, 0.3);
  --text: #f7f2e7;
  --text2: #c2beaf;
  --text3: #887f72;
  --text-muted: var(--text3);
  --text1: var(--text);
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow-lg: 0 28px 82px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --glass-blur: blur(22px) saturate(1.18);
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  font-size: calc(16px * var(--atg-text-scale, 1));
}

body {
  font-family: "Nunito", "Noto Sans Thai", sans-serif;
  background:
    linear-gradient(115deg, rgba(244, 221, 176, 0.12) 0 1px, transparent 1px 18%),
    linear-gradient(155deg, rgba(126, 161, 132, 0.14) 0 1px, transparent 1px 22%),
    radial-gradient(ellipse at 16% -10%, rgba(244, 221, 176, 0.18), transparent 42%),
    radial-gradient(ellipse at 88% 8%, rgba(126, 161, 132, 0.22), transparent 38%),
    radial-gradient(ellipse at 50% 112%, rgba(217, 124, 115, 0.10), transparent 38%),
    linear-gradient(180deg, #040b0a 0%, #071210 38%, #0d1917 72%, #111f1b 100%);
  background-attachment: fixed;
  color: var(--text);
  font-size: calc(16px * var(--atg-text-scale, 1));
  overflow-x: hidden;
  line-height: 1.6;
}

html[data-atg-theme="forest"] {
  --primary: #b8d39b;
  --primary-dark: #7a9b63;
  --accent: #78c6a3;
  --accent2: #d6e8b7;
  --bg: #06150f;
  --bg2: #0a2018;
  --bg3: #123126;
  --surface: rgba(214, 232, 183, 0.08);
  --surface2: rgba(214, 232, 183, 0.13);
  --surface3: rgba(214, 232, 183, 0.18);
  --glass: rgba(214, 232, 183, 0.10);
  --glass-strong: rgba(214, 232, 183, 0.17);
  --border: rgba(214, 232, 183, 0.18);
  --border-strong: rgba(214, 232, 183, 0.34);
  --text: #f3faee;
  --text2: #c4d0bd;
  --text3: #83907b;
}

html[data-atg-theme="forest"] body {
  background:
    linear-gradient(115deg, rgba(184, 211, 155, 0.12) 0 1px, transparent 1px 18%),
    linear-gradient(155deg, rgba(120, 198, 163, 0.14) 0 1px, transparent 1px 22%),
    radial-gradient(ellipse at 16% -10%, rgba(184, 211, 155, 0.18), transparent 42%),
    radial-gradient(ellipse at 88% 8%, rgba(120, 198, 163, 0.20), transparent 38%),
    linear-gradient(180deg, #030b07 0%, #06150f 38%, #0a2018 72%, #10291f 100%);
}

html[data-atg-theme="light"] {
  --primary: #9a6b2f;
  --primary-dark: #6f4a1c;
  --accent: #4d7c67;
  --accent2: #b88743;
  --accent-red: #b45f57;
  --bg: #f2eadc;
  --bg2: #eee3d0;
  --bg3: #e2d4bd;
  --surface: rgba(55, 42, 25, 0.07);
  --surface2: rgba(55, 42, 25, 0.11);
  --surface3: rgba(55, 42, 25, 0.16);
  --glass: rgba(255, 255, 255, 0.48);
  --glass-strong: rgba(255, 255, 255, 0.68);
  --glass-dark: rgba(248, 242, 230, 0.76);
  --border: rgba(86, 65, 37, 0.16);
  --border-strong: rgba(86, 65, 37, 0.28);
  --text: #221c14;
  --text2: #5a5144;
  --text3: #8b7f6d;
  --shadow: 0 18px 48px rgba(62, 45, 24, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --shadow-lg: 0 28px 82px rgba(62, 45, 24, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

html[data-atg-theme="light"] body {
  background:
    linear-gradient(115deg, rgba(154, 107, 47, 0.12) 0 1px, transparent 1px 18%),
    linear-gradient(155deg, rgba(77, 124, 103, 0.13) 0 1px, transparent 1px 22%),
    radial-gradient(ellipse at 16% -10%, rgba(184, 135, 67, 0.20), transparent 42%),
    radial-gradient(ellipse at 88% 8%, rgba(77, 124, 103, 0.16), transparent 38%),
    linear-gradient(180deg, #fbf6ec 0%, #f2eadc 44%, #eee3d0 100%);
}

html[data-atg-theme="light"] body::before,
html[data-atg-theme="light"] body::after {
  opacity: 0.36;
  mix-blend-mode: multiply;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(244, 221, 176, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 161, 132, 0.024) 1px, transparent 1px),
    linear-gradient(115deg, transparent 0 46%, rgba(244, 221, 176, 0.06) 46.2% 46.45%, transparent 46.65% 100%),
    linear-gradient(65deg, transparent 0 58%, rgba(126, 161, 132, 0.055) 58.2% 58.45%, transparent 58.65% 100%);
  background-size: 34px 34px, 34px 34px, 680px 680px, 760px 760px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 92%);
}

body::after {
  content: "";
  position: fixed;
  inset: -18vh -10vw;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 8%, rgba(244, 221, 176, 0.07) 18%, transparent 29%),
    linear-gradient(128deg, transparent 52%, rgba(126, 161, 132, 0.09) 63%, transparent 76%),
    repeating-linear-gradient(118deg, transparent 0 92px, rgba(255, 255, 255, 0.014) 93px 94px, transparent 95px 186px);
  mix-blend-mode: screen;
  opacity: 0.72;
  transform: translateZ(0);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Gradients */
.gradient-text {
  background: linear-gradient(135deg, #f4ddb0 0%, #d4b178 48%, #7ea184 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-purple { background: linear-gradient(135deg, #d4b178, #a17946); }
.gradient-pink { background: linear-gradient(135deg, #d97c73, #d4b178); }
.gradient-blue { background: linear-gradient(135deg, #7ea184, #9fbbb0); }
.gradient-green { background: linear-gradient(135deg, #6fa286, #b8d0b7); }
.gradient-orange { background: linear-gradient(135deg, #cc9456, #d97c73); }

/* Loading */
.spinner,
.loading-spinner,
.loader {
  border-color: rgba(255, 244, 222, 0.18) !important;
  border-top-color: var(--primary) !important;
  box-shadow: 0 0 24px rgba(212, 177, 120, 0.16);
}

.loading,
.sessions-loading {
  color: var(--text2);
}

/* Customer AI support chat */
.ai-chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  font-family: "Nunito", "Noto Sans Thai", sans-serif;
}

.ai-chat-fab {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 237, 204, 0.22);
  border-radius: 50%;
  background: linear-gradient(135deg, #d4b178 0%, #7ea184 100%);
  color: #101916;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.ai-chat-fab span {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0;
}

.ai-chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.38);
}

.ai-chat-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 116px));
  background: rgba(7, 18, 16, 0.94);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity var(--transition), transform var(--transition);
}

.ai-chat-widget.is-open .ai-chat-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.045);
}

.ai-chat-header strong,
.ai-chat-header span {
  display: block;
}

.ai-chat-header strong {
  color: var(--text);
  font-size: 15px;
}

.ai-chat-header span {
  color: var(--text2);
  font-size: 12px;
  margin-top: 2px;
}

.ai-chat-close,
.ai-chat-send {
  border: 1px solid var(--border);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.ai-chat-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.ai-chat-close:hover {
  color: #f4ddb0;
  border-color: var(--border-strong);
}

.ai-chat-messages {
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-chat-message {
  display: flex;
}

.ai-chat-message.is-user {
  justify-content: flex-end;
}

.ai-chat-bubble {
  max-width: 84%;
  border-radius: 16px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  border: 1px solid rgba(255, 244, 222, 0.12);
}

.ai-chat-message.is-ai .ai-chat-bubble {
  background: rgba(255, 255, 255, 0.07);
  border-bottom-left-radius: 6px;
}

.ai-chat-message.is-user .ai-chat-bubble {
  background: linear-gradient(135deg, rgba(212, 177, 120, 0.95), rgba(126, 161, 132, 0.92));
  color: #101916;
  border-color: rgba(255, 255, 255, 0.14);
  border-bottom-right-radius: 6px;
}

.ai-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ai-chat-action {
  border: 1px solid rgba(244, 221, 176, 0.28);
  border-radius: 999px;
  background: rgba(212, 177, 120, 0.14);
  color: #f4ddb0;
  padding: 7px 10px;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  transition: var(--transition);
}

.ai-chat-action:hover {
  background: rgba(212, 177, 120, 0.22);
  border-color: rgba(244, 221, 176, 0.44);
}

.ai-chat-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
}

.ai-chat-form textarea {
  width: 100%;
  min-height: 42px;
  max-height: 120px;
  resize: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.ai-chat-form textarea:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(212, 177, 120, 0.12);
}

.ai-chat-send {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #d4b178;
  color: #101916;
}

.ai-chat-send:disabled {
  opacity: 0.55;
  cursor: wait;
}

.ai-chat-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-height: 38px;
}

.ai-chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4b178;
  animation: aiChatTyping 1s ease-in-out infinite;
}

.ai-chat-typing span:nth-child(2) {
  animation-delay: 0.16s;
}

.ai-chat-typing span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes aiChatTyping {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

@media (max-width: 640px) {
  .ai-chat-widget {
    right: 16px;
    bottom: 16px;
  }

  .ai-chat-panel {
    width: calc(100vw - 24px);
    height: min(560px, calc(100vh - 96px));
    right: -4px;
    bottom: 70px;
    border-radius: 16px;
  }
}

/* Buttons */
.btn-primary,
.btn-white,
.btn-add-cart,
.welcome-confirm-btn {
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #d4b178 0%, #a17946 100%);
  color: #1c1409;
  border: 1px solid rgba(255, 237, 204, 0.12);
  border-radius: 999px;
  padding: 11px 24px;
  font-family: "Nunito", "Noto Sans Thai", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 12px 30px rgba(128, 87, 35, 0.22);
}

.btn-primary::before,
.btn-white::before,
.btn-add-cart::before,
.welcome-confirm-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 42%);
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(128, 87, 35, 0.28);
  filter: saturate(1.04);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 10px 22px rgba(128, 87, 35, 0.2);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 22px;
  font-family: "Nunito", "Noto Sans Thai", sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  color: #f4ddb0;
  background: rgba(244, 221, 176, 0.06);
}

.btn-ghost:active,
.btn-white:active,
.btn-add-cart:active,
.btn-view-detail:active,
.lang-btn:active,
.user-btn:active,
.drawer-user-link:active,
.drawer-switcher-btn:active,
.welcome-confirm-btn:active,
.pbtn:active:not(:disabled),
.qty-btn:active {
  transform: scale(0.97);
}

.qty-btn:active {
  background: rgba(212, 177, 120, 0.18);
}

.btn-white {
  background: linear-gradient(135deg, #f7f2e7 0%, #dfd1b6 100%);
  color: #18211f;
  border: none;
  border-radius: 999px;
  padding: 10px 28px;
  font-family: "Nunito", "Noto Sans Thai", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(255, 244, 224, 0.12);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn-icon:hover {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--border-strong);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(8, 17, 15, 0.52);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 10px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: nowrap;
}

.hamburger {
  flex-shrink: 0;
}

.nav-actions {
  flex-shrink: 1;
  min-width: 0;
  overflow: visible;
}

.logo,
.welcome-logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  font-family: "Nunito", "Noto Sans Thai", sans-serif;
  font-size: 22px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  padding: 6px 0 8px;
  background: linear-gradient(135deg, #f4ddb0 0%, #d4b178 58%, #b9c8b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.logo::after,
.welcome-logo::after {
  content: "";
  position: absolute;
  left: 1px;
  bottom: 1px;
  width: 34px;
  height: 1px;
  border-radius: 999px;
  background: rgba(212, 177, 120, 0.62);
  opacity: 0.8;
}

.logo-icon {
  display: none;
}

.logo-accent,
.welcome-logo-accent {
  margin-left: 3px;
  font-weight: 650;
  letter-spacing: 0;
  background: none;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: rgba(236, 229, 214, 0.8);
  filter: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  padding: 9px 14px;
  border-radius: 999px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
}

.cart-btn {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

/* Language switcher */
.lang-switcher,
.curr-switcher,
.user-menu {
  position: relative;
}

.lang-btn,
.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--text);
  font-family: "Nunito", "Noto Sans Thai", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.user-btn {
  padding: 6px 14px 6px 6px;
  font-size: 14px;
}

.lang-btn:hover,
.user-btn:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
}

.lang-btn svg,
.user-btn svg,
.drawer-switcher-btn svg,
.nav-products-trigger svg {
  color: var(--text3);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.lang-switcher:has(.lang-dropdown.open) .lang-btn svg,
.curr-switcher:has(.curr-dropdown.open) .lang-btn svg,
.user-menu:has(.user-dropdown.open) .user-btn svg {
  transform: rotate(180deg);
}

.lang-dropdown,
.user-dropdown,
.nav-products-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  padding: 8px;
  background:
    radial-gradient(circle at 30% 0%, rgba(244, 221, 176, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(28, 42, 38, 0.995), rgba(7, 17, 15, 0.995));
  border: 1px solid rgba(255, 244, 222, 0.22);
  border-radius: var(--radius);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  z-index: 2200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lang-dropdown.open,
.user-dropdown.open,
.nav-products-wrap.open .nav-products-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.lang-option,
.user-drop-item,
.nav-prod-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text2);
  text-decoration: none;
  text-align: left;
  font-family: "Nunito", "Noto Sans Thai", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.lang-option:hover,
.user-drop-item:hover,
.nav-prod-item:hover {
  border-color: rgba(244, 221, 176, 0.12);
  background: rgba(244, 221, 176, 0.08);
  color: var(--text);
}

.lang-option.active,
.drawer-drop .active,
.drawer-drop button.active {
  color: #f4ddb0;
  border-color: rgba(244, 221, 176, 0.16);
  background: rgba(244, 221, 176, 0.12);
}

.lang-option-name {
  flex: 1;
}

.lang-check {
  color: #f4ddb0;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.curr-dropdown {
  min-width: 200px;
  max-height: 320px;
  overflow-y: auto;
}

.lang-dropdown {
  width: 180px;
  max-height: min(220px, calc(100vh - 132px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 221, 176, 0.32) rgba(255, 255, 255, 0.04);
}

.lang-dropdown::-webkit-scrollbar,
.curr-dropdown::-webkit-scrollbar {
  width: 8px;
}

.lang-dropdown::-webkit-scrollbar-track,
.curr-dropdown::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.lang-dropdown::-webkit-scrollbar-thumb,
.curr-dropdown::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(244, 221, 176, 0.34);
  background-clip: content-box;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
  z-index: 1001;
  position: relative;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 10px;
  right: 10px;
  bottom: 10px;
  width: min(352px, calc(100vw - 20px));
  height: auto;
  padding: 70px 0 18px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 20% 0%, rgba(244, 221, 176, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)),
    rgba(8, 18, 16, 0.78);
  border: 1px solid rgba(255, 244, 222, 0.16);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 1000;
  overflow-y: auto;
  transform: translateX(calc(100% + 20px));
  transition: transform 0.32s cubic-bezier(.22, 1, .36, 1);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 244, 222, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mobile-drawer-close:hover {
  background: rgba(244, 221, 176, 0.12);
  border-color: rgba(244, 221, 176, 0.28);
}

.mobile-drawer-close:active {
  transform: scale(0.95);
}

.mobile-drawer-close svg {
  pointer-events: none;
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 82% 16%, rgba(244, 221, 176, 0.08), transparent 30%),
    rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 14px 14px;
  margin: 0 10px 16px;
  border-bottom: 1px solid rgba(255, 244, 222, 0.12);
}

.mobile-nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}

.mobile-nav-links a:hover {
  color: #f4ddb0;
  background: rgba(244, 221, 176, 0.08);
  border-color: rgba(244, 221, 176, 0.14);
  transform: translateX(-1px);
}

.mobile-drawer-actions {
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#drawerUserSection {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 244, 222, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.drawer-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 14px;
  background: linear-gradient(135deg, #d4b178 0%, #a17946 100%);
  color: #1c1409;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: "Nunito", "Noto Sans Thai", sans-serif;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: var(--transition);
}

.drawer-login-btn:hover {
  filter: brightness(1.03);
}

.drawer-user-info {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 2px 8px;
}

.drawer-user-info .user-avatar,
.drawer-user-info .user-avatar-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(244, 221, 176, 0.12);
}

.drawer-user-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.drawer-user-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-user-link {
  display: block;
  width: 100%;
  padding: 9px 10px;
  background: none;
  border: none;
  border-radius: 10px;
  color: var(--text2);
  font-size: 13px;
  font-family: "Nunito", "Noto Sans Thai", sans-serif;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.drawer-user-link:hover {
  color: #f4ddb0;
  background: rgba(244, 221, 176, 0.07);
}

.drawer-logout-btn {
  color: #efaaa2;
}

.drawer-switcher-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-switcher-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 244, 222, 0.14);
  border-radius: 14px;
  color: var(--text);
  font-size: 13px;
  font-family: "Nunito", "Noto Sans Thai", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.drawer-switcher-btn:hover,
.drawer-switcher-btn.open {
  border-color: var(--border-strong);
  background: rgba(244, 221, 176, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.drawer-switcher-btn.open svg {
  transform: rotate(180deg);
}

.drawer-drop {
  display: none;
  flex-direction: column;
  background: rgba(8, 18, 16, 0.72);
  border: 1px solid rgba(255, 244, 222, 0.12);
  border-radius: 14px;
  padding: 4px;
  max-height: 220px;
  overflow-y: auto;
}

.drawer-drop.open {
  display: flex;
}

.drawer-drop button,
.drawer-drop a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text2);
  text-decoration: none;
  text-align: left;
  font-family: "Nunito", "Noto Sans Thai", sans-serif;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.drawer-drop button:hover,
.drawer-drop a:hover {
  background: rgba(244, 221, 176, 0.08);
  color: var(--text);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 124px 0 84px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  animation: blobPulse 10s ease-in-out infinite;
}

.blob-1 {
  width: 540px;
  height: 540px;
  background: rgba(212, 177, 120, 0.7);
  top: -180px;
  right: -60px;
  animation-delay: 0s;
}

.blob-2 {
  width: 420px;
  height: 420px;
  background: rgba(126, 161, 132, 0.6);
  bottom: -120px;
  left: -80px;
  animation-delay: 3s;
}

.blob-3 {
  width: 280px;
  height: 280px;
  background: rgba(240, 215, 162, 0.4);
  top: 36%;
  left: 44%;
  animation-delay: 6s;
}

@keyframes blobPulse {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.08) translate(18px, -18px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(244, 221, 176, 0.08);
  border: 1px solid rgba(244, 221, 176, 0.16);
  color: #e8d3a5;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4b178;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.62; }
}

.hero-title {
  margin-bottom: 20px;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 520px;
  margin-bottom: 36px;
  color: var(--text2);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: 13px;
  color: var(--text3);
  font-weight: 300;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  width: 300px;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.055)),
    rgba(17, 29, 27, 0.56);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.hero-card-img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-body {
  padding: 22px;
}

.hero-card-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.hero-card-price {
  margin-bottom: 8px;
  color: #f2dfb7;
  font-size: 22px;
  font-weight: 700;
}

.hero-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stars {
  color: #eac06a;
  font-size: 14px;
}

.rating-count {
  color: var(--text3);
  font-size: 13px;
}

.floating {
  animation: floatY 4s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.floating-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 500;
}

.tag-1 {
  top: 10%;
  right: 5%;
  animation: floatY 3s ease-in-out infinite 1s;
}

.tag-2 {
  bottom: 10%;
  left: 0;
  color: #97d5a4;
  border-color: rgba(151, 213, 164, 0.2);
  background: rgba(85, 138, 102, 0.16);
  animation: floatY 3.5s ease-in-out infinite 0.5s;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text3);
  font-size: 12px;
  animation: floatY 2s ease-in-out infinite;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text3);
  border-bottom: 2px solid var(--text3);
  transform: rotate(45deg);
}

/* Section common */
.section-header {
  text-align: center;
  margin-bottom: 42px;
}

.section-title {
  position: relative;
  width: fit-content;
  margin: 0 auto 12px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  transform: translateX(-50%);
  opacity: 0.72;
}

.section-sub {
  max-width: 520px;
  margin: 20px auto 0;
  color: color-mix(in srgb, var(--text2) 88%, #fff 12%);
  font-size: 16px;
  font-weight: 300;
}

/* Categories */
.categories {
  position: relative;
  min-height: auto;
  padding: calc(var(--navbar-h, 72px) + 68px) 0 96px;
  overflow: hidden;
}

.categories::before {
  content: "";
  position: absolute;
  inset: 28px max(24px, calc((100vw - 1280px) / 2)) auto;
  height: 260px;
  pointer-events: none;
  border-radius: 28px;
  background:
    radial-gradient(circle at 28% 24%, rgba(244, 221, 176, 0.16), transparent 34%),
    radial-gradient(circle at 74% 10%, rgba(126, 161, 132, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent);
  border: 1px solid rgba(255, 244, 222, 0.08);
  opacity: 0.6;
  mask-image: linear-gradient(180deg, #000, transparent 88%);
}

.cat-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 400px));
  justify-content: center;
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
}

.cat-card {
  position: relative;
  min-height: 198px;
  aspect-ratio: 16 / 7.9;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(8, 18, 16, 0.72);
  border: 1px solid rgba(255, 244, 222, 0.2);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), filter var(--transition);
  isolation: isolate;
}

.cat-card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--cat-color, #d4b178) 54%, rgba(255, 255, 255, 0.18));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.4),
    0 0 0 1px color-mix(in srgb, var(--cat-color, #d4b178) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  filter: saturate(1.06);
}

.cat-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cat-card:hover .cat-card-img {
  transform: scale(1.06);
}

.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 12%, rgba(0, 0, 0, 0.36) 54%, rgba(0, 0, 0, 0.9) 100%),
    radial-gradient(circle at 16% 18%, color-mix(in srgb, var(--cat-color, #d4b178) 34%, transparent), transparent 30%);
}

.cat-card-badge {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(8, 16, 15, 0.66);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 244, 222, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  font-size: 19px;
  line-height: 1;
}

.cat-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
}

.cat-card-body::after {
  display: none;
  content: "";
}

.cat-card-cta {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 244, 222, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 242, 231, 0.78);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}

.cat-card:hover .cat-card-cta {
  opacity: 1;
  transform: translateX(0);
  background: rgba(244, 221, 176, 0.12);
}

.cat-card-name {
  display: block;
  color: #fff;
  min-width: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.cat-card.no-img {
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(244, 221, 176, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)),
    rgba(18, 31, 28, 0.58);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.cat-card.no-img::after {
  background: linear-gradient(135deg, color-mix(in srgb, var(--cat-color, #d4b178) 12%, transparent), rgba(126, 161, 132, 0.04));
}

.cat-card.no-img .cat-card-body {
  justify-content: center;
  text-align: center;
}

.cat-card.no-img .cat-card-cta {
  display: none;
}

.cat-card.no-img .cat-card-name {
  color: var(--text2);
  font-size: 15px;
  text-shadow: none;
}

.cat-card.no-img:hover .cat-card-name {
  color: var(--text);
}

/* Products */
.products {
  padding: 80px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)),
    rgba(18, 31, 28, 0.54);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  group: "";
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(244, 221, 176, 0.18);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.24);
}

.product-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

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

.product-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface);
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #b98a53;
}

.product-badge.sale { background: linear-gradient(135deg, #d97c73, #cc9456); }
.product-badge.new { background: linear-gradient(135deg, #7ea184, #8cb8a2); }
.product-badge.hot { background: linear-gradient(135deg, #d4b178, #7ea184); }

.product-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 16, 15, 0.62);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text2);
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

.product-card:hover .product-wishlist {
  opacity: 1;
}

.product-wishlist:hover {
  background: rgba(217, 124, 115, 0.18);
  color: #efb0a8;
  border-color: rgba(217, 124, 115, 0.26);
}

.product-wishlist.liked {
  opacity: 1;
  color: #efb0a8;
  border-color: rgba(217, 124, 115, 0.26);
  background: rgba(217, 124, 115, 0.15);
}

.product-body {
  padding: 18px 16px 16px;
}

.product-category {
  margin-bottom: 6px;
  color: #d4b178;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-name {
  display: -webkit-box;
  margin-bottom: 6px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.product-rating .stars {
  color: #eac06a;
  font-size: 12px;
}

.product-rating .count {
  color: var(--text3);
  font-size: 12px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-price {
  display: flex;
  flex-direction: column;
}

.price-current {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}

.price-original {
  color: var(--text3);
  font-size: 13px;
  text-decoration: line-through;
}

.btn-add-cart {
  background: linear-gradient(135deg, #d4b178 0%, #a17946 100%);
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  color: #1c1409;
  font-family: "Nunito", "Noto Sans Thai", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(128, 87, 35, 0.2);
}

.btn-view-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 244, 222, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.06);
  color: #f4ddb0;
  font-family: "Nunito", "Noto Sans Thai", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.btn-view-detail:hover {
  border-color: rgba(244, 221, 176, 0.34);
  background: rgba(244, 221, 176, 0.1);
  color: var(--text);
  transform: translateY(-1px);
}

.btn-add-cart:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(128, 87, 35, 0.26);
}

.load-more-wrap {
  text-align: center;
}

/* Deals */
.deals-banner {
  padding: 40px 0 80px;
}

.deals-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  padding: 60px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(244, 221, 176, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(15, 28, 26, 0.62);
  border: 1px solid rgba(244, 221, 176, 0.14);
  box-shadow: var(--shadow-lg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.deals-card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(126, 161, 132, 0.22), transparent);
  pointer-events: none;
}

.deals-eyebrow {
  margin-bottom: 12px;
  color: #d9c498;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.deals-title {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.14;
}

.deals-title span {
  color: #f0d7a2;
}

.deals-desc {
  margin-bottom: 32px;
  color: var(--text2);
  font-size: 16px;
  font-weight: 300;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.count-box {
  min-width: 72px;
  padding: 12px 20px;
  text-align: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.count-box span {
  display: block;
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.count-box label {
  display: block;
  margin-top: 4px;
  color: var(--text2);
  font-size: 11px;
  font-weight: 300;
}

.count-sep {
  color: var(--text3);
  font-size: 24px;
  font-weight: 700;
}

.deals-right {
  position: relative;
}

.deal-product-visual {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  animation: floatY 3s ease-in-out infinite;
}

.deals-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #d97c73, #cc9456);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(217, 124, 115, 0.28);
}

/* Features */
.features {
  padding: 40px 0 80px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px;
  border-radius: 20px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045)),
    rgba(18, 31, 28, 0.54);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 221, 176, 0.16);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 600;
}

.feature-card p {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 300;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(100px);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  white-space: nowrap;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055)),
    rgba(24, 39, 35, 0.72);
  border: 1px solid rgba(126, 161, 132, 0.24);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #7ea184;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* Footer */
.footer {
  position: relative;
  background:
    radial-gradient(circle at 22% 0%, rgba(244, 221, 176, 0.1), transparent 32%),
    radial-gradient(circle at 78% 12%, rgba(126, 161, 132, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(13, 27, 24, 0.88), rgba(6, 15, 13, 0.98));
  border-top: 1px solid rgba(255, 244, 222, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 64px 0 0;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 221, 176, 0.34), rgba(126, 161, 132, 0.24), transparent);
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1.6fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(28px, 5vw, 64px);
  margin-bottom: 52px;
}

.footer-brand .logo {
  display: inline-flex;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 380px;
  margin-bottom: 24px;
  color: color-mix(in srgb, var(--text2) 88%, #fff 12%);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 300;
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 244, 222, 0.14);
  color: var(--text2);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.social-btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  color: #f4ddb0;
  background: rgba(244, 221, 176, 0.08);
}

.social-btn[data-social="fb"]:hover { border-color: #1877F2; color: #1877F2; }
.social-btn[data-social="ig"]:hover { border-color: #E4405F; color: #E4405F; }
.social-btn[data-social="tw"]:hover { border-color: #e2e8f0; color: #e2e8f0; }
.social-btn[data-social="yt"]:hover { border-color: #FF0000; color: #FF0000; }

.footer-links h4 {
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.footer-links a {
  display: flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 10px;
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  transition: color 0.2s, transform 0.2s;
}

.footer-links a:hover {
  color: #f4ddb0;
  transform: translateX(3px);
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pay-icon-badge,
.pay-badge {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 244, 222, 0.14);
}

.pay-icon-badge {
  min-width: 0;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: border-color 0.2s, background 0.2s;
}

.pay-icon-badge:hover {
  border-color: var(--border-strong);
  background: rgba(244, 221, 176, 0.08);
}

.pay-icon-badge--text {
  gap: 5px;
  padding: 0 8px;
  color: var(--text2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.pay-badge {
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 244, 222, 0.12);
  text-align: center;
  color: var(--text3);
  font-size: 13px;
  font-weight: 300;
}

/* User menu */
.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.user-avatar-placeholder {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4b178, #7ea184);
  color: #132019;
  font-size: 13px;
  font-weight: 700;
}

.user-name {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-drop-divider,
.nav-prod-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.user-drop-logout:hover {
  background: rgba(217, 124, 115, 0.12);
  color: #efb0a8;
}

/* Settings */
.settings-main {
  min-height: 100vh;
  padding: calc(72px + 30px) 0 74px;
}
.settings-shell {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 1040px;
  animation: settingsShellIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.settings-sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 520px;
  padding: 10px;
  border-right: 1px solid rgba(255, 244, 222, 0.12);
}
.settings-tab {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text2);
  font-family: "Nunito", "Noto Sans Thai", sans-serif;
  font-size: calc(14px * var(--atg-text-scale, 1));
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transform: translateZ(0);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.settings-tab::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4ddb0, #7ea184);
  opacity: 0;
  transform: scaleY(0.35);
  transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.settings-tab::after {
  content: "";
  position: absolute;
  inset: -60% auto auto -35%;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(244, 221, 176, 0.18), transparent 62%);
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.settings-tab svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}
.settings-tab span {
  position: relative;
  z-index: 1;
}
.settings-tab:hover,
.settings-tab.active {
  color: #fff9ed;
  background:
    linear-gradient(90deg, rgba(244, 221, 176, 0.13), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 244, 222, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 28px rgba(0, 0, 0, 0.18);
}
.settings-tab:hover {
  transform: translateX(3px);
}
.settings-tab:hover::after,
.settings-tab.active::after {
  opacity: 1;
  transform: scale(1);
}
.settings-tab.active::before {
  opacity: 1;
  transform: scaleY(1);
}
.settings-tab.active svg {
  color: var(--primary);
  transform: scale(1.05);
}
.settings-panel {
  min-height: 560px;
  padding: 2px 0 0;
  font-size: 1rem;
}
.settings-pane {
  display: none;
}
.settings-pane.active {
  display: block;
  animation: settingsPaneIn 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.settings-pane-head {
  position: relative;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(255, 244, 222, 0.14);
}
.settings-pane-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 96px;
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 221, 176, 0.9), transparent);
}
.settings-pane-head p {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: calc(12px * var(--atg-text-scale, 1));
  font-weight: 900;
}
.settings-pane-head h1 {
  font-size: calc(22px * var(--atg-text-scale, 1));
  line-height: 1.15;
  font-weight: 900;
}
.settings-list {
  display: flex;
  flex-direction: column;
}
.settings-row {
  position: relative;
  overflow: visible;
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, auto);
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 244, 222, 0.085);
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
  transition:
    background 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.settings-row:has(.settings-combo.open) {
  z-index: 35;
}
.settings-row::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--settings-hover-x, 85%) 50%, rgba(244, 221, 176, 0.13), transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045), transparent 44%);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.settings-row:hover {
  border-color: rgba(244, 221, 176, 0.15);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}
.settings-row:hover::before {
  opacity: 1;
}
.settings-row > * {
  position: relative;
  z-index: 1;
}
.settings-row h2 {
  font-size: calc(14px * var(--atg-text-scale, 1));
  font-weight: 900;
  line-height: 1.35;
}
.settings-row p {
  max-width: 520px;
  margin-top: 4px;
  color: var(--text3);
  font-size: calc(12px * var(--atg-text-scale, 1));
  line-height: 1.45;
}
.settings-row-link {
  border-radius: 10px;
}
.settings-row-link:hover {
  padding-left: 10px;
  padding-right: 10px;
  color: #fff9ed;
}
.settings-control {
  justify-self: end;
}
.settings-select-list {
  width: min(260px, 100%);
}
.settings-select-list--currency {
  width: min(150px, 100%);
}
.settings-combo {
  position: relative;
  width: 100%;
  z-index: 5;
}
.settings-combo.open {
  z-index: 30;
}
.settings-combo-btn {
  position: relative;
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 36px 0 14px;
  border: 1px solid rgba(255, 244, 222, 0.20);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035)),
    rgba(18, 31, 28, 0.88);
  color: #fff9ed;
  font-family: "Nunito", "Noto Sans Thai", sans-serif;
  font-size: calc(13px * var(--atg-text-scale, 1));
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.10));
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.settings-combo-btn span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-combo-btn strong,
.settings-combo-option strong {
  color: rgba(255, 249, 237, 0.62);
  font-size: 11px;
  font-weight: 900;
}
.settings-combo-btn svg {
  position: absolute;
  right: 13px;
  top: 50%;
  width: 14px;
  height: 14px;
  color: var(--primary);
  transform: translateY(-50%);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}
.settings-combo-btn:hover,
.settings-combo.open .settings-combo-btn {
  border-color: rgba(244, 221, 176, 0.34);
  background:
    linear-gradient(180deg, rgba(244, 221, 176, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(17, 31, 27, 0.96);
  transform: translateY(-1px);
}
.settings-combo-btn:focus-visible,
.settings-combo.open .settings-combo-btn {
  border-color: rgba(244, 221, 176, 0.52);
  box-shadow: 0 0 0 4px rgba(244, 221, 176, 0.10), 0 14px 34px rgba(0, 0, 0, 0.20);
}
.settings-combo.open .settings-combo-btn svg {
  color: #f4ddb0;
  transform: translateY(-50%) rotate(180deg);
}
.settings-combo-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  width: max(100%, 248px);
  max-height: 330px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(244, 221, 176, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(9, 22, 18, 0.97);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.settings-combo.open .settings-combo-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.settings-combo-menu::-webkit-scrollbar {
  width: 8px;
}
.settings-combo-menu::-webkit-scrollbar-thumb {
  border: 2px solid rgba(9, 22, 18, 0.97);
  border-radius: 999px;
  background: rgba(244, 221, 176, 0.35);
}
.settings-combo-option {
  position: relative;
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text2);
  font-family: "Nunito", "Noto Sans Thai", sans-serif;
  font-size: calc(13px * var(--atg-text-scale, 1));
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.settings-combo-option span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-combo-option:hover {
  color: #fff9ed;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}
.settings-combo-option.active {
  color: #171d18;
  background: linear-gradient(180deg, #ecd39b, #c09c62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 20px rgba(0, 0, 0, 0.18);
}
.settings-combo-option.active strong {
  color: rgba(23, 29, 24, 0.62);
}
.settings-pill-btn,
.settings-stepper button {
  position: relative;
  overflow: hidden;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 244, 222, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff9ed;
  font-family: "Nunito", "Noto Sans Thai", sans-serif;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transform: translateZ(0);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.settings-pill-btn::before,
.settings-stepper button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.20) 48%, transparent 58%);
  opacity: 0;
  transform: translateX(-120%);
  transition: opacity 0.2s ease, transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}
.settings-pill-btn > *,
.settings-stepper button > * {
  position: relative;
  z-index: 1;
}
.settings-pill-btn {
  justify-self: end;
  gap: 8px;
  padding: 0 13px;
}
.settings-pill-btn:hover,
.settings-stepper button:hover {
  border-color: rgba(244, 221, 176, 0.34);
  background: rgba(244, 221, 176, 0.12);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}
.settings-pill-btn:hover::before,
.settings-stepper button:hover::before {
  opacity: 1;
  transform: translateX(120%);
}
.settings-pill-btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}
.settings-pill-btn:hover svg {
  transform: translate(2px, -2px);
}
.settings-pill-btn--static {
  min-width: 82px;
}
.settings-stepper {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-stepper button {
  min-width: 36px;
  padding: 0 12px;
  font-size: 16px;
}
.settings-stepper button:last-child {
  min-width: 58px;
  font-size: 12px;
}
.settings-chevron {
  justify-self: end;
  color: var(--primary);
  font-size: 24px;
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}
.settings-row-link:hover .settings-chevron {
  color: #f4ddb0;
  transform: translateX(5px);
}

@keyframes settingsShellIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes settingsPaneIn {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (max-width: 860px) {
  .settings-main {
    padding: calc(64px + 22px) 0 56px;
  }
  .settings-shell {
    grid-template-columns: 1fr;
  }
  .settings-sidebar {
    position: static;
    min-height: 0;
    flex-direction: row;
    overflow-x: auto;
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 244, 222, 0.12);
  }
  .settings-tab {
    width: auto;
    flex: 0 0 auto;
    padding: 0 14px;
  }
  .settings-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .settings-control,
  .settings-pill-btn,
  .settings-stepper,
  .settings-chevron {
    justify-self: start;
  }
  .settings-select-list {
    justify-content: flex-start;
  }
  .settings-combo-menu {
    left: 0;
    right: auto;
    width: min(320px, calc(100vw - 40px));
    transform-origin: top left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .settings-shell,
  .settings-pane.active {
    animation: none;
  }
  .settings-tab,
  .settings-tab::before,
  .settings-tab::after,
  .settings-tab svg,
  .settings-row,
  .settings-row::before,
  .settings-combo-btn,
  .settings-combo-btn svg,
  .settings-combo-menu,
  .settings-combo-option,
  .settings-pill-btn,
  .settings-pill-btn::before,
  .settings-pill-btn svg,
  .settings-stepper button,
  .settings-stepper button::before,
  .settings-chevron {
    transition: none;
  }
}

/* Search bar */
.search-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto 32px;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--text3);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 50px;
  padding: 0 44px 0 48px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(18, 31, 28, 0.9);
  color: var(--text);
  font-family: "Nunito", "Noto Sans Thai", sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.search-input:focus {
  border-color: rgba(244, 221, 176, 0.24);
  background: rgba(21, 35, 32, 0.96);
  box-shadow: 0 0 0 4px rgba(244, 221, 176, 0.08);
}

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

.search-clear {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text3);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s;
}

.search-clear:hover {
  color: var(--text);
}

.search-no-result {
  grid-column: 1 / -1;
  padding: 60px 0;
  color: var(--text2);
  text-align: center;
  font-size: 15px;
  animation: softFadeUp 0.24s ease both;
}

.product-grid.is-loading {
  pointer-events: none;
}

.product-skeleton {
  cursor: default;
  min-height: 344px;
}

.product-skeleton:hover {
  transform: none;
  box-shadow: var(--shadow);
}

.product-skeleton .product-body {
  display: grid;
  gap: 12px;
}

.skeleton-block,
.skeleton-line,
.skeleton-pill {
  position: relative;
  overflow: hidden;
  display: block;
  background: rgba(255, 255, 255, 0.075);
}

.skeleton-block::after,
.skeleton-line::after,
.skeleton-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(244, 221, 176, 0.12), transparent);
  animation: skeletonSweep 1.25s ease-in-out infinite;
}

.skeleton-line {
  height: 12px;
  border-radius: 999px;
}

.skeleton-line-sm {
  width: 34%;
}

.skeleton-line-lg {
  width: 72%;
  height: 16px;
}

.skeleton-line-price {
  width: 88px;
  height: 20px;
}

.skeleton-pill {
  width: 104px;
  height: 38px;
  border-radius: 999px;
}

@keyframes skeletonSweep {
  to { transform: translateX(100%); }
}

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

/* Nav products dropdown */
.nav-products-wrap {
  position: relative;
}

.nav-products-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  border: none;
  border-radius: 999px;
  background: none;
  color: var(--text2);
  text-decoration: none;
  font-family: "Nunito", "Noto Sans Thai", sans-serif;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: var(--transition);
}

.nav-products-trigger:hover,
.nav-products-wrap.open .nav-products-trigger {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.nav-products-dropdown {
  left: 0;
  right: auto;
  min-width: 200px;
  transform-origin: top left;
}

.nav-prod-item-icon {
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  font-size: 16px;
}

/* Products page */
.products-main {
  min-height: 100vh;
  padding: calc(72px + 40px) 24px 80px;
}

.products-page-header {
  margin-bottom: 32px;
  transition: margin 0.24s ease;
}

.products-page-title {
  margin-bottom: 4px;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.products-page-sub {
  color: var(--text3);
  font-size: 14px;
}

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.products-category-mode .products-page-header {
  margin-bottom: 18px;
}

.products-category-mode .products-page-title {
  font-size: clamp(28px, 4vw, 44px);
}

.products-category-mode .cat-tabs {
  display: none;
}

.products-category-mode .search-wrap {
  margin: 0 0 28px;
  max-width: 520px;
}

.products-category-mode .product-grid {
  align-items: start;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.cat-tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.cat-tab.active {
  background: linear-gradient(135deg, #d4b178 0%, #a17946 100%);
  color: #1c1409;
  border-color: transparent;
}

/* Contact page */
.contact-main {
  min-height: 100vh;
  padding: calc(72px + 60px) 24px 80px;
}

.contact-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.contact-header {
  margin-bottom: 40px;
  text-align: center;
}

.contact-title {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.contact-sub {
  color: var(--text3);
  font-size: 15px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-info-card,
.contact-form-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.008)),
    rgba(18, 31, 28, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
}

.contact-info-label {
  margin-bottom: 3px;
  color: var(--text3);
  font-size: 12px;
}

.contact-info-val {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.contact-form-card {
  padding: 28px;
}

.contact-form-title {
  margin-bottom: 20px;
  font-size: 17px;
  font-weight: 600;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
}

.form-input,
.form-textarea,
.pfield-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(24, 39, 35, 0.92);
  color: var(--text);
  font-family: "Nunito", "Noto Sans Thai", sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.pfield-input:focus {
  border-color: rgba(244, 221, 176, 0.24);
  box-shadow: 0 0 0 4px rgba(244, 221, 176, 0.08);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-sent {
  display: none;
  padding: 32px;
  text-align: center;
  color: #97d5a4;
  font-size: 16px;
  font-weight: 600;
}

.contact-sent-icon {
  margin-bottom: 12px;
  font-size: 48px;
}

/* Welcome modal */
#welcomeOverlay,
.pmodal-overlay,
.stripe-return-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 8, 8, 0.74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#welcomeOverlay {
  z-index: 9999;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 8%, rgba(244, 221, 176, 0.18), transparent 24%),
    radial-gradient(circle at 28% 42%, rgba(126, 161, 132, 0.14), transparent 32%),
    radial-gradient(circle at 76% 58%, rgba(217, 124, 115, 0.08), transparent 28%),
    linear-gradient(135deg, rgba(3, 10, 9, 0.9), rgba(6, 18, 16, 0.86));
  backdrop-filter: blur(20px) saturate(1.18);
  -webkit-backdrop-filter: blur(20px) saturate(1.18);
  transition: opacity 0.35s ease;
}

#welcomeOverlay.visible {
  opacity: 1;
}

#welcomeOverlay.visible .welcome-card {
  transform: translateY(0);
  opacity: 1;
}

.welcome-card,
.pmodal,
.stripe-return-modal {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    rgba(17, 29, 27, 0.96);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.welcome-card {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: min(88vh, 820px);
  overflow-y: auto;
  padding: 0;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
    rgba(8, 19, 17, 0.92);
  border: 1px solid rgba(244, 221, 176, 0.2);
  box-shadow:
    0 42px 120px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(28px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 221, 176, 0.32) transparent;
  isolation: isolate;
}

.welcome-card::before {
  content: "";
  position: sticky;
  top: 0;
  z-index: -1;
  display: block;
  height: 0;
}

.welcome-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent 0 5%, rgba(244, 221, 176, 0.34) 12%, transparent 24% 76%, rgba(126, 161, 132, 0.24) 88%, transparent 95%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 22%);
  mask-image: linear-gradient(#000, transparent 64%);
  opacity: 0.85;
}

.welcome-card::-webkit-scrollbar {
  width: 8px;
}

.welcome-card::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(244, 221, 176, 0.3);
  background-clip: content-box;
}

.welcome-header {
  position: relative;
  margin-bottom: 0;
  padding: 38px 42px 32px;
  text-align: left;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 244, 222, 0.12);
  background:
    radial-gradient(circle at 17% 18%, rgba(244, 221, 176, 0.2), transparent 28%),
    radial-gradient(circle at 86% 22%, rgba(126, 161, 132, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
}

.welcome-header::after {
  content: "01";
  position: absolute;
  top: 30px;
  right: 38px;
  color: rgba(244, 221, 176, 0.15);
  font-size: 70px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.welcome-header::before {
  content: "Set up your experience";
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 18px;
  padding: 6px 11px;
  border: 1px solid rgba(244, 221, 176, 0.18);
  border-radius: 999px;
  background: rgba(244, 221, 176, 0.08);
  color: #f4ddb0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[lang="th"] .welcome-header::before,
html[lang="th"] .welcome-header::before {
  content: "ตั้งค่าประสบการณ์ของคุณ";
  text-align: center;
}

.welcome-logo {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 29px;
  line-height: 1;
}

.welcome-title {
  margin-bottom: 8px;
  color: var(--text);
  font-size: clamp(30px, 4.8vw, 46px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
  text-wrap: balance;
}

.welcome-sub {
  max-width: 42ch;
  margin: 0;
  color: color-mix(in srgb, var(--text2) 88%, #fff 12%);
  font-size: 15px;
  line-height: 1.65;
}

.welcome-section {
  position: relative;
  margin: 0 32px 18px;
  padding: 24px;
  border: 1px solid rgba(255, 244, 222, 0.11);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.welcome-header + .welcome-section {
  margin-top: 32px;
}

.welcome-section:has(.welcome-curr-row) {
  margin-bottom: 24px;
}

.welcome-section-label,
.profile-section-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: #d4b178;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.welcome-section-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4b178;
  box-shadow: 0 0 16px rgba(244, 221, 176, 0.6);
}

.welcome-lang-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.welcome-lang-btn,
.welcome-curr-btn {
  position: relative;
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 244, 222, 0.14);
  border-radius: 16px;
  color: var(--text2);
  cursor: pointer;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.welcome-lang-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  justify-content: center;
  min-height: 72px;
  padding: 11px 8px 10px;
  font-size: 12px;
  font-weight: 600;
}

.welcome-lang-btn:hover,
.welcome-curr-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 221, 176, 0.34);
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(244, 221, 176, 0.14), transparent 58%),
    rgba(244, 221, 176, 0.055);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.welcome-lang-btn.selected,
.welcome-curr-btn.selected {
  border-color: rgba(244, 221, 176, 0.56);
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(244, 221, 176, 0.28), transparent 58%),
    linear-gradient(180deg, rgba(244, 221, 176, 0.16), rgba(244, 221, 176, 0.055)),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    0 0 0 4px rgba(244, 221, 176, 0.07),
    0 18px 34px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.welcome-lang-btn.selected::after,
.welcome-curr-btn.selected::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f4ddb0;
  box-shadow: 0 0 12px rgba(244, 221, 176, 0.7);
}

.welcome-flag {
  color: var(--text);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

.welcome-lang-name {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.welcome-curr-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.welcome-curr-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 72px;
  padding: 12px 8px;
}

.welcome-curr-sym {
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.welcome-curr-code {
  color: var(--text2);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.welcome-curr-btn.selected .welcome-curr-code {
  color: #f4ddb0;
}

.welcome-confirm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 64px);
  min-height: 58px;
  margin: 0 32px 32px;
  padding: 15px 20px;
  background: linear-gradient(135deg, #f0cf92 0%, #d4b178 42%, #a17946 100%);
  border: none;
  border-radius: 18px;
  color: #1c1409;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.2s, transform 0.18s, box-shadow 0.2s;
  box-shadow:
    0 20px 44px rgba(128, 87, 35, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.welcome-confirm-btn::after {
  content: "→";
  margin-left: 10px;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.welcome-confirm-btn:hover::after {
  transform: translateX(4px);
}

.welcome-confirm-btn:hover {
  filter: brightness(1.04) saturate(1.03);
  transform: translateY(-2px);
  box-shadow:
    0 22px 42px rgba(128, 87, 35, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.welcome-confirm-btn:active {
  transform: translateY(0);
}

/* Profile page */
.profile-main {
  min-height: 100vh;
  padding: 80px 0 60px;
  background: transparent;
}

.profile-hero,
.pcard,
.stripe-return-info {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.01)),
    rgba(18, 31, 28, 0.9);
  border: 1px solid var(--border);
}

.profile-hero {
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 20px;
}

.profile-hero-banner {
  position: relative;
  height: 110px;
  background: linear-gradient(135deg, #8f6b3e 0%, #d4b178 34%, #7ea184 72%, #26453d 100%);
}

.profile-hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 20px);
}

.profile-hero-body {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 0 24px 22px;
}

.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  margin-top: -52px;
}

.profile-avatar-ring {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #d4b178, #7ea184);
  box-shadow: 0 0 0 4px rgba(18, 31, 28, 1), 0 10px 26px rgba(0, 0, 0, 0.16);
}

.profile-avatar,
.profile-avatar-ph {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg3);
  color: #d4b178;
  font-size: 32px;
  font-weight: 700;
}

.profile-avatar {
  object-fit: cover;
}

.avatar-cam-btn {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid rgba(18, 31, 28, 1);
  border-radius: 50%;
  background: #d4b178;
  color: #1c1409;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.avatar-cam-btn:hover {
  background: #e0be87;
  transform: scale(1.08);
}

.avatar-upload-status {
  padding: 4px 0;
  color: var(--text2);
  font-size: 12px;
}

.profile-hero-meta {
  flex: 1;
  min-width: 0;
  padding-bottom: 2px;
}

.profile-hero-name {
  margin: 0 0 3px;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
}

.profile-hero-email {
  margin: 0 0 10px;
  color: var(--text2);
  font-size: 13px;
}

.profile-hero-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-badge {
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(244, 221, 176, 0.08);
  border: 1px solid rgba(244, 221, 176, 0.16);
  color: #f4ddb0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.profile-joined {
  color: var(--text3);
  font-size: 12px;
}

.profile-section-label {
  margin: 0 0 10px 4px;
}

.pcard {
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}

.pcard:hover {
  border-color: rgba(244, 221, 176, 0.14);
}

.pcard-danger {
  border-color: rgba(217, 124, 115, 0.18);
}

.pcard-danger:hover {
  border-color: rgba(217, 124, 115, 0.3);
}

.pcard-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}

.pcard-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(244, 221, 176, 0.08);
  color: #d4b178;
}

.pcard-icon-danger {
  background: rgba(217, 124, 115, 0.1);
  color: #efb0a8;
}

.pcard-title {
  flex: 1;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.pcard-body {
  display: flex;
  flex-direction: column;
  padding: 6px 0;
}

.prow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.prow:last-child {
  border-bottom: none;
}

.prow:hover {
  background: rgba(255, 255, 255, 0.018);
}

.prow-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 12px;
}

.prow-icon-name { background: rgba(244, 221, 176, 0.08); color: #d4b178; }
.prow-icon-email { background: rgba(143, 196, 180, 0.12); color: #9fc9bf; }
.prow-icon-pw { background: rgba(126, 161, 132, 0.14); color: #9fcea7; }

.prow-body {
  flex: 1;
  min-width: 0;
}

.prow-label {
  margin-bottom: 2px;
  color: var(--text3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.prow-value {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prow-value--muted {
  color: var(--text2);
  font-style: italic;
}

.pbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.pbtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pbtn-primary {
  background: linear-gradient(135deg, #d4b178 0%, #a17946 100%);
  color: #1c1409;
  box-shadow: 0 8px 20px rgba(128, 87, 35, 0.22);
}

.pbtn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(128, 87, 35, 0.28);
}

.pbtn-outline {
  background: transparent;
  color: #f4ddb0;
  border: 1px solid rgba(244, 221, 176, 0.24);
}

.pbtn-outline:hover:not(:disabled) {
  background: rgba(244, 221, 176, 0.08);
  border-color: rgba(244, 221, 176, 0.34);
}

.pbtn-ghost {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
}

.pbtn-ghost:hover:not(:disabled) {
  border-color: var(--text3);
  color: var(--text);
}

.pbtn-danger {
  background: rgba(217, 124, 115, 0.12);
  color: #efb0a8;
  border: 1px solid rgba(217, 124, 115, 0.24);
}

.pbtn-danger:hover:not(:disabled) {
  background: rgba(217, 124, 115, 0.18);
  border-color: rgba(217, 124, 115, 0.34);
}

.pbtn-edit {
  background: rgba(244, 221, 176, 0.08);
  color: #f4ddb0;
  border: 1px solid rgba(244, 221, 176, 0.16);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 8px;
}

.pbtn-edit:hover:not(:disabled) {
  background: rgba(244, 221, 176, 0.14);
  border-color: rgba(244, 221, 176, 0.26);
}

.pbtn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
}

.pbtn-full {
  width: 100%;
}

.pbtn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.danger-body {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
}

.danger-desc {
  flex: 1;
  color: var(--text2);
  font-size: 13px;
  line-height: 1.55;
}

.sessions-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 22px;
}

.sessions-loading,
.sessions-empty {
  padding: 8px 0;
  color: var(--text2);
  font-size: 14px;
}

.session-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s;
}

.session-item:hover {
  border-color: rgba(244, 221, 176, 0.16);
}

.session-item--current {
  border-color: rgba(244, 221, 176, 0.22);
  background: rgba(244, 221, 176, 0.06);
}

.session-icon {
  color: var(--text2);
  flex-shrink: 0;
}

.session-info {
  flex: 1;
  min-width: 0;
}

.session-device {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.session-cur-badge {
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(244, 221, 176, 0.12);
  color: #f4ddb0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.session-meta {
  margin-top: 2px;
  color: var(--text3);
  font-size: 12px;
}

/* Modals */
.pmodal-overlay {
  z-index: 9998;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pmodal-overlay.open {
  display: flex;
}

.pmodal-overlay.visible {
  opacity: 1;
}

.pmodal {
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  border-radius: 22px;
  animation: fadeUp 0.28s ease;
}

.pmodal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--border);
}

.pmodal-title {
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
}

.pmodal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.pmodal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.pmodal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px;
}

.pmodal-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 22px 22px;
}

.pmodal-footer .pbtn-row {
  justify-content: stretch;
}

.pmodal-footer .pbtn-row .pbtn {
  flex: 1;
}

.pmodal-danger-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 0;
  border-radius: 50%;
  background: rgba(217, 124, 115, 0.12);
  border: 1px solid rgba(217, 124, 115, 0.24);
}

.pmodal-body-center {
  align-items: center;
  text-align: center;
}

.pmodal-desc,
.potp-hint {
  margin: 0;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.55;
}

.pmodal-hint {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 3px solid #d4b178;
  border-radius: 8px;
  background: rgba(244, 221, 176, 0.08);
  color: var(--text2);
  font-size: 13px;
  line-height: 1.5;
}

.pfield-pw-wrap {
  position: relative;
}

.pfield-pw-wrap .pfield-input {
  padding-right: 44px;
}

.pfield-eye-btn {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  padding: 4px;
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  transition: color 0.2s;
}

.pfield-eye-btn:hover {
  color: var(--text);
}

.pmodal-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pmodal-step.hidden {
  display: none;
}

.pfield {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pfield-label {
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.potp-input {
  padding: 14px;
  text-align: center;
  letter-spacing: 10px;
  font-size: 26px;
  font-weight: 700;
}

.pcard-msg {
  min-height: 18px;
  font-size: 13px;
}

.pcard-msg--success { color: #97d5a4; }
.pcard-msg--error { color: #efb0a8; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

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

/* Stripe return modal */
.stripe-return-overlay {
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.stripe-return-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.stripe-return-modal {
  width: 90%;
  max-width: 420px;
  border-radius: 18px;
}

.stripe-return-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.stripe-return-icon {
  color: #d4b178;
  flex-shrink: 0;
}

.stripe-return-header h3 {
  flex: 1;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.stripe-return-body {
  padding: 16px 20px;
}

.stripe-return-hint {
  margin-bottom: 12px;
  color: var(--text2);
  font-size: 0.875rem;
}

.stripe-return-info {
  padding: 12px 16px;
  border-radius: 12px;
}

.stripe-return-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.9rem;
}

.stripe-return-row span:first-child {
  color: var(--text2);
}

.stripe-return-row span:last-child {
  font-weight: 600;
}

.stripe-return-msg {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
}

.stripe-return-msg.ok {
  background: rgba(151, 213, 164, 0.14);
  color: #97d5a4;
}

.stripe-return-msg.err {
  background: rgba(217, 124, 115, 0.14);
  color: #efb0a8;
}

.stripe-return-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 20px 20px;
}

.btn-outline {
  padding: 10px 16px;
  border: 1px solid rgba(244, 221, 176, 0.24);
  border-radius: 10px;
  background: transparent;
  color: #f4ddb0;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-outline:hover {
  background: rgba(244, 221, 176, 0.08);
}

.btn-ghost:hover {
  color: var(--text2);
  background: rgba(255, 255, 255, 0.04);
}

.qr-countdown-urgent {
  color: #ef9c92 !important;
  font-weight: 700;
  animation: pulse 1s ease-in-out infinite;
}

/* Subscriptions */
.subs-main {
  position: relative;
  z-index: 1;
}

.subs-list {
  display: grid;
  gap: 16px;
}

.sub-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 244, 222, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(244, 221, 176, 0.11), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045)),
    rgba(13, 24, 21, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.sub-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 221, 176, 0.38), transparent);
  opacity: 0.7;
}

.sub-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

.sub-card-head h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 800;
  line-height: 1.25;
}

.sub-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  color: var(--text2);
  font-size: 13px;
  font-weight: 600;
}

.sub-kind {
  color: #f3d7a5;
}

.sub-kind-perm {
  color: #9fdfb0;
}

.sub-dot {
  color: var(--text3);
}

.sub-countdown {
  color: var(--text2);
}

.sub-countdown.warn {
  color: #f0b58c;
}

.sub-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 244, 222, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text2);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.sub-badge.badge-ok {
  border-color: rgba(151, 213, 164, 0.22);
  background: rgba(151, 213, 164, 0.12);
  color: #9fdfb0;
}

.sub-badge.badge-warn {
  border-color: rgba(240, 197, 106, 0.24);
  background: rgba(240, 197, 106, 0.12);
  color: #f0d08b;
}

.sub-badge.badge-gone {
  border-color: rgba(217, 124, 115, 0.24);
  background: rgba(217, 124, 115, 0.12);
  color: #efb0a8;
}

.sub-card-body {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.sub-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.36fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid rgba(255, 244, 222, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 13px;
}

.sub-lbl {
  color: var(--text3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sub-key {
  grid-template-columns: 1fr;
  gap: 8px;
}

.sub-key code {
  display: block;
  width: 100%;
  padding: 11px 12px;
  overflow-wrap: anywhere;
  word-break: break-word;
  border: 1px solid rgba(244, 221, 176, 0.12);
  border-radius: 12px;
  background: rgba(5, 12, 11, 0.42);
  color: #f4ddb0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
}

.sub-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.sub-card-actions .btn-primary,
.sub-card-actions .btn-ghost {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 800;
}

.sub-card-actions .btn-ghost {
  color: #f4ddb0;
  background: rgba(255, 255, 255, 0.055);
}

.sub-card-actions .btn-ghost:hover {
  color: var(--text);
  background: rgba(244, 221, 176, 0.08);
}

/* Responsive */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .hero-content { gap: 40px; }
  .section-title { font-size: clamp(30px, 5vw, 42px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-inner { gap: 8px; }
  .nav-links { display: none; }
  .logo { flex: 1; }
  .nav-actions { flex: 0 0 auto; gap: 8px; margin-left: 0; }
  .nav-actions .curr-switcher,
  .nav-actions .lang-switcher { display: none; }
  .hamburger { display: flex; }
  .user-name { display: none; }
  .user-btn { padding: 3px 3px; gap: 0; }
  .user-btn > svg { display: none; }
}

@media (max-width: 768px) {
  .nav-actions .btn-primary { display: none; }
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 0 40px;
  }
  .hero-visual { display: none; }
  .hero-stats { justify-content: center; flex-wrap: wrap; gap: 16px; }
  .hero-cta { justify-content: center; flex-wrap: wrap; }
  .hero-title { font-size: clamp(28px, 8vw, 48px); }
  .hero-sub { font-size: 15px; }
  .section-title { font-size: clamp(28px, 8vw, 38px); }
  .section-sub { font-size: 14px; }
  .categories { padding: calc(var(--navbar-h, 64px) + 48px) 0 68px; }
  .categories::before { inset-inline: 16px; height: 220px; }
  .cat-grid { grid-template-columns: minmax(0, 420px); gap: 14px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-card { border-radius: 16px; }
  .product-name { font-size: 13px; }
  .price-current { font-size: 15px; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .welcome-card { max-width: 580px; }
  .welcome-header { padding: 32px 28px 26px; }
  .welcome-header::after { top: 26px; right: 26px; font-size: 56px; }
  .welcome-title { font-size: clamp(28px, 7vw, 38px); }
  .welcome-section { margin-inline: 22px; padding: 20px; }
  .welcome-header + .welcome-section { margin-top: 22px; }
  .welcome-lang-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .welcome-confirm-btn { width: calc(100% - 44px); margin: 0 22px 24px; }
}

@media (max-width: 640px) {
  .profile-hero-body { flex-direction: column; align-items: flex-start; padding: 0 18px 20px; }
  .profile-hero-meta { padding-top: 8px; }
  .prow { padding: 14px 18px; gap: 12px; }
  .pcard-head { padding: 14px 18px; }
  .sessions-wrap { padding: 12px 18px; }
  .danger-body { padding: 16px 18px; }
  .pmodal-header,
  .pmodal-body,
  .pmodal-footer { padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 600px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-inner { padding: 0 16px; }
  .logo { font-size: 18px; }
  .mobile-drawer {
    top: 8px;
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    padding-top: 64px;
    border-radius: 22px;
  }
  .mobile-nav-links {
    margin-inline: 8px;
    padding-inline: 10px;
  }
  .mobile-drawer-actions {
    padding-inline: 16px;
  }
  .subs-main {
    padding: calc(64px + 34px) 16px 56px !important;
  }
  .subs-page-header {
    margin-bottom: 22px !important;
    padding-left: 16px !important;
  }
  .subs-page-header h1 {
    font-size: 22px !important;
    line-height: 1.18;
    letter-spacing: 0;
  }
  .subs-page-header p {
    max-width: 28ch;
    font-size: 13px !important;
    line-height: 1.5;
  }
  .subs-list {
    gap: 12px;
  }
  .sub-card {
    padding: 16px;
    border-radius: 18px;
  }
  .sub-card-head {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 14px;
  }
  .sub-card-head h3 {
    margin-bottom: 7px;
    font-size: 17px;
  }
  .sub-card-meta {
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    line-height: 1.45;
  }
  .sub-badge {
    width: fit-content;
    min-height: 26px;
    padding: 5px 9px;
  }
  .sub-card-body {
    gap: 8px;
    margin-bottom: 14px;
  }
  .sub-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 10px;
    font-size: 13px;
  }
  .sub-key code {
    padding: 10px;
    font-size: 11px;
    line-height: 1.55;
  }
  .sub-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .sub-card-actions .btn-primary,
  .sub-card-actions .btn-ghost {
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
    justify-content: center;
    font-size: 12px;
  }
  .sub-card-actions .btn-ghost:only-child,
  .sub-card-actions .btn-primary:only-child {
    grid-column: 1 / -1;
  }
  .hero-content { padding: 48px 0 32px; }
  .hero-title { font-size: clamp(24px, 7vw, 36px); }
  .hero-stats { gap: 12px; }
  .hero-stat-num { font-size: 22px; }
  .section-header { margin-bottom: 32px; }
  .section-title { font-size: clamp(28px, 9vw, 34px); }
  .section-sub { max-width: 30ch; margin-top: 18px; line-height: 1.55; }
  .cat-grid { grid-template-columns: 1fr; gap: 12px; }
  .cat-card { aspect-ratio: 16 / 8.8; min-height: 132px; border-radius: 18px; }
  .cat-card-body { padding: 14px 16px; }
  .cat-card-body::after { display: none; }
  .cat-card-name { font-size: 16px; }
  .cat-card-badge { width: 34px; height: 34px; border-radius: 11px; font-size: 15px; top: 10px; left: 12px; }
  .cat-card.no-img .cat-icon { width: 36px; height: 36px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .products-main {
    padding-top: calc(64px + 34px);
  }
  .products-category-mode .products-page-header {
    margin-bottom: 16px;
  }
  .products-category-mode .products-page-title {
    font-size: 30px;
    line-height: 1.08;
  }
  .products-category-mode .products-page-sub {
    font-size: 13px;
  }
  .products-category-mode .search-wrap {
    max-width: none;
    margin-bottom: 24px;
  }
  .products-category-mode .product-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 360px;
  }
  .products-category-mode .product-card {
    width: 100%;
  }
  .products-category-mode .product-name {
    min-height: 0;
    font-size: 14px;
  }
  .products-category-mode .product-footer {
    flex-direction: row;
    align-items: center;
  }
  .products-category-mode .btn-add-cart,
  .products-category-mode .btn-view-detail {
    width: auto;
    min-width: 132px;
  }
  .product-img-wrap {
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .product-body {
    padding: 11px 10px 12px;
  }
  .product-category {
    margin-bottom: 5px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  .product-name {
    min-height: 34px;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.42;
  }
  .product-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }
  .product-price {
    min-width: 0;
  }
  .price-current {
    font-size: 16px;
    line-height: 1;
  }
  .price-original {
    font-size: 11px;
  }
  .btn-add-cart,
  .btn-view-detail {
    width: 100%;
    min-height: 34px;
    padding: 8px 10px;
    font-size: 11px;
  }
  .search-wrap { margin-bottom: 20px; }
  .search-input { font-size: 14px; height: 44px; }
  .features-grid { grid-template-columns: 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-brand { grid-column: span 1; }
  .footer-pay-icons { gap: 6px; }
  .pay-icon { padding: 4px 8px; font-size: 11px; }
  .footer-social { gap: 8px; }
  .load-more-wrap { padding: 24px 0; }
  .btn-ghost.btn-lg { font-size: 14px; padding: 10px 24px; }
  #welcomeOverlay { padding: 12px; align-items: flex-start; }
  .welcome-card {
    max-height: calc(100vh - 24px);
    margin-top: 12px;
    border-radius: 22px;
  }
  .welcome-card::after { opacity: 0.55; }
  .welcome-header {
    padding: 24px 18px 20px;
    text-align: center;
  }
  .welcome-header::before {
    margin-bottom: 14px;
    min-height: 24px;
    padding: 5px 9px;
    font-size: 9px;
  }
  .welcome-header::after {
    top: 20px;
    right: 16px;
    font-size: 42px;
    opacity: 0.6;
  }
  .welcome-logo { margin-bottom: 12px; font-size: 23px; }
  .welcome-title { font-size: 25px; }
  .welcome-sub { max-width: 28ch; font-size: 12px; }
  .welcome-section {
    margin: 14px 12px 0;
    padding: 14px;
    border-radius: 18px;
  }
  .welcome-section:has(.welcome-curr-row) { margin-bottom: 16px; }
  .welcome-section-label { margin-bottom: 10px; font-size: 10px; }
  .welcome-lang-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .welcome-lang-btn { min-height: 58px; padding: 8px 5px 7px; }
  .welcome-flag { font-size: 17px; }
  .welcome-lang-name { font-size: 10px; }
  .welcome-curr-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .welcome-curr-btn { min-height: 58px; padding: 9px 6px; }
  .welcome-curr-sym { font-size: 17px; }
  .welcome-confirm-btn {
    width: calc(100% - 24px);
    min-height: 48px;
    margin: 0 12px 16px;
    border-radius: 14px;
  }
}

@media (max-width: 400px) {
  .profile-hero-banner { height: 88px; }
  .prow-value { font-size: 13px; }
  .profile-hero-name { font-size: 18px; }
}

/* ============================================
   Light Theme — Full Component Overrides
   ============================================ */

/* Navbar */
html[data-atg-theme="light"] .navbar.scrolled {
  background: rgba(242, 234, 220, 0.86);
  box-shadow: 0 14px 38px rgba(62, 45, 24, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
html[data-atg-theme="light"] .nav-links a:hover {
  background: rgba(55, 42, 25, 0.07);
}
html[data-atg-theme="light"] .lang-btn,
html[data-atg-theme="light"] .user-btn {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(86, 65, 37, 0.18);
  box-shadow: 0 1px 4px rgba(62, 45, 24, 0.09);
}
html[data-atg-theme="light"] .lang-btn:hover,
html[data-atg-theme="light"] .user-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(154, 107, 47, 0.32);
  box-shadow: 0 2px 8px rgba(62, 45, 24, 0.12);
}
html[data-atg-theme="light"] .btn-icon {
  color: var(--text2);
}
html[data-atg-theme="light"] .btn-icon:hover {
  background: rgba(55, 42, 25, 0.07);
  color: var(--text);
}

/* Dropdowns (lang / currency / user / nav-products) */
html[data-atg-theme="light"] .lang-dropdown,
html[data-atg-theme="light"] .user-dropdown,
html[data-atg-theme="light"] .nav-products-dropdown {
  background:
    radial-gradient(circle at 30% 0%, rgba(154, 107, 47, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 242, 230, 0.99));
  border-color: var(--border-strong);
  box-shadow:
    0 24px 70px rgba(62, 45, 24, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
html[data-atg-theme="light"] .lang-dropdown::-webkit-scrollbar-track,
html[data-atg-theme="light"] .curr-dropdown::-webkit-scrollbar-track {
  background: rgba(55, 42, 25, 0.04);
}
html[data-atg-theme="light"] .lang-dropdown::-webkit-scrollbar-thumb,
html[data-atg-theme="light"] .curr-dropdown::-webkit-scrollbar-thumb {
  background: rgba(154, 107, 47, 0.30);
}
html[data-atg-theme="light"] .lang-option:hover,
html[data-atg-theme="light"] .user-drop-item:hover,
html[data-atg-theme="light"] .nav-prod-item:hover {
  background: rgba(154, 107, 47, 0.08);
  border-color: rgba(154, 107, 47, 0.16);
  color: var(--text);
}
html[data-atg-theme="light"] .lang-option.active,
html[data-atg-theme="light"] .drawer-drop .active,
html[data-atg-theme="light"] .drawer-drop button.active {
  color: var(--primary);
  border-color: rgba(154, 107, 47, 0.20);
  background: rgba(154, 107, 47, 0.10);
}
html[data-atg-theme="light"] .lang-check {
  color: var(--primary);
}

/* Mobile drawer */
html[data-atg-theme="light"] .mobile-drawer {
  background:
    radial-gradient(circle at 20% 0%, rgba(154, 107, 47, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.65)),
    rgba(242, 234, 220, 0.97);
  border-color: var(--border);
  box-shadow: 0 24px 80px rgba(62, 45, 24, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
html[data-atg-theme="light"] .mobile-nav-links {
  border-bottom-color: var(--border);
}
html[data-atg-theme="light"] .mobile-drawer-close {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.55);
}
html[data-atg-theme="light"] .mobile-drawer-close:hover {
  background: rgba(154, 107, 47, 0.09);
  border-color: rgba(154, 107, 47, 0.24);
}

/* Settings shell — card layout in light mode */
html[data-atg-theme="light"] .settings-shell {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(86, 65, 37, 0.10);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(62, 45, 24, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 8px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Settings sidebar */
html[data-atg-theme="light"] .settings-sidebar {
  border-right-color: rgba(86, 65, 37, 0.12);
  background: rgba(255, 255, 255, 0.38);
  border-radius: 18px 0 0 18px;
  padding: 14px 10px;
}
html[data-atg-theme="light"] .settings-tab {
  color: var(--text2);
}
html[data-atg-theme="light"] .settings-tab:hover,
html[data-atg-theme="light"] .settings-tab.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(86, 65, 37, 0.12);
  box-shadow: 0 2px 12px rgba(62, 45, 24, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
html[data-atg-theme="light"] .settings-tab::after {
  background: radial-gradient(circle, rgba(154, 107, 47, 0.12), transparent 62%);
}

/* Settings pane head */
html[data-atg-theme="light"] .settings-pane-head {
  border-bottom-color: rgba(86, 65, 37, 0.12);
}
html[data-atg-theme="light"] .settings-pane-head::after {
  background: linear-gradient(90deg, rgba(154, 107, 47, 0.65), transparent);
}

/* Settings rows */
html[data-atg-theme="light"] .settings-row {
  border-bottom-color: rgba(86, 65, 37, 0.09);
}
html[data-atg-theme="light"] .settings-row::before {
  background:
    radial-gradient(circle at var(--settings-hover-x, 85%) 50%, rgba(154, 107, 47, 0.08), transparent 34%),
    linear-gradient(90deg, rgba(55, 42, 25, 0.02), transparent 44%);
}
html[data-atg-theme="light"] .settings-row:hover {
  border-color: rgba(154, 107, 47, 0.14);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 2px 12px rgba(62, 45, 24, 0.06);
}
html[data-atg-theme="light"] .settings-row-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
}
html[data-atg-theme="light"] .settings-row-link:hover .settings-chevron {
  color: var(--primary);
}

/* Settings combo button */
html[data-atg-theme="light"] .settings-combo-btn {
  border-color: rgba(86, 65, 37, 0.22);
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(62, 45, 24, 0.10), inset 0 1px 0 rgba(255, 255, 255, 1);
  filter: none;
}
html[data-atg-theme="light"] .settings-combo-btn strong,
html[data-atg-theme="light"] .settings-combo-option strong {
  color: rgba(34, 28, 20, 0.45);
}
html[data-atg-theme="light"] .settings-combo-btn:hover,
html[data-atg-theme="light"] .settings-combo.open .settings-combo-btn {
  border-color: rgba(154, 107, 47, 0.40);
  background: #fff8f0;
  box-shadow: 0 2px 8px rgba(62, 45, 24, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1);
}
html[data-atg-theme="light"] .settings-combo-btn:focus-visible,
html[data-atg-theme="light"] .settings-combo.open .settings-combo-btn {
  box-shadow: 0 0 0 3px rgba(154, 107, 47, 0.18), 0 2px 8px rgba(62, 45, 24, 0.12);
}
html[data-atg-theme="light"] .settings-combo.open .settings-combo-btn svg {
  color: var(--primary);
}

/* Settings combo menu */
html[data-atg-theme="light"] .settings-combo-menu {
  border-color: rgba(86, 65, 37, 0.18);
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(62, 45, 24, 0.14), 0 2px 8px rgba(62, 45, 24, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
}
html[data-atg-theme="light"] .settings-combo-menu::-webkit-scrollbar-thumb {
  border-color: #ffffff;
  background: rgba(154, 107, 47, 0.28);
}
html[data-atg-theme="light"] .settings-combo-option {
  color: var(--text2);
}
html[data-atg-theme="light"] .settings-combo-option:hover {
  color: var(--text);
  background: rgba(154, 107, 47, 0.07);
}
html[data-atg-theme="light"] .settings-combo-option.active {
  color: #fdf8ef;
  background: linear-gradient(180deg, #c49141, #9a6b2f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 4px 12px rgba(62, 45, 24, 0.18);
}
html[data-atg-theme="light"] .settings-combo-option.active strong {
  color: rgba(253, 248, 239, 0.65);
}

/* Settings pill button */
html[data-atg-theme="light"] .settings-pill-btn,
html[data-atg-theme="light"] .settings-stepper button {
  border-color: rgba(86, 65, 37, 0.20);
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(62, 45, 24, 0.08);
}
html[data-atg-theme="light"] .settings-pill-btn:hover,
html[data-atg-theme="light"] .settings-stepper button:hover {
  border-color: rgba(154, 107, 47, 0.36);
  background: #fff8f0;
  box-shadow: 0 4px 14px rgba(62, 45, 24, 0.12);
}

/* Responsive settings sidebar border */
@media (max-width: 860px) {
  html[data-atg-theme="light"] .settings-shell {
    border-radius: 18px;
  }
  html[data-atg-theme="light"] .settings-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(86, 65, 37, 0.12);
    border-radius: 14px 14px 0 0;
    background: rgba(255, 255, 255, 0.38);
  }
}

/* AI Chat panel */
html[data-atg-theme="light"] .ai-chat-panel {
  background: rgba(242, 234, 220, 0.97);
  border-color: var(--border);
}
html[data-atg-theme="light"] .ai-chat-header {
  background: rgba(55, 42, 25, 0.04);
  border-bottom-color: var(--border);
}
html[data-atg-theme="light"] .ai-chat-form {
  background: rgba(55, 42, 25, 0.03);
  border-top-color: var(--border);
}
html[data-atg-theme="light"] .ai-chat-form textarea {
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--border);
  color: var(--text);
}
html[data-atg-theme="light"] .ai-chat-close {
  background: rgba(255, 255, 255, 0.45);
  color: var(--text);
}
html[data-atg-theme="light"] .ai-chat-message.is-ai .ai-chat-bubble {
  background: rgba(55, 42, 25, 0.06);
  border-color: var(--border);
  color: var(--text);
}
html[data-atg-theme="light"] .ai-chat-bubble {
  border-color: var(--border);
  color: var(--text);
}
html[data-atg-theme="light"] .ai-chat-action {
  border-color: rgba(154, 107, 47, 0.26);
  background: rgba(154, 107, 47, 0.08);
  color: var(--primary);
}
html[data-atg-theme="light"] .ai-chat-action:hover {
  background: rgba(154, 107, 47, 0.14);
  border-color: rgba(154, 107, 47, 0.38);
}

/* Footer */
html[data-atg-theme="light"] .footer {
  background:
    radial-gradient(circle at 22% 0%, rgba(154, 107, 47, 0.08), transparent 32%),
    radial-gradient(circle at 78% 12%, rgba(77, 124, 103, 0.07), transparent 28%),
    linear-gradient(180deg, rgba(226, 212, 189, 0.95), rgba(210, 198, 178, 0.99));
  border-top-color: var(--border);
}
html[data-atg-theme="light"] .footer::before {
  background: linear-gradient(90deg, transparent, rgba(154, 107, 47, 0.30), rgba(77, 124, 103, 0.20), transparent);
}
html[data-atg-theme="light"] .footer-links a:hover {
  color: var(--primary);
}
html[data-atg-theme="light"] .footer-bottom {
  border-top-color: rgba(86, 65, 37, 0.14);
}
html[data-atg-theme="light"] .social-btn {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(86, 65, 37, 0.16);
  color: var(--text2);
}
html[data-atg-theme="light"] .social-btn:hover {
  background: rgba(154, 107, 47, 0.09);
  border-color: rgba(154, 107, 47, 0.24);
  color: var(--primary);
}
html[data-atg-theme="light"] .pay-icon-badge,
html[data-atg-theme="light"] .pay-badge {
  background: rgba(255, 255, 255, 0.60);
  border-color: rgba(86, 65, 37, 0.14);
}
html[data-atg-theme="light"] .pay-icon-badge:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(154, 107, 47, 0.24);
}

/* Product cards (listing page) */
html[data-atg-theme="light"] .product-card {
  background: #ffffff;
  border-color: rgba(86, 65, 37, 0.12);
  box-shadow: 0 4px 18px rgba(62, 45, 24, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
}
html[data-atg-theme="light"] .product-card:hover {
  border-color: rgba(154, 107, 47, 0.22);
  box-shadow: 0 14px 36px rgba(62, 45, 24, 0.13);
}
html[data-atg-theme="light"] .product-wishlist {
  background: rgba(255, 255, 255, 0.80);
  border-color: rgba(86, 65, 37, 0.16);
}

/* Category cards (home page) */
html[data-atg-theme="light"] .cat-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.70), rgba(255, 255, 255, 0.40)),
    rgba(242, 234, 220, 0.90);
  border-color: rgba(86, 65, 37, 0.14);
  box-shadow: 0 14px 36px rgba(62, 45, 24, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
html[data-atg-theme="light"] .cat-card.no-img {
  background:
    radial-gradient(circle at top left, rgba(154, 107, 47, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.70), rgba(255, 255, 255, 0.40)),
    rgba(242, 234, 220, 0.92);
}
html[data-atg-theme="light"] .cat-card:hover {
  box-shadow: 0 22px 56px rgba(62, 45, 24, 0.14);
}

/* Feature cards */
html[data-atg-theme="light"] .feature-card {
  background: #ffffff;
  border-color: rgba(86, 65, 37, 0.11);
  box-shadow: 0 4px 18px rgba(62, 45, 24, 0.07), inset 0 1px 0 rgba(255, 255, 255, 1);
}
html[data-atg-theme="light"] .feature-card:hover {
  border-color: rgba(154, 107, 47, 0.20);
  box-shadow: 0 12px 32px rgba(62, 45, 24, 0.10);
}

/* Toast notification */
html[data-atg-theme="light"] .toast {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(248, 242, 230, 0.96));
  border-color: rgba(77, 124, 103, 0.28);
  box-shadow: 0 12px 36px rgba(62, 45, 24, 0.12);
  color: var(--text);
}

/* Contact page cards & form */
html[data-atg-theme="light"] .contact-info-card {
  background: #ffffff;
  border: 1px solid rgba(86, 65, 37, 0.11);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(62, 45, 24, 0.07);
}
html[data-atg-theme="light"] .contact-form-card {
  background: #ffffff;
  border-color: rgba(86, 65, 37, 0.11);
  box-shadow: 0 4px 16px rgba(62, 45, 24, 0.07);
}

/* Form inputs (contact, profile, etc.) */
html[data-atg-theme="light"] .form-input,
html[data-atg-theme="light"] .form-textarea,
html[data-atg-theme="light"] .pfield-input {
  background: #ffffff;
  border-color: rgba(86, 65, 37, 0.20);
  color: var(--text);
}
html[data-atg-theme="light"] .form-input::placeholder,
html[data-atg-theme="light"] .form-textarea::placeholder,
html[data-atg-theme="light"] .pfield-input::placeholder {
  color: var(--text3);
}
html[data-atg-theme="light"] .form-input:focus,
html[data-atg-theme="light"] .form-textarea:focus,
html[data-atg-theme="light"] .pfield-input:focus {
  border-color: rgba(154, 107, 47, 0.38);
  box-shadow: 0 0 0 4px rgba(154, 107, 47, 0.10);
}

/* Profile hero card */
html[data-atg-theme="light"] .profile-hero,
html[data-atg-theme="light"] .pcard,
html[data-atg-theme="light"] .stripe-return-info {
  background: #ffffff;
  border-color: rgba(86, 65, 37, 0.11);
  box-shadow: 0 4px 18px rgba(62, 45, 24, 0.07);
}
html[data-atg-theme="light"] .profile-avatar-ring {
  box-shadow: 0 0 0 4px #f2eadc, 0 10px 26px rgba(62, 45, 24, 0.12);
}
html[data-atg-theme="light"] .avatar-cam-btn {
  border-color: #f2eadc;
}

/* Mobile drawer — inner dropdowns (lang/currency) */
html[data-atg-theme="light"] .drawer-drop {
  background: rgba(248, 242, 230, 0.96);
  border-color: var(--border);
}
html[data-atg-theme="light"] .drawer-drop button,
html[data-atg-theme="light"] .drawer-drop a {
  color: var(--text2);
}
html[data-atg-theme="light"] .drawer-drop button:hover,
html[data-atg-theme="light"] .drawer-drop a:hover {
  background: rgba(154, 107, 47, 0.08);
  border-color: rgba(154, 107, 47, 0.14);
  color: var(--text);
}

/* Search input */
html[data-atg-theme="light"] .search-input {
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}
html[data-atg-theme="light"] .search-input:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(154, 107, 47, 0.28);
  box-shadow: 0 0 0 4px rgba(154, 107, 47, 0.10);
}
html[data-atg-theme="light"] .search-input::placeholder {
  color: var(--text3);
}
