/* ═══════════════════════════════════════════════════
   হুজুরের ঔষধ — Firebase PWA Design System
   Herbal / Organic / Bengali-first
   ═══════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700;800&family=Noto+Serif+Bengali:wght@400;600;700&display=swap');

/* ═══ Design Tokens ═══ */
:root {
  --primary: #2D5016;
  --primary-light: #4A7A2E;
  --primary-dark: #1A3009;
  --primary-hover: #3A6820;
  --primary-subtle: rgba(45, 80, 22, 0.08);
  --primary-muted: rgba(45, 80, 22, 0.15);

  --accent: #C8A96E;
  --accent-light: #E8D5A8;
  --accent-dark: #A88B4A;

  --bg: #FAFAF5;
  --bg-warm: #F5F0E8;
  --bg-card: #FFFFFF;
  --bg-overlay: rgba(26, 48, 9, 0.55);

  --text: #2C2C2C;
  --text-secondary: #4A4A4A;
  --text-light: #6B6B6B;
  --text-muted: #999999;
  --text-heading: #1A3009;

  --border: #E8E2D8;
  --border-light: #F0EBE2;
  --border-strong: #D4CCBE;

  --success: #2D7A3A;
  --success-bg: #E8F5E9;
  --warning: #92400E;
  --warning-bg: #FEFCE8;
  --error: #B91C1C;
  --error-bg: #FEF2F2;

  --font-display: 'Noto Serif Bengali', Georgia, serif;
  --font-body: 'Noto Sans Bengali', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(45, 80, 22, 0.06);
  --shadow-md: 0 4px 16px rgba(45, 80, 22, 0.08);
  --shadow-lg: 0 8px 32px rgba(45, 80, 22, 0.1);
  --shadow-xl: 0 16px 48px rgba(45, 80, 22, 0.14);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ═══ Reset ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  background: var(--bg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  padding-bottom: 64px;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(45,80,22,0.02) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 90%, rgba(200,169,110,0.03) 0%, transparent 50%);
  pointer-events: none; z-index: -1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ═══ Utilities ═══ */
.container { max-width: 520px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ═══ Header ═══ */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  text-align: center;
  padding: 10px 16px 8px;
}

.header__logo img {
  max-width: 150px;
  height: auto;
  margin: 0 auto 8px;
}

.header__logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.header__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
}
.header__actions::-webkit-scrollbar { display: none; }

.header__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border: none;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.header__btn::after {
  content: '';
  position: absolute; inset: 0;
  left: -100%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  animation: shimmer 3.5s ease-in-out infinite;
  pointer-events: none;
}
.header__btn:active { transform: scale(0.95); }

@keyframes shimmer {
  0% { left: -100%; }
  55% { left: 100%; }
  100% { left: 100%; }
}

/* ═══ Instruction Banner ═══ */
.instruct {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  margin: 16px auto 0;
  max-width: 520px;
  width: calc(100% - 24px);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 16px rgba(45,80,22,0.25);
  position: relative;
  overflow: hidden;
}
.instruct::before {
  content: '';
  position: absolute; inset: 0;
  left: -100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

/* ═══ Category Tabs ═══ */
.cat-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 12px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  max-width: 520px;
  margin: 0 auto;
}
.cat-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  flex-shrink: 0;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text-light);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.cat-tab:active { transform: scale(0.95); }
.cat-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(45,80,22,0.3);
}

/* ═══ Product Grid ═══ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 12px 24px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 80%;
    max-width: 1200px;
    padding: 0 0 32px;
  }
  .cat-tabs {
    max-width: 80%;
    width: 80%;
    padding: 20px 0 14px;
  }
  .instruct {
    max-width: 80%;
    width: 80%;
  }
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:active { transform: scale(0.98); }

.product-card__img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-warm);
}
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.product-card:hover .product-card__img { transform: scale(1.04); }
.product-card__img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 28px;
}

.product-card__badge {
  position: absolute;
  top: 6px; left: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.product-card__body {
  padding: 8px 10px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card__name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__desc {
  font-size: 10.5px;
  color: var(--text-light);
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__price-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}
.product-card__price {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}
.product-card__old-price {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card__btns {
  display: flex;
  gap: 4px;
}
.product-card__detail-btn {
  flex: 1;
  padding: 6px 4px;
  border: 1.5px solid var(--primary);
  border-radius: 6px;
  background: transparent;
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.2s;
  touch-action: manipulation;
}
.product-card__detail-btn:active { background: rgba(45,80,22,0.06); }
.product-card__add-btn {
  flex: 1;
  padding: 6px 4px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.2s;
  touch-action: manipulation;
}
.product-card__add-btn:active { transform: scale(0.96); }

/* ═══ Loading / Empty States ═══ */
.loading-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.loading-state i { font-size: 32px; display: block; margin-bottom: 12px; color: var(--primary); }

