:root {
  --primary: #ea580c;
  --primary-dark: #c2410c;
  --primary-darker: #9a3412;
  --primary-light: #fff8f5;
  --primary-muted: #ffedd5;
  --accent: #0f172a;
  --accent-soft: #f1f5f9;
  --dark: #1e293b;
  --gray: #64748b;
  --light-bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .03);
  --shadow-md: 0 4px 24px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .03);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .08), 0 4px 12px rgba(15, 23, 42, .04);
  --hero-gradient: linear-gradient(135deg, #1e293b 0%, #334155 55%, #475569 100%);
  --page-hero-gradient: linear-gradient(180deg, #f8fafc 0%, var(--light-bg) 100%);
  --bs-primary: #ea580c;
  --bs-primary-rgb: 234, 88, 12;
}

* { box-sizing: border-box; }
body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  color: #334155;
  background: var(--light-bg);
  -webkit-font-smoothing: antialiased;
}
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 1px 3px rgba(234, 88, 12, .2);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(234, 88, 12, .22);
}
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }
.btn { transition: transform .15s, box-shadow .15s, background .2s, color .2s, border-color .2s; }
.btn:active { transform: scale(.97); }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Scroll-reveal utility */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); z-index: 1030; }
.site-header-container { max-width: 1320px; margin: 0 auto; padding: 0 1rem; }

/* Top promotional strip (Digikala-style) */
.site-top-bar {
  width: 100%;
}
.site-top-bar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: .45rem 1rem;
  text-decoration: none;
  text-align: center;
  transition: filter .15s ease;
}
a.site-top-bar-item:hover {
  filter: brightness(1.06);
  color: inherit;
}
.site-top-bar-text {
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .01em;
}

/* External services strip (Digikala-style row above header) */
.ext-services-bar {
  background: var(--light-bg);
  border-bottom: 1px solid var(--border);
}
.ext-services-bar-inner { padding: 0; }
.ext-services-scroll {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}
.ext-services-scroll::-webkit-scrollbar { display: none; }
.ext-service-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  flex: 0 0 auto;
  min-width: 88px;
  padding: .55rem .5rem;
  text-decoration: none;
  color: #57534e;
  border-left: 1px solid var(--border);
  transition: background .15s, transform .15s;
}
.ext-service-chip:first-child { border-right: 1px solid var(--border); }
.ext-service-chip:hover {
  background: var(--surface);
  color: var(--primary);
  transform: translateY(-1px);
}
.ext-service-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  overflow: hidden;
  flex-shrink: 0;
}
.ext-service-icon img { width: 100%; height: 100%; object-fit: cover; }
.ext-service-label {
  font-size: .68rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
}

/* Mobile variant */
.ext-services-bar--mobile {
  border-bottom: 1px solid var(--border);
}
.ext-services-scroll--mobile {
  padding: .5rem .75rem;
  gap: .6rem;
}
.ext-service-chip--mobile {
  flex-direction: row;
  gap: .4rem;
  min-width: auto;
  border: 1px solid var(--border) !important;
  border-radius: 999px;
  padding: .35rem .7rem .35rem .5rem;
  background: var(--surface);
}
.ext-service-chip--mobile .ext-service-icon { width: 22px; height: 22px; font-size: .78rem; border-radius: 6px; }
.ext-service-chip--mobile .ext-service-label { font-size: .74rem; }
.site-header-top { display: flex; align-items: center; gap: 1.25rem; padding: .75rem 0; }
.site-header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  min-width: 0;
}
.site-header-logo--mobile { flex: 1 1 auto; min-width: 0; }
@media (max-width: 991.98px) {
  .site-header .navbar > .container {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
  }
  .site-header-logo--mobile { order: 1; }
  .site-header .btn-catalog-trigger { order: 2; }
  .site-header .navbar-toggler { order: 3; margin-right: auto; }
  .site-header .navbar-collapse { order: 4; width: 100%; }

  /* Mobile header */
  .site-header-mobile {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }
  .site-header-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .55rem 1rem;
  }
  .site-header-mobile-actions {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-shrink: 0;
  }
  .btn-mobile-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: var(--light-bg);
    color: var(--dark);
    font-size: 1.1rem;
    transition: background .15s, color .15s;
  }
  .btn-mobile-icon:hover,
  .btn-mobile-icon:focus-visible {
    background: var(--primary-light);
    color: var(--primary);
  }
  .btn-mobile-icon.dropdown-toggle::after { display: none; }
  .header-cart-btn--mobile {
    background: var(--light-bg);
    padding: 0;
    border: none;
    border-radius: 10px;
  }
  .site-header-mobile-search {
    padding: 0 1rem .65rem;
  }
  .mobile-search-field {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .5rem .75rem;
    transition: border-color .2s, box-shadow .2s;
  }
  .mobile-search-field:focus-within {
    border-color: var(--primary-muted);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, .1);
  }
  .mobile-search-field > .bi-search { color: var(--gray); font-size: .9rem; flex-shrink: 0; }
  .mobile-search-field input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    font-size: .88rem;
    font-family: inherit;
  }
  .mobile-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: .85rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: background .15s;
  }
  .mobile-search-submit:hover { background: var(--primary-dark); }

  /* Catalog mobile bar (product list) */
  .catalog-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .65rem .85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: .75rem;
    box-shadow: var(--shadow-sm);
  }
  .catalog-mobile-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .85rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--light-bg);
    color: var(--dark);
    font-size: .85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
  }
  .catalog-mobile-bar-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-muted);
    color: var(--primary);
  }
  .catalog-mobile-bar-btn i { color: var(--primary); }
  .catalog-mobile-bar-count {
    font-size: .82rem;
    color: var(--gray);
    white-space: nowrap;
  }
  .catalog-mobile-bar-count strong { color: var(--dark); }

  .list-toolbar--mobile {
    display: flex;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    margin-bottom: 1rem;
  }
  .list-toolbar--mobile .list-toolbar-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: .25rem;
  }
  .list-toolbar--mobile .list-toolbar-filters::-webkit-scrollbar { display: none; }
  .list-toolbar--mobile .filter-pill { flex-shrink: 0; }
}
@media (max-width: 380px) {
  .brand-logo--compact .brand-logo__wordmark { display: none; }
}
.site-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--dark); font-weight: 800; font-size: 1.3rem; flex-shrink: 0; }
.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}
.brand-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
.brand-logo--header {
  gap: .55rem;
  align-items: center;
}
.brand-logo--header .brand-logo__mark {
  height: 46px;
  width: auto;
  flex-shrink: 0;
}
.brand-logo--header .brand-logo__wordmark {
  height: 30px;
  width: auto;
  flex-shrink: 0;
}
.brand-logo--compact.brand-logo--header .brand-logo__mark { height: 38px; }
.brand-logo--compact.brand-logo--header .brand-logo__wordmark { height: 24px; }
.brand-logo--horizontal img { height: 52px; width: auto; }
.brand-logo--stacked img { width: 108px; max-width: 100%; }
.brand-logo--icon img { width: 44px; height: 44px; }
.brand-logo--dark img { width: 132px; max-width: 100%; }
.brand-logo--footer.brand-logo--header { gap: .5rem; }
.brand-logo--footer.brand-logo--header .brand-logo__mark { height: 40px; }
.brand-logo--footer.brand-logo--header .brand-logo__wordmark { height: 26px; }
.brand-logo--logotype img { height: 32px; width: auto; }
.brand-logo--auth img { width: 72px; }
.brand-logo--auth-page { display: flex; justify-content: center; }
.brand-logo--auth-page img { width: 96px; }
.brand-logo--about img { width: 140px; }
.site-logo-mark {
  width: 42px; height: 42px;
  background: var(--accent);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .15);
  position: relative;
}
.site-logo-mark::after {
  content: '';
  position: absolute;
  bottom: 5px; left: 5px;
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
}
.site-logo-mark--sm { width: 36px; height: 36px; font-size: 1rem; }
.site-logo-name--accent { color: var(--primary); }
.site-header-actions { display: flex; align-items: center; gap: .5rem; margin-right: auto; }
.header-actions-divider { width: 1px; height: 28px; background: var(--border); }
.header-auth-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 10px; text-decoration: none; color: var(--dark); background: var(--light-bg); font-size: .9rem; border: 1px solid transparent; transition: all .2s; cursor: pointer; font: inherit; }
.header-auth-btn:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary-muted); }
.header-auth-sep { opacity: .4; margin: 0 .2rem; }
.header-cart-btn { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .9rem; border-radius: 10px; text-decoration: none; color: var(--dark); background: var(--light-bg); border: 1px solid transparent; transition: all .2s; cursor: pointer; font: inherit; }
.header-cart-btn:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary-muted); }
.cart-drawer-trigger:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.header-cart-icon-wrap { position: relative; }
.cart-badge { position: absolute; top: -6px; left: -6px; background: #ef4444; color: #fff; font-size: .65rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.header-cart-divider { width: 1px; height: 20px; background: #cbd5e1; }
.header-cart-total small { font-size: .75rem; }

/* Search */
.header-search-form { flex: 1; max-width: 520px; position: relative; }
.header-search-field { display: flex; align-items: center; gap: .5rem; background: var(--light-bg); border: 1px solid var(--border); border-radius: 12px; padding: .55rem 1rem; transition: border-color .2s, box-shadow .2s; }
.header-search-field:focus-within { border-color: var(--primary-muted); box-shadow: 0 0 0 3px rgba(249, 115, 22, .1); }
.header-search-field input { border: none; background: transparent; flex: 1; outline: none; font-size: .9rem; }
.header-search-clear { border: none; background: transparent; font-size: 1.2rem; color: var(--gray); cursor: pointer; }
.header-search-dropdown { position: absolute; top: calc(100% + 6px); right: 0; left: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); z-index: 1050; max-height: 400px; overflow: auto; }
.header-search-item { display: flex; gap: .75rem; padding: .75rem 1rem; text-decoration: none; color: inherit; border-bottom: 1px solid var(--border); }
.header-search-item:hover { background: var(--primary-light); }
.header-search-item-body { flex: 1; min-width: 0; }
.header-search-item-title { display: block; font-weight: 600; font-size: .9rem; }
.header-search-item-sku { display: block; font-size: .75rem; color: var(--gray); }
.header-search-item-thumb { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.header-search-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.header-search-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--light-bg); color: var(--gray); }
.header-search-price { color: var(--primary); font-weight: 700; }
.header-search-price-old { text-decoration: line-through; color: var(--gray); font-size: .8rem; margin-left: .5rem; }
.header-search-empty { padding: 1rem; text-align: center; color: var(--gray); margin: 0; }
.header-search-all { display: block; padding: .75rem; text-align: center; color: var(--primary); font-weight: 600; text-decoration: none; border-top: 1px solid var(--border); }

