/* ── Reset & Base ─────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #FAFAF8;
  color: #1A1A18;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

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

/* ── CSS Variables ────────────────────────────── */
:root {
  --green900: #173404;
  --green700: #27500A;
  --green600: #3B6D11;
  --green500: #639922;
  --green400: #97C459;
  --green100: #EAF3DE;
  --green50:  #F4F7EF;
  --white:    #FFFFFF;
  --page:     #FAFAF8;
  --surface:  #F1EFE8;
  --text:     #1A1A18;
  --text-secondary: #5F5E5A;
  --muted:    #888780;
  --border:   #E5E3DA;
  --shadow-sm: 0 1px 2px rgba(20,20,18,0.04);
  --shadow-md: 0 1px 2px rgba(20,20,18,0.04), 0 4px 12px rgba(20,20,18,0.06);
  --shadow-lg: 0 2px 4px rgba(20,20,18,0.05), 0 8px 24px rgba(20,20,18,0.08);
  --shadow: var(--shadow-md);
}

/* ── Header ───────────────────────────────────── */
.header {
  background: var(--green900);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  text-decoration: none;
}

.logo-icon { font-size: 22px; }

.logo-img {
  height: 36px;
  width: auto;
  border-radius: 7px;
}

.logo-text {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
  line-height: 1;
}

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