.shimmer-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; padding: 0 16px; }
.shimmer-card { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; }
.shimmer-card__img { aspect-ratio: 1; background: linear-gradient(90deg, var(--bg-warm) 25%, #ede8dd 50%, var(--bg-warm) 75%); background-size: 200%; animation: shimmerBg 1.5s infinite; }
.shimmer-card__body { padding: 12px; }
.shimmer-card__line { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--bg-warm) 25%, #ede8dd 50%, var(--bg-warm) 75%); background-size: 200%; animation: shimmerBg 1.5s infinite; margin-bottom: 8px; }
.shimmer-card__line:last-child { width: 60%; margin-bottom: 0; }
@keyframes shimmerBg { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ═══ Bottom Navigation ═══ */
.bnav {
  position: fixed; bottom: 0; left: 0; width: 100%;
  z-index: 9996;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 20px rgba(0,0,0,0.06);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bnav__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  max-width: 500px;
  margin: 0 auto;
  height: 58px;
}
.bnav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
  padding: 6px 2px;
  transition: color 0.25s;
  text-decoration: none;
  position: relative;
}
.bnav__item i { font-size: 19px; transition: all 0.25s; }
.bnav__item:hover,
.bnav__item.active { color: var(--primary); }
.bnav__item.active i { transform: scale(1.1); }
.bnav__item.active::before {
  content: '';
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 0 0 4px 4px;
}

/* Cart center elevated button */
.bnav__item--cart .bnav__cart-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-top: -18px;
  box-shadow: 0 4px 16px rgba(45,80,22,0.25);
  transition: all 0.3s;
  position: relative;
}
.bnav__item--cart:active .bnav__cart-icon { transform: scale(1.08); }

.bnav__badge {
  position: absolute; top: -4px; right: -6px;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  background: #ef4444;
  color: #fff;
  font-size: 10px; font-weight: 800;
  display: none;
  align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-card);
  animation: badgePop 0.3s var(--ease-bounce);
}
.bnav__badge.show { display: flex; }
@keyframes badgePop { 0% { transform: scale(0); } 100% { transform: scale(1); } }