/* Horizontal nav */
.horiz-cat-nav--bar {
  border-top: 1px solid var(--border);
  padding: 0;
  position: relative;
  background: var(--surface);
}
.horiz-cat-nav--bar::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0; left: 0;
  height: 1px;
  background: var(--border);
  opacity: 1;
}
.horiz-cat-nav-scroll { overflow: visible; }
.horiz-cat-list { display: flex; flex-wrap: nowrap; gap: 0; list-style: none; margin: 0; padding: 0; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.horiz-cat-list::-webkit-scrollbar { display: none; }
.horiz-cat-item { position: relative; flex-shrink: 0; }
.horiz-cat-divider { width: 1px; height: 24px; background: var(--border); align-self: center; margin: 0 .35rem; flex-shrink: 0; }
.horiz-cat-link {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .7rem .9rem; border-radius: 0;
  text-decoration: none; color: #57534e;
  font-size: .84rem; font-weight: 500;
  transition: color .2s, background .2s;
  border: none; background: transparent; cursor: pointer;
  white-space: nowrap; height: 100%;
  position: relative;
}
.horiz-cat-link--animated::after {
  content: '';
  position: absolute;
  bottom: 0; right: .75rem; left: .75rem;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .25s ease;
}
.horiz-cat-link--animated:hover::after,
.horiz-cat-link--animated:focus-visible::after { transform: scaleX(1); }
.horiz-cat-link:hover, .horiz-cat-link:focus-visible { color: var(--primary); background: var(--accent-soft); }
.horiz-cat-link:hover .horiz-cat-icon { color: var(--primary); transform: translateY(-1px); }
.horiz-cat-link--categories { font-weight: 600; color: var(--dark); padding-right: 1rem; }
.horiz-cat-link--categories:hover, .horiz-cat-mega-wrap.is-open .horiz-cat-link--categories { color: var(--primary); background: var(--accent-soft); }
.horiz-cat-link--sale {
  color: #dc2626;
  font-weight: 600;
  background: transparent;
}
.horiz-cat-link--sale:hover, .horiz-cat-sale-wrap.is-open .horiz-cat-link--sale {
  color: #b91c1c;
  background: #fef2f2;
}
.horiz-cat-link--sale .horiz-cat-icon { color: #ef4444; }
.nav-live-dot {
  width: 7px; height: 7px;
  background: #ef4444;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, .5);
  animation: navLivePulse 2s infinite;
}
@keyframes navLivePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .45); }
  50% { box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
}
.horiz-cat-icon { font-size: .95rem; color: #a8a29e; transition: color .2s, transform .2s; }
.horiz-cat-link:hover .horiz-cat-icon, .horiz-cat-link--categories .horiz-cat-icon { color: var(--primary); }

/* Nav sale dropdown */
.horiz-cat-sale-wrap { position: static; }
.nav-sale-panel {
  position: absolute;
  top: 100%;
  right: 0;
  width: min(520px, 92vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  padding: 1rem;
}
.nav-sale-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .85rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  font-weight: 700;
  color: var(--dark);
}
.nav-sale-panel-head span i { color: #ea580c; margin-left: .3rem; }
.nav-sale-panel-head a {
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.nav-sale-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.nav-sale-item {
  display: flex;
  gap: .65rem;
  padding: .55rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .15s;
}
.nav-sale-item:hover {
  background: #fff7ed;
  border-color: #fed7aa;
  transform: translateY(-2px);
}
.nav-sale-item-img {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--light-bg);
}
.nav-sale-item-img img { width: 100%; height: 100%; object-fit: cover; }
.nav-sale-item-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: #ef4444;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  padding: .1rem .35rem;
  border-radius: 4px;
}
.nav-sale-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.nav-sale-item-name { font-size: .78rem; font-weight: 600; color: var(--dark); line-height: 1.4; }
.nav-sale-item-price { font-size: .82rem; font-weight: 800; color: #dc2626; }
.nav-sale-item-price small { font-weight: 500; font-size: .68rem; }
.nav-sale-item-old { font-size: .7rem; color: var(--gray); text-decoration: line-through; }

/* Mega menu */
.horiz-cat-mega-wrap { position: static; }
.cat-mega-panel {
  position: absolute; top: 100%; right: 0; left: 0;
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(28, 25, 23, .1);
  z-index: 1050;
}
.cat-mega-inner {
  display: flex; max-width: 1320px; margin: 0 auto;
  min-height: 380px; max-height: 70vh;
}
.cat-mega-sidebar {
  width: 240px; flex-shrink: 0;
  border-left: 1px solid var(--border);
  padding: .5rem 0; overflow-y: auto;
  background: var(--light-bg);
}
.cat-mega-sidebar-item {
  display: flex; align-items: center; gap: .55rem;
  padding: .7rem 1rem; text-decoration: none;
  color: #57534e; font-size: .84rem; font-weight: 500;
  transition: background .15s, color .15s;
  border-right: 3px solid transparent;
}
.cat-mega-sidebar-item:hover, .cat-mega-sidebar-item.is-active {
  background: #fff; color: var(--primary);
  border-right-color: var(--primary);
}
.cat-mega-sidebar-icon { font-size: 1rem; color: #a8a29e; width: 20px; text-align: center; }
.cat-mega-sidebar-item.is-active .cat-mega-sidebar-icon,
.cat-mega-sidebar-item:hover .cat-mega-sidebar-icon { color: var(--primary); }
.cat-mega-sidebar-label { flex: 1; }
.cat-mega-sidebar-chevron { font-size: .7rem; opacity: .4; }
.cat-mega-content { flex: 1; padding: 1.25rem 1.5rem; overflow-y: auto; position: relative; }
.cat-mega-pane { display: none; }
.cat-mega-pane.is-active { display: block; animation: catMegaFade .2s ease; }
@keyframes catMegaFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.cat-mega-view-all {
  display: inline-flex; align-items: center; gap: .3rem;
  color: var(--primary); font-weight: 600; font-size: .88rem;
  text-decoration: none; margin-bottom: 1.25rem;
}
.cat-mega-view-all:hover { color: var(--primary-dark); }
.cat-mega-columns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem 2rem;
}
.cat-mega-col-title {
  display: flex; align-items: center; gap: .45rem;
  font-weight: 700; font-size: .85rem; color: var(--dark);
  text-decoration: none; margin-bottom: .65rem;
}
.cat-mega-col-title:hover { color: var(--primary); }
.cat-mega-col-bar { width: 3px; height: 14px; background: var(--primary); border-radius: 2px; flex-shrink: 0; }
.cat-mega-col-links { list-style: none; margin: 0; padding: 0; }
.cat-mega-col-links li { margin-bottom: .35rem; }
.cat-mega-col-links a {
  color: var(--gray); text-decoration: none; font-size: .82rem;
  transition: color .15s;
}
.cat-mega-col-links a:hover { color: var(--primary); }
.cat-mega-fallback-desc { color: var(--gray); font-size: .88rem; margin-bottom: 1rem; }
.cat-mega-brands { display: flex; flex-wrap: wrap; gap: .5rem; }
.cat-mega-brand-chip {
  padding: .35rem .75rem; border-radius: 20px;
  background: var(--light-bg); color: #57534e;
  text-decoration: none; font-size: .8rem;
  border: 1px solid var(--border);
  transition: background .15s, color .15s, border-color .15s;
}
.cat-mega-brand-chip:hover { background: var(--primary-light); color: var(--primary); }

/* Legacy mega dropdown (mobile / other) */
.nav-mega-dropdown {
  min-width: 280px; max-width: 520px;
  padding: .5rem; border-radius: var(--radius);
  margin-top: .35rem !important;
}
.nav-mega-all { font-weight: 600; color: var(--primary) !important; }
.nav-mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem; }
.nav-mega-grid--brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nav-mega-item {
  display: flex !important; align-items: center; gap: .45rem;
  border-radius: 6px; font-size: .85rem; white-space: nowrap;
}
.nav-mega-item i { color: var(--primary); font-size: .95rem; }

/* Catalog mobile */
.btn-catalog-trigger { border: none; background: var(--primary-light); color: var(--primary); width: 40px; height: 40px; border-radius: 8px; }
.catalog-offcanvas-header { border-bottom: 1px solid var(--border); }
.catalog-search { padding: 1rem; border-bottom: 1px solid var(--border); }
.catalog-search-btn { background: var(--primary); color: #fff; }
.catalog-row { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1rem; text-decoration: none; color: inherit; border-bottom: 1px solid #f8fafc; }
.catalog-row:hover { background: var(--primary-light); }
.catalog-row-start { display: flex; align-items: center; gap: .6rem; }
.catalog-icon { color: var(--primary); }
.catalog-section-label {
  padding: .75rem 1rem .35rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.catalog-menu-footer { border-top: 1px solid var(--border); margin-top: .5rem; }
.catalog-footer-item { display: flex; align-items: center; gap: .5rem; padding: .85rem 1rem; text-decoration: none; color: inherit; }
.catalog-row--accent .catalog-row-title { color: #c2410c; font-weight: 600; }
.catalog-row--accent .catalog-icon { color: #ea580c; }
.catalog-accordion-item { border-bottom: 1px solid #f8fafc; }
.catalog-accordion-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: .85rem 1rem; border: none; background: transparent;
  text-align: right; color: inherit; cursor: pointer;
}
.catalog-accordion-btn:hover { background: var(--primary-light); }
.catalog-accordion-chevron { font-size: .75rem; color: var(--gray); transition: transform .2s; }
.catalog-accordion-btn[aria-expanded="true"] .catalog-accordion-chevron { transform: rotate(180deg); }
.catalog-accordion-body { padding: .25rem 1rem .75rem 2.5rem; background: var(--light-bg); }
.catalog-sub-link { display: block; padding: .45rem 0; color: var(--gray); text-decoration: none; font-size: .88rem; }
.catalog-sub-link:hover { color: var(--primary); }
.catalog-sub-link--all { font-weight: 600; color: var(--primary); margin-bottom: .25rem; }
.catalog-brands-row { display: flex; flex-wrap: wrap; gap: .4rem; padding: .5rem 1rem 1rem; }
.catalog-brand-chip {
  padding: .3rem .65rem; border-radius: 16px; background: var(--light-bg);
  color: #57534e; text-decoration: none; font-size: .78rem;
  border: 1px solid var(--border);
}
.catalog-brand-chip:hover { background: var(--primary-light); color: var(--primary); }

/* Sidebar — Redesigned */
.catalog-sidebar-wrap {
  position: sticky;
  top: var(--site-sticky-top, 132px);
  z-index: 20;
  max-height: calc(100vh - var(--site-sticky-top, 132px) - 1.25rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.catalog-sidebar {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.catalog-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .85rem 1rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, #f0f9ff 100%);
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
  font-weight: 700;
  color: var(--dark);
}
.catalog-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: .6rem .5rem;
}
.catalog-sidebar-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .65rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: #57534e;
  font-size: .88rem;
  line-height: 1.4;
  transition: all .2s ease;
  position: relative;
  overflow: hidden;
}
.catalog-sidebar-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity .2s ease;
  background: linear-gradient(135deg, var(--primary-light), transparent);
}
.catalog-sidebar-link:hover::before {
  opacity: 1;
}

/* Category icon/image wrapper */
.cat-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f5f5f4;
  border: 1px solid #e7e5e4;
  overflow: hidden;
  position: relative;
  z-index: 1;
  transition: all .2s ease;
}
.cat-icon-wrap i {
  font-size: 1.2rem;
  color: #78716c;
  transition: color .2s ease;
}
.cat-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-icon-wrap--all {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: #bfdbfe;
}
.cat-icon-wrap--all i {
  color: var(--primary);
  font-size: 1.1rem;
}

/* Category info area */
.cat-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  position: relative;
  z-index: 1;
}
.cat-name {
  font-size: .88rem;
  font-weight: 600;
  color: #292524;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-count {
  font-size: .72rem;
  color: #a8a29e;
  font-weight: 500;
}

/* Arrow indicator */
.cat-arrow {
  font-size: .75rem !important;
  color: #d6d3d1;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: transform .2s ease, color .2s ease;
}

/* Hover state */
.catalog-sidebar-link:hover {
  background: transparent;
  color: var(--primary);
  transform: translateX(-2px);
}
.catalog-sidebar-link:hover .cat-icon-wrap {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, .15);
}
.catalog-sidebar-link:hover .cat-icon-wrap i {
  color: var(--primary);
}
.catalog-sidebar-link:hover .cat-name {
  color: var(--primary);
}
.catalog-sidebar-link:hover .cat-arrow {
  transform: translateX(-3px);
  color: var(--primary);
}

/* Active state */
.catalog-sidebar-link.active {
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--primary);
  background: linear-gradient(90deg, var(--primary-light), transparent 70%);
}
.catalog-sidebar-link.active .cat-icon-wrap {
  border-color: var(--primary);
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  box-shadow: 0 2px 8px rgba(37, 99, 235, .2);
}
.catalog-sidebar-link.active .cat-icon-wrap i {
  color: var(--primary);
}
.catalog-sidebar-link.active .cat-name {
  color: var(--primary);
}
.catalog-sidebar-link.active .cat-count {
  color: #6b7280;
}
.catalog-sidebar-link.active .cat-arrow {
  color: var(--primary);
  transform: translateX(-3px);
}

/* Brands section */
.catalog-sidebar-brands {
  border-top: 1px solid var(--border);
  padding: .85rem 1rem 1rem;
  background: #fafaf9;
}
.catalog-sidebar-brands-title {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .65rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--dark);
}
.catalog-sidebar-brands-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.catalog-brand-chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
@media (max-width: 991.98px) {
  .catalog-sidebar-wrap {
    position: static;
    max-height: none;
    overflow: visible;
    margin-bottom: .5rem;
  }
}
.catalog-sidebar-divider { height: 1px; background: var(--border); margin: .5rem 1rem; }

