/* ═══════════════════════════════════════════════
   چیدهوم — Main Stylesheet
   ═══════════════════════════════════════════════ */

:root {
  --primary:       #3D5A80;
  --primary-dark:  #2C4A6E;
  --primary-light: #EBF2FB;
  --accent:        #E07A5F;
  --accent-dark:   #C4614A;
  --sale:          #E74C3C;
  --sale-bg:       #FFF0EE;
  --gold:          #D4A017;
  --bg:            #F4F1EC;
  --surface:       #FFFFFF;
  --text:          #22223B;
  --text-muted:    #6B7280;
  --border:        #E5E0D8;
  --dark:          #1A1A2E;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.10);
  --radius:        10px;
  --radius-sm:     6px;
  --tr:            0.2s ease;
}

/* ── Reset ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  font-size: 14px;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; position: relative; overflow: hidden; }
button:disabled { opacity: 0.75; cursor: not-allowed; }

button.btn-loading {
  color: transparent !important;
  pointer-events: none;
}
button.btn-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-top-color: #fff;
  border-radius: 50%;
  animation: button-spinner 0.8s linear infinite;
}

@keyframes button-spinner {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Container ───────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ════════════════════════════════════════════════
   TOP BAR
   ════════════════════════════════════════════════ */
.top-bar {
  background: var(--dark);
  color: #ccc;
  font-size: 12px;
  padding: 7px 0;
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar-contacts { display: flex; align-items: center; gap: 18px; }
.top-bar-contacts a {
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color var(--tr);
}
.top-bar-contacts a:hover { color: var(--accent); }
.top-bar-contacts .icon { font-size: 14px; }
.tb-divider { width: 1px; height: 14px; background: #444; }
.top-bar-auth { display: flex; align-items: center; gap: 12px; }
.top-bar-auth a { color: #ccc; transition: color var(--tr); }
.top-bar-auth a:hover { color: #fff; }
.top-bar-auth .sep { color: #444; }
.whatsapp-link { color: #25D366 !important; }
.insta-link    { color: #E1306C !important; }

/* ════════════════════════════════════════════════
   MAIN HEADER
   ════════════════════════════════════════════════ */
.main-header {
  background: var(--surface);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.main-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
}
.site-logo em { font-style: normal; color: var(--accent); }

/* Search */
.header-search { flex: 1; position: relative; }
.header-search input {
  width: 100%;
  padding: 10px 18px 10px 48px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--tr), box-shadow var(--tr);
  direction: rtl;
}
.header-search input::placeholder { color: var(--text-muted); }
.header-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  background: #fff;
}
.search-btn {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: var(--text-muted);
  font-size: 16px;
  padding: 0;
  line-height: 1;
}
.search-btn:hover { color: var(--primary); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 11px;
  transition: background var(--tr), color var(--tr);
  position: relative;
  background: none;
}
.action-btn:hover { background: var(--bg); color: var(--primary); }
.action-icon { font-size: 20px; line-height: 1; }
.action-badge {
  position: absolute;
  top: 2px;
  left: 6px;
  background: var(--sale);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.btn-login-header {
  background: var(--primary);
  color: #fff !important;
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background var(--tr);
  white-space: nowrap;
}
.btn-login-header:hover { background: var(--primary-dark); }

/* ════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════ */
.main-nav {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
}
.main-nav .container {
  display: flex;
  align-items: center;
}
.nav-all-cats {
  background: var(--primary);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  position: relative;
  flex-shrink: 0;
  transition: background var(--tr);
}
.nav-all-cats:hover { background: var(--primary-dark); }
.nav-all-cats-link {
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
}
.nav-links {
  display: flex;
  align-items: center;
  padding: 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  transition: color var(--tr);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.nav-links .sale-link { color: var(--sale); font-weight: 700; }
.nav-links .sale-link:hover { color: var(--accent-dark); border-bottom-color: var(--sale); }

/* ── Categories Mega Dropdown ────────────────── */
.nav-all-cats { position: relative; }

.cats-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 200;
  padding: 20px;
  min-width: 560px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s;
}
.nav-all-cats:hover .cats-dropdown,
.cats-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cats-dropdown-col { min-width: 130px; }
.cats-parent-link {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.cats-parent-link:hover { color: var(--accent); }
.cats-children {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cats-children li a {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--tr), padding-right var(--tr);
}
.cats-children li a:hover {
  color: var(--primary);
  padding-right: 4px;
}
.cats-children li a::before { content: '›'; color: var(--accent); }

/* ════════════════════════════════════════════════
   SECTION COMMONS
   ════════════════════════════════════════════════ */
.section { padding: 36px 0; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 26px;
  background: var(--accent);
  border-radius: 3px;
}
.section-link {
  font-size: 13px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--tr);
}
.section-link:hover { color: var(--accent); }

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ── Product Card ───────────────────────────── */
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--tr), box-shadow var(--tr);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.product-img {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--sale);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.wishlist-icon {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background var(--tr), transform var(--tr);
  backdrop-filter: blur(4px);
}
.wishlist-icon:hover { background: var(--sale-bg); transform: scale(1.1); }
.product-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); }
.stars { color: var(--gold); letter-spacing: -1px; }
.product-price-row { margin-top: auto; }
.product-old-price {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.product-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--sale);
}
.product-price .unit { font-size: 12px; font-weight: 400; color: var(--text-muted); margin-right: 3px; }
.product-price-plain { font-size: 16px; font-weight: 800; color: var(--text); }
.btn-add-cart {
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  margin-top: 10px;
  transition: background var(--tr), transform var(--tr);
}
.btn-add-cart:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-add-cart:active { transform: translateY(0); }

/* ════════════════════════════════════════════════
   HERO BANNER
   ════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #2C4A6E 0%, #3D5A80 55%, #5B8FB9 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  left: -80px;
  top: -80px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  right: 10%;
  bottom: -120px;
  width: 350px;
  height: 350px;
  background: rgba(224,122,95,0.15);
  border-radius: 50%;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.hero-text {}
.hero-tag {
  display: inline-block;
  background: rgba(224,122,95,0.25);
  color: #FFB8A0;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid rgba(224,122,95,0.4);
}
.hero-title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 16px;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-subtitle { font-size: 15px; color: rgba(255,255,255,0.75); margin-bottom: 28px; line-height: 1.8; }
.hero-btns { display: flex; gap: 12px; }
.btn-hero-primary {
  background: var(--accent);
  color: #fff;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
  box-shadow: 0 4px 16px rgba(224,122,95,0.4);
}
.btn-hero-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224,122,95,0.5);
}
.btn-hero-secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: background var(--tr);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.22); }
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 120px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 28px;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 22px; font-weight: 800; color: #fff; }
.hero-stat .lbl { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* Mini Banners */
.mini-banners {
  padding: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.mini-banner {
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: transform var(--tr), box-shadow var(--tr);
}
.mini-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mini-banner-1 { background: linear-gradient(135deg, #E07A5F, #C4614A); color: #fff; }
.mini-banner-2 { background: linear-gradient(135deg, #3D5A80, #2C4A6E); color: #fff; }
.mini-banner-3 { background: linear-gradient(135deg, #D4A017, #B8860B); color: #fff; }
.mini-banner-4 { background: linear-gradient(135deg, #28a745, #1e7e34); color: #fff; }
.mini-banner-icon { font-size: 40px; flex-shrink: 0; }
.mini-banner-text .title { font-size: 15px; font-weight: 700; }
.mini-banner-text .sub { font-size: 12px; opacity: 0.85; margin-top: 3px; }

/* ════════════════════════════════════════════════
   SPECIAL OFFERS (تخفیف ویژه)
   ════════════════════════════════════════════════ */
.offers-section { background: var(--sale-bg); }
.offers-section .section-title::before { background: var(--sale); }

.offers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.offers-title-group { display: flex; align-items: center; gap: 20px; }
.offers-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--sale);
  color: #fff;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
}
/* Countdown Timer */
.countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--dark);
  border-radius: 50px;
  padding: 6px 14px;
}
.countdown .cd-label { font-size: 12px; color: #aaa; margin-left: 4px; }
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 36px;
}
.cd-num {
  background: var(--sale);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  border-radius: 6px;
  padding: 2px 8px;
  min-width: 38px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.cd-lbl { font-size: 10px; color: #888; margin-top: 2px; }
.cd-sep { color: var(--sale); font-size: 20px; font-weight: 800; margin-bottom: 14px; }

/* ════════════════════════════════════════════════
   BRANDS
   ════════════════════════════════════════════════ */
.brands-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.brand-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color var(--tr), box-shadow var(--tr), transform var(--tr);
}
.brand-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.brand-logo { font-size: 36px; }
.brand-name { font-size: 13px; font-weight: 700; color: var(--text); }
.brand-count { font-size: 11px; color: var(--text-muted); }

/* ════════════════════════════════════════════════
   AMAZON SECTION
   ════════════════════════════════════════════════ */
.amazon-section {
  background: linear-gradient(135deg, #1A1A2E 0%, #232F3E 60%, #37475A 100%);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.amazon-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: rgba(255,153,0,0.06);
  border-radius: 50%;
}
.amazon-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}
.amazon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,153,0,0.15);
  border: 1px solid rgba(255,153,0,0.35);
  color: #FF9900;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}
.amazon-title {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 14px;
}
.amazon-title em { font-style: normal; color: #FF9900; }
.amazon-desc { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.9; margin-bottom: 28px; }
.amazon-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.amazon-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
}
.amazon-feature .feat-icon {
  width: 30px; height: 30px;
  background: rgba(255,153,0,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.btn-amazon {
  background: #FF9900;
  color: var(--dark);
  padding: 13px 30px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
  box-shadow: 0 4px 18px rgba(255,153,0,0.35);
}
.btn-amazon:hover {
  background: #e68a00;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255,153,0,0.5);
}
.amazon-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.amazon-item {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: background var(--tr), transform var(--tr);
  cursor: pointer;
}
.amazon-item:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }
.amazon-item .emoji { font-size: 44px; margin-bottom: 8px; }
.amazon-item .name { font-size: 12px; color: rgba(255,255,255,0.8); }
.amazon-item .price { font-size: 13px; color: #FF9900; font-weight: 700; margin-top: 4px; }

/* ════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════ */
footer {
  background: var(--dark);
  color: #ccc;
  margin-top: 0;
}
.footer-top {
  padding: 48px 0 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.footer-brand {}
.footer-logo {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.footer-logo em { font-style: normal; color: var(--accent); }
.footer-desc {
  font-size: 13px;
  line-height: 1.9;
  color: #999;
  margin-bottom: 20px;
}
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #d6d3d1;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.14);
  transition: transform var(--tr), color var(--tr), background var(--tr), border-color var(--tr);
}
.social-btn .ui-icon { width: 21px; height: 21px; stroke-width: 1.75; }
.social-btn:hover { transform: translateY(-2px); color: #1c1917; background: #d6b36d; border-color: #d6b36d; }
.social-btn:active { transform: translateY(0) scale(.96); }

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13px;
  color: #999;
  transition: color var(--tr), padding-right var(--tr);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--accent); padding-right: 4px; }
.footer-links a::before { content: '‹'; color: var(--accent); font-size: 16px; }

.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #999;
}
.contact-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}
.contact-text {}
.contact-text strong { color: #ddd; display: block; margin-bottom: 2px; font-size: 12px; }

/* نماد */
.trust-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.trust-badge {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #aaa;
  flex-direction: column;
  gap: 4px;
  min-width: 70px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--tr);
}
.trust-badge:hover { border-color: var(--accent); }
.trust-badge .badge-icon { font-size: 22px; }

/* Footer Bottom */
.footer-bottom {
  padding: 16px 0;
  background: rgba(0,0,0,0.2);
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: #666; transition: color var(--tr); }
.footer-bottom-links a:hover { color: #999; }

/* ════════════════════════════════════════════════
   CALCULATOR FAB (link button)
   ════════════════════════════════════════════════ */
.calc-fab {
  position: fixed;
  left: 24px;
  bottom: 28px;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--accent), #c4614a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 18px rgba(224,122,95,.55);
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
  text-decoration: none;
}
.calc-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(224,122,95,.7);
}
.calc-fab:active { transform: scale(.95); }
.calc-fab-icon { font-size: 1.5rem; position: relative; z-index: 1; }
.calc-fab-ripple {
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  animation: fabPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes fabPulse {
  0%   { transform: scale(1);   opacity: .6; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ════════════════════════════════════════════════
   IMAGE BANNER SLIDER
   ════════════════════════════════════════════════ */
.banner-slider {
  position: relative;
  overflow: hidden;
  background: #111;
  line-height: 0;
}
.banner-slide { display: none; position: relative; }
.banner-slide.active { display: block; animation: bannerIn .5s ease; }
@keyframes bannerIn {
  from { opacity: 0; transform: scale(1.025); }
  to   { opacity: 1; transform: scale(1); }
}
.banner-slide img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}
.banner-slide a { display: block; }
.banner-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 40px;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  color: #fff;
  line-height: 1.4;
}
.banner-caption h2 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.banner-caption p  { font-size: 14px; opacity: .85; }
.banner-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
  border: none; color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer; z-index: 10;
  transition: background .2s;
  display: flex; align-items: center; justify-content: center;
}
.banner-arrow:hover { background: rgba(255,255,255,.38); }
.banner-arrow-prev { right: 20px; }
.banner-arrow-next { left: 20px; }
.banner-dots {
  position: absolute;
  bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.banner-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none; cursor: pointer;
  transition: background .2s, transform .2s;
  padding: 0;
}
.banner-dot.active { background: #fff; transform: scale(1.4); }

/* ── Search page form ────────────────────────── */
.search-page-form {
  display: flex;
  gap: .6rem;
  margin-bottom: 1.4rem;
  max-width: 600px;
}
.search-page-form input {
  flex: 1;
  padding: .75rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-family: inherit;
  font-size: .95rem;
  direction: rtl;
  transition: border-color var(--tr);
}
.search-page-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.search-page-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .75rem 1.4rem;
  font-size: .9rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--tr);
}
.search-page-form button:hover { background: var(--primary-dark); }
.search-meta {
  font-size: .9rem;
  color: #666;
  margin-bottom: 1.2rem;
}
.search-meta strong { color: var(--primary); font-size: 1.1rem; }
.search-meta em { color: var(--accent); font-style: normal; font-weight: 600; }

/* wishlist badge */
.wishlist-badge {
  position: absolute;
  top: 2px;
  left: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ════════════════════════════════════════════════
   MOBILE NAV HAMBURGER
   ════════════════════════════════════════════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  order: -1;
  border-radius: 8px;
  transition: background .2s;
}
.nav-hamburger:hover { background: var(--primary-light); }
.nav-hamburger span {
  display: block;
  width: 22px; height: 2.5px;
  background: var(--primary);
  border-radius: 3px;
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s, width .3s;
  transform-origin: center;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ════════════════════════════════════════════════
   MOBILE DRAWER
   ════════════════════════════════════════════════ */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1998;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: overlayIn .3s ease;
}
.nav-overlay.active { display: block; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(310px, 88vw);
  height: 100dvh;
  height: 100vh;
  background: #fff;
  z-index: 1999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -6px 0 40px rgba(0,0,0,.18);
  transition: right .35s cubic-bezier(.4,0,.2,1);
}
.mobile-drawer.open { right: 0; }

/* Drawer head */
.drawer-head {
  background: linear-gradient(135deg, var(--primary), #2a4060);
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.drawer-logo { color: #fff; font-size: 1.25rem; font-weight: 900; }
.drawer-logo em { font-style: normal; color: var(--accent); }
.drawer-close {
  background: rgba(255,255,255,.15);
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.drawer-close:hover { background: rgba(255,255,255,.28); }

/* Drawer user bar */
.drawer-user-bar {
  padding: .7rem 1.1rem;
  background: var(--primary-light);
  border-bottom: 1px solid #dde8f5;
  font-size: .83rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}
.drawer-user-bar a { color: var(--primary); font-weight: 700; text-decoration: none; }
.drawer-user-bar .sep { color: #bbb; }

/* Drawer scroll body */
.drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Drawer nav */
.drawer-nav ul { list-style: none; padding: 0; margin: 0; }
.drawer-nav li { border-bottom: 1px solid #f4f6fa; }
.drawer-nav a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .82rem 1.1rem;
  font-size: .9rem;
  color: #333;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.drawer-nav a:active, .drawer-nav a:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.drawer-nav .d-icon {
  width: 28px; height: 28px;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}

/* Category accordion */
.drawer-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: .82rem 1.1rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: .9rem;
  color: #333;
  cursor: pointer;
  text-align: right;
  transition: background .15s;
}
.drawer-cat-btn:hover { background: var(--primary-light); color: var(--primary); }
.drawer-cat-btn .cat-left {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.drawer-cat-arrow {
  font-size: .75rem;
  color: #aaa;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}
.drawer-cat-btn.open .drawer-cat-arrow { transform: rotate(90deg); color: var(--primary); }
.drawer-cat-btn.open { background: var(--primary-light); color: var(--primary); }

.drawer-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
  background: #f8fafc;
}
.drawer-sub.open { max-height: 600px; }
.drawer-sub a {
  padding: .65rem 1.1rem .65rem 2.4rem;
  font-size: .85rem;
  color: #555;
  border-top: 1px solid #f0f2f6;
}
.drawer-sub a::before { content: '–'; color: var(--accent); margin-left: .4rem; }
.drawer-sub .all-link {
  font-weight: 700;
  color: var(--primary);
}
.drawer-sub .all-link::before { content: '›'; }

/* Amazon CTA inside drawer */
.drawer-amazon {
  margin: .9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1rem;
  background: linear-gradient(135deg, #FF9900, #e68a00);
  color: #fff;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(255,153,0,.3);
  flex-shrink: 0;
}
.drawer-amazon:hover { color: #fff; }

/* Drawer footer shortcuts */
.drawer-footer {
  padding: .8rem 1.1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: .6rem;
  flex-shrink: 0;
  background: #fafbfc;
}
.drawer-foot-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .65rem .5rem;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
.drawer-foot-cart { background: var(--primary); color: #fff; }
.drawer-foot-wish { background: var(--primary-light); color: var(--primary); border: 1px solid #c8ddf0; }

/* ════════════════════════════════════════════════
   RESPONSIVE — TABLET 1024px
   ════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .brands-track  { grid-template-columns: repeat(4, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-btns  { justify-content: center; }
  .hero-stats { justify-content: center; }
  .amazon-section .container { grid-template-columns: 1fr; }
  .amazon-visual { grid-template-columns: repeat(4, 1fr); }
  .banner-slide img { height: 360px; }
}

/* ════════════════════════════════════════════════
   RESPONSIVE — MOBILE 768px
   ════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Top bar */
  .top-bar-contacts .tb-divider,
  .top-bar-contacts .contact-phone { display: none; }

  /* Header — stack search below logo row */
  .header-container {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 16px;
  }
  .site-logo { flex: 1; }
  .header-search {
    order: 3;
    flex-basis: 100%;
    margin: 0;
  }
  .header-actions { gap: 4px; }
  .nav-hamburger { display: flex; }

  /* Hide desktop nav — drawer takes over */
  .main-nav { display: none; }

  /* Grids */
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-track  { grid-template-columns: repeat(3, 1fr); }
  .mini-banners  { grid-template-columns: 1fr; }

  /* Hero */
  .hero { padding: 36px 0; }
  .hero-title { font-size: 22px; }
  .hero-subtitle { font-size: 13px; }

  /* Banner slider */
  .banner-slide img { height: 220px; }
  .banner-caption { padding: 14px 18px; }
  .banner-caption h2 { font-size: 15px; }
  .banner-caption p  { font-size: 12px; }
  .banner-arrow { width: 34px; height: 34px; font-size: 16px; }
  .banner-arrow-prev { right: 10px; }
  .banner-arrow-next { left: 10px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }

  /* Calc FAB on mobile */
  .calc-fab { left: 16px; bottom: 20px; width: 52px; height: 52px; }
}

/* ════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE 480px
   ════════════════════════════════════════════════ */
@media (max-width: 480px) {
  /* Header */
  .action-btn span:not(.action-icon):not(.action-badge) { display: none; }
  .site-logo { font-size: 20px; }
  .btn-login-header { padding: 7px 12px; font-size: 12px; }

  /* Grids */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .brands-track  { grid-template-columns: repeat(2, 1fr); }
  .amazon-visual { grid-template-columns: repeat(2, 1fr); }

  /* Hero */
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; text-align: center; }
  .hero-stats { flex-wrap: wrap; gap: 12px; justify-content: center; }

  /* Offers countdown */
  .offers-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .countdown { font-size: 11px; }

  /* Section */
  .section { padding: 24px 0; }

  /* Banner */
  .banner-slide img { height: 160px; }
  .banner-caption { display: none; }

  /* Mini banners */
  .mini-banners { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════════
   PRODUCT CARD — dynamic image support
   ════════════════════════════════════════════════ */
.product-img-link { display: block; }
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.product-emoji { font-size: 72px; }
.product-name-link { color: var(--text); text-decoration: none; }
.product-name-link:hover { color: var(--primary); }
.cart-add-form { margin: 0; }

/* Product detail quantity control */
.pd-qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.pd-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pd-qty-btn {
  width: 34px; height: 34px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  transition: background .15s, border-color .15s;
}
.pd-qty-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Empty section state */
.section-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

/* ════════════════════════════════════════════════
   TOAST NOTIFICATION
   ════════════════════════════════════════════════ */
.toast-notify {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a2e;
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  z-index: 9999;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
  white-space: nowrap;
}
.toast-notify.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ════════════════════════════════════════════════
   ACTION BADGE (cart count in header)
   ════════════════════════════════════════════════ */
.action-badge {
  position: absolute;
  top: 2px;
  left: 6px;
  background: var(--sale);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ════════════════════════════════════════════════
   MINI BANNERS RESPONSIVE UPDATES
   ════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .mini-banners { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════════
   GLOBAL MOBILE POLISH — all pages
   ════════════════════════════════════════════════ */

/* Prevent horizontal scroll site-wide */
html, body { overflow-x: hidden; }

/* Tables that might overflow on mobile */
.table-responsive-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
}

/* Amazon section — button row stacks */
@media (max-width: 600px) {
  .amazon-section .container > div:first-child > div[style*="display:flex"] {
    flex-direction: column;
  }
  .btn-amazon { width: 100%; text-align: center; justify-content: center; }
}

/* ── Cart page ── */
@media (max-width: 480px) {
  .cart-page h1 { font-size: 18px; }
  .cart-product-info { gap: 8px; }
  .cart-product-img { width: 50px; height: 50px; font-size: 22px; }
  .cart-product-name { font-size: 12px; }
  .qty-btn { width: 26px; height: 26px; font-size: 15px; }
  .qty-num { width: 26px; font-size: 13px; }
}

/* ── Checkout page ── */
@media (max-width: 480px) {
  .checkout-steps { font-size: 11px; }
  .step { padding: 8px 4px; }
  .checkout-form-card { padding: 18px 14px; }
  .btn-pay { font-size: 14px; padding: 13px; }
}

/* ── Invoice page ── */
@media (max-width: 600px) {
  .invoice-items-table { display: block; overflow-x: auto; }
  .invoice-items-table table { min-width: 480px; }
}

/* ── Profile page ── */
@media (max-width: 480px) {
  .profile-tabs { gap: 4px; }
  .profile-tab  { padding: .5rem .6rem; font-size: .78rem; }
  .stats-bar    { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .stat-box .stat-num { font-size: 1.2rem; }
  .orders-table th, .orders-table td { padding: .5rem .4rem; font-size: .75rem; }
}

/* ── Amazon order page ── */
@media (max-width: 600px) {
  .amazon-hero h1 { font-size: 1.4rem; }
  .amazon-hero p  { font-size: .82rem; }
  .amazon-form-card { padding: 1.2rem 1rem; }
  .calc-card  { padding: 1rem; }
  .steps-bar .step-item { font-size: .72rem; padding: .6rem .3rem; }
}

/* ── Category / product pages ── */
@media (max-width: 480px) {
  /* Filter card mobile — show as collapse-able block */
  .filter-card { margin-top: .5rem; }
  .filter-card-body { padding: .75rem; }
  .price-stack-row input { font-size: .82rem; }
  /* Product detail */
  .pd-actions { flex-direction: column; }
}

/* ── Calculator ── */
@media (max-width: 480px) {
  .calc-card { padding: 18px 14px; }
}

/* ── Nav active-link on mobile ── */
@media (max-width: 768px) {
  /* Make sure long category names don't break nav */
  .main-nav .nav-links a { white-space: normal; word-break: break-word; }
  /* Amazon section text */
  .amazon-title { font-size: 24px; }
  .amazon-desc  { font-size: 13px; }
}

/* ── Footer on small screens ── */
@media (max-width: 480px) {
  .footer-grid    { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }
  .trust-badges   { justify-content: center; }
}

/* Chid Home 2026 — warm minimal design system */
:root {
  --primary: #1c1917;
  --primary-dark: #0c0a09;
  --primary-light: #f1ede7;
  --accent: #a16207;
  --accent-dark: #854d0e;
  --bg: #faf9f7;
  --surface: #ffffff;
  --text: #1c1917;
  --text-muted: #706b65;
  --border: #ded9d2;
  --shadow-sm: 0 1px 3px rgba(28,25,23,.06);
  --shadow-md: 0 14px 42px rgba(28,25,23,.09);
  --radius: 18px;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); }
.svg-sprite { position:absolute; width:0; height:0; overflow:hidden; }
.ui-icon { display:inline-block; width:1.25em; height:1.25em; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(250,249,247,.78);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}
.page-loader.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.page-loader-card {
  min-width: 178px;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px;
  color: var(--text);
  background: rgba(255,255,255,.94);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  font-size: .78rem;
  font-weight: 700;
}
.page-loader-mark {
  width: 27px;
  height: 27px;
  border: 2px solid #ded9d2;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: pageLoaderSpin .72s linear infinite;
}
@keyframes pageLoaderSpin { to { transform: rotate(360deg); } }
a, button, input { transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(161,98,7,.28); outline-offset: 3px;
}
.container { width: min(1180px, calc(100% - 40px)); }
.top-bar { background: #1c1917; }
.main-header { border-bottom: 1px solid var(--border); box-shadow: none; }
.site-logo, .drawer-logo {
  direction: ltr;
  display: inline-flex;
  align-items: center;
  font-family: 'Bodoni Moda', 'Bodoni MT', Didot, Georgia, serif;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.site-logo { color: #0f1b33; font-size: 1.72rem; }
.drawer-logo { color: #fff; font-size: 1.5rem; }
.footer-logo { letter-spacing: -.04em; }
.footer-logo em { color: var(--accent); }
.header-search { background: #f6f3ef; border: 1px solid transparent; border-radius: 14px; }
.header-search:focus-within { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(161,98,7,.08); }
.main-nav { background: rgba(255,255,255,.94); border-bottom: 1px solid var(--border); }
.main-nav a:hover { color: var(--accent); }
.section { padding: 64px 0; }
.section-title { font-size: clamp(1.35rem, 2.2vw, 2rem); letter-spacing: -.035em; }
.section-title::after { content: ''; display: block; width: 38px; height: 2px; margin-top: 12px; background: var(--accent); }
.section-link { color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.section-link:hover { color: var(--accent); border-color: var(--accent); }

.banner-slider { max-width: 1180px; margin: 24px auto 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-md); }
.banner-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 40%, rgba(12,10,9,.52)); pointer-events: none; }
.banner-caption { z-index: 2; background: none; max-width: 540px; }

.amazon-section { margin-top: 28px; padding: 88px 0; background: #1c1917; overflow: hidden; position: relative; }
.amazon-section::before { content: ''; position: absolute; width: 460px; height: 460px; left: -180px; top: -230px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.amazon-section .container { position: relative; z-index: 1; }
.section-eyebrow { color: #d6b36d; font-size: .82rem; letter-spacing: .08em; margin: 0 0 14px; }
.amazon-title { font-size: clamp(2.15rem, 5vw, 4rem); line-height: 1.15; letter-spacing: -.05em; }
.amazon-title em { color: #d6b36d; }
.amazon-desc { color: #d6d3d1; max-width: 570px; }
.amazon-features { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.14); }
.amazon-feature { padding: 14px 0; color: #e7e5e4; border-bottom: 1px solid rgba(255,255,255,.14); }
.amazon-feature::before { content: '—'; color: #d6b36d; margin-left: 10px; }
.amazon-visual { gap: 12px; }
.amazon-item { min-height: 150px; padding: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; text-align: right; backdrop-filter: none; }
.amazon-item:hover { transform: translateY(-3px); background: rgba(255,255,255,.1); }
.item-index { color: #d6b36d; font-size: .75rem; margin-bottom: 28px; font-variant-numeric: tabular-nums; }
.amazon-item .name { color: #fff; font-size: 1rem; }
.amazon-item .price { color: #a8a29e; }
.btn-amazon { background: #d6b36d; color: #1c1917; border-radius: 12px; box-shadow: none; }
.btn-amazon:hover { background: #e5c887; transform: translateY(-2px); }

.product-card { border: 1px solid #e7e2dc; border-radius: 18px; box-shadow: none; overflow: hidden; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #d5cec5; }
.product-img { background: #f1ede7; }
.product-image-placeholder { font: 800 2rem/1 Arial,sans-serif; letter-spacing: -.08em; color: #b9afa3; }
.wishlist-icon { font-size: 1.35rem; background: rgba(255,255,255,.9); color: var(--text); border: 1px solid var(--border); }
.wishlist-icon.active { color: var(--accent); }
.btn-add-cart { border-radius: 10px; background: var(--primary); }
.btn-add-cart:hover { background: var(--accent-dark); }

#brands { background: #f1ede7; }
.brands-intro { color: var(--text-muted); margin: -8px 0 26px; }
.brands-track { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.brand-card { min-height: 210px; padding: 28px 22px; background: rgba(255,255,255,.76); border: 1px solid rgba(28,25,23,.1); border-radius: 18px; text-decoration: none; align-items: flex-start; justify-content: space-between; }
.brand-card:hover { background: #fff; border-color: var(--accent); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.brand-monogram { font: 700 2.6rem/1 Georgia,serif; color: var(--accent); }
.brand-name { font: 700 clamp(1.05rem, 2vw, 1.45rem)/1.2 Arial,sans-serif; color: var(--text); letter-spacing: -.03em; direction: ltr; }
.brand-count { color: var(--text-muted); font-size: .78rem; }

.footer-top { background: #1c1917; }
.footer-desc, .footer-links a, .contact-text { color: #bdb8b2; }
.footer-col-title { color: #fff; }
.footer-bottom { background: #0c0a09; }
.trust-badges > a { padding: 8px; border-radius: 10px; background: #fff; }
.calc-fab { display: none; }

@media (max-width: 1024px) { .brands-track { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .container { width: min(100% - 28px, 1180px); }
  .header-container { display:grid; grid-template-columns:44px minmax(0,1fr) auto; align-items:center; width:min(100% - 24px, 1180px); padding:10px 0; }
  .header-container .nav-hamburger { grid-column:1; }
  .header-container .site-logo { grid-column:2; width:max-content; max-width:100%; min-width:0; justify-self:start; }
  .header-container .header-actions { grid-column:3; min-width:0; }
  .header-container .header-actions .action-btn { display:none; }
  .header-container .header-search { grid-column:1 / -1; width:100%; }
  .btn-login-header { min-height:40px; padding:8px 13px; }
  .section { padding: 44px 0; }
  .banner-slider { margin: 14px 14px 0; border-radius: 16px; }
  .amazon-section { padding: 56px 0; }
  .amazon-features { grid-template-columns: 1fr; }
  .brand-card { min-height: 170px; }
}
@media (max-width: 480px) {
  .brands-track { grid-template-columns: 1fr 1fr; gap: 10px; }
  .brand-card { min-height: 150px; padding: 18px 15px; }
  .brand-monogram { font-size: 2rem; }
  .site-logo { font-size: 1.28rem; }
  .btn-login-header { padding:7px 10px; font-size:11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .page-loader-mark { animation: none; border-color: var(--accent); }
}