.bnav__item--call i { color: #ef4444; }
.bnav__item[data-nav="whatsapp"] i { color: #25D366; }

@media (min-width: 769px) {
  .bnav {
    left: 50%; transform: translateX(-50%);
    width: auto; min-width: 420px; max-width: 540px;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
  }
}

/* ═══ Bag Drawer ═══ */
.bag-drawer {
  position: fixed; inset: 0; z-index: 10010;
  display: none; align-items: flex-end; justify-content: center;
}
.bag-drawer.open { display: flex; }
.bag-drawer__overlay {
  position: absolute; inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(6px);
}
.bag-drawer__box {
  position: relative; z-index: 2;
  background: var(--bg);
  width: 100%; max-width: 520px;
  max-height: 85vh;
  border-radius: 24px 24px 0 0;
  overflow-y: auto;
  animation: slideUp 0.35s var(--ease-smooth);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bounceIn { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes popIn { from { transform: scale(0); } 60% { transform: scale(1.2); } to { transform: scale(1); } }

.bag-drawer__head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0;
  background: var(--bg); z-index: 3;
}
.bag-drawer__title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: var(--primary-dark);
  display: flex; align-items: center; gap: 8px;
}
.bag-drawer__close { background: none; border: none; font-size: 22px; color: var(--text-muted); padding: 4px; }

.bag-drawer__items { padding: 12px 20px; }
.bag-item {
  display: flex; gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  align-items: center;
}
.bag-item__img {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border-light);
}
.bag-item__info { flex: 1; min-width: 0; }
.bag-item__name { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bag-item__price { font-size: 12px; color: var(--text-light); }
.bag-item__subtotal { font-size: 14px; font-weight: 700; color: var(--primary); }
.bag-item__qty {
  display: flex; align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 6px; overflow: hidden;
  margin: 6px 0 3px; width: fit-content;
}
.bag-item__qty button {
  width: 28px; height: 28px; border: none;
  background: var(--bg-warm);
  font-size: 15px; color: var(--primary); font-weight: 700;
}
.bag-item__qty span { width: 32px; text-align: center; font-size: 13px; font-weight: 600; }
.bag-item__del {
  background: none; border: none;
  color: #ef4444; font-size: 14px;
  padding: 6px; border-radius: 6px; flex-shrink: 0;
}
.bag-item__del:hover { background: var(--error-bg); }

.bag-drawer__empty {
  text-align: center; padding: 40px 20px; color: var(--text-light);
}
.bag-drawer__empty i { font-size: 36px; display: block; margin-bottom: 12px; opacity: 0.3; }

.bag-drawer__summary {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px;
}
.bag-drawer__total {
  font-size: 20px; font-weight: 800;
  color: var(--primary);
  font-family: var(--font-display);
}

.bag-drawer__order-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: calc(100% - 40px); margin: 0 20px 16px;
  padding: 14px; border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 16px rgba(45,80,22,0.25);
  transition: all 0.3s;
  touch-action: manipulation;
}
.bag-drawer__order-btn:active { transform: translateY(-1px); }
.bag-drawer__order-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ═══ Order Form Modal ═══ */
.order-form-modal {
  position: fixed; inset: 0; z-index: 10012;
  display: none; align-items: flex-end; justify-content: center;
}
.order-form-modal.open { display: flex; }
.order-form-modal__overlay { position: absolute; inset: 0; background: rgba(26,48,9,0.6); backdrop-filter: blur(6px); }
.order-form-modal__box {
  position: relative; z-index: 2;
  background: var(--bg);
  width: 100%; max-width: 520px;
  max-height: 90vh;
  border-radius: 24px 24px 0 0;
  overflow-y: auto;
  animation: slideUp 0.35s var(--ease-smooth);
  padding: 20px;
}
.order-form-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.order-form-modal__title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: var(--primary-dark);
}
.order-form-modal__close { background: none; border: none; font-size: 20px; color: var(--text-muted); }

.form-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; display: block; }
.form-input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 12px;
  outline: none;
  background: var(--bg-card);
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--primary); }
.form-textarea { min-height: 70px; resize: vertical; }

.order-items-list { margin-bottom: 16px; }
.order-item-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  font-size: 13px;
}
.order-item-row__name { font-weight: 600; flex: 1; }
.order-item-row__detail { color: var(--text-light); text-align: right; }

.order-total-row {
  display: flex; justify-content: space-between;
  padding: 12px 0;
  border-top: 1.5px solid var(--border);
  margin: 12px 0;
  font-size: 16px; font-weight: 700;
}
.order-total-val { color: var(--primary); font-family: var(--font-display); font-size: 20px; }

.order-submit-btn {
  width: 100%; padding: 14px; border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 16px rgba(45,80,22,0.25);
  transition: all 0.3s;
}
.order-submit-btn.loading { opacity: 0.7; pointer-events: none; }

/* Success */
.order-success { text-align: center; padding: 40px 20px; }
.order-success__icon {
  width: 70px; height: 70px; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: #fff;
  animation: popIn 0.5s 0.15s both;
}
.order-success h3 { font-family: var(--font-display); color: var(--primary); margin: 0 0 8px; font-size: 20px; }
.order-success p { color: var(--text-light); font-size: 14px; line-height: 1.7; margin: 0 0 16px; }