/* Page */
.page-header {
  background: var(--page-hero-gradient);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(249, 115, 22, .08) 0%, transparent 70%);
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-title, .section-title { font-weight: 800; letter-spacing: -.02em; }
.section-title::after { content: ''; display: block; width: 48px; height: 3px; background: linear-gradient(90deg, var(--primary), #fb923c); border-radius: 2px; margin-top: .4rem; }
.breadcrumb { --bs-breadcrumb-divider-color: var(--gray); font-size: .85rem; }
.breadcrumb-item a { color: var(--gray); text-decoration: none; transition: color .15s; }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--dark); font-weight: 500; }
.breadcrumb-item + .breadcrumb-item::before { float: right; padding-left: .5rem; }

/* Modern form controls */
.form-select, .form-control {
  border-radius: var(--radius-sm);
  border-color: var(--border);
  transition: border-color .2s, box-shadow .2s;
}
.form-select:focus, .form-control:focus {
  border-color: var(--primary-muted);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .1);
}

/* Sidebar cards (legacy includes) */
.sidebar-card {
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-sm) !important;
  overflow: hidden;
}
.sidebar-card .card-header {
  background: var(--light-bg) !important;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  padding: .85rem 1rem;
}

/* Product list toolbar */
.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.list-toolbar-count {
  font-size: .9rem;
  color: var(--gray);
  white-space: nowrap;
}
.list-toolbar-count strong {
  color: var(--dark);
  font-weight: 800;
}
.list-toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: .15rem;
  scrollbar-width: thin;
}
.list-toolbar-filters::-webkit-scrollbar { height: 4px; }
.list-toolbar-filters::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .85rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--gray);
  background: var(--light-bg);
  transition: all .15s;
}
.filter-pill:hover, .filter-pill.is-active {
  background: var(--primary-light);
  border-color: var(--primary-muted);
  color: var(--primary);
}
.filter-pill.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-pill.is-active .filter-pill-count { color: rgba(255, 255, 255, .85); }
.filter-pill-count {
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray);
  margin-right: .15rem;
}