.logo-sub {
  color: rgba(255,255,255,0.45);
  font-size: 10px;
  margin-top: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-icon {
  font-size: 19px;
  cursor: pointer;
  color: white;
  position: relative;
  text-decoration: none;
  padding: 4px;
  opacity: 0.92;
  transition: opacity 0.15s;
}

.header-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.header-icon:hover { opacity: 1; }

.menu-btn {
  background: rgba(255,255,255,0.10);
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 18px;
  cursor: pointer;
  color: white;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--green400);
  color: var(--green900);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Nav Tabs ─────────────────────────────────── */
.nav-tabs {
  background: var(--white);
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar { display: none; }

.nav-tab {
  padding: 13px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-tab:hover,
.nav-tab.active {
  color: var(--green700);
  border-bottom-color: var(--green700);
}

/* ── Buttons ──────────────────────────────────── */
.btn {
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 46px;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--green700);
  color: white;
  width: 100%;
  border-radius: 10px;
  font-size: 14px;
}

.btn-primary:hover,
.btn-primary:active { background: var(--green900); }

.btn-outline {
  background: white;
  color: var(--green700);
  border: 1px solid var(--border);
  padding: 10px 18px;
}

.btn-outline:hover { border-color: var(--green500); }

/* ── Forms ────────────────────────────────────── */
.form-container {
  max-width: 420px;
  margin: 28px auto;
  background: var(--white);
  border-radius: 16px;
  padding: 26px 22px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.form-subtitle {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 20px;
}

.form-group { margin-bottom: 13px; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  font-size: 15px;
  color: var(--text);
  background: var(--page);
  outline: none;
  transition: border 0.15s, background 0.15s;
  font-family: inherit;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green500);
  background: white;
}

.form-link {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

.form-link a { color: var(--green700); font-weight: 600; }

.form-error {
  background: #FCEBEB;
  color: #A32D2D;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 13px;
  display: none;
}

/* ── Product Grid ─────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px;
  padding: 14px;
}

.product-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
}

.product-card:active {
  transform: scale(0.98);
}

.product-image {
  background: var(--surface);
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: var(--text-secondary);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-emoji { font-size: 46px; }

.badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--green900);
  color: white;
  font-size: 9px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.product-info {
  padding: 11px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.product-brand {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
}

.product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.product-desc {
  font-size: 11px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating { font-size: 11px; }

.product-footer {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  gap: 8px;
}

.product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--green700);
}

.product-price span {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}

/* ── Quantity selector on product cards ────────── */
.qty-selector {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--surface);
  border-radius: 8px;
  padding: 3px 4px;
}

.qty-btn {
  width: 22px;
  height: 22px;
  border: none;
  background: white;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: var(--green700);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s;
  flex-shrink: 0;
}

.qty-btn:hover { background: var(--green100); }
.qty-btn:active { transform: scale(0.92); }

.qty-value {
  font-size: 12px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
  color: var(--text);
  user-select: none;
}


.btn-add-cart {
  background: var(--green700);
  color: white;
  border: none;
  border-radius: 18px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  min-height: 32px;
  touch-action: manipulation;
  width: 100%;
}

.btn-add-cart:active { background: var(--green900); }

/* ── Cart ─────────────────────────────────────── */
.cart-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 14px;
}

.cart-item {
  background: var(--white);
  border-radius: 13px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.cart-item-emoji {
  font-size: 30px;
  width: 52px;
  height: 52px;
  background: var(--surface);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  color: var(--text-secondary);
}

.cart-item-emoji img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

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

.cart-item-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-brand { font-size: 11px; color: var(--muted); }

.cart-item-price {
  font-size: 12px;
  color: var(--green700);
  font-weight: 600;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.cart-item-actions button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  color: var(--green700);
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-actions span {
  font-weight: 600;
  font-size: 14px;
  min-width: 20px;
  text-align: center;
}

.cart-item-total {
  font-weight: 700;
  font-size: 14px;
  color: var(--green700);
  min-width: 64px;
  text-align: right;
  flex-shrink: 0;
}

.cart-item-remove {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.5;
  padding: 4px;
  touch-action: manipulation;
  color: var(--text-secondary);
}

.cart-item-remove:active { opacity: 1; }

.cart-summary {
  background: var(--white);
  border-radius: 14px;
  padding: 18px;
  margin-top: 14px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

/* ── Orders ───────────────────────────────────── */
.orders-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 14px;
}

.order-card {
  background: var(--white);
  border-radius: 14px;
  padding: 15px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 8px;
}

.order-id {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.order-date {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.order-status {
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--surface);
  font-size: 12px;
  gap: 8px;
}

.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 8px;
  flex-wrap: wrap;
}

.order-address {
  font-size: 11px;
  color: var(--muted);
  flex: 1;
}

.order-total {
  font-weight: 700;
  font-size: 15px;
  color: var(--green700);
  white-space: nowrap;
}

/* ── Notification ─────────────────────────────── */
.notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  z-index: 999;
  animation: slideUp 0.25s ease;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
}

.notification.success {
  background: var(--green900);
  color: white;
}

.notification.error {
  background: #A32D2D;
  color: white;
}

@keyframes slideUp {
  from { transform: translateX(-50%) translateY(16px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}

/* ── Loading & Empty ──────────────────────────── */
.loading {
  text-align: center;
  padding: 44px 20px;
  color: var(--muted);
  font-size: 14px;
  grid-column: 1 / -1;
}

.empty-state {
  text-align: center;
  padding: 44px 20px;
  color: var(--muted);
  grid-column: 1 / -1;
}

.empty-state p {
  font-size: 14px;
  font-weight: 500;
}

/* ── Page Header ──────────────────────────────── */
.page-header {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

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

/* ── Search Bar ───────────────────────────────── */
.search-bar { padding: 0 14px 12px; }

.search-bar input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 15px;
  background: var(--white);
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
}

.search-bar input:focus { border-color: var(--green500); }

/* ── Responsive — Tablet ──────────────────────── */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .form-container {
    margin: 16px;
    padding: 20px 16px;
    border-radius: 14px;
  }
}

/* ── Responsive — Mobile ──────────────────────── */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .product-image { height: 100px; }

  .product-info { padding: 9px 10px 10px; }

  .product-name { font-size: 12px; }

  .product-price { font-size: 13px; }

  .btn-add-cart {
    padding: 6px 10px;
    font-size: 10px;
  }

  .cart-item {
    flex-wrap: wrap;
    gap: 10px;
  }

  .cart-item-total {
    min-width: auto;
    flex: 1;
  }

  .header { padding: 10px 12px; }

  .logo-text { font-size: 15px; }

  .nav-tab {
    padding: 11px 12px;
    font-size: 12px;
  }

  .page-title { font-size: 17px; }

  .cart-total { font-size: 15px; }

  .order-card { padding: 13px 12px; }
}

/* ── Safe area for iPhone notch ───────────────── */
@supports (padding-top: env(safe-area-inset-top)) {
  .header {
    padding-top: max(12px, env(safe-area-inset-top));
  }
}

/* ── Touch friendly ───────────────────────────── */
button, a, input, select {
  touch-action: manipulation;
}

/* ── Drawer Backdrop ──────────────────────────── */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20,20,18,0.4);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Drawer Panel ─────────────────────────────── */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 290px;
  max-width: 85vw;
  background: var(--white);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

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

.drawer-header {
  background: var(--green900);
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-brand {
  color: white;
  font-weight: 700;
  font-size: 15px;
}

.drawer-brand span { color: var(--green400); }

.drawer-close {
  background: rgba(255,255,255,0.10);
  border: none;
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.drawer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 2px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.drawer-name {
  color: white;
  font-weight: 600;
  font-size: 13px;
}

.drawer-email {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
}

.drawer-menu {
  flex: 1;
  padding: 6px 0;
  overflow-y: auto;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 18px;
  cursor: pointer;
  border-bottom: 1px solid var(--page);
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}

.drawer-item:hover { background: var(--page); }

.drawer-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green700);
  flex-shrink: 0;
}

.drawer-item-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.drawer-item-sub {
  font-size: 11px;
  color: var(--muted);
}

.drawer-arrow {
  margin-left: auto;
  color: var(--muted);
  display: flex;
}

.drawer-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}