/* Add to bag popup */
.bag-popup {
  position: fixed; inset: 0; z-index: 100000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.bag-popup.open { display: flex; }
.bag-popup__overlay { position: absolute; inset: 0; background: rgba(26,48,9,0.5); backdrop-filter: blur(4px); animation: fadeIn 0.3s; }
.bag-popup__card {
  position: relative; z-index: 2;
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 340px; width: 100%;
  text-align: center;
  animation: bounceIn 0.45s var(--ease-bounce);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.bag-popup__check {
  width: 56px; height: 56px; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px;
  animation: popIn 0.5s 0.15s both;
}
.bag-popup__title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--primary-dark); margin-bottom: 16px; }
.bag-popup__img { width: 72px; height: 72px; border-radius: var(--radius-md); object-fit: cover; margin: 0 auto 10px; border: 2px solid var(--border-light); }
.bag-popup__name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.bag-popup__count { font-size: 13px; color: var(--text-light); margin-bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.bag-popup__btns { display: flex; gap: 8px; }
.bag-popup__btn {
  flex: 1; padding: 12px; border: none; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 700; transition: all 0.2s;
}
.bag-popup__btn--bag { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; }
.bag-popup__btn--continue { background: var(--bg-warm); color: var(--primary); border: 1.5px solid var(--border); }

/* ═══ Customer Auth ═══ */
.auth-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99998;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.auth-backdrop.show { opacity: 1; visibility: visible; }

.auth-sheet {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 99999;
  background: #fff;
  border-radius: 20px 20px 0 0;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 24px 28px;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.12);
  transform: translateY(100%);
  transition: transform 0.35s var(--ease);
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.auth-sheet.show { transform: translateY(0); }
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .auth-sheet { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}

.auth-handle { display: flex; justify-content: center; padding: 12px 0 8px; }
.auth-handle span { width: 36px; height: 4px; background: #ccc; border-radius: 4px; }

.auth-icon {
  width: 56px; height: 56px; margin: 4px auto 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
}
.auth-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--primary-dark); text-align: center; margin-bottom: 4px; }
.auth-sub { font-size: 13px; color: #777; text-align: center; margin-bottom: 20px; line-height: 1.5; }
.auth-err { color: var(--error); font-size: 13px; font-weight: 600; text-align: center; margin-bottom: 8px; display: none; }

.auth-phone-row { display: flex; gap: 8px; margin-bottom: 14px; }
.auth-phone-row .prefix {
  display: flex; align-items: center; justify-content: center;
  padding: 0 14px;
  background: var(--bg-warm);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 700; color: var(--primary); font-size: 14px;
}
.auth-phone-row input {
  flex: 1; padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 16px; font-weight: 600;
  outline: none; background: var(--bg);
  letter-spacing: 1px;
  transition: border-color 0.2s;
}
.auth-phone-row input:focus { border-color: var(--primary); }
.auth-phone-row input::placeholder { font-weight: 400; letter-spacing: 0; }

.auth-login-btn {
  width: 100%; padding: 15px; border: none; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 16px rgba(45,80,22,0.25);
  transition: opacity 0.2s;
}
.auth-login-btn:active { opacity: 0.85; }
.auth-login-btn:disabled { opacity: 0.5; pointer-events: none; }

.auth-note { margin-top: 14px; font-size: 12px; color: var(--text-muted); text-align: center; }

/* Profile drawer */
.profile-drawer { position: fixed; inset: 0; z-index: 10015; display: none; }
.profile-drawer.open { display: block; }
.profile-drawer__overlay { position: absolute; inset: 0; background: var(--bg-overlay); backdrop-filter: blur(6px); animation: fadeIn 0.3s; }
.profile-drawer__box {
  position: absolute; bottom: 0; left: 0; right: 0;
  max-width: 520px; margin: 0 auto;
  max-height: 90vh;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  overflow-y: auto; z-index: 2;
  animation: slideUp 0.35s var(--ease-smooth);
}
.profile-drawer__head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0;
  background: var(--bg); z-index: 3;
}
.profile-drawer__name { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--primary-dark); }
.profile-drawer__close { background: none; border: none; font-size: 22px; color: var(--text-muted); }

/* Profile tabs */
.profile-tabs {
  display: flex; border-bottom: 1px solid var(--border);
  position: sticky; top: 58px; background: var(--bg); z-index: 2;
}
.profile-tab {
  flex: 1; padding: 12px 8px;
  border: none; background: none;
  font-size: 13px; font-weight: 600;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}
.profile-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.profile-content { padding: 16px 20px; }
.profile-field { margin-bottom: 14px; }
.profile-field__label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.profile-field__value { font-size: 14px; font-weight: 600; color: var(--text); padding: 10px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); }