/* Pagination */
.pagination .page-link {
  border-radius: var(--radius-sm) !important;
  margin: 0 .15rem;
  border: 1px solid var(--border);
  color: var(--gray);
  font-size: .88rem;
  padding: .45rem .75rem;
  transition: all .15s;
}
.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(249, 115, 22, .25);
}
.pagination .page-link:hover { background: var(--primary-light); border-color: var(--primary-muted); color: var(--primary); }

/* Empty state */
.empty-state {
  padding: 3rem 1.5rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.empty-state-icon {
  width: 80px; height: 80px;
  margin: 0 auto .5rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light);
  border-radius: 50%;
  color: var(--primary);
  font-size: 2rem;
}
.empty-state h4 { font-weight: 700; color: var(--dark); }

/* Blog cards */
.blog-card {
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md) !important; }
.blog-card-img-wrap { display: block; overflow: hidden; }
.blog-card-img { height: 180px; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-card-img { transform: scale(1.05); }
.blog-card .card-body { padding: 1.1rem 1.25rem 1.25rem; }
.blog-card-title { font-size: 1rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-title a { color: var(--dark); transition: color .15s; }
.blog-card:hover .blog-card-title a { color: var(--primary); }
.read-more { color: var(--primary); text-decoration: none; font-weight: 600; font-size: .88rem; display: inline-flex; align-items: center; gap: .3rem; }
.read-more:hover { color: var(--primary-dark); }

/* Feature cards (about, etc.) */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-muted); }
.feature-card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff;
  margin-bottom: 1rem;
  box-shadow: 0 4px 14px rgba(28, 25, 23, .12);
}
.feature-card-icon-1 { background: linear-gradient(135deg, #ea580c, #fb923c); }
.feature-card-icon-2 { background: linear-gradient(135deg, #d97706, #fbbf24); }
.feature-card-icon-3 { background: linear-gradient(135deg, #c2410c, #f97316); }
.feature-card-icon-4 { background: linear-gradient(135deg, #059669, #34d399); }
.feature-card h6 { font-weight: 700; margin-bottom: .5rem; }

/* Cart */
.cart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.cart-item-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.cart-item-row:last-child { border-bottom: none; }
.cart-item-row:hover { background: var(--light-bg); }
.cart-item-img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; border: 1px solid var(--border); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: .92rem; color: var(--dark); text-decoration: none; display: block; margin-bottom: .2rem; }
.cart-item-name:hover { color: var(--primary); }
.cart-item-price { font-size: .82rem; color: var(--gray); }
.cart-item-qty { width: 70px; }
.cart-item-total { font-weight: 700; color: var(--primary); white-space: nowrap; min-width: 100px; text-align: left; }
.cart-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}
.cart-summary-card h5 { font-weight: 800; margin-bottom: 1.25rem; }
.cart-summary-total { font-size: 1.15rem; font-weight: 800; color: var(--primary); }

/* Auth page backdrop */
.auth-page-wrap {
  min-height: 60vh;
  display: flex; align-items: center;
  background: var(--page-hero-gradient);
  position: relative;
  overflow: hidden;
}
.auth-page-wrap::before {
  content: '';
  position: absolute;
  top: 10%; right: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(249, 115, 22, .06) 0%, transparent 70%);
  pointer-events: none;
}
.auth-card {
  position: relative; z-index: 1;
  border-radius: var(--radius-lg) !important;
}

/* ============ Unified product card (.pc-*) — list, home, strips, related ============ */
.pc-card {
  --pc-card-width: 100%;
  --pc-card-height: 300px;
  --pc-media-height: 148px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-height: var(--pc-card-height);
  transition: background .15s, border-color .15s;
}
.pc-card:hover { border-color: #e0e0e0; }
.pc-card--strip {
  --pc-card-width: 182px;
  --pc-card-height: 292px;
  --pc-strip-promo-height: 0px;
  flex: 0 0 var(--pc-card-width);
  width: var(--pc-card-width);
  min-height: var(--pc-card-height);
  height: var(--pc-card-height);
  max-height: var(--pc-card-height);
  position: relative;
  border: none;
  border-radius: 0;
  border-inline-start: none;
  scroll-snap-align: start;
  box-shadow: none;
}
.pc-card--strip-sale {
  --pc-strip-promo-height: 38px;
}
.pc-card--strip:not(:first-child)::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 10%;
  bottom: 10%;
  width: 2px;
  background: #c8c8c8;
  z-index: 1;
  pointer-events: none;
}
.pc-card--strip:first-child { border-inline-start: none; }
.pc-card--strip:hover {
  background: #fafafa;
  transform: none;
  box-shadow: none;
}
.pc-card--strip .pc-brand { display: none; }
.pc-strip-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .35rem;
  padding: .45rem .75rem .3rem;
  min-height: var(--pc-strip-promo-height);
}
.pc-strip-promo-timer {
  font-size: .78rem;
  font-weight: 700;
  color: #dc2626;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  letter-spacing: .02em;
}
.pc-strip-promo-label {
  font-size: .72rem;
  font-weight: 700;
  color: #dc2626;
}
.pc-strip-promo-line {
  height: 3px;
  background: #dc2626;
  margin: 0 .75rem;
}
.pc-card--strip .pc-media {
  --pc-media-height: 140px;
}
.pc-card--strip-sale .pc-media {
  --pc-media-height: calc(140px - var(--pc-strip-promo-height) - 3px);
}
.pc-price--strip .pc-price-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: .3rem;
  width: 100%;
}
.pc-price--strip .pc-price-current {
  font-size: .88rem;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
}
.pc-price--strip .pc-price-current small {
  font-size: .62rem;
}
.pc-price--strip .pc-price-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: .1rem .3rem;
  background: #dc2626;
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  border-radius: 4px;
  line-height: 1.2;
  flex-shrink: 0;
}
.pc-price--strip .pc-price-old {
  font-size: .68rem;
  margin-top: 0;
  min-height: 1.05em;
  line-height: 1.05;
}
.pc-media {
  position: relative;
  flex: 0 0 var(--pc-media-height);
  height: var(--pc-media-height);
  overflow: hidden;
  background: #fff;
  padding: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pc-media-link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.pc-img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.pc-card:not(.pc-card--strip):hover .pc-img { transform: scale(1.03); }
.pc-badges { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; z-index: 2; max-width: calc(100% - 12px); }
.pc-badge { display: inline-flex; align-items: center; gap: .25rem; font-size: .66rem; font-weight: 700; padding: .2rem .5rem; border-radius: 6px; line-height: 1.35; white-space: nowrap; }
.pc-badge-sale { background: #dc2626; color: #fff; }
.pc-badge-featured { background: var(--primary); color: #fff; }
.pc-badge-oos { background: rgba(28,25,23,.75); color: #fff; }

/* ── برچسب‌های سفارشی محصول (کنترل از ادمین) ── */
.pc-label-rail {
  position: absolute;
  left: 8px;
  z-index: 2;
  pointer-events: none;
  max-width: calc(100% - 16px);
}
.pc-card:not(.pc-card--strip) .pc-label-rail {
  top: 8px;
  max-width: min(58%, calc(100% - 52px));
}
.pc-card--strip .pc-label-rail {
  position: relative;
  inset: auto;
  left: auto;
  bottom: auto;
  top: auto;
  margin: 0 0 .2rem;
  max-width: 100%;
  z-index: 1;
  min-height: 1.15rem;
}

.product-labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 4px;
  max-width: 100%;
}

.product-label {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  font-size: .62rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .01em;
  max-width: 100%;
  pointer-events: auto;
  --label-bg: #fff7ed;
  --label-fg: #c2410c;
}

.product-label i {
  font-size: .68rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: .88;
}

.product-label-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-label--soft {
  padding: .24rem .52rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--label-bg) 86%, white);
  color: var(--label-fg);
  border: 1px solid color-mix(in srgb, var(--label-fg) 14%, transparent);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(6px);
}

.product-label--solid {
  padding: .22rem .5rem;
  border-radius: 999px;
  background: var(--label-fg);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--label-fg) 30%, transparent);
}

.product-label--outline {
  padding: .22rem .48rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--label-fg);
  border: 1.5px solid color-mix(in srgb, var(--label-fg) 50%, transparent);
  backdrop-filter: blur(4px);
}