/* ── Ticker ────────────────────────────────────── */
.ticker-bar {
  background: var(--green900);
  color: white;
  overflow: hidden;
  padding: 7px 0;
  font-size: 11px;
  white-space: nowrap;
}

.ticker-track {
  display: inline-block;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Info cards (season / calendar / testimonials) ── */
.info-card {
  background: white;
  border-radius: 13px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow 0.15s;
}

.info-card:hover {
  box-shadow: var(--shadow-md);
}

.info-card-static {
  background: white;
  border-radius: 13px;
  padding: 15px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.info-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
}

/* ── Flash Sale ────────────────────────────────── */
.flash-sale-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
}

.flash-sale-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.flash-sale-title svg { color: #A32D2D; }

.flash-sale-wrap {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 13px 14px;
  display: table;
  max-width: 100%;
  box-shadow: var(--shadow-md);
}

.flash-cards-row {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.flash-cards-row::-webkit-scrollbar { display: none; }

.flash-card {
  background: var(--page);
  border-radius: 10px;
  padding: 7px;
  flex-shrink: 0;
  width: 96px;
  cursor: pointer;
  transition: transform 0.15s;
}

.flash-card:active { transform: scale(0.96); }

.flash-card-img {
  height: 64px;
  background: var(--surface);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  overflow: hidden;
  margin-bottom: 6px;
  position: relative;
}

.flash-card-img img { width: 100%; height: 100%; object-fit: cover; }

.flash-card-discount {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #A32D2D;
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 5px;
}

.flash-card-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flash-card-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--green700);
  margin-top: 2px;
}

.flash-card-original {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 4px;
}

.flash-card-timer {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ── Mini product cards (bestsellers / recently viewed) ── */
.mini-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 9px;
}

.mini-product-card {
  background: white;
  border-radius: 11px;
  padding: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.mini-product-card:hover { box-shadow: var(--shadow-md); }
.mini-product-card:active { transform: scale(0.97); }

.mini-product-img {
  height: 60px;
  background: var(--surface);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  overflow: hidden;
  margin-bottom: 6px;
}

.mini-product-img img { width: 100%; height: 100%; object-fit: cover; }

.mini-product-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-product-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--green700);
  margin-top: 2px;
}

.medal-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  color: #1A1A1A;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  z-index: 1;
}