/* Order history */
.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px; margin-bottom: 10px;
}
.order-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-card__id { font-size: 12px; color: var(--text-light); }
.order-card__status {
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700;
}
.order-card__status--pending { background: var(--warning-bg); color: var(--warning); }
.order-card__status--confirmed { background: #dbeafe; color: #1e40af; }
.order-card__status--shipped { background: #fff7ed; color: #c2410c; }
.order-card__status--delivered { background: var(--success-bg); color: var(--success); }
.order-card__items { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; line-height: 1.6; }
.order-card__total { font-size: 15px; font-weight: 700; color: var(--primary); font-family: var(--font-display); }

.profile-logout-btn {
  width: 100%; padding: 14px; border: 2px solid var(--error);
  border-radius: var(--radius-md);
  background: none;
  color: var(--error); font-size: 14px; font-weight: 700;
  margin-top: 20px;
  transition: all 0.2s;
}
.profile-logout-btn:active { background: var(--error-bg); }

/* ═══ Product Detail Page ═══ */
.product-detail { padding: 0 0 24px; }

/* Top bar with back + share */
.product-detail__topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.product-detail__back {
  display: flex; align-items: center; gap: 6px;
  border: none; background: none;
  font-size: 14px; font-weight: 600;
  color: var(--primary); cursor: pointer;
  padding: 6px 10px; border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.product-detail__back:active { background: var(--bg-warm); }
.product-detail__share {
  width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--text-secondary);
  cursor: pointer; transition: all 0.2s;
}
.product-detail__share:active { background: var(--bg-warm); }

.product-detail__gallery {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-warm);
}
.product-detail__main-img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; color: var(--text-muted);
}
.product-detail__thumbs {
  display: flex; gap: 8px; padding: 12px 16px;
  overflow-x: auto; scrollbar-width: none;
}
.product-detail__thumbs::-webkit-scrollbar { display: none; }
.product-detail__thumb {
  width: 60px; height: 60px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
}
.product-detail__thumb.active { border-color: var(--primary); }

.product-detail__info { padding: 0 16px; }

/* Category badge */
.product-detail__cat {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; margin-bottom: 10px;
  background: var(--bg-warm); border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600; color: var(--primary);
}

.product-detail__name {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 8px; line-height: 1.4;
}

/* Short description */
.product-detail__short-desc {
  font-size: 14px; line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 12px;
}

.product-detail__price-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.product-detail__price { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--primary); }
.product-detail__old-price { font-size: 16px; color: var(--text-muted); text-decoration: line-through; }
.product-detail__discount {
  padding: 3px 10px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff; font-size: 12px; font-weight: 700;
}

/* Weight */
.product-detail__weight {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; margin-bottom: 14px;
  background: var(--bg-warm); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-secondary);
}
.product-detail__weight i { color: var(--primary); font-size: 12px; }

/* Variants */
.product-detail__variants {
  margin-bottom: 16px;
}
.product-detail__variants-label {
  font-size: 14px; font-weight: 600; color: var(--text);
  margin-bottom: 8px;
}
.product-detail__variant {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; margin-bottom: 6px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer; transition: all 0.2s;
  background: var(--bg-card);
}
.product-detail__variant.active {
  border-color: var(--primary);
  background: rgba(45,80,22,0.04);
}
.product-detail__variant input[type="radio"] { display: none; }
.product-detail__variant-label {
  font-size: 13px; font-weight: 600; color: var(--text);
}
.product-detail__variant-price {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700; color: var(--primary);
}

.product-detail__trust {
  display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap;
}
.product-detail__trust-badge {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600; color: var(--text-secondary);
}
.product-detail__trust-badge i { color: var(--primary); font-size: 13px; }