.product-label--accent {
  padding: .22rem .5rem .22rem .36rem;
  border-radius: 3px 999px 999px 3px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--label-fg) 10%, white) 0%,
    color-mix(in srgb, var(--label-bg) 88%, white) 100%
  );
  color: var(--label-fg);
  border: 1px solid color-mix(in srgb, var(--label-fg) 16%, transparent);
  box-shadow: inset 3px 0 0 var(--label-fg);
}

.pc-card--strip .product-labels { gap: 2px; }
.pc-card--strip .product-label { font-size: .5rem; }
.pc-card--strip .product-label--soft,
.pc-card--strip .product-label--solid,
.pc-card--strip .product-label--outline,
.pc-card--strip .product-label--accent {
  padding: .1rem .28rem;
}
.pc-card--strip .product-label:nth-child(n+2) { display: none; }

.pc-quick-cart-form { position: absolute; bottom: 8px; left: 8px; z-index: 2; margin: 0; }
.pc-quick-cart {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid #ececec;
  background: #fff; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(28,25,23,.1);
  opacity: 0; transform: translateY(6px);
  transition: opacity .2s, transform .2s, background .2s, color .2s;
  font-size: .95rem;
}
.pc-card:not(.pc-card--strip):hover .pc-quick-cart { opacity: 1; transform: translateY(0); }
.pc-quick-cart:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
@media (max-width: 767px) { .pc-quick-cart { opacity: 1; transform: none; } }
.pc-body {
  padding: .75rem .9rem .9rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.pc-brand {
  font-size: .72rem;
  color: var(--gray);
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
a.pc-brand:hover { color: var(--primary); }
.pc-title {
  font-size: .88rem;
  line-height: 1.45;
  margin: .25rem 0 0;
  font-weight: 600;
  flex: 1;
  min-height: 2.9em;
}
.pc-title a,
.pc-title span {
  color: var(--dark);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-title a:hover { color: var(--primary); }
.pc-card--strip .pc-title {
  min-height: 2.4em;
  margin-top: 0;
}
.pc-card--strip .pc-price {
  padding-top: .25rem;
  gap: .06rem;
  min-height: 2.85rem;
  justify-content: flex-end;
}
.pc-rating { display: flex; align-items: center; gap: .15rem; color: #f59e0b; font-size: .72rem; margin: .25rem 0; }
.pc-rating i { font-size: .72rem; }
.pc-rating-count { color: var(--gray); font-size: .7rem; margin-right: .25rem; }
.pc-price { margin-top: auto; padding-top: .45rem; display: flex; flex-direction: column; gap: .12rem; }
.pc-price-old { text-decoration: line-through; color: var(--gray); font-size: .76rem; line-height: 1.2; }
.pc-price-current { font-weight: 800; font-size: 1.08rem; color: var(--dark); line-height: 1.25; }
.pc-price-current small { font-weight: 600; font-size: .78rem; color: var(--gray); }
.pc-price-current--sale { color: #1c1917; }
.pc-savings { display: inline-block; margin-top: .1rem; font-size: .66rem; font-weight: 700; color: #15803d; background: #f0fdf4; padding: .1rem .4rem; border-radius: 5px; width: fit-content; }
.pc-urgency { display: flex; align-items: center; gap: .3rem; font-size: .72rem; color: #dc2626; font-weight: 700; margin-top: .4rem; }
.pc-urgency i { animation: pcPulse 1.4s infinite; }
@keyframes pcPulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* Horizontal product strips — white track with dividers */
.product-strip-track {
  display: flex;
  align-items: stretch;
  gap: 0 !important;
  padding: 0 !important;
  background: #fff;
  border: 2px solid #c8c8c8;
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.home-strip-box .product-strip-track {
  border: none;
  border-radius: 0;
}
.product-strip-track::-webkit-scrollbar { display: none; }

.cart-item-img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.product-detail-img { max-height: 480px; object-fit: contain; background: var(--light-bg); }
.price-box { background: var(--primary-light); border: 1px solid var(--primary-muted); }
.spec-row, .product-specs .spec-row { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.spec-row span { color: var(--gray); }
.spec-table td:first-child { color: var(--gray); width: 40%; }

/* Auth */
.auth-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 2rem; max-width: 480px; margin: 0 auto; border: 1px solid var(--border); }
.auth-card-header-icon { width: 64px; height: 64px; background: var(--primary-light); color: var(--primary); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: .5rem; }
.account-avatar { width: 80px; height: 80px; object-fit: cover; }
.account-avatar-placeholder { width: 80px; height: 80px; background: var(--primary-light); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.account-sidebar .list-group-item.active { background: var(--primary); border-color: var(--primary); }
.profile-address-card--default { box-shadow: 0 0 0 2px var(--primary-muted, #fed7aa) !important; }
.profile-address-empty { background: var(--light-bg, #f9fafb); border-radius: 12px; }
#addresses { scroll-margin-top: 6rem; }

/* Blog article */
.blog-article-img { max-height: 360px; object-fit: cover; border-radius: var(--radius); }
.blog-content { line-height: 1.9; }

/* Contact */
.contact-info-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 2rem; border: 1px solid var(--border); }
.contact-form-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.social-link { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.social-link:hover { background: var(--primary); color: #fff; }

/* Footer */
.site-footer {
  background: #0f172a;
  color: #e2e8f0;
}
.footer-top { padding: 2.4rem 0 1.6rem; }
.footer-heading { color: #fff; font-weight: 800; margin-bottom: 1rem; }
.footer-brand { line-height: 0; }
.footer-logo-plate {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: .7rem .95rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.footer-text { color: #cbd5e1; margin: .85rem 0 0; line-height: 1.8; }
.about-brand { line-height: 0; }
.footer-links a, .footer-contact a { color: #e2e8f0; text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fb923c; }
.footer-links li, .footer-contact li { margin-bottom: .55rem; color: #e2e8f0; }
.footer-contact i { color: #fb923c; margin-left: .35rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  color: #94a3b8;
  background: #0b1220;
}

.footer-ecosystem {
  background: #1e293b;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 1.6rem 0 1.5rem;
}
.footer-eco-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.footer-eco-kicker {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: #fb923c;
  margin-bottom: .15rem;
}
.footer-eco-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}
.footer-eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .75rem;
}
.footer-eco-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-height: 118px;
  padding: .9rem .9rem .8rem;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  background: #0f172a;
  transition: transform .2s ease, border-color .2s ease;
}
.footer-eco-card:hover {
  transform: translateY(-3px);
  border-color: #fb923c;
  color: #fff;
}
.footer-eco-icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
  font-size: 1.1rem;
}
.footer-eco-icon img { width: 100%; height: 100%; object-fit: cover; }
.footer-eco-name { font-weight: 800; font-size: .92rem; line-height: 1.35; }
.footer-eco-go {
  margin-top: auto;
  font-size: .74rem;
  font-weight: 700;
  color: #fdba74;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.footer-trust {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer-trust-head { margin-bottom: .85rem; }
.footer-trust-kicker {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  color: #fb923c;
}
.footer-trust-head strong { color: #fff; font-size: .95rem; }
.footer-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}
.footer-trust-item {
  background: #fff;
  border-radius: 12px;
  padding: .45rem .65rem;
  min-height: 72px;
  min-width: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-trust-item img {
  max-height: 64px;
  max-width: 88px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.footer-trust-item a { display: inline-flex; align-items: center; justify-content: center; color: #0f172a; text-decoration: none; }
.footer-trust-item span { font-size: .78rem; font-weight: 700; color: #0f172a; }

/* Cart summary sticky */
.cart-summary { position: sticky; top: 100px; }

/* ============ Trust stats bar (social proof) ============ */
.trust-stats-section { background: var(--surface); padding: 2.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.trust-stat { padding: 1rem; border-radius: var(--radius); background: var(--light-bg); border: 1px solid var(--border); }
.trust-stat-num { font-size: 1.75rem; font-weight: 800; color: var(--dark); display: flex; align-items: center; justify-content: center; gap: .25rem; }
.trust-stat-num .bi { font-size: 1.1rem; color: var(--primary); }
.trust-stat-label { font-size: .82rem; color: var(--gray); margin-top: .35rem; }
@media (max-width: 767px) {
  .trust-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .trust-stat-num { font-size: 1.5rem; }
}

/* ============ Testimonials ============ */
.testimonial-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; height: 100%; position: relative; transition: transform .2s, box-shadow .2s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-quote-icon { color: var(--primary-muted); font-size: 1.8rem; position: absolute; top: 1.1rem; left: 1.25rem; }
.testimonial-stars { color: #f59e0b; font-size: .82rem; margin-bottom: .75rem; }
.testimonial-text { color: #44403c; font-size: .92rem; line-height: 1.8; margin-bottom: 1.25rem; min-height: 4.8em; }
.testimonial-author { display: flex; align-items: center; gap: .65rem; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: .95rem;
}
.testimonial-name { font-weight: 700; font-size: .88rem; color: var(--dark); }
.testimonial-role { font-size: .74rem; color: var(--gray); }

/* ============ Sticky mobile buy bar ============ */
.sticky-buy-bar {
  position: fixed; bottom: 0; right: 0; left: 0; z-index: 1040;
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(28,25,23,.08);
  padding: .65rem 1rem; display: flex; align-items: center; gap: .75rem;
  transform: translateY(100%); transition: transform .25s ease;
}
.sticky-buy-bar.is-visible { transform: translateY(0); }
@supports selector(:has(*)) {
  body:has(.sticky-buy-bar.is-visible) { padding-bottom: 72px; }
}
.sticky-buy-price { flex: 1; min-width: 0; }
.sticky-buy-price-current { font-weight: 800; color: var(--primary); font-size: 1rem; display: block; }
.sticky-buy-price-old { font-size: .72rem; color: var(--gray); text-decoration: line-through; }
.sticky-buy-btn { flex-shrink: 0; }

/* ============ Trust badges row (product detail) ============ */
.trust-badges-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.trust-badge-chip {
  display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: #44403c;
  background: var(--light-bg); border: 1px solid var(--border); border-radius: 20px; padding: .4rem .8rem;
}
.trust-badge-chip i { color: var(--primary); font-size: .9rem; }

@media (max-width: 991px) {
  .header-cart-total { font-size: .85rem; }
}

/* ============ Cart drawer (compact mini cart) ============ */
body.cart-drawer-open { overflow: hidden; }

.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: rgba(15, 23, 42, .2);
  opacity: 0;
  transition: opacity .2s ease;
}
.cart-drawer-backdrop.is-visible { opacity: 1; }

.cart-drawer {
  position: fixed;
  top: 4.5rem;
  left: 1rem;
  z-index: 1070;
  width: min(320px, calc(100vw - 2rem));
  max-height: min(420px, calc(100vh - 6rem));
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px) scale(.97);
  transition: opacity .22s ease, transform .22s ease;
}
.cart-drawer.is-open {
  pointer-events: auto;
  opacity: 1;
  transform: none;
}

.cart-drawer-panel {
  display: flex;
  flex-direction: column;
  max-height: min(420px, calc(100vh - 6rem));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .16);
  overflow: hidden;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .55rem .75rem;
  border-bottom: 1px solid var(--border);
  background: var(--light-bg);
  flex-shrink: 0;
}
.cart-drawer-header h2 {
  font-size: .88rem;
  font-weight: 800;
  margin: 0;
  color: var(--dark);
}
.cart-drawer-header-count {
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray);
}
.cart-drawer-close {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background .15s, color .15s;
}
.cart-drawer-close:hover { background: #fef2f2; color: #dc2626; }

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cart-drawer-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-drawer-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .75rem;
  border-bottom: 1px solid var(--border);
}
.cart-drawer-item:last-child { border-bottom: none; }

.cart-drawer-item-img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}
.cart-drawer-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-drawer-item-body { flex: 1; min-width: 0; }
.cart-drawer-item-name {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: .3rem;
}
.cart-drawer-item-name:hover { color: var(--primary); }

.cart-drawer-item-meta {
  display: flex;
  align-items: center;
  gap: .45rem;
}
.cart-drawer-qty {
  display: inline-flex;
  align-items: center;
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-drawer-qty-btn {
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .7rem;
  padding: 0;
}
.cart-drawer-qty-btn:hover { color: var(--primary); }
.cart-drawer-qty-input {
  width: 24px;
  border: none;
  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  background: transparent;
  color: var(--dark);
  padding: 0;
  -moz-appearance: textfield;
}
.cart-drawer-qty-input::-webkit-outer-spin-button,
.cart-drawer-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-drawer-item-total {
  font-size: .78rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  margin-right: auto;
}
.cart-drawer-item-total small { font-size: .65rem; font-weight: 500; margin-right: 1px; }

.cart-drawer-remove {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .72rem;
  padding: 0;
  flex-shrink: 0;
}
.cart-drawer-remove:hover { color: #dc2626; background: #fef2f2; }

.cart-drawer-footer {
  padding: .55rem .75rem .65rem;
  border-top: 1px solid var(--border);
  background: var(--light-bg);
  flex-shrink: 0;
}
.cart-drawer-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.cart-drawer-summary {
  display: flex;
  flex-direction: column;
  gap: .05rem;
  font-size: .68rem;
  color: var(--gray);
}
.cart-drawer-summary strong {
  font-size: .92rem;
  color: var(--dark);
  line-height: 1.2;
}
.cart-drawer-summary strong small { font-size: .65rem; font-weight: 500; color: var(--gray); }
.cart-drawer-checkout {
  font-weight: 700;
  padding: .4rem .85rem;
  white-space: nowrap;
  font-size: .8rem;
}
.cart-drawer-full-link {
  display: block;
  text-align: center;
  font-size: .7rem;
  font-weight: 600;
  color: var(--gray);
  text-decoration: none;
  margin-top: .35rem;
  transition: color .15s;
}
.cart-drawer-full-link:hover { color: var(--primary); }

.cart-drawer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  gap: .5rem;
}
.cart-drawer-empty > i {
  font-size: 1.75rem;
  color: #cbd5e1;
}
.cart-drawer-empty p {
  font-size: .82rem;
  color: var(--gray);
  margin: 0;
}

.cart-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 1080;
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .9rem;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .18);
  font-size: .8rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
  max-width: min(90vw, 300px);
}
.cart-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.cart-toast-icon { color: #86efac; font-size: .95rem; flex-shrink: 0; }
.cart-toast--error { background: #7f1d1d; }
.cart-toast--error .cart-toast-icon { color: #fca5a5; }

@media (max-width: 991px) {
  .cart-drawer {
    top: auto;
    bottom: .75rem;
    left: 50%;
    transform: translateX(-50%) translateY(12px) scale(.97);
    width: min(340px, calc(100vw - 1.5rem));
    max-height: min(360px, 55vh);
  }
  .cart-drawer.is-open { transform: translateX(-50%); }
  .cart-drawer-panel { max-height: min(360px, 55vh); }
}

@media (prefers-reduced-motion: reduce) {
  .cart-drawer, .cart-drawer-backdrop, .cart-toast { transition: none; }
}

/* Auth modal */
body.auth-modal-open { overflow: hidden; }

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: rgba(15, 23, 42, .45);
  opacity: 0;
  transition: opacity .22s ease;
}
.auth-modal-backdrop.is-visible { opacity: 1; }

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1070;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s ease;
}
.auth-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.auth-modal-panel {
  width: min(100%, 400px);
  max-height: min(90vh, 680px);
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, .18);
  border: 1px solid rgba(15, 23, 42, .06);
}

.auth-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.25rem 1.5rem .75rem;
  border-bottom: none;
  position: relative;
}
.auth-modal-brand { line-height: 0; }
.auth-modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark, #1f2937);
}
.auth-modal-close {
  position: absolute;
  top: .75rem;
  left: .75rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--gray, #6b7280);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.auth-modal-close:hover { background: #f3f4f6; color: #111827; }

.auth-modal-tabs {
  display: flex;
  gap: .35rem;
  padding: .75rem 1.25rem 0;
}
.auth-modal-tab {
  flex: 1;
  border: none;
  background: #f3f4f6;
  color: var(--gray, #6b7280);
  font-size: .82rem;
  font-weight: 600;
  padding: .55rem .5rem;
  border-radius: 10px 10px 0 0;
  transition: background .15s, color .15s;
}
.auth-modal-tab.is-active {
  background: #fff;
  color: var(--primary, #ea580c);
  box-shadow: 0 -1px 0 #fff;
}
.auth-modal-tab:hover:not(.is-active) { color: #111827; }

.auth-modal-body {
  padding: 1.25rem 1.35rem 1.35rem;
}

.auth-modal-step {
  display: flex;
  flex-direction: column;
}

.auth-modal-head {
  text-align: center;
  margin-bottom: 1.15rem;
}

.auth-modal-heading {
  margin: 0 0 .35rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--dark, #1f2937);
}

.auth-modal-subtitle {
  margin: 0;
  font-size: .86rem;
  color: var(--gray, #6b7280);
  line-height: 1.65;
}

.auth-modal-form {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.auth-modal-form--inline {
  gap: 0;
  margin-top: .35rem;
}

.auth-modal-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.auth-modal-label {
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
}

.auth-modal-field .form-control,
.auth-modal-field input[type="text"],
.auth-modal-field input[type="tel"],
.auth-modal-field input[type="password"],
.auth-modal-field input[type="email"] {
  width: 100%;
  padding: .72rem .95rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: .9rem;
  font-family: inherit;
  background: #fff;
  color: #1f2937;
  transition: border-color .15s, box-shadow .15s;
}

.auth-modal-field .form-control:focus,
.auth-modal-field input:focus {
  outline: none;
  border-color: var(--primary, #ea580c);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, .12);
}

.auth-modal-terms {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .78rem;
  color: #6b7280;
  line-height: 1.7;
  cursor: pointer;
  margin: .1rem 0 .15rem;
  text-align: right;
}

.auth-modal-terms span {
  flex: 1;
  min-width: 0;
}

.auth-modal-terms a {
  color: var(--primary, #ea580c);
  text-decoration: none;
  font-weight: 600;
}

.auth-modal-terms a:hover { text-decoration: underline; }

.auth-modal-terms-check {
  margin-top: .15rem;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--primary, #ea580c);
}

.auth-modal-btn {
  display: block;
  width: 100%;
  margin-top: .25rem;
  padding: .82rem 1rem;
  border: none;
  border-radius: 10px;
  background: var(--primary, #ea580c);
  color: #fff !important;
  font-size: .94rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.4;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  text-align: center;
  transition: filter .15s ease, transform .1s ease;
}

.auth-modal-btn:hover { filter: brightness(.96); }
.auth-modal-btn:active { transform: scale(.99); }

.auth-modal-foot {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid #f0f0f4;
}

.auth-modal-foot--center { justify-content: center; }
.auth-modal-foot--split { justify-content: space-between; flex-wrap: wrap; }

.auth-modal-foot-text {
  font-size: .84rem;
  color: #6b7280;
}

.auth-modal-link {
  border: none;
  background: none;
  padding: .35rem .1rem;
  font-size: .84rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--primary, #ea580c) !important;
  cursor: pointer;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}

.auth-modal-link:hover { text-decoration: underline; }

.auth-modal-link--block {
  display: block;
  width: 100%;
  text-align: center;
}

.auth-modal-password-wrap { position: relative; }

.auth-modal-password-wrap .form-control,
.auth-modal-password-wrap input {
  padding-left: 2.75rem;
}

.auth-modal-password-toggle {
  position: absolute;
  left: .45rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #9ca3af;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
}

.auth-modal-password-toggle:hover {
  background: #f3f4f6;
  color: #6b7280;
}

.auth-modal-hint {
  font-size: .75rem;
  color: #9ca3af;
}

.auth-modal-header .auth-modal-title { display: none; }

.auth-modal-header {
  padding-bottom: .35rem;
  border-bottom: none;
}

.auth-modal-body .auth-modal-heading {
  font-size: 1.12rem;
}

.auth-modal-intro {
  text-align: center;
  margin-bottom: 1.25rem;
}
.auth-modal-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto .75rem;
  border-radius: 14px;
  background: #fff7ed;
  color: var(--primary, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}
.auth-modal-intro h3 {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.auth-modal-intro p {
  margin: 0;
  font-size: .88rem;
  color: var(--gray, #6b7280);
}
.auth-modal-error {
  margin-top: .35rem;
  font-size: .8rem;
  color: #dc2626;
}
.auth-modal-switch {
  margin: .75rem 0 0;
  text-align: center;
  font-size: .85rem;
}
.auth-modal-switch button {
  border: none;
  background: none;
  color: var(--primary, #ea580c);
  font-weight: 600;
  padding: 0;
}
.auth-modal-switch button:hover { text-decoration: underline; }

.auth-modal-body .form-control,
.auth-modal-body .form-select {
  border-radius: 10px;
}
.auth-modal-body .btn-primary {
  border-radius: 10px;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .auth-modal, .auth-modal-backdrop { transition: none; }
}

/* ── Account menu sidebar (from Makeupstores) ── */
.account-menu {
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26, 26, 46, .04);
}

.account-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1.35rem 1.25rem;
  border-bottom: 1px solid #f0f0f4;
}

.account-menu-user {
  font-size: 1.05rem;
  font-weight: 800;
  color: #23254e;
  line-height: 1.5;
}

.account-menu-avatar {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border: 2px solid #d5d7e3;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5c5f7b;
  font-size: 1.35rem;
  overflow: hidden;
}

.account-menu-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-menu-list {
  list-style: none;
  margin: 0;
  padding: .35rem .65rem;
}

.account-menu-list > li {
  margin: 0 0 .2rem;
}

.account-menu-list > li:last-child {
  margin-bottom: 0;
}

.account-menu-link,
.logout-form button.account-menu-link {
  display: flex;
  align-items: center;
  gap: .85rem;
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #3f4064;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.account-menu-link i,
.logout-form button.account-menu-link i {
  flex-shrink: 0;
  width: 1.35rem;
  font-size: 1.2rem;
  color: #5c5f7b;
  text-align: center;
}

.account-menu-link span,
.logout-form button.account-menu-link span {
  flex: 1;
  text-align: start;
}

.account-menu-link:hover,
.logout-form button.account-menu-link:hover {
  background: #f3f4f8;
  border-color: #e2e4ec;
  color: #23254e;
}

.account-menu-link.is-active {
  background: #e8eaf2;
  border-color: #c8ccd8;
  color: #23254e;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(35, 37, 78, .04);
}

.account-menu-link.is-active i {
  color: #23254e;
}

.account-menu-link--logout,
.logout-form button.account-menu-link--logout {
  color: #3f4064;
}

.account-menu-link--logout:hover,
.logout-form button.account-menu-link--logout:hover {
  background: #fff5f7;
  color: #c0392b;
}

.account-menu-link--logout:hover i,
.logout-form button.account-menu-link--logout:hover i {
  color: #c0392b;
}

.logout-form {
  margin: 0;
}

@media (max-width: 991.98px) {
  .account-menu-user {
    font-size: 1rem;
  }

  .account-menu-link,
  .logout-form button.account-menu-link {
    padding: .95rem 1.15rem;
    font-size: .98rem;
  }
}

/* legacy sidebar (catalog etc.) */
.sidebar-card, .account-sidebar {
  border-radius: var(--radius) !important;
}

.sidebar-link {
  text-decoration: none;
  color: #555;
  display: block;
}

.list-group-item.active-category {
  background: var(--primary-light);
  border-right: 3px solid var(--primary);
}

.list-group-item.active-category .sidebar-link {
  color: var(--primary);
  font-weight: 600;
}

/* ── Order timeline ── */
.order-timeline .step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: #aaa;
}

.order-timeline .step.done { color: var(--primary); font-weight: 600; }
.order-timeline .step.active { color: var(--primary-dark); font-weight: 700; }

/* ============================================================
   Mobile responsive — global polish
   ============================================================ */
html { overflow-x: clip; }
body { overflow-x: clip; }

@media (max-width: 991.98px) {
  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .page-header { padding-top: 1rem !important; padding-bottom: 1rem !important; }
  .page-header .h2, .page-header h1 { font-size: 1.25rem; }
  .page-header .breadcrumb { font-size: .78rem; margin-bottom: .35rem !important; }

  .footer-top { padding: 1.75rem 0 !important; }

  .nav-sale-grid { grid-template-columns: 1fr; }
  .nav-sale-panel { width: min(100vw - 1.5rem, 400px); }

  .catalog-offcanvas--sheet.offcanvas-bottom { width: 100% !important; }

  .cart-summary { position: static; }
  .cart-summary-card { padding: 1.15rem; }
  .cart-summary-card .btn-lg { font-size: .95rem; padding: .65rem 1rem; }

  .empty-state { padding: 2rem 1rem; }
  .empty-state-icon { width: 64px; height: 64px; font-size: 1.6rem; }

  .pagination { flex-wrap: wrap; justify-content: center; }
  .pagination .page-link { padding: .4rem .6rem; font-size: .82rem; }

  .blog-card-img { height: 150px; }
  .contact-info-card { padding: 1.25rem; }

  .pc-card {
    --pc-card-height: 280px;
    --pc-media-height: 130px;
  }
  .pc-body { padding: .6rem .7rem .75rem; }
  .pc-title { font-size: .82rem; min-height: 2.6em; }
  .pc-price-current { font-size: .95rem; }

  .auth-card { padding: 1.5rem 1.25rem; }
  .auth-page-wrap { min-height: 50vh; padding: 1rem 0; }
}

@media (max-width: 575.98px) {
  .site-header-mobile-bar { padding: .5rem .75rem; }
  .site-header-mobile-search { padding: 0 .75rem .55rem; }
  .btn-mobile-icon { width: 38px; height: 38px; font-size: 1.05rem; }

  .cart-item-row {
    flex-wrap: wrap;
    gap: .65rem;
    padding: .85rem;
  }
  .cart-item-img { width: 60px; height: 60px; }
  .cart-item-info { flex: 1 1 calc(100% - 76px); }
  .cart-item-qty { order: 3; }
  .cart-item-total {
    order: 4;
    flex: 1;
    text-align: left;
    min-width: auto;
    font-size: .88rem;
  }
  .cart-item-row form:last-child,
  .cart-item-row .btn-outline-danger { order: 5; }

  .cart-drawer {
    width: min(100vw - 1rem, 360px);
    max-height: min(70vh, 480px);
    bottom: max(.5rem, env(safe-area-inset-bottom));
  }
  .cart-drawer-panel { max-height: min(70vh, 480px); }

  .feature-card { padding: 1.25rem 1rem; }
  .feature-card-icon { width: 48px; height: 48px; font-size: 1.25rem; }

  .testimonial-text { min-height: auto; font-size: .88rem; }
  .testimonial-card { padding: 1.15rem; }

  .list-toolbar { padding: .65rem .75rem; }
  .filter-pill { font-size: .75rem; padding: .3rem .7rem; }

  .pc-card {
    --pc-card-height: 260px;
    --pc-media-height: 118px;
  }
  .pc-quick-cart { width: 32px; height: 32px; font-size: .85rem; }

  .footer-bottom { padding-bottom: max(.75rem, env(safe-area-inset-bottom)) !important; }
}

@media (max-width: 380px) {
  .catalog-mobile-bar {
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
  }
  .catalog-mobile-bar-count { text-align: center; }
  .pc-card { --pc-card-height: 248px; --pc-media-height: 108px; }
  .pc-title { font-size: .78rem; }
}