/* ── Section spacing & rhythm ─────────────────── */
.home-section {
  padding: 0 14px 18px;
}

.home-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Greeting & Weather ────────────────────────── */
.greeting-card {
  padding: 13px 14px;
  background: var(--page);
  display: flex;
  align-items: center;
  gap: 8px;
}
.greeting-card span { color: var(--green600) }
.greeting-text { font-size: 13px; font-weight: 600; color: var(--text); }

.weather-card-wrap { padding: 0 14px 16px; }
.weather-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 16px;
  box-shadow: var(--shadow-md);
}
.weather-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.weather-left { display: flex; align-items: center; gap: 13px; }
.weather-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green700);
  flex-shrink: 0;
}
.weather-temp { font-size: 24px; font-weight: 700; color: var(--text); line-height: 1; }
.weather-city { font-size: 11px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.weather-right { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.weather-stat { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }

.weather-suggestion-pill {
  background: var(--green50);
  border-radius: 9px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  text-decoration: none;
}
.weather-suggestion-pill span:not(.suggestion-icon) {
  font-size: 11px;
  color: var(--text);
  font-weight: 600;
  flex: 1;
}
.suggestion-icon { color: var(--green700); display: flex; }
.suggestion-arrow { color: var(--green600); display: flex; }

.weather-location-hint {
  display: none;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 11px;
  cursor: pointer;
  width: fit-content;
}
.weather-location-hint:hover { color: var(--green700); }
/* ── Flash Sale — single product layout ───────── */
.flash-single-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 13px;
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.flash-single-img {
  width: 60px;
  height: 60px;
  background: var(--surface);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.flash-single-img img { width: 100%; height: 100%; object-fit: cover; }

.flash-single-discount {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #A32D2D;
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 5px;
}

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

.flash-single-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.flash-single-label svg { color: #A32D2D; }

.flash-single-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flash-single-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.flash-single-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--green700);
}

.flash-single-timer {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.flash-single-arrow {
  color: var(--muted);
  flex-shrink: 0;
  display: flex;
}

/* ── Testimonials ─────────────────────────────── */
.testimonials-list { display:flex;flex-direction:column;gap:10px; }
.testimonial-card-home { background:white;border-radius:14px;padding:14px;border:1px solid var(--border);box-shadow:var(--shadow-sm); }
.testimonial-top { display:flex;align-items:center;gap:10px;margin-bottom:8px; }
.testimonial-avatar { width:40px;height:40px;border-radius:50%;background:var(--green100);display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden; }
.testimonial-name-home { font-weight:700;font-size:13px;color:var(--text); }
.testimonial-loc { font-size:11px;color:var(--muted); }
.testimonial-stars-home { color:#F59E0B;font-size:13px;margin-bottom:6px; }
.testimonial-text-home { font-size:13px;color:var(--text-secondary);line-height:1.5;font-style:italic; }
.testimonial-crop-home { display:inline-flex;align-items:center;gap:4px;background:var(--green100);color:var(--green700);font-size:10px;font-weight:600;padding:3px 8px;border-radius:10px;margin-top:8px; }

/* ── Product Variant Buttons ──────────────────── */
.variant-btns {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.variant-btn {
  padding: 3px 9px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: white;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.15s;
  font-family: inherit;
  white-space: nowrap;
}

.variant-btn:hover {
  border-color: var(--green600);
  color: var(--green700);
}

.variant-btn.active {
  background: var(--green700);
  color: white;
  border-color: var(--green700);
}

/* ── Variant selector on detail page ─────────── */
.variant-selector-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.variant-selector-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.variant-option {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  min-width: 70px;
}

.variant-option:hover { border-color: var(--green600); }

.variant-option.active {
  border-color: var(--green700);
  background: var(--green50);
}

.variant-option-size {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.variant-option-price {
  font-size: 12px;
  color: var(--green700);
  font-weight: 600;
  margin-top: 2px;
}

.variant-option-original {
  font-size: 10px;
  color: var(--muted);
  text-decoration: line-through;
}