.product-detail__qty {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.product-detail__qty-label { font-size: 14px; font-weight: 600; }
.product-detail__qty-ctrl {
  display: flex; align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.product-detail__qty-ctrl button {
  width: 36px; height: 36px;
  border: none; background: var(--bg-warm);
  font-size: 18px; font-weight: 700;
  color: var(--primary); cursor: pointer;
}
.product-detail__qty-ctrl button:active { background: var(--border); }
.product-detail__qty-ctrl span {
  width: 48px; text-align: center;
  font-size: 16px; font-weight: 700;
}

.product-detail__actions { display: flex; gap: 10px; margin-bottom: 20px; }
.product-detail__add-btn, .product-detail__order-btn {
  flex: 1; padding: 14px; border: none;
  border-radius: 14px;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.3s; touch-action: manipulation;
}
.product-detail__add-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 16px rgba(45,80,22,0.25);
}
.product-detail__order-btn {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #fff;
  box-shadow: 0 4px 16px rgba(200,169,110,0.3);
}
.product-detail__add-btn:active, .product-detail__order-btn:active { transform: scale(0.97); }

.product-detail__contact { display: flex; gap: 10px; margin-bottom: 20px; }
.product-detail__contact-btn {
  flex: 1; padding: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s;
}
.product-detail__contact-btn:active { background: var(--bg-warm); }
.product-detail__contact-btn i { font-size: 16px; }

/* Tabs */
.product-detail__tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.product-detail__tab {
  flex: 1; padding: 12px 8px;
  border: none; background: none;
  font-size: 13px; font-weight: 600;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}
.product-detail__tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.product-detail__tab-content { display: none; padding: 0 16px 16px; font-size: 14px; line-height: 1.8; color: var(--text-secondary); }
.product-detail__tab-content.active { display: block; }
.product-detail__tab-content ul { padding-left: 20px; line-height: 2; }

/* Body class when product detail is open */
body.product-open #bottom-nav { display: none; }

/* ═══ Toast ═══ */
.toast {
  position: fixed; bottom: 80px; left: 16px; right: 16px;
  max-width: 400px; margin: 0 auto;
  z-index: 100001;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600;
  color: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateY(120%);
  transition: transform 0.35s var(--ease-smooth);
  text-align: center;
}
.toast.show { transform: translateY(0); }
.toast--success { background: var(--success); }
.toast--error { background: var(--error); }
.toast--info { background: #1e5a8a; }

/* ═══ PWA Install Banner ═══ */
.pwa-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 99999;
  transform: translateY(100%);
  transition: transform 0.35s var(--ease);
}
.pwa-banner.show { transform: translateY(0); }
.pwa-banner__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
.pwa-banner__ico { font-size: 28px; flex-shrink: 0; animation: pwaBounce 2s ease infinite; }
@keyframes pwaBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.pwa-banner__text { display: flex; flex-direction: column; gap: 2px; }
.pwa-banner__text strong { font-size: 15px; color: var(--text); }
.pwa-banner__text span { font-size: 12px; color: var(--text-light); }
.pwa-banner__btns { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pwa-banner__install {
  padding: 8px 20px; border: none; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-size: 14px; font-weight: 700;
  transition: transform 0.2s;
}
.pwa-banner__install:active { transform: scale(0.95); }
.pwa-banner__close {
  width: 32px; height: 32px; border: none; background: none;
  font-size: 22px; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
}

/* iOS hint */
.pwa-ios {
  position: fixed; bottom: 20px; left: 16px; right: 16px;
  z-index: 99999;
  transform: translateY(120%);
  transition: transform 0.35s var(--ease);
}
.pwa-ios.show { transform: translateY(0); }
.pwa-ios__inner {
  position: relative; background: #1f2937; color: #fff;
  padding: 16px 40px 16px 16px;
  border-radius: 14px;
  font-size: 13px; line-height: 1.5;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.pwa-ios__inner::after {
  content: ''; position: absolute; bottom: -8px; left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #1f2937;
}
.pwa-ios__close {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px;
  border: none; background: rgba(255,255,255,0.15);
  color: #fff; font-size: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.pwa-ios__steps { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 0; }
.pwa-ios__step {
  display: block; background: rgba(255,255,255,0.08);
  padding: 6px 10px; border-radius: var(--radius-sm);
  font-size: 13px;
}

/* ═══ Scrollbar ═══ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary-muted); border-radius: 4px; }

/* ═══ Header Logo Image ═══ */
.header__logo-img { max-width: 100px; height: auto; margin: 0 auto 6px; }

/* ═══ Image Slider ═══ */
.slider { position: relative; overflow: hidden; background: var(--bg-warm); }
.slider__track { display: flex; transition: transform 0.55s var(--ease-smooth); will-change: transform; }
.slider__slide { min-width: 100%; display: block; position: relative; }
.slider__slide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
@media (min-width: 769px) { .slider__slide img { aspect-ratio: 4/1; } }
.slider__placeholder {
  width: 100%; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: rgba(255,255,255,0.3); font-size: 14px; gap: 8px;
}
@media (min-width: 769px) { .slider__placeholder { aspect-ratio: 4/1; } }

.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,0.25); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: all 0.2s;
}
.slider:hover .slider__arrow { opacity: 1; }
.slider__arrow:hover { background: rgba(0,0,0,0.45); }
.slider__arrow--prev { left: 8px; }
.slider__arrow--next { right: 8px; }
@media (max-width: 640px) { .slider__arrow { width: 28px; height: 28px; font-size: 11px; opacity: 0.6; } }

.slider__dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 5;
}
.slider__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none; cursor: pointer; padding: 0; transition: all 0.3s;
}
.slider__dot.active { width: 22px; border-radius: 4px; background: var(--accent); }

