@font-face {
  font-family: Vazirmatn;
  src: url('/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url('/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url('/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url('/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --primary: #175700;
  --primary-dark: #0b3f00;
  --primary-soft: #eef6e5;
  --accent: #ffc800;
  --accent: #f59e0b;
  --bg: #f7f5ff;
  --surface: #ffffff;
  --surface-2: #fbfaff;
  --text: #191526;
  --muted: #7a748c;
  --border: #eae6f4;
  --success: #12a56a;
  --success-soft: #e8fbf2;
  --danger: #e5484d;
  --danger-soft: #fff0f0;
  --warning: #d97706;
  --warning-soft: #fff7e6;
  --info: #3b82f6;
  --info-soft: #eff6ff;
  --shadow-sm: 0 2px 8px rgba(35, 22, 78, .05);
  --shadow: 0 12px 32px rgba(45, 28, 96, .09);
  --shadow-lg: 0 28px 70px rgba(45, 28, 96, .15);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --sidebar: #1d1731;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p { margin: 0; }
::selection { background: var(--primary); color: #fff; }

.container { width: min(1280px, calc(100% - 40px)); margin-inline: auto; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.text-muted { color: var(--muted); }
.text-small { font-size: 12px; }
.text-center { text-align: center; }
.ltr { direction: ltr; }
.w-full { width: 100%; }
.icon { flex: 0 0 auto; vertical-align: middle; }
.mobile-only { display: none !important; }
.desktop-only { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  transition: .18s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(109, 59, 239, .22); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.btn-outline { background: #fff; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); box-shadow: none; }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); box-shadow: none; }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover { background: #e9e0ff; box-shadow: none; }
.btn-danger { background: var(--danger); }
.btn-success { background: var(--success); }
.btn-white { background: #fff; color: var(--primary); }
.btn-dark { background: #242033; }
.btn-sm { min-height: 34px; padding: 0 13px; font-size: 12px; border-radius: 10px; }
.btn-xs { min-height: 28px; padding: 0 9px; font-size: 11px; border-radius: 8px; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 15px; border-radius: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: 12px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--primary-soft);
  color: var(--primary);
  line-height: 1.6;
}
.badge-green { background: var(--success-soft); color: var(--success); }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-amber { background: var(--warning-soft); color: var(--warning); }
.badge-blue { background: var(--info-soft); color: var(--info); }
.badge-violet { background: #f2ebff; color: #6d3bef; }
.badge-slate { background: #f1f2f5; color: #5f6472; }
.badge-dark { background: #242033; color: #fff; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.surface { background: var(--surface); border-radius: var(--radius); }

.field { display: flex; flex-direction: column; gap: 7px; }
.label { font-size: 12px; font-weight: 600; color: #464055; }
.input, .select, .textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: .15s;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.8; }
.input::placeholder, .textarea::placeholder { color: #aaa4b8; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(109, 59, 239, .1); }
.input-sm { min-height: 36px; padding: 6px 10px; font-size: 12px; border-radius: 9px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.location-picker { display: contents; }
.select:disabled { opacity: .62; cursor: wait; background: #f6f4fa; }
.span-2 { grid-column: span 2; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 12px; cursor: pointer; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--primary); }
.hint { font-size: 11px; color: var(--muted); }
.error { color: var(--danger); font-size: 11px; }
.invalid { border-color: var(--danger) !important; }

.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 13px;
  margin-bottom: 16px;
  font-size: 13px;
  background: var(--success-soft);
  color: #097249;
  border: 1px solid #c9f2df;
}
.flash-error { background: var(--danger-soft); color: #a52529; border-color: #ffd3d4; }
.flash-info { background: var(--info-soft); color: #1d4ed8; border-color: #dbeafe; }
.flash-warning { background: var(--warning-soft); color: #9a5a00; border-color: #ffe6b4; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(234, 230, 244, .9);
}
.header-main { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-logo { width: 46px; height: 46px; border-radius: 15px; box-shadow: 0 7px 18px rgba(109,59,239,.2); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -.4px; color: #241a45; }
.brand-sub { font-size: 10px; color: var(--muted); font-weight: 500; }
.header-search { flex: 1; max-width: 580px; position: relative; }
.header-search .input { min-height: 46px; padding-inline: 44px 16px; background: #f8f6fd; border-color: transparent; border-radius: 14px; }
.header-search .input:focus { background: #fff; border-color: #dcd2fb; }
.header-search .search-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #8d86a0; pointer-events: none; }
.header-search .search-clear { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); border: 0; background: transparent; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.header-action { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 11px; color: #4a4458; font-size: 12px; background: transparent; border: 0; }
.header-action:hover { background: var(--primary-soft); color: var(--primary); }
.header-action .icon { color: #6f687e; }
.header-action:hover .icon { color: var(--primary); }
.header-logout-form, .mobile-logout-form { display: inline-flex; margin: 0; }
.header-logout { color: var(--danger); }
.header-logout .icon { color: var(--danger); }
.cart-link { position: relative; }
.cart-count {
  position: absolute;
  top: -1px;
  left: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  line-height: 17px;
  text-align: center;
  font-weight: 700;
  border: 2px solid #fff;
}
.main-nav { border-top: 1px solid #f3f0fa; }
.main-nav .container { display: flex; align-items: center; gap: 4px; min-height: 48px; }
.nav-link { display: flex; align-items: center; gap: 6px; padding: 10px 13px; border-radius: 9px; color: #564f66; font-size: 12px; font-weight: 500; }
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-soft); }
.nav-link.store-link { margin-inline-start: auto; background: var(--primary); color: #fff; padding-inline: 18px; }
.nav-link.store-link:hover { background: var(--primary-dark); }
.mega-menu { position: relative; }
.mega-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 640px;
  padding: 18px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  z-index: 90;
}
.mega-menu:hover .mega-panel { display: grid; }
.mega-item { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 10px; font-size: 12px; }
.mega-item:hover { background: var(--primary-soft); color: var(--primary); }
.mega-item .cat-icon { width: 32px; height: 32px; }
.mobile-top-actions { display: none; }
.bottom-nav { display: none; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(17, 10, 38, .55); z-index: 110; opacity: 0; pointer-events: none; transition: .2s; backdrop-filter: blur(3px); }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; bottom: 0; right: 0; width: min(340px, 88vw); z-index: 120; background: #fff; transform: translateX(105%); transition: .26s cubic-bezier(.2,.8,.2,1); padding: 22px; overflow-y: auto; }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.drawer-nav { display: flex; flex-direction: column; gap: 5px; }
.drawer-nav a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; font-weight: 500; }
.drawer-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.drawer-section { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }

/* ---------- Hero ---------- */
.hero-wrap { margin-top: 22px; }
.hero {
  position: relative;
  min-height: 400px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(120deg, #5f31d6 0%, #7444ec 48%, #9670ff 100%);
  color: #fff;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.18), transparent 28%), radial-gradient(circle at 82% 100%, rgba(255,255,255,.14), transparent 32%);
  pointer-events: none;
}
.hero-track { display: flex; transition: transform .55s cubic-bezier(.2,.8,.2,1); height: 100%; }
.hero-slide { min-width: 100%; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 20px; padding: 42px 52px; min-height: 400px; }
.hero-copy { position: relative; z-index: 2; max-width: 530px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: rgba(255,200,0,.16); border: 1px solid rgba(255,200,0,.35); color: #fff8d8; font-size: 11px; margin-bottom: 16px; backdrop-filter: blur(8px); }
.hero-title { font-size: clamp(28px, 3.5vw, 48px); font-weight: 800; line-height: 1.28; letter-spacing: -.8px; margin-bottom: 14px; }
.hero-sub { font-size: 15px; color: rgba(255,255,255,.8); max-width: 430px; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-art { position: relative; z-index: 2; align-self: stretch; min-height: 310px; display: flex; align-items: center; justify-content: center; }
.hero-art img { width: 100%; height: 340px; object-fit: contain; filter: drop-shadow(0 24px 28px rgba(15, 6, 42, .3)); }
.hero-dots { position: absolute; bottom: 20px; right: 54px; display: flex; gap: 7px; z-index: 4; }
.hero-dot { width: 8px; height: 8px; border-radius: 99px; border: 0; background: rgba(255,255,255,.35); transition: .2s; padding: 0; }
.hero-dot.active { width: 26px; background: #fff; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px); }
.hero-arrow:hover { background: rgba(255,255,255,.25); }
.hero-arrow.next { left: 18px; }
.hero-arrow.prev { right: 18px; }
.hero-side { display: grid; gap: 12px; }
.promo-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  min-height: 118px;
}
.promo-card .promo-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: 0 0 auto; }
.promo-card strong { display: block; font-size: 13px; margin-bottom: 3px; }
.promo-card span { color: var(--muted); font-size: 11px; line-height: 1.6; }

.home-top { display: grid; grid-template-columns: minmax(0, 1fr) 275px; gap: 18px; align-items: start; }
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.trust-item { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #fff; border: 1px solid var(--border); border-radius: 15px; }
.trust-item .icon { color: var(--primary); }
.trust-item strong { display: block; font-size: 12px; }
.trust-item span { font-size: 10px; color: var(--muted); }

.section { margin-top: 40px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-title { font-size: 21px; font-weight: 800; letter-spacing: -.3px; display: flex; align-items: center; gap: 9px; }
.section-title::before { content: ""; width: 5px; height: 22px; border-radius: 5px; background: linear-gradient(var(--primary), var(--accent)); }
.section-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.section-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--primary); padding: 7px 11px; border-radius: 9px; }
.section-link:hover { background: var(--primary-soft); }

/* ---------- Categories ---------- */
.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.category-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px 14px; background: #fff; border: 1px solid var(--border); border-radius: 17px; transition: .18s; text-align: center; }
.category-tile:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.cat-icon { width: 58px; height: 58px; border-radius: 19px; display: grid; place-items: center; background: linear-gradient(145deg, #f1eaff, #fbf8ff); color: var(--primary); transition: .18s; }
.category-tile:hover .cat-icon { background: var(--primary); color: #fff; }
.category-name { font-size: 12px; font-weight: 600; color: #40394f; }
.category-count { font-size: 10px; color: var(--muted); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; }
.product-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; transition: .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #e0d4ff; }
.product-media { position: relative; aspect-ratio: 1; background: linear-gradient(145deg, #faf8ff, #f6f1ff); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product-card:hover .product-media img { transform: scale(1.035); }
.product-badges { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; z-index: 2; }
.discount-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 7px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; direction: ltr; }
.product-fav { position: absolute; top: 9px; left: 9px; z-index: 3; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: #716a82; box-shadow: 0 2px 8px rgba(25,16,50,.08); backdrop-filter: blur(5px); }
.product-fav:hover, .product-fav.active { color: #e5484d; background: #fff; }
.product-body { padding: 13px 13px 14px; display: flex; flex-direction: column; flex: 1; }
.product-store { font-size: 10px; color: var(--muted); margin-bottom: 5px; display: flex; align-items: center; gap: 5px; min-height: 17px; }
.product-title { font-size: 12.5px; font-weight: 600; line-height: 1.75; color: #2d283a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 43px; }
.product-title:hover { color: var(--primary); }
.product-rating { display: flex; align-items: center; gap: 4px; font-size: 10px; color: #6f687e; margin: 7px 0 4px; }
.rating-star { color: #f5a623; font-size: 11px; }
.product-price-row { display: flex; align-items: end; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 8px; }
.price { font-size: 15px; font-weight: 800; color: #241a45; white-space: nowrap; }
.price small { font-size: 9px; font-weight: 500; color: var(--muted); margin-inline-start: 2px; }
.price-old { font-size: 10px; color: #aaa3b6; text-decoration: line-through; white-space: nowrap; }
.add-cart-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; border: 0; background: var(--primary-soft); color: var(--primary); flex: 0 0 auto; }
.add-cart-btn:hover { background: var(--primary); color: #fff; }
.special-tag { font-size: 9px; color: #8a5a00; background: #fff4d8; padding: 2px 6px; border-radius: 5px; display: inline-flex; margin-top: 5px; }
.product-empty { padding: 26px; text-align: center; color: var(--muted); font-size: 12px; }

.carousel-scroll { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.carousel-scroll .product-card { min-width: 210px; max-width: 210px; scroll-snap-align: start; }
.carousel-scroll::-webkit-scrollbar { height: 5px; }
.carousel-scroll::-webkit-scrollbar-thumb { background: #ddd3f4; border-radius: 9px; }

/* ---------- Stores ---------- */
.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.store-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; transition: .2s; }
.store-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.store-cover { height: 110px; position: relative; background: linear-gradient(135deg, #6d3bef, #a182ff); }
.store-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.store-card-body { padding: 0 18px 18px; position: relative; }
.store-avatar { width: 64px; height: 64px; border-radius: 18px; border: 4px solid #fff; margin-top: -32px; position: relative; box-shadow: var(--shadow-sm); background: #fff; object-fit: cover; }
.store-card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.store-card-name { font-size: 15px; font-weight: 700; }
.store-card-desc { font-size: 11px; color: var(--muted); margin: 4px 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 37px; }
.store-card-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid #f3f0fa; font-size: 10px; color: var(--muted); }
.store-logo-round { width: 74px; height: 74px; border-radius: 22px; object-fit: cover; }

/* ---------- Store home ---------- */
.store-hero { position: relative; margin-top: 22px; min-height: 320px; border-radius: 26px; overflow: hidden; color: #fff; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; padding: 34px 44px; }
.store-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.17), transparent 30%); }
.store-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.store-hero-copy { position: relative; z-index: 2; }
.store-hero-title { font-size: clamp(26px, 3.2vw, 42px); font-weight: 800; line-height: 1.3; margin: 8px 0 12px; }
.store-hero-sub { font-size: 14px; color: rgba(255,255,255,.8); max-width: 430px; }
.store-hero-art { position: relative; z-index: 2; align-self: stretch; display: flex; align-items: center; }
.store-hero-art img { width: 100%; height: 280px; object-fit: contain; filter: drop-shadow(0 20px 28px rgba(10,5,25,.35)); }
.store-hero-art.hero-blend img { width: min(330px, 100%); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: #fff; padding: 10px; }
.store-head { display: flex; align-items: center; gap: 18px; padding: 20px 24px; background: #fff; border: 1px solid var(--border); border-radius: 20px; margin-top: 18px; }
.store-head-info { flex: 1; }
.store-head-name { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.store-head-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin-top: 6px; }
.store-head-actions { display: flex; gap: 8px; }

/* ---------- Listing ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 26px 0 20px; }
.page-title { font-size: 24px; font-weight: 800; letter-spacing: -.4px; }
.breadcrumb { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: var(--muted); font-size: 11px; margin-top: 15px; }
.breadcrumb a:hover { color: var(--primary); }
.catalog-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.filters { position: sticky; top: 140px; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px; }
.filter-block { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid #f3f0fa; }
.filter-block:last-child { border: 0; margin: 0; padding: 0; }
.filter-title { font-size: 12px; font-weight: 700; margin-bottom: 11px; display: flex; align-items: center; justify-content: space-between; }
.filter-list { display: flex; flex-direction: column; gap: 8px; }
.filter-option { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #5c566b; cursor: pointer; }
.filter-option input { accent-color: var(--primary); width: 15px; height: 15px; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; background: #fff; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 15px; font-size: 11px; color: var(--muted); }
.sort-select { min-height: 35px; width: auto; padding: 4px 10px; font-size: 11px; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.page-link { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 10px; background: #fff; font-size: 12px; }
.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-link.disabled { opacity: .4; pointer-events: none; }

/* ---------- Product detail ---------- */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 28px; align-items: start; margin-top: 18px; }
.gallery-card { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 18px; }
.gallery-main { aspect-ratio: 1.02; border-radius: 18px; background: linear-gradient(145deg, #faf8ff, #f2ecff); overflow: hidden; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 9px; margin-top: 11px; }
.gallery-thumb { width: 68px; height: 68px; padding: 2px; border-radius: 12px; border: 1px solid var(--border); background: #fff; overflow: hidden; }
.gallery-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(109,59,239,.15); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.product-detail { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 24px; }
.product-detail-title { font-size: 20px; font-weight: 800; line-height: 1.65; letter-spacing: -.3px; }
.product-detail-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 11px; margin: 9px 0 14px; }
.rating-pill { display: inline-flex; align-items: center; gap: 5px; background: #fff8e7; color: #8a5a00; border-radius: 7px; padding: 2px 8px; font-size: 11px; }
.variant-group { margin-top: 17px; }
.variant-label { font-size: 12px; font-weight: 700; margin-bottom: 9px; display: flex; align-items: center; gap: 6px; }
.variant-label span { color: var(--muted); font-weight: 400; font-size: 10px; }
.variant-options { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-option { border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: 7px 13px; font-size: 11px; display: inline-flex; align-items: center; gap: 6px; }
.variant-option:hover { border-color: #c9b7ff; }
.variant-option.selected { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.variant-swatch { width: 15px; height: 15px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #d8d2e3; background: #333; }
.buy-card { margin-top: 18px; padding: 16px; border-radius: 16px; background: #fbfaff; border: 1px solid #eee9fb; }
.price-block { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.price-block .price { font-size: 23px; letter-spacing: -.5px; }
.price-block .price-old { font-size: 12px; margin-bottom: 2px; }
.buy-row { display: flex; align-items: center; gap: 10px; margin-top: 15px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 11px; background: #fff; overflow: hidden; height: 44px; }
.qty button { width: 38px; height: 100%; border: 0; background: #fff; color: var(--primary); font-size: 17px; }
.qty button:hover { background: var(--primary-soft); }
.qty input { width: 40px; height: 100%; border: 0; text-align: center; background: #fff; font-weight: 700; outline: none; }
.buy-row .btn { flex: 1; }
.buy-hints { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 10px; color: var(--muted); }
.buy-hint { display: flex; align-items: center; gap: 5px; }
.buy-hint .icon { color: var(--primary); }
.store-inline { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--border); margin-top: 16px; }
.store-inline img { width: 42px; height: 42px; border-radius: 12px; }
.store-inline strong { font-size: 12px; display: block; }
.store-inline span { font-size: 10px; color: var(--muted); }
.installment-box { margin-top: 15px; padding: 13px 15px; border-radius: 14px; background: linear-gradient(135deg, #f1eaff, #fbf8ff); border: 1px solid #e3d8ff; display: flex; align-items: center; gap: 10px; }
.installment-box .icon { color: var(--primary); }
.installment-box p { font-size: 11px; line-height: 1.8; }
.installment-box strong { color: var(--primary); }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab-btn { border: 0; background: transparent; padding: 12px 16px; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab-btn.active { color: var(--primary); border-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .25s ease; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr:nth-child(odd) { background: #fbfaff; }
.specs-table td { padding: 11px 14px; font-size: 12px; border-bottom: 1px solid #f0edf7; }
.specs-table td:first-child { color: var(--muted); width: 34%; }
.review-card { padding: 16px 0; border-bottom: 1px solid #f1eef8; }
.review-head { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: 0 0 auto; }
.stars { display: inline-flex; gap: 1px; color: #f5a623; font-size: 12px; }
.stars .off { color: #ddd6e6; }
.review-comment { font-size: 12px; color: #514a61; margin-top: 8px; line-height: 1.9; }
.review-form { padding: 18px; background: #fbfaff; border-radius: 15px; border: 1px solid var(--border); margin-top: 16px; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { display: none; }
.star-input label { color: #ddd6e6; font-size: 25px; cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f5a623; }

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.cart-store { background: #fff; border: 1px solid var(--border); border-radius: 18px; margin-bottom: 16px; overflow: hidden; }
.cart-store-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; background: #fbfaff; border-bottom: 1px solid var(--border); }
.cart-store-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.cart-item { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; padding: 16px 18px; border-bottom: 1px solid #f4f1fa; }
.cart-item:last-child { border: 0; }
.cart-item-image { width: 92px; height: 92px; border-radius: 14px; background: var(--primary-soft); overflow: hidden; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-title { font-size: 12px; font-weight: 600; line-height: 1.7; }
.cart-item-meta { font-size: 10px; color: var(--muted); margin-top: 4px; }
.cart-item-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cart-remove { border: 0; background: transparent; color: var(--danger); font-size: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 5px; }
.cart-item-price { text-align: left; min-width: 100px; }
.cart-summary { position: sticky; top: 145px; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 20px; }
.summary-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 12px; color: #5d566d; }
.summary-row.total { border-top: 1px dashed var(--border); margin-top: 8px; padding-top: 14px; font-size: 15px; font-weight: 800; color: var(--text); }
.summary-row .green { color: var(--success); }
.coupon-box { display: flex; gap: 7px; margin-bottom: 13px; }
.coupon-box .input { min-height: 40px; font-size: 11px; }
.coupon-box .btn { min-height: 40px; }
.applied-coupon { display: flex; align-items: center; justify-content: space-between; padding: 8px 11px; background: var(--success-soft); border-radius: 9px; font-size: 11px; color: #08764d; margin-bottom: 12px; }
.free-ship-note { display: flex; align-items: center; gap: 6px; padding: 9px 11px; border-radius: 9px; background: var(--info-soft); color: #1d4ed8; font-size: 10px; margin-bottom: 12px; }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.checkout-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 20px; margin-bottom: 16px; }
.checkout-card-title { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.step-num { width: 25px; height: 25px; border-radius: 8px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 11px; }
.option-card { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 13px; margin-bottom: 9px; cursor: pointer; transition: .15s; background: #fff; }
.option-card:hover { border-color: #cab8ff; }
.option-card.selected { border-color: var(--primary); background: #fbf8ff; box-shadow: 0 0 0 1px rgba(109,59,239,.12); }
.option-card input { accent-color: var(--primary); margin-top: 3px; }
.option-card strong { display: block; font-size: 12px; }
.option-card small { color: var(--muted); font-size: 10px; line-height: 1.7; display: block; }
.option-price { margin-inline-start: auto; font-size: 11px; font-weight: 700; white-space: nowrap; }
.payment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.payment-option { display: flex; gap: 9px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; align-items: center; }
.payment-option:hover { border-color: #cab8ff; }
.payment-option input { accent-color: var(--primary); }
.payment-option .pay-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.payment-option strong { display: block; font-size: 11px; }
.payment-option small { color: var(--muted); font-size: 9px; }
.order-summary-list { display: flex; flex-direction: column; gap: 10px; }
.order-mini-item { display: flex; align-items: center; gap: 9px; }
.order-mini-item img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; background: var(--primary-soft); }
.order-mini-item p { font-size: 10px; line-height: 1.6; }
.order-mini-item span { font-size: 10px; color: var(--muted); }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 10px; color: var(--muted); margin-top: 10px; }

/* ---------- Auth ---------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.auth-visual { position: relative; overflow: hidden; background: linear-gradient(135deg, #5f2fd8, #8a5dff); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 44px; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 10%, rgba(255,255,255,.2), transparent 26%), radial-gradient(circle at 80% 90%, rgba(255,255,255,.15), transparent 30%); }
.auth-brand { display: flex; align-items: center; gap: 10px; position: relative; z-index: 2; font-size: 20px; font-weight: 800; }
.auth-brand img { width: 44px; height: 44px; }
.auth-visual-copy { position: relative; z-index: 2; max-width: 460px; }
.auth-visual-copy h2 { font-size: 35px; line-height: 1.45; font-weight: 800; margin-bottom: 13px; }
.auth-visual-copy p { color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.9; }
.auth-features { position: relative; z-index: 2; display: flex; gap: 18px; flex-wrap: wrap; font-size: 11px; color: rgba(255,255,255,.8); }
.auth-features span { display: flex; align-items: center; gap: 5px; }
.auth-visual-art { position: absolute; left: -30px; bottom: -30px; width: 58%; opacity: .95; z-index: 1; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 36px 24px; background: #fbfaff; }
.auth-card { width: min(420px, 100%); background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 22px; font-weight: 800; margin-bottom: 5px; }
.auth-card .sub { font-size: 12px; color: var(--muted); margin-bottom: 22px; }
.auth-tabs { display: flex; padding: 4px; border-radius: 12px; background: #f5f2fb; margin-bottom: 20px; }
.auth-tabs button { flex: 1; border: 0; background: transparent; padding: 8px; border-radius: 9px; font-size: 11px; font-weight: 600; color: var(--muted); }
.auth-tabs button.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.auth-tab-panel { display: none; }
.auth-tab-panel.active { display: block; }
.auth-card .field { margin-bottom: 13px; }
.divider { display: flex; align-items: center; gap: 10px; color: #a39cb2; font-size: 10px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.auth-footer { text-align: center; font-size: 11px; color: var(--muted); margin-top: 18px; }
.auth-footer a { color: var(--primary); font-weight: 600; }
.otp-inputs { display: flex; direction: ltr; justify-content: center; gap: 7px; margin: 8px 0 18px; }
.otp-digit { width: 45px; height: 52px; text-align: center; font-size: 21px; font-weight: 700; border: 1px solid var(--border); border-radius: 11px; outline: none; }
.otp-digit:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(109,59,239,.1); }
.demo-code { background: var(--warning-soft); border: 1px solid #ffe4ad; color: #8a5a00; padding: 9px 12px; border-radius: 10px; font-size: 11px; text-align: center; margin-bottom: 13px; }

/* ---------- Account ---------- */
.account-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 22px; }
.account-side { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 10px; position: sticky; top: 145px; }
.account-user { text-align: center; padding: 14px 8px 18px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.account-user .avatar { width: 58px; height: 58px; font-size: 20px; margin: 0 auto 8px; }
.account-user strong { display: block; font-size: 13px; }
.account-user span { font-size: 10px; color: var(--muted); }
.account-nav { display: flex; flex-direction: column; gap: 3px; }
.account-nav a, .account-nav .account-nav-link { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 10px; color: #5c556d; font-size: 12px; }
.account-nav a:hover, .account-nav a.active, .account-nav .account-nav-link:hover { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.account-nav form { display: flex; margin: 0; }
.account-nav .account-logout-form { border-top: 1px solid var(--border); padding-top: 6px; margin-top: 5px; }
.account-nav .account-logout { width: 100%; border: 0; background: transparent; cursor: pointer; text-align: right; color: var(--danger); }
.account-nav .account-logout .icon { color: var(--danger); }
.account-main { min-width: 0; }
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.account-title { font-size: 19px; font-weight: 800; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.stat-card .stat-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 11px; }
.stat-card strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.4px; }
.stat-card span { font-size: 10px; color: var(--muted); }
.wallet-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wallet-card { padding: 18px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #6d3bef, #4b21c0); position: relative; overflow: hidden; }
.wallet-card.special { background: linear-gradient(135deg, #f0a529, #d97706); }
.wallet-card.installment { background: linear-gradient(135deg, #2f9e86, #087c66); }
.wallet-card::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.08); left: -30px; bottom: -50px; }
.wallet-card span { font-size: 11px; color: rgba(255,255,255,.8); }
.wallet-card strong { display: block; font-size: 21px; margin: 6px 0 2px; }
.wallet-card small { font-size: 9px; color: rgba(255,255,255,.7); }
.wallet-use-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.wallet-use-strip > div { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.wallet-use-strip .icon { color: var(--primary); flex: 0 0 auto; }
.wallet-use-strip strong { display: block; font-size: 10px; }
.wallet-use-strip small { display: block; color: var(--muted); font-size: 8.5px; margin-top: 2px; }
.quick-support-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.quick-support-row > a { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 15px; background: #fff; color: var(--text); }
.quick-support-row > a > span { width: 36px; height: 36px; border-radius: 11px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: 0 0 auto; }
.quick-support-row > a > div { flex: 1; }
.quick-support-row strong { display: block; font-size: 10.5px; }
.quick-support-row small { display: block; font-size: 8.5px; color: var(--muted); margin-top: 2px; }
.order-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.order-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 11px; border-bottom: 1px solid #f4f1fa; }
.order-number { font-size: 12px; font-weight: 700; direction: ltr; }
.order-items-preview { display: flex; align-items: center; gap: 7px; padding: 12px 0; }
.order-items-preview img { width: 45px; height: 45px; border-radius: 9px; object-fit: cover; background: var(--primary-soft); }
.order-items-preview .more { font-size: 10px; color: var(--muted); }
.order-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 11px; border-top: 1px solid #f4f1fa; }
.timeline { position: relative; padding-right: 22px; }
.timeline::before { content: ""; position: absolute; right: 7px; top: 8px; bottom: 8px; width: 2px; background: #ede8f7; }
.timeline-item { position: relative; padding-bottom: 18px; }
.timeline-dot { position: absolute; right: -22px; top: 4px; width: 16px; height: 16px; border: 3px solid #fff; border-radius: 50%; background: #c7bbdd; box-shadow: 0 0 0 2px #e7e1f3; }
.timeline-item.done .timeline-dot { background: var(--primary); }
.timeline-item strong { font-size: 12px; }
.timeline-item p { font-size: 10px; color: var(--muted); margin-top: 3px; }
.order-detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); gap: 16px; align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 9px; }
.info-row { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; padding-bottom: 8px; border-bottom: 1px dashed #f0edf7; }
.info-row span:first-child { color: var(--muted); }
.ticket-message { padding: 13px 15px; border-radius: 13px; background: #fbfaff; border: 1px solid var(--border); margin-bottom: 9px; }
.ticket-message.staff { background: var(--primary-soft); border-color: #ded2ff; }
.ticket-message-head { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: var(--muted); margin-bottom: 5px; }
.notification-item { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border-bottom: 1px solid #f3f0fa; }
.notification-item.unread { background: #fbf8ff; }
.notification-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: 0 0 auto; }
.notification-item p { font-size: 12px; font-weight: 600; }
.notification-item span { font-size: 10px; color: var(--muted); }

/* ---------- Consultation ---------- */
.hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden !important; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.consult-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); gap: 18px; align-items: stretch; margin-top: 22px; }
.consult-hero { position: relative; overflow: hidden; border-radius: 24px; min-height: 460px; padding: 38px; color: #fff; background: linear-gradient(145deg, #0c3d02, #175700 55%, #2f7d12); box-shadow: var(--shadow); }
.consult-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 85%, rgba(255,200,0,.22), transparent 35%), linear-gradient(120deg, transparent 45%, rgba(255,255,255,.06)); }
.consult-hero-copy { position: relative; z-index: 2; max-width: 520px; }
.consult-hero h1 { font-size: clamp(27px, 3.2vw, 43px); line-height: 1.4; font-weight: 900; letter-spacing: -.7px; margin: 16px 0 13px; }
.consult-hero p { font-size: 13px; line-height: 2.1; color: rgba(255,255,255,.8); max-width: 470px; }
.consult-points { display: flex; flex-direction: column; gap: 11px; margin-top: 30px; }
.consult-points span { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.92); }
.consult-points .icon { color: #ffd75e; }
.consult-hero-art { position: absolute; left: -20px; bottom: -20px; width: 230px; height: 230px; display: grid; place-items: center; color: rgba(255,255,255,.9); }
.consult-hero-art .icon { position: relative; z-index: 2; padding: 24px; border-radius: 34px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); box-sizing: content-box; }
.consult-orb { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); }
.consult-orb.orb-one { width: 210px; height: 210px; background: rgba(255,255,255,.06); }
.consult-orb.orb-two { width: 130px; height: 130px; background: rgba(255,200,0,.12); }
.consult-form-card { padding: 28px; border-radius: 24px; display: flex; flex-direction: column; justify-content: center; }
.consult-form-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.consult-form-head h2 { font-size: 18px; font-weight: 800; }
.consult-form .input, .consult-form .select, .consult-form .textarea { background: #fbfcfa; }
.consult-form .btn-lg { min-height: 50px; border-radius: 14px; }
.consult-success { text-align: center; padding: 26px 8px; }
.consult-success-icon { width: 64px; height: 64px; border-radius: 22px; background: var(--success-soft); color: var(--success); display: grid; place-items: center; margin: 0 auto 16px; }
.consult-success h2 { font-size: 20px; font-weight: 800; }
.consult-success p { color: var(--muted); font-size: 12px; line-height: 2.1; max-width: 390px; margin: 9px auto 18px; }
.consult-support-strip { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding: 16px 20px; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.consult-support-strip > div:first-child { display: flex; align-items: center; gap: 10px; color: var(--primary); }
.consult-support-strip strong { display: block; font-size: 12px; color: var(--text); }
.consult-support-strip small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }

/* ---------- Live chat ---------- */
.chat-app { padding: 0; overflow: hidden; display: flex; flex-direction: column; min-height: 560px; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 17px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #fff, #fcfcfa); }
.chat-peer { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chat-peer img, .chat-peer .avatar { width: 42px; height: 42px; border-radius: 13px; object-fit: cover; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.chat-peer strong { display: block; font-size: 13px; }
.chat-presence { display: flex; align-items: center; gap: 5px; font-size: 9px; color: var(--muted); margin-top: 2px; }
.chat-presence i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.chat-messages { flex: 1; min-height: 390px; max-height: 58vh; overflow-y: auto; padding: 20px 17px; background: linear-gradient(155deg, #f8faf6, #fbfaff 60%, #f7f5fd); scroll-behavior: smooth; }
.chat-row { display: flex; align-items: flex-end; gap: 7px; margin-bottom: 12px; }
.chat-row.mine { flex-direction: row-reverse; }
.chat-avatar { width: 28px; height: 28px; border-radius: 9px; font-size: 10px; flex: 0 0 auto; }
.chat-bubble { max-width: min(78%, 540px); padding: 9px 12px 7px; border-radius: 15px 15px 4px 15px; background: #fff; border: 1px solid #ece8f4; box-shadow: 0 3px 12px rgba(35,25,65,.04); }
.chat-row.theirs .chat-bubble { border-radius: 15px 15px 15px 4px; }
.chat-row.mine .chat-bubble { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(23,87,0,.16); }
.chat-author { display: block; font-size: 9px; color: var(--muted); margin-bottom: 3px; font-weight: 600; }
.chat-row.mine .chat-author, .chat-row.mine .chat-bubble time { color: rgba(255,255,255,.68); }
.chat-bubble p { font-size: 11.5px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-bubble time { display: block; text-align: left; font-size: 8px; color: var(--muted); margin-top: 3px; }
.chat-composer { display: flex; align-items: flex-end; gap: 8px; padding: 11px 13px; border-top: 1px solid var(--border); background: rgba(255,255,255,.96); }
.chat-composer textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; border: 1px solid var(--border); border-radius: 13px; padding: 11px 13px; font: inherit; font-size: 11px; line-height: 1.8; background: #fbfcf9; outline: none; }
.chat-composer textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
.chat-composer .btn-icon { width: 42px; height: 42px; border-radius: 13px; flex: 0 0 auto; }
.chat-note { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 12px 10px; color: var(--muted); font-size: 8.5px; background: #fff; }
.chat-welcome { text-align: center; max-width: 330px; margin: 55px auto; color: var(--muted); }
.chat-welcome > span { width: 54px; height: 54px; border-radius: 18px; background: #fff; border: 1px solid var(--border); color: var(--primary); display: grid; place-items: center; margin: 0 auto 12px; }
.chat-welcome strong { display: block; font-size: 12px; color: var(--text); line-height: 1.8; }
.chat-welcome p { font-size: 10px; line-height: 1.9; margin-top: 5px; }
.chat-inbox { padding: 4px 14px; }
.chat-inbox-item { display: flex; align-items: center; gap: 11px; padding: 13px 5px; border-bottom: 1px solid #f2eef9; transition: background .15s; }
.chat-inbox-item:hover { background: #fbfcf9; }
.chat-inbox-item.unread { background: #f7fbf3; }
.chat-inbox-item .avatar { width: 40px; height: 40px; border-radius: 13px; background: var(--primary-soft); color: var(--primary); font-weight: 800; flex: 0 0 auto; }
.chat-inbox-copy { flex: 1; min-width: 0; }
.chat-inbox-copy .between { gap: 8px; }
.chat-inbox-copy strong { font-size: 11px; }
.chat-inbox-copy time { font-size: 8px; color: var(--muted); }
.chat-inbox-copy p { font-size: 10px; color: var(--muted); margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-inbox-copy > span { font-size: 8px; color: #9a93a9; }
.chat-unread { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 9px; font-weight: 700; }
.consult-detail-card { padding: 22px; }
.consult-detail-top { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.consult-detail-top .avatar { width: 52px; height: 52px; border-radius: 17px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 17px; font-weight: 800; }
.consult-detail-top div { flex: 1; }
.consult-detail-top strong { display: block; font-size: 14px; }
.consult-detail-top a { font-size: 11px; color: var(--primary); direction: ltr; display: inline-block; margin-top: 3px; }
.consult-message-box { margin: 16px 0; padding: 15px; border-radius: 14px; background: #f8faf5; border: 1px solid #e8eee1; }
.consult-message-box span { font-size: 9px; color: var(--muted); }
.consult-message-box p { font-size: 11px; line-height: 2; margin-top: 5px; white-space: pre-wrap; }
.consult-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.consult-stats .panel-stat { text-decoration: none; }
.chat-panel-layout { align-items: stretch; }
.chat-panel-layout .chat-app { min-height: 620px; max-height: 76vh; }
.chat-panel-layout .chat-messages { max-height: none; }
.consult-store-section { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px 30px; border-radius: 22px; color: #fff; background: linear-gradient(120deg, #0d3d03, #2f7d12); position: relative; overflow: hidden; }
.consult-store-section::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; left: -80px; top: -80px; background: rgba(255,255,255,.07); }
.consult-store-section > div { position: relative; z-index: 2; }
.consult-store-section h2 { font-size: clamp(19px, 2.2vw, 27px); font-weight: 800; margin: 10px 0 7px; }
.consult-store-section p { font-size: 11px; line-height: 2; color: rgba(255,255,255,.76); max-width: 650px; }

/* ---------- Editorial articles ---------- */
.article-shell { max-width: 980px; }
.article-card { overflow: hidden; border-radius: 22px; }
.article-cover { height: clamp(260px, 38vw, 420px); background: #edf4e5; overflow: hidden; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-body { padding: clamp(20px, 4vw, 40px); }
.article-kicker { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; color: var(--muted); font-size: 10px; }
.article-kicker > span:not(.badge) { display: inline-flex; align-items: center; gap: 4px; }
.article-title { font-size: clamp(23px, 3.6vw, 36px); line-height: 1.55; font-weight: 900; letter-spacing: -.4px; margin: 14px 0 10px; }
.article-excerpt { color: #6c657b; font-size: 13px; line-height: 2.1; max-width: 790px; }
.article-meta { display: flex; align-items: center; gap: 10px; margin: 20px 0 4px; padding: 14px 0; border-block: 1px solid var(--border); }
.article-meta .avatar { width: 40px; height: 40px; border-radius: 13px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 800; }
.article-meta strong { display: block; font-size: 11px; }
.article-meta span { display: block; font-size: 9px; color: var(--muted); margin-top: 2px; }
.article-content { font-size: 13px; line-height: 2.25; color: #40394e; margin-top: 24px; }
.article-content .article-lead { font-size: 14px; line-height: 2.35; color: #4f465f; padding: 16px 18px; background: #f7faf2; border: 1px solid #e4ecd8; border-radius: 15px; }
.article-content h2 { font-size: clamp(18px, 2.5vw, 23px); line-height: 1.65; font-weight: 800; margin: 34px 0 12px; color: #282237; }
.article-content h3 { font-size: 16px; line-height: 1.7; font-weight: 750; margin: 25px 0 8px; color: #30283f; }
.article-content p { margin: 0 0 15px; }
.article-content ul, .article-content ol { margin: 0 0 18px; padding-inline-start: 24px; }
.article-content li { margin-bottom: 7px; }
.article-content a { color: var(--primary); font-weight: 650; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--primary) 40%, transparent); text-underline-offset: 3px; }
.article-content strong { color: #2b2438; }
.article-content table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 11px; line-height: 1.8; display: table; }
.article-content th { background: var(--primary-soft); color: var(--primary); font-weight: 750; }
.article-content th, .article-content td { border: 1px solid var(--border); padding: 10px 11px; text-align: right; vertical-align: top; }
.article-content blockquote { margin: 20px 0; border-inline-start: 4px solid var(--primary); background: #f8faf5; padding: 13px 16px; border-radius: 0 12px 12px 0; color: #554d63; }
.article-callout { margin: 28px 0; padding: 20px; border-radius: 17px; background: linear-gradient(135deg, #0e4104, #2f7718); color: #fff; }
.article-callout strong { display: block; font-size: 14px; margin-bottom: 6px; color: #fff; }
.article-callout p { font-size: 11px; line-height: 2; color: rgba(255,255,255,.78); margin-bottom: 12px; }
.article-callout a { display: inline-flex; align-items: center; gap: 5px; color: #fff; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.24); border-radius: 10px; padding: 8px 13px; text-decoration: none; font-size: 10px; }
.article-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--border); margin-top: 26px; }
.article-tags > span:first-child { font-size: 10px; color: var(--muted); }
.article-faq { margin-top: 30px; }
.article-faq h2 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.article-faq details { border: 1px solid var(--border); border-radius: 13px; margin-bottom: 8px; background: #fbfcf9; }
.article-faq summary { cursor: pointer; padding: 13px 15px; font-size: 11px; font-weight: 700; }
.article-faq details p { padding: 0 15px 14px; font-size: 11px; line-height: 2; color: var(--muted); }
.article-consult-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 30px; padding: 22px; border-radius: 18px; background: linear-gradient(120deg, #173f0b, #3b7f22); color: #fff; }
.article-consult-cta strong { display: block; font-size: 14px; margin-bottom: 5px; }
.article-consult-cta span { font-size: 10px; line-height: 1.9; color: rgba(255,255,255,.76); }
.article-consult-cta .btn { flex: 0 0 auto; }
.related-article-image { height: 140px; overflow: hidden; background: #edf4e5; }
.related-article-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Tracking ---------- */
.track-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 18px; align-items: start; }
.track-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 22px; }
.track-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.track-icon { width: 48px; height: 48px; border-radius: 15px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.track-code { font-size: 12px; direction: ltr; background: #f6f3fb; border-radius: 7px; padding: 3px 8px; display: inline-flex; align-items: center; gap: 5px; }
.map-box { height: 360px; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #eee9f9, #f9f7ff); position: relative; border: 1px solid var(--border); }
.map-box .map-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 11px; padding: 0; z-index: 500; overflow: hidden; background: #f7f5ff; }
.map-box .leaflet-container { z-index: 1; }
.offline-map-tag { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.94); border: 1px solid var(--border); font-size: 10px; font-weight: 600; color: #514a61; box-shadow: var(--shadow-sm); }
.offline-map-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 3px #fff3d6; }
.offline-map-hint { position: absolute; bottom: 12px; right: 12px; z-index: 2; font-size: 9px; color: var(--muted); background: rgba(255,255,255,.88); border-radius: 7px; padding: 3px 8px; }
.offline-map-svg { width: 100%; height: 100%; display: block; }
.driver-mini { display: flex; align-items: center; gap: 10px; padding: 12px; background: #fbfaff; border-radius: 13px; border: 1px solid var(--border); margin-top: 14px; }
.driver-mini .avatar { width: 42px; height: 42px; }

/* ---------- Surveys ---------- */
.survey-card { display: flex; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: 17px; margin-bottom: 12px; }
.survey-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: 0 0 auto; }
.survey-question { padding: 16px 0; border-bottom: 1px solid #f2eef9; }
.survey-question:last-child { border: 0; }
.survey-question-title { font-size: 13px; font-weight: 600; margin-bottom: 11px; }
.survey-options { display: flex; flex-direction: column; gap: 8px; }
.survey-option { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 11px; cursor: pointer; }
.survey-option:hover { border-color: #cbb8ff; background: #fcfaff; }
.survey-option input { accent-color: var(--primary); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 55px; background: #fff; border-top: 1px solid var(--border); }
.footer-main { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 26px; padding: 36px 0 28px; }
.footer-brand p { font-size: 11px; color: var(--muted); line-height: 1.9; margin: 10px 0 14px; max-width: 340px; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: #5b546a; }
.footer-contact span { display: flex; align-items: center; gap: 6px; }
.footer-col h4 { font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 11px; color: var(--muted); padding: 4px 0; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; color: var(--muted); }
.footer-badges { display: flex; gap: 8px; }
.footer-badge { width: 54px; height: 48px; border-radius: 8px; background: #f6f3fb; display: grid; place-items: center; font-size: 8px; text-align: center; color: #5e566d; padding: 4px; }
.hero-track { direction: ltr; }
.hero-slide { direction: rtl; }
.promo-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .promo-duo { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.empty-state { text-align: center; padding: 55px 20px; background: #fff; border: 1px dashed #ded6ee; border-radius: 18px; }
.empty-state .empty-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin: 0 auto 14px; }
.empty-state h3 { font-size: 15px; margin-bottom: 5px; }
.empty-state p { font-size: 11px; color: var(--muted); margin-bottom: 16px; }
.modal { position: fixed; inset: 0; background: rgba(19,12,40,.55); z-index: 140; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(3px); }
.modal.open { display: flex; }
.modal-card { width: min(560px, 100%); max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 20px; padding: 22px; box-shadow: var(--shadow-lg); animation: fadeUp .2s; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.toast-wrap { position: fixed; bottom: 90px; left: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; direction: rtl; }
.toast { background: #241e36; color: #fff; padding: 11px 16px; border-radius: 11px; font-size: 12px; box-shadow: var(--shadow-lg); animation: fadeUp .2s; display: flex; align-items: center; gap: 8px; }
.toast.success { background: #0d7a52; }
.toast.error { background: #b72f34; }
.skeleton { background: linear-gradient(90deg, #f3f0f9 25%, #faf8ff 50%, #f3f0f9 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { to { background-position: -200% 0; } }
.fade-up { animation: fadeUp .35s ease both; }

@media (max-width: 1120px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1.3fr repeat(4, 1fr); gap: 18px; }
  .header-search { max-width: 420px; }
}

@media (max-width: 960px) {
  .container { width: min(100% - 28px, 1280px); }
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }
  .header-main { min-height: 64px; gap: 12px; }
  .header-search, .main-nav { display: none; }
  .brand-logo { width: 40px; height: 40px; border-radius: 13px; }
  .brand-name { font-size: 17px; }
  .brand-sub { display: none; }
  .header-actions .header-action span { display: none; }
  .header-actions { gap: 2px; }
  .mobile-top-actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .bottom-nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9px; color: #8a829a; padding: 5px 10px; border-radius: 10px; position: relative; min-width: 50px; }
  .bottom-nav-item.active { color: var(--primary); }
  .bottom-nav-item.active .icon { transform: translateY(-1px); }
  .bottom-nav-item .cart-count { top: 0; left: 4px; }
  body { padding-bottom: 64px; }
  .hero-slide { padding: 30px; grid-template-columns: 1fr .85fr; min-height: 330px; }
  .hero { min-height: 330px; border-radius: 22px; }
  .hero-art { min-height: 260px; }
  .hero-art img { height: 280px; }
  .hero-title { font-size: 29px; }
  .home-top { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .product-grid, .product-grid.four { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filter-list { display: grid; grid-template-columns: repeat(2, 1fr); }
  .product-layout { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout, .track-layout { grid-template-columns: 1fr; }
  .cart-summary, .checkout-summary { position: static; }
  .account-layout { grid-template-columns: 1fr; }
  .account-side { position: static; display: flex; overflow-x: auto; align-items: center; gap: 6px; padding: 8px; }
  .account-user { display: none; }
  .account-nav { flex-direction: row; gap: 4px; }
  .account-nav a, .account-nav .account-nav-link { white-space: nowrap; padding: 8px 12px; }
  .account-nav a span.nav-text, .account-nav .account-nav-link span.nav-text { display: inline; }
  .account-nav .account-logout-form { border: 0; padding: 0; margin: 0; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-hero { grid-template-columns: 1fr .8fr; padding: 28px; min-height: 280px; }
  .store-hero-art img { height: 230px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-side { min-height: 100vh; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .footer-main { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: span 3; }
  .consult-layout { grid-template-columns: 1fr; }
  .consult-hero { min-height: 330px; }
  .consult-hero-art { opacity: .55; }
  .consult-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 24px); }
  .header-main { min-height: 58px; }
  .brand { gap: 7px; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-name { font-size: 15px; }
  .header-action { padding: 6px; }
  .hero-wrap { margin-top: 12px; }
  .hero, .hero-slide { min-height: 430px; }
  .hero-slide { grid-template-columns: 1fr; padding: 24px 22px 44px; text-align: right; }
  .hero-copy { align-self: start; }
  .hero-title { font-size: 26px; line-height: 1.35; margin-bottom: 9px; }
  .hero-sub { font-size: 12px; margin-bottom: 16px; }
  .hero-art { min-height: 180px; position: absolute; bottom: 0; left: 0; right: 0; opacity: .92; pointer-events: none; }
  .hero-art img { height: 210px; object-position: left center; }
  .hero-dots { right: 24px; bottom: 15px; }
  .hero-arrow { display: none; }
  .hero-eyebrow { font-size: 10px; margin-bottom: 9px; }
  .section { margin-top: 28px; }
  .section-title { font-size: 17px; }
  .section-head { margin-bottom: 13px; }
  .category-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .category-tile { padding: 11px 6px; border-radius: 13px; gap: 6px; }
  .cat-icon { width: 44px; height: 44px; border-radius: 14px; }
  .cat-icon .icon { width: 22px; height: 22px; }
  .category-name { font-size: 10px; }
  .category-count { display: none; }
  .product-grid, .product-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card { border-radius: 14px; }
  .product-body { padding: 10px; }
  .product-title { font-size: 11.5px; line-height: 1.7; min-height: 39px; }
  .product-store { font-size: 9px; }
  .product-rating { font-size: 9px; margin: 5px 0 2px; }
  .price { font-size: 13px; }
  .price-old { font-size: 9px; }
  .add-cart-btn { width: 30px; height: 30px; }
  .product-badges { top: 7px; right: 7px; }
  .product-fav { width: 28px; height: 28px; top: 7px; left: 7px; }
  .discount-badge { font-size: 9px; padding: 1px 6px; }
  .carousel-scroll .product-card { min-width: 158px; max-width: 158px; }
  .trust-strip { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
  .trust-item { padding: 9px 10px; gap: 7px; border-radius: 12px; }
  .trust-item strong { font-size: 10px; }
  .trust-item span { font-size: 9px; }
  .trust-item .icon { width: 18px; height: 18px; }
  .store-grid { grid-template-columns: 1fr; }
  .store-hero { grid-template-columns: 1fr; padding: 22px; min-height: 340px; }
  .store-hero-art { position: absolute; bottom: 0; left: 0; right: 0; opacity: .8; }
  .store-hero-art img { height: 190px; object-position: left; }
  .store-hero-art.hero-blend img { width: 190px; height: 190px; }
  .store-head { padding: 14px; gap: 11px; border-radius: 16px; }
  .store-head-name { font-size: 17px; }
  .store-head-actions { display: none; }
  .store-logo-round { width: 58px; height: 58px; border-radius: 17px; }
  .page-head { margin: 16px 0 14px; }
  .page-title { font-size: 19px; }
  .catalog-toolbar { flex-wrap: wrap; }
  .filter-list { grid-template-columns: 1fr; }
  .product-layout { gap: 12px; margin-top: 10px; }
  .gallery-card { padding: 10px; border-radius: 16px; }
  .gallery-main { border-radius: 12px; }
  .gallery-thumb { width: 52px; height: 52px; }
  .product-detail { padding: 16px; border-radius: 16px; }
  .product-detail-title { font-size: 16px; }
  .price-block .price { font-size: 20px; }
  .buy-row { position: sticky; bottom: 74px; z-index: 20; background: #fff; padding: 8px; border-radius: 14px; box-shadow: 0 -10px 30px rgba(30,20,60,.1); }
  .cart-item { grid-template-columns: 74px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .cart-item-image { width: 74px; height: 74px; }
  .cart-item-price { grid-column: 2; text-align: right; display: flex; justify-content: space-between; align-items: center; }
  .cart-store-head { padding: 11px 12px; }
  .checkout-card { padding: 15px; }
  .payment-grid { grid-template-columns: 1fr; }
  .stat-grid { gap: 8px; }
  .stat-card { padding: 12px; }
  .stat-card strong { font-size: 16px; }
  .wallet-cards { grid-template-columns: 1fr; }
  .wallet-use-strip { grid-template-columns: 1fr; }
  .quick-support-row { grid-template-columns: 1fr; }
  .order-detail-grid { grid-template-columns: 1fr; }
  .account-head { margin-bottom: 12px; }
  .account-title { font-size: 17px; }
  .auth-card { padding: 22px; border-radius: 18px; }
  .otp-digit { width: 41px; height: 48px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 18px; padding: 26px 0 20px; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .track-card { padding: 16px; }
  .map-box { height: 280px; }
  .modal-card { padding: 18px; }
  .toast-wrap { left: 12px; right: 12px; bottom: 78px; }
  .consult-layout { gap: 12px; margin-top: 12px; }
  .consult-hero { padding: 26px 22px; min-height: 300px; border-radius: 20px; }
  .consult-hero h1 { font-size: 26px; }
  .consult-hero p { font-size: 11px; }
  .consult-hero-art { display: none; }
  .consult-form-card { padding: 20px 16px; border-radius: 20px; }
  .consult-points { gap: 8px; margin-top: 20px; }
  .consult-support-strip { padding: 14px; align-items: flex-start; }
  .chat-app { min-height: 0; }
  .chat-messages { min-height: 340px; max-height: 56vh; padding: 14px 11px; }
  .chat-bubble { max-width: 86%; }
  .chat-bubble p { font-size: 11px; }
  .chat-head { padding: 11px 12px; }
  .chat-inbox { padding: 2px 10px; }
  .chat-panel-layout { grid-template-columns: 1fr; }
  .chat-panel-layout .chat-app { min-height: 0; max-height: none; }
  .consult-stats { gap: 8px; }
  .consult-stats .panel-stat { padding: 11px; }
  .article-card { border-radius: 16px; }
  .article-cover { height: 220px; }
  .article-body { padding: 18px 14px; }
  .article-content { font-size: 12px; line-height: 2.2; }
  .article-content .article-lead { font-size: 12px; padding: 13px 14px; }
  .article-content table { display: block; overflow-x: auto; white-space: nowrap; }
  .article-kicker { gap: 9px; }
  .article-consult-cta { padding: 17px; }
}

@media (max-width: 380px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { gap: 8px; }
  .brand-name { font-size: 14px; }
}