/* ═══ Agent Finder ═══ */
.agent-finder {
  padding: 14px 10px;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
  position: relative; overflow: hidden;
}
.agent-finder__card {
  max-width: 520px; margin: 0 auto;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  padding: 16px;
}
.agent-finder__title {
  font-family: var(--font-body); font-size: 18px; font-weight: 700;
  background: linear-gradient(135deg, #0ea5e9, #2d5016);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; text-align: center; margin: 0 0 12px;
}
.agent-finder__err {
  padding: 10px 14px; background: #ff4757; color: #fff;
  border-radius: var(--radius-sm); font-size: 13px;
  display: none; margin-bottom: 10px;
}
.agent-finder__err.show { display: block; animation: shake 0.5s ease; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }

.agent-finder__form { max-width: 100%; }
.agent-finder__group { margin-bottom: 10px; animation: afSlide 0.4s ease forwards; }
@keyframes afSlide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.agent-finder__group--hidden { display: none; }

.agent-finder__select {
  width: 100%; padding: 12px 40px 12px 14px;
  font-size: 15px; font-weight: 600;
  border: 2px solid #dee2e6; border-radius: var(--radius-md);
  outline: none; background: rgba(255,255,255,0.9);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  transition: border-color 0.3s;
  font-family: inherit;
}
.agent-finder__select:focus { border-color: var(--primary); }

.agent-finder__btn {
  width: 100%; padding: 14px;
  font-size: 15px; font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; border: none; border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s; font-family: inherit;
  touch-action: manipulation;
}
.agent-finder__btn:active { transform: translateY(-1px); }
.agent-finder__btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.agent-finder__btn.loading .af-btn-text { display: none; }
.agent-finder__btn.loading .af-btn-loader { display: block; }
.af-btn-loader {
  display: none; width: 18px; height: 18px; margin: 0 auto;
  border: 3px solid rgba(255,255,255,0.3); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.agent-finder__result {
  display: none; margin-top: 14px; padding: 14px;
  background: linear-gradient(135deg, rgba(16,172,132,0.1), rgba(10,189,227,0.1));
  border-radius: var(--radius-lg); border-left: 4px solid #10ac84;
}
.agent-finder__result.show { display: block; animation: slideDown 0.4s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

.agent-finder__result-title { font-size: 16px; font-weight: 700; color: #10ac84; margin: 0 0 12px; }
.agent-finder__result-body { display: flex; gap: 16px; align-items: flex-start; }
@media (max-width: 500px) {
  .agent-finder__result-body { flex-direction: column; align-items: center; text-align: center; }
}

.agent-finder__photo {
  width: 90px; height: 90px; border-radius: var(--radius-lg);
  object-fit: cover; border: 3px solid rgba(16,172,132,0.3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); flex-shrink: 0;
}
.agent-finder__photo-placeholder {
  width: 90px; height: 90px; border-radius: var(--radius-lg);
  border: 3px dashed rgba(16,172,132,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: #10ac84; background: #f0fdf4; flex-shrink: 0;
}
.agent-finder__result-info {
  font-size: 14px; line-height: 1.8; color: #2c3e50;
  white-space: pre-line; flex: 1;
}

.agent-finder__notfound {
  display: none; margin-top: 14px; padding: 14px;
  background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(249,115,22,0.08));
  border-radius: var(--radius-lg); border-left: 4px solid #f59e0b;
  text-align: center; font-size: 13px; line-height: 1.8; color: #92400e;
}
.agent-finder__notfound.show { display: block; animation: slideDown 0.4s ease; }

/* ═══ Video Section ═══ */
.video-section {
  max-width: 520px; margin: 0 auto;
  padding: 20px 16px 24px;
}
.video-section__header { text-align: center; margin-bottom: 16px; }
.video-section__tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  color: var(--accent); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 4px;
}
.video-section__title {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--primary-dark); margin: 0 0 6px; line-height: 1.3;
}
.video-section__divider {
  width: 50px; height: 3px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  margin: 0 auto; border-radius: 50px;
}

.video-section__player {
  position: relative; width: 100%; aspect-ratio: 16/9;
  border-radius: var(--radius-lg); overflow: hidden;
  background: #0a0a0a; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); margin-bottom: 10px;
}
.video-section__lite {
  position: absolute; inset: 0; cursor: pointer; z-index: 3;
  transition: opacity 0.4s;
}
.video-section__thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s, filter 0.4s; }
.video-section__lite:hover .video-section__thumb { transform: scale(1.03); filter: brightness(0.85); }

.video-section__play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 64px; height: 64px;
  background: rgba(45,80,22,0.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3); transition: all 0.35s;
}
.video-section__lite:hover .video-section__play-btn {
  background: var(--primary); transform: translate(-50%,-50%) scale(1.1);
}
.video-section__play-btn svg { width: 24px; height: 24px; fill: #fff; margin-left: 2px; }

.video-section__iframe-wrap { position: absolute; inset: 0; }

.video-section__info {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px; margin-bottom: 10px;
}
.video-section__counter { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.video-section__title-text {
  font-size: 13px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; margin-left: 10px;
}

.video-section__thumbs {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px;
  scrollbar-width: none;
}
.video-section__thumbs::-webkit-scrollbar { display: none; }

.video-section__thumb-item {
  width: 72px; height: 48px; flex-shrink: 0;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid transparent; cursor: pointer; transition: all 0.3s;
}
.video-section__thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.video-section__thumb-item.active { border-color: var(--primary); box-shadow: 0 2px 8px rgba(45,80,22,0.3); }

.video-section__nav { display: flex; gap: 8px; }
.video-section__nav-btn {
  flex: 1; padding: 10px; border: 2px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-card); color: var(--text-secondary);
  font-size: 12px; font-weight: 600; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.2s;
}
.video-section__nav-btn:active { background: var(--bg-warm); }

/* ═══ Footer ═══ */
.footer {
  background: linear-gradient(180deg, #1A3009, #0F1F05);
  color: rgba(255,255,255,0.85);
  padding: 0 0 80px; width: 100%;
}
.footer__accent { height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light)); }
.footer__inner { max-width: 520px; margin: 0 auto; padding: 32px 16px 20px; text-align: center; }
.footer__photo-wrap { margin-bottom: 20px; }
.footer__photo {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  margin: 0 auto; display: block;
  border: 3px solid rgba(200,169,110,0.4);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.footer__photo-placeholder {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto;
  background: linear-gradient(135deg, rgba(45,80,22,0.4), rgba(74,122,46,0.3));
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: rgba(200,169,110,0.6);
  border: 3px solid rgba(200,169,110,0.2);
}
.footer__text h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: #fff; margin: 0 0 6px;
}
.footer__text p { font-size: 13px; color: rgba(255,255,255,0.6); margin: 0 0 8px; line-height: 1.7; }
.footer__copyright {
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 11px; color: rgba(255,255,255,0.3);
}

/* ═══ Profile Editable Fields ═══ */
.profile-field__input {
  width: 100%; padding: 10px 14px;
  font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-card); outline: none;
  transition: border-color 0.2s; font-family: inherit;
}
.profile-field__input:focus { border-color: var(--primary); }

/* ═══ Suggested Products in Order Form ═══ */
.suggested-scroll {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 8px 0 12px; scrollbar-width: none;
}
.suggested-scroll::-webkit-scrollbar { display: none; }
.suggested-item {
  flex-shrink: 0; width: 120px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
  transition: all 0.3s;
}
.suggested-item:active { transform: scale(0.95); }
.suggested-item__img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.suggested-item__body { padding: 6px 8px; }
.suggested-item__name { font-size: 11px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.suggested-item__price { font-size: 12px; font-weight: 700; color: var(--primary); }
.suggested-item__add {
  width: 100%; padding: 6px; border: none;
  background: var(--primary-subtle); color: var(--primary);
  font-size: 11px; font-weight: 700; font-family: inherit;
  transition: background 0.2s;
}
.suggested-item__add:active { background: var(--primary-muted); }

/* ═══ Reduced Motion ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
