* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  font-family: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

.filters input[type="text"], .filters input[type="number"], .filters select, .filters .form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .08s;
  box-shadow: 0 1px 0 rgba(16,24,40,0.02) inset;
}
.filters input[type="text"]::placeholder, .filters input[type="number"]::placeholder {
  color: #9aa0a6;
}
.filters input[type="text"]:hover, .filters input[type="number"]:hover, .filters select:hover, .filters .form-select:hover {
  transform: translateY(-1px);
}
.filters input:focus, .filters select:focus, .filters .form-select:focus {
  outline: none;
  border-color: rgba(var(--brand-dark-rgb, 0,96,100), .95);
  box-shadow: 0 6px 30px rgba(0,128,128,0.08), 0 0 0 4px rgba(0,131,143,0.06);
}
.filter-group .form-select { appearance: none; -webkit-appearance: none; padding-right: 44px; }
.filter-group { position: relative; }
.filters select::-ms-expand { display: none; }

:root { --brand-dark-rgb: 0,96,100; }

.product-card h3 { font-size: 14px; font-weight: 700; margin: 8px 0; color: var(--ink); }
.product-card .rating { display: flex; align-items: center; gap: 8px; color: var(--amber); font-size: 13px; margin-bottom: 8px; }
.product-card .rating .stars { color: var(--amber); letter-spacing: 1px; }
.discount-badge {z-index:49; position: absolute; top: 10px; inset-inline-start: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 14px; }
.color-dots { display: flex; gap: 6px; margin: 10px 0; }
.color-dots i { width: 18px; height: 18px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }

.sort-tabs button { background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; color: var(--muted); }
.sort-tabs button.active { background: var(--brand-light); color: var(--brand); border-color: transparent; }

.filters.open { inset-inline-end: 0; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90; opacity: 0; visibility: hidden; transition: .25s; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.num { direction: rtl; unicode-bidi: embed; display: inline-block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 14px; transition: .18s; white-space: nowrap; border: 1px solid transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { color: var(--brand); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-sm { padding: 7px 12px; font-size: 13px; }

.topbar {
  background: var(--brand-dark); color: #d8f1f3; font-size: 12.5px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar ul { display: flex; gap: 18px; }
.topbar a:hover { color: #fff; }
.topbar .topbar-links { display: flex; gap: 18px; }

.header { background: var(--surface); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 50; }
.header-main { display: flex; align-items: center; gap: 20px; height: 6rem; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--brand); white-space: nowrap; }
    .logo .logo-mark {
        width: 100%;
        border-radius: 11px;
        color: #fff;
        display: grid;
        place-items: center;
        max-width: 13rem;
        display: block
    }
.logo .logo-mark svg { width: 22px; height: 22px; }

.search {
  flex: 1; display: flex; align-items: center; background: var(--bg);
  border: 1.5px solid transparent; border-radius: 12px; padding: 0 14px; height: 46px; gap: 10px;
}
.search:focus-within { border-color: var(--brand); background: #fff; }
.search svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.search input { flex: 1; border: none; background: transparent; outline: none; font-size: 14px; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  color: var(--ink); transition: .15s;
}
.icon-btn:hover { background: var(--bg); color: var(--brand); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .badge {
  position: absolute; top: 4px; left: 4px; background: var(--accent); color: #fff;
  font-size: 10px; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px;
}
.login-btn { border: 1.5px solid var(--line); border-radius: 11px; padding: 0 14px; height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.login-btn:hover { border-color: var(--brand); color: var(--brand); }
.login-btn svg { width: 20px; height: 20px; }

.nav { border-top: 1px solid var(--line); overflow: visible; }
.nav .container { display: flex; align-items: center; gap: 4px; height: 48px; position: relative; overflow: visible; }
.nav-scroll { display: flex; align-items: center; gap: 4px; height: 100%; overflow-x: auto; overflow-y: visible; width: 100%; }
.nav-scroll::-webkit-scrollbar { height: 6px; }
.nav-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 999px; }
.nav a { padding: 8px 12px; font-size: 13.5px; color: var(--ink); white-space: nowrap; font-weight: 500; transition: .15s; }
.nav a:hover { background: var(--brand-light); color: var(--brand-dark); }
.nav .nav-cat { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand); }
.nav .nav-cat svg { width: 18px; height: 18px; }

.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown > a { display: inline-flex; align-items: center; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-radius: 18px;
  padding: 18px;
  display: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  min-width: 420px;
}
.nav-dropdown-menu.mega-menu {
  position: fixed !important;
  top: var(--mega-menu-top, 174px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  right: auto !important;
  width: 90%;
  max-width: 1200px;
  min-width: 600px;
  margin: 0;
  padding: 28px;
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 999;   
  box-shadow: 0 15px 75px #c8c8c8;
}
.nav-dropdown:hover > .nav-dropdown-menu.mega-menu {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
    max-height: 300px;
    overflow-y: auto;
}
.nav-dropdown:hover > .nav-dropdown-menu {
  display: grid !important;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.nav-dropdown-menu a {
  display: block;
  padding: 8px 10px;
  white-space: normal;
  color: var(--ink);
}
.nav-dropdown-menu a:hover { background: var(--brand-light); color: var(--brand-dark); border-radius: 8px; }

.mega-group {
  display: grid;
  gap: 12px;
}
.mega-group-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 2px solid var(--brand-light);
  padding-bottom: 10px;
  margin-bottom: 8px;
}
.mega-group-links {
  display: grid;
  gap: 8px;
}
.mega-group-links a {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
}
.mega-group-links a:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.mobile-nav-group { margin-bottom: 0; border-bottom: 1px solid var(--line); }
.mobile-group-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mobile-group-title { flex: 1; display: block; font-weight: 700; padding: 12px 10px; color: var(--ink); }
.mobile-group-toggle { 
  padding: 12px 10px; 
  background: none; 
  border: none; 
  cursor: pointer; 
  color: var(--muted); 
  width: 44px; 
  height: auto;
  display: grid;
  place-items: center;
  transition: .2s;
}
.mobile-group-toggle svg { width: 20px; height: 20px; }
.mobile-group-toggle[aria-expanded="true"] { transform: rotate(180deg); color: var(--brand); }
.mobile-submenu { padding-inline-start: 12px; background: rgba(0,0,0,.02); }
.mobile-submenu[hidden] { display: none; }
.mobile-submenu a, .mobile-cat-link { display: block; padding: 10px 10px 10px 20px; font-weight: 500; color: var(--ink); }
.mobile-submenu a:hover, .mobile-cat-link:hover { background: var(--brand-light); color: var(--brand-dark); }
.mobile-cat-link { padding: 12px 10px; }

.menu-toggle { display: none; }

.hero { padding: 20px 0; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.slider {
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  background: var(--surface);
}
.slides { display: flex; transition: transform .5s ease; }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; height: 320px; object-fit: cover; }
.slide-caption {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: 50%; padding: 36px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  background: linear-gradient(to left, transparent, rgba(0,0,0,.55));
  color: #fff;
}
.slide-caption h2 { font-size: 30px; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.slide-caption p { font-size: 15px; opacity: .92; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px;
  background: rgba(255,255,255,.9); border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-sm); color: var(--ink);
}
.slider-btn:hover { background: #fff; }
.slider-btn.prev { inset-inline-start: 14px; }
.slider-btn.next { inset-inline-end: 14px; }
.slider-btn svg { width: 22px; height: 22px; }
.slider-dots { position: absolute; bottom: 14px; inset-inline-end: 20px; display: flex; gap: 7px; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.55); }
.slider-dots button.active { background: #fff; width: 22px; border-radius: 5px; }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0; }
.service {
  background: var(--surface); border-radius: var(--radius); padding: 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-sm);
}
.service .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-light); color: var(--surface); display: grid; place-items: center; flex-shrink: 0; }
.service .ico svg { width: 24px; height: 24px; }
.service h4 { font-size: 14px; font-weight: 700; }
.service p { font-size: 12px; color: var(--muted); }

.cat-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 8px 0 24px; }
.cat-chip { background: var(--surface); border-radius: var(--radius); padding: 18px 10px; text-align: center; box-shadow: var(--shadow-sm); transition: .18s; }
.cat-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-chip .cat-img { width: 78px; height: 78px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden; background: var(--bg); }
.cat-chip .cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-chip span { font-size: 13px; font-weight: 600; }

.section { margin: 28px 0; }
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    background: var(--line);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 1px var(--brand-dark);
}
.section-head h2 { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.section-head h2::before { content: ""; width: 5px; height: 22px; border-radius: 4px; background: var(--brand); }
.section-head .more { color: var(--brand); font-weight: 600; display: flex; align-items: center; gap: 4px; font-size: 13px; }
.section-head .more svg { width: 18px; height: 18px; }

.products-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
#accessories, #relatedProducts {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
#accessories .product-card,
#relatedProducts .product-card {
  min-width: 220px;
  flex: 0 0 220px;
  scroll-snap-align: start;
}
#accessories::-webkit-scrollbar,
#relatedProducts::-webkit-scrollbar {
  height: 8px;
}
#accessories::-webkit-scrollbar-thumb,
#relatedProducts::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, .18);
  border-radius: 999px;
}
.product-card {
  background: var(--surface); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm);
  transition: .18s; position: relative; display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card .thumb { position: relative; aspect-ratio: 1/1; border-radius: var(--radius-sm); overflow: hidden; background: #fff; margin-bottom: 12px; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.discount-badge {
  position: absolute; top: 10px; inset-inline-start: 10px; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
}
.wish-btn { position: absolute; top: 8px; inset-inline-end: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; color: var(--muted); box-shadow: var(--shadow-sm); }
.wish-btn:hover { color: var(--accent); }
.wish-btn svg { width: 18px; height: 18px; }
.wishlist-btn { position: absolute; top: 8px; inset-inline-end: 8px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; color: var(--muted); box-shadow: var(--shadow-sm); border: 1px solid transparent; transition: .12s; z-index: 40; }
.wishlist-btn:hover { color: var(--accent); transform: translateY(-2px); }
.wishlist-btn.active { color: #fff; background: var(--accent); border-color: rgba(0,0,0,0.06); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.wishlist-btn svg { width: 18px; height: 18px; }

.wishlist-btn { transition: transform .12s ease, color .12s ease, background .12s ease, box-shadow .12s ease; }
.wishlist-btn:active { transform: scale(.96); }
.wishlist-btn.active {
  animation: wishlist-pop 320ms cubic-bezier(.2,.8,.2,1);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,0.16);
}

@keyframes wishlist-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.22); }
  70% { transform: scale(0.98); }
  100% { transform: scale(1); }
}
.product-card h3 { font-size: 13.5px; font-weight: 600; line-height: 1.7; height: 47px; overflow: hidden; margin-bottom: 8px; }
.product-card .card-stars { display: flex; align-items: center; gap: 4px; color: var(--amber); font-size: 14px; margin-bottom: 8px; min-height: 20px; }
.product-card .rating { display: flex; align-items: center; gap: 4px; color: var(--amber); font-size: 12.5px; margin-bottom: 10px; }
.product-card .rating svg { width: 15px; height: 15px; }
.product-card .rating span { color: var(--muted); }
.product-card .price-row { margin-top: auto; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 12.5px; }
.price-now { font-size: 17px; font-weight: 800; direction:rtl }
.price-now small { font-size: 12px; font-weight: 600; color: var(--muted); margin-inline-start: 3px; }
.price-flex { display: flex; align-items: center; justify-content: space-between; }
.color-dots { display: flex; gap: 4px; margin-bottom: 8px; }
.color-dots i { width: 13px; height: 13px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.1); }

.banner-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.banner-duo a { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.banner-duo img { width: 100%; height: 200px; object-fit: cover; }

.amazing {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)); border-radius: var(--radius);
  padding: 18px; display: flex; gap: 16px; align-items: stretch; overflow: hidden;
}
  .amazing-head { text-align:center; color: #fff; min-width: auto; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
  .amazing-head h2 { font-size: 18px; font-weight: 800; margin: 0; }
    .amazing-head .timer {
      direction:ltr;
      display: grid;
      grid-template-columns: repeat(4, 70px);
      gap: 8px;
      width: fit-content;
    }
.amazing-head .timer-block { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.amazing-head .timer-ring { position: relative; width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05); }
.amazing-head .timer-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.amazing-head .timer-ring.loading svg { animation: spinRing 1.2s linear infinite; }
@keyframes spinRing {
  0% { transform: rotate(-90deg); }
  100% { transform: rotate(270deg); }
}
.amazing-head .timer-ring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.amazing-head .timer-ring-bg { stroke: rgba(255,255,255,0.14); }
.amazing-head .timer-ring-fg { stroke-dasharray: 326.7256; stroke-dashoffset: 326.7256; transition: stroke-dashoffset 0.25s ease; filter: drop-shadow(0 0 14px rgba(255,255,255,0.22)); }
.amazing-head .timer-ring.loading .timer-ring-fg { stroke-dasharray: 80 246.7256; animation: pulseDash 2s ease-in-out infinite; filter: drop-shadow(0 0 28px rgba(255,255,255,0.5)); }
@keyframes pulseDash {
  0% { stroke-dashoffset: 0; }
  50% { stroke-dashoffset: 160; }
  100% { stroke-dashoffset: 326.7256; }
}
.amazing-head .timer-ring::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.amazing-head .timer-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; padding: 6px; }
.amazing-head .timer-value { display: block; font-size: 13px; font-weight: 800; letter-spacing: 0.01em; line-height: 1; }
.amazing-head .timer-unit { display: block; font-size: 9px; color: rgba(255,255,255,0.88); letter-spacing: 0.01em; text-align: center; margin-top: 1px; }
.amazing-head .timer-text { display: none; }
.amazing-track { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.amazing-track .product-card { min-width: 180px; max-height:25rem}
@media (max-width: 860px) {
  .amazing-head { align-items: center; }
  .amazing-head .timer { grid-template-columns: repeat(2, minmax(60px, 1fr)); gap: 8px; }
  .amazing-head .timer-ring { width: 64px; height: 64px; }
  .amazing-head .timer-value { font-size: 12px; }
}

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 16px 0; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb svg { width: 14px; height: 14px; }

.shop-layout { display: grid; grid-template-columns: 270px 1fr; gap: 20px; align-items: start; padding-bottom: 40px; }

.filters { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); position: sticky; top: 90px; padding:1rem }
.filters .filters-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--line); font-weight: 700; }
.filters .filters-head a { font-size: 12px; color: var(--accent); font-weight: 600; }
.filter-group { padding: 10px}
.filter-group h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.filter-group h4 svg { width: 16px; height: 16px; color: var(--muted); }
.check { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 13px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }
.check .count { color: var(--muted); font-size: 12px; margin-inline-start: auto; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch.active { box-shadow: 0 0 0 2px var(--brand); }
.price-range { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.price-range input { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.toggle { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.switch { position: relative; width: 40px; height: 22px; cursor:pointer}
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--line); border-radius: 20px; transition: .2s; }
.switch .track::before { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 3px; inset-inline-end: 3px; transition: .2s; }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::before { transform: translateX(18px); }

.shop-main { min-width: 0; }
.toolbar { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 12px 16px; display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .sort-label { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--muted); }
.toolbar .sort-label svg { width: 18px; height: 18px; }
.sort-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.sort-tabs button { padding: 7px 13px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sort-tabs button.active { background: var(--brand-light); color: var(--brand-dark); }
.toolbar .result-count { margin-inline-start: auto; color: var(--muted); font-size: 13px; }
.shop-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.filter-toggle-mobile { display: none; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.pagination a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-sm); font-weight: 600; }
.pagination a.active { background: var(--brand); color: #fff; }
.pagination a:hover:not(.active) { color: var(--brand); }

.pd-grid { display: grid; grid-template-columns: 420px 1fr 300px; gap: 24px; align-items: start; padding-bottom: 40px; }
.pd-gallery { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px; position: sticky; top: 90px; }
.pd-main-img { aspect-ratio: 1/1; border-radius: var(--radius-sm); overflow: hidden; background: #fff; margin-bottom: 14px; display: grid; place-items: center; }
.pd-main-img img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { display: flex; gap: 10px; }
.pd-thumbs button { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); padding: 4px; background: #fff; }
.pd-thumbs button.active { border-color: var(--brand); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.pd-info h1 { font-size: 22px; font-weight: 800; line-height: 1.7; margin-bottom: 6px; }
.pd-info .pd-en { color: var(--muted); font-size: 13px; direction: ltr; margin-bottom: 14px; }
.pd-meta { display: flex; align-items: center; gap: 18px; padding: 12px 0; border-block: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.pd-meta .star { color: var(--amber); display: flex; align-items: center; gap: 4px; }
.pd-meta svg { width: 16px; height: 16px; }

.variant-block { margin: 20px 0; }
.variant-block .v-title { font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.variant-block .v-title span { color: var(--muted); font-weight: 500; }
.pd-info .variant-block,
.buy-box .variant-block {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.variant-block .form-control,
.variant-block .form-select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(16,24,40,.05);
  transition: border-color .15s, box-shadow .15s, transform .08s;
}
.variant-block .form-select,
.variant-block .form-control {
  appearance: none;
  -webkit-appearance: none;
}
.variant-block .form-control {
  min-height: 50px;
}
.variant-block .form-select {
  min-height: 50px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23666' d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: calc(100% - 14px) center;
  background-size: 10px 6px;
  padding-right: 36px;
}
.variant-block .form-control:focus,
.variant-block .form-select:focus {
  outline: none;
  border-color: rgba(var(--brand-dark-rgb, 0,96,100), .95);
  box-shadow: 0 6px 30px rgba(0,128,128,0.08), 0 0 0 4px rgba(0,131,143,0.06);
  transform: translateY(-1px);
}
.variant-block .form-control[readonly] {
  background: var(--surface);
  color: var(--muted);
}
.variant-block input[type="number"] { text-align: center; }
.variant-block input[type="number"]::-webkit-inner-spin-button,
.variant-block input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.variant-block input[type="number"] { -moz-appearance: textfield; }
.buy-box .variant-block {
  display: grid;
  gap: 14px;
}
.buy-box .variant-block .bb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.buy-box .variant-block .bb-row:first-child {
  border-top: none;
}

.variant-block input[type="number"] { text-align: center; }
.variant-block input[type="number"]::-webkit-inner-spin-button,
.variant-block input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.variant-block input[type="number"] { -moz-appearance: textfield; }
.variant-block .form-control:focus,
.variant-block .form-select:focus {
  outline: none;
  border-color: rgba(var(--brand-dark-rgb, 0,96,100), .95);
  box-shadow: 0 6px 30px rgba(0,128,128,0.08), 0 0 0 4px rgba(0,131,143,0.06);
  transform: translateY(-1px);
}
.variant-block .form-control[readonly] {
  background: var(--surface);
  color: var(--muted);
}
.buy-box .variant-block {
  display: grid;
  gap: 14px;
}
.buy-box .variant-block .bb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.buy-box .variant-block .bb-row:first-child {
  border-top: none;
}
.color-options { display: flex; gap: 10px; flex-wrap: wrap; }
.color-option { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1.5px solid var(--line); border-radius: 30px; font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s; }
.color-option i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.color-option.active { border-color: var(--brand); background: var(--brand-light); }
.storage-options { display: flex; gap: 10px; flex-wrap: wrap; }
.storage-option { padding: 9px 18px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 700; cursor: pointer; transition: .15s; }
.storage-option.active { border-color: var(--brand); background: var(--brand-light); color: var(--brand-dark); }
.storage-option.disabled { opacity: .45; text-decoration: line-through; cursor: not-allowed; }

.pd-features { margin: 22px 0; }
.pd-features h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.pd-features ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-features li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #374151; }
.pd-features li svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; }

.buy-box { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px; position: sticky; top: 90px; }
.buy-box .seller { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.buy-box .seller svg { width: 18px; height: 18px; color: var(--brand); }
.buy-box .bb-price { margin-bottom: 16px; }
.buy-box .bb-discount { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.buy-box .bb-discount .badge { background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 20px; }
.buy-box .bb-final { font-size: 24px; font-weight: 800; }
.buy-box .bb-final small { font-size: 13px; font-weight: 600; color: var(--muted); }
.buy-box .bb-old-price { font-size: 13px; color: var(--muted); text-decoration: line-through; margin-top: 6px; }
.buy-box .bb-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin: 8px 0; }
.buy-box .bb-row svg { width: 16px; height: 16px; }
.buy-box .bb-row.bb-stock { justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: rgba(15, 23, 42, 0.04); }
.buy-box .bb-row.bb-stock span { font-size: 13px; }
.buy-box .bb-row.bb-stock .bb-stock-value { font-weight: 700; color: var(--text); }
.buy-box .bb-row.bb-stock.unavailable .bb-stock-value { color: var(--danger); }
.buy-box .bb-row.bb-ship { color: var(--muted); font-size: 13px; }

.pd-tabs { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 24px 0; overflow: hidden; }
.tab-head { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab-head button { padding: 16px 22px; font-weight: 700; color: var(--muted); white-space: nowrap; border-bottom: 3px solid transparent; }
.tab-head button.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-body { padding: 22px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 13px 14px; text-align: right; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.spec-table th { width: 220px; color: var(--muted); font-weight: 600; background: var(--bg); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-head .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-light); color: var(--brand-dark); display: grid; place-items: center; font-weight: 700; }
.review-head .name { font-weight: 700; font-size: 13.5px; }
.review-head .date { color: var(--muted); font-size: 12px; }
.review-head .stars { color: var(--amber); display: flex; gap: 2px; margin-inline-start: auto; }
.review-head .stars svg { width: 15px; height: 15px; }

.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; padding-bottom: 40px; }
.cart-items { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 8px 18px; }
.cart-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: none; }
.cart-item .ci-img { width: 110px; height: 110px; border-radius: var(--radius-sm); background: #fff; flex-shrink: 0; border: 1px solid var(--line); }
.cart-item .ci-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-item .ci-body { flex: 1; min-width: 0; }
.cart-item .ci-body h3 { font-size: 14.5px; font-weight: 600; margin-bottom: 8px; }
.cart-item .ci-attrs { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap; }
.cart-item .ci-attrs i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; vertical-align: middle; margin-inline-start: 4px; border: 1px solid rgba(0,0,0,.1); }
.cart-item .ci-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 36px; height: 36px; display: grid; place-items: center; color: var(--brand); font-size: 18px; font-weight: 700; }
.qty button:hover { background: var(--brand-light); }
.qty span { width: 40px; text-align: center; font-weight: 700; }
.ci-remove { color: var(--accent); display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; }
.ci-remove svg { width: 16px; height: 16px; }

.summary { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px; position: sticky; top: 90px; }
.summary h3 { font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 13.5px; color: #374151; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-size: 16px; font-weight: 800; color: var(--ink); }
.summary-row .discount { color: var(--accent); font-weight: 600; }
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty svg { width: 90px; height: 90px; color: var(--line); margin: 0 auto 16px; }
.cart-empty h3 { font-size: 18px; margin-bottom: 8px; }
.cart-empty p { color: var(--muted); margin-bottom: 20px; }

.auth-wrap { min-height: 70vh; display: grid; place-items: center; padding: 40px 16px; }
.auth-card { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); width: 100%; max-width: 420px; padding: 36px 30px; }
.auth-card .auth-logo { display: flex; justify-content: center; margin-bottom: 18px; }
.auth-card .auth-logo .logo-mark { width: 56px; height: 56px; border-radius: 16px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.auth-card .auth-logo svg { width: 30px; height: 30px; }
.auth-card h1 { text-align: center; font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.auth-card .auth-sub { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.field input {
  width: 100%; height: 50px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 16px; font-size: 15px; transition: .15s; text-align: center; letter-spacing: 1px;
}
.field input:focus { outline: none; border-color: var(--brand); }
.otp-inputs { display: flex; gap: 10px; direction: ltr; justify-content: center; margin-bottom: 8px; }
.otp-inputs input { width: 52px; height: 58px; text-align: center; font-size: 22px; font-weight: 800; border: 1.5px solid var(--line); border-radius: 12px; }
.otp-inputs input:focus { outline: none; border-color: var(--brand); }
.auth-timer { text-align: center; color: var(--muted); font-size: 13px; margin: 14px 0; }
.auth-timer b { color: var(--brand); }
.auth-edit { text-align: center; margin-top: 14px; }
.auth-edit button { color: var(--brand); font-weight: 600; font-size: 13px; }
.auth-terms { text-align: center; font-size: 12px; color: var(--muted); margin-top: 20px; line-height: 1.8; }
.auth-terms a { color: var(--brand); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: .18s; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-header h2 { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.section-header h2::before { content: ""; width: 5px; height: 22px; border-radius: 4px; background: var(--brand); }
.account-section { margin: 28px 0; }
.account-layout { display: grid; grid-template-columns: 270px 1fr; gap: 20px; align-items: start; padding-bottom: 40px; }
.account-sidebar { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 14px; position: sticky; top: 90px; }
.account-nav ul { display: flex; flex-direction: column; gap: 8px; }
.account-nav a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--muted); font-weight: 700; }
.account-nav a.active, .account-nav a:hover { background: var(--brand-light); color: var(--brand-dark); }
.account-main { min-width: 0; }
.account-summary { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.account-metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; min-width: 180px; min-height: 110px; flex: 1 1 220px; box-shadow: var(--shadow-sm); text-align: right; }
.account-metric h3 { margin: 8px 0 0; font-size: 28px; line-height: 1.1; }
.account-metric .metric-label { color: var(--muted); font-size: 13px; display: block; margin-bottom: 6px; }
.order-detail-top { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.order-detail-metric { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); min-height: 100px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.order-detail-metric .metric-label { color: var(--muted); font-size: 13px; }
.order-detail-metric h3 { margin: 0; font-size: 22px; font-weight: 800; }
.order-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 18px; margin-bottom: 24px; }
.order-detail-card, .order-detail-table-card {
    margin: 1rem 0;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.order-detail-card-header { padding: 16px 20px; border-bottom: 1px solid var(--line); font-weight: 800; }
.order-detail-card-body { padding: 18px 20px; color: #374151; }
.order-detail-list { display: grid; gap: 14px; }
.order-detail-list div { display: grid; gap: 6px; }
.order-detail-list dt { color: var(--muted); font-size: 13px; }
.order-detail-list dd { margin: 0; font-weight: 700; }
.order-table { width: 100%; border-collapse: collapse; }
.order-table th, .order-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.order-table th { background: var(--bg); color: var(--muted); font-weight: 700; }
.order-table tbody tr:hover { background: rgba(15, 23, 42, 0.03); }
.product-name { font-weight: 700; }
.product-variant { color: var(--muted); font-size: 13px; margin-top: 4px; }
.order-detail-table-card .order-detail-card-body { padding: 0; }
.order-detail-table-card table { border-radius: 0 0 var(--radius) var(--radius); }
@media (max-width: 900px) {
  .order-detail-top, .order-detail-grid { grid-template-columns: 1fr; }
  .order-table th, .order-table td { padding: 12px 10px; }
}
.orders-list { display: grid; gap: 18px; }
.order-card { background: var(--surface); border-radius: var(--radius); border: 1px solid transparent; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .18s, border-color .18s, box-shadow .18s; }
.order-card:hover { transform: translateY(-2px); border-color: rgba(15,23,42,.08); box-shadow: var(--shadow); }
.order-card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.order-card-header .meta { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.order-card-header strong { font-size: 18px; display: block; }
.order-card-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; padding: 18px 20px; color: #374151; }
.order-line { display: flex; flex-direction: column; gap: 8px; }
.order-label { color: var(--muted); font-size: 13px; }
.order-card-actions { padding: 16px 20px; background: var(--bg); display: flex; justify-content: flex-start; flex-wrap: wrap; }
.badge-tag.status-paid { background: #d1fae5; color: #065f46; }
.badge-tag.status-completed { background: #dbeafe; color: #1e40af; }
.badge-tag.status-pending { background: #fef3c7; color: #92400e; }
.badge-tag.status-pending-payment { background: #e2e8f0; color: #334155; }
.badge-tag.status-refunded { background: #fee2e2; color: #991b1b; }
.badge-tag.status-bank-transfer-pending { background: #ede9fe; color: #5b21b6; }
.badge-tag.status-bank-transfer-submitted { background: #ede9fe; color: #4c1d95; }
.badge-tag.status-cancelled { background: #f8d7da; color: #842029; }
.badge-tag.status-default { background: var(--line); color: var(--muted); }
@media (max-width: 900px) {
  .order-card-body { grid-template-columns: 1fr; }
}
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.account-card-full { grid-column: 1 / -1; }
.account-card { background: var(--surface); border-radius: var(--radius); padding: 0; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; min-height: 100%; overflow: hidden; }
.account-card-header { padding: 18px 20px; border-bottom: 1px solid var(--line); font-weight: 800; display:flex; align-items:center; justify-content:space-between; gap: 10px; }
.account-card-header h3 { font-size: 18px; margin: 0; }
.account-card-body { padding: 18px 20px; color: #374151; }
.account-actions { padding: 16px 20px; border-top: 1px solid var(--line); display:flex; gap:12px; justify-content:flex-end; flex-wrap: wrap; }
.account-table { width: 100%; border-collapse: collapse; }
.account-table th, .account-table td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--line); }
.account-table thead th { background: var(--bg); color: var(--muted); font-weight: 700; }
.alert.success { background: #ecfdf5; border: 1px solid #bbf7d0; color: #065f46; padding: 16px 18px; border-radius: 14px; }
.alert.error.validation-summary-valid { display: none !important; }
.alert.error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 16px 18px; border-radius: 14px; margin-bottom: 18px; }
.section-description { color: var(--muted); margin-top: 8px; font-size: 0.96rem; line-height: 1.7; max-width: 720px; }
.form-section { padding: 16px 0; border-bottom: 1px solid rgba(148,163,184,0.16); }
.form-section:last-child { border-bottom: none; }
.form-section-title { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--brand-dark); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-inline { align-items: center; display: flex; gap: 10px; }
.address-details { display: grid; gap: 12px; }
.address-details dt { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.address-details dd { margin: 0 0 10px; font-weight: 700; color: #111827; line-height: 1.6; }
.account-card .account-form { padding: 0; max-width: none; }
.account-actions .btn { min-width: 140px; }
.account-card-header p.section-description { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 900px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; top: auto; }
  .account-card { grid-column: span 8 !important; }
}

@media (max-width: 1200px) {
  .account-grid { grid-template-columns: repeat(4, 1fr); }
  .account-card { grid-column: span 2; }
}

@media (max-width: 1000px) {
  .account-grid { grid-template-columns: repeat(2, 1fr); }
  .account-card { grid-column: span 2; }
  .account-summary { gap: 10px; }
}

.account-actions { flex-wrap: wrap; }
.account-actions .btn { min-width: 120px; }

.auth-card { max-width: 520px; padding: 32px; }
@media (max-width: 480px) {
  .auth-card { max-width: 360px; padding: 20px; }
  .auth-card h1 { font-size: 18px; }
  .field input { height: 46px; }
}

.account-card { padding: 0; overflow: hidden; }
.account-card .account-form { padding: 20px; display: block; max-width: 760px; margin: 0; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; color: var(--ink); transition: border-color .12s, box-shadow .12s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 4px 18px rgba(0,128,143,0.06); }
.field textarea { resize: vertical; min-height: 96px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-grid .field { margin-bottom: 0; }
.account-actions { padding: 18px 20px; }
.alert.error { background: #fff5f5; border: 1px solid #fecaca; color: #991b1b; padding: 12px 14px; border-radius: 8px; margin-bottom: 12px; }

.account-card .meta { color: var(--muted); font-size: 13px; }
.account-card .btn { font-weight: 700; }

@media (max-width: 700px) {
  .field-grid { grid-template-columns: 1fr; }
  .account-card .account-form { padding: 16px; }
}
.blog-card .bc-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-card .bc-img img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.blog-card:hover .bc-img img { transform: scale(1.05); }
.blog-card .bc-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.blog-card .bc-tag { color: var(--brand); font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.blog-card h3 { font-size: 15.5px; font-weight: 700; line-height: 1.7; margin-bottom: 10px; }
.blog-card p { font-size: 13px; color: var(--muted); line-height: 1.8; flex: 1; }
.blog-card .bc-meta { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.blog-card .bc-meta span { display: flex; align-items: center; gap: 5px; }
.blog-card .bc-meta svg { width: 15px; height: 15px; }

.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; padding-bottom: 40px; }
.article { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.article .a-hero img { width: 100%; height: 380px; object-fit: cover; }
.article .a-body { padding: 28px; }
.article .a-tag { color: var(--brand); font-weight: 700; font-size: 13px; }
.article h1 { font-size: 26px; font-weight: 800; line-height: 1.7; margin: 10px 0 16px; }
.article .a-meta { display: flex; gap: 18px; color: var(--muted); font-size: 12.5px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.article .a-meta span { display: flex; align-items: center; gap: 5px; }
.article .a-meta svg { width: 16px; height: 16px; }
.article .a-content p { margin-bottom: 18px; line-height: 2.1; color: #374151; font-size: 14.5px; }
.article .a-content h2 { font-size: 19px; font-weight: 800; margin: 28px 0 14px; }
.article .a-content img { border-radius: var(--radius-sm); margin: 20px 0; }
.article .a-content ul { padding-inline-start: 22px; margin-bottom: 18px; }
.article .a-content li { list-style: disc; margin-bottom: 8px; line-height: 1.9; color: #374151; }
.aside-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px; margin-bottom: 18px; }
.aside-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mini-post { display: flex; gap: 12px; padding: 10px 0; }
.mini-post img { width: 70px; height: 60px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.mini-post h4 { font-size: 13px; font-weight: 600; line-height: 1.7; }
.mini-post .mp-date { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { background: var(--bg); padding: 6px 12px; border-radius: 20px; font-size: 12.5px; }
.tag-cloud a:hover { background: var(--brand-light); color: var(--brand-dark); }

.brand-search { max-width: 460px; margin: 0 auto 28px; }
.brand-search .search { background: var(--surface); box-shadow: var(--shadow-sm); }
.brands-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.brand-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px 16px; text-align: center; transition: .18s; }
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.brand-card .b-logo { height: 60px; display: grid; place-items: center; margin-bottom: 12px; }
.brand-card .b-logo img { max-height: 56px; width: auto; object-fit: contain; }
.brand-card h3 { font-size: 15px; font-weight: 700; }
.brand-card p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.alpha-bar { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 24px; }
.alpha-bar a { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); font-weight: 700; box-shadow: var(--shadow-sm); font-size: 13px; }
.alpha-bar a:hover, .alpha-bar a.active { background: var(--brand); color: #fff; }

.brand-hero { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 30px; display: flex; align-items: center; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.brand-hero .bh-logo { width: 120px; height: 120px; border-radius: 20px; background: var(--bg); display: grid; place-items: center; flex-shrink: 0; padding: 16px; }
.brand-hero .bh-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-hero .bh-info { flex: 1; min-width: 240px; }
.brand-hero h1 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.brand-hero p { color: var(--muted); line-height: 1.9; font-size: 14px; }
.brand-hero .bh-stats { display: flex; gap: 26px; margin-top: 16px; }
.brand-hero .bh-stats b { font-size: 20px; color: var(--brand); display: block; }
.brand-hero .bh-stats span { font-size: 12.5px; color: var(--muted); }

.page-hero { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; border-radius: var(--radius); padding: 48px 36px; text-align: center; margin: 20px 0 28px; }
.page-hero h1 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.page-hero p { max-width: 640px; margin: 0 auto; opacity: .92; line-height: 1.9; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; margin: 30px 0; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-grid h2 { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.about-grid p { color: #374151; line-height: 2; margin-bottom: 14px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 30px 0; }
.stat-box { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px 16px; text-align: center; }
.stat-box b { font-size: 32px; font-weight: 800; color: var(--brand); display: block; }
.stat-box span { color: var(--muted); font-size: 13px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 24px 0; }
.value-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; text-align: center; }
.value-card .vc-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-light); color: var(--brand-dark); display: grid; place-items: center; margin: 0 auto 14px; }
.value-card .vc-ico svg { width: 28px; height: 28px; }
.value-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 13px; line-height: 1.9; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: start; margin: 20px 0 40px; }
.contact-info { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px; }
.contact-info h2 { font-size: 19px; font-weight: 800; margin-bottom: 20px; }
.contact-line { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: none; }
.contact-line .cl-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-light); color: var(--brand-dark); display: grid; place-items: center; flex-shrink: 0; }
.contact-line .cl-ico svg { width: 22px; height: 22px; }
.contact-line h4 { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.contact-line p { color: var(--muted); font-size: 13px; }
.contact-form { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px; }
.contact-form h2 { font-size: 19px; font-weight: 800; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .field input, .contact-form .field textarea, .contact-form .field select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; text-align: right; letter-spacing: normal;
}
.contact-form .field input { height: 48px; }
.contact-form .field input:focus, .contact-form .field textarea:focus, .contact-form .field select:focus { outline: none; border-color: var(--brand); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); height: 320px; margin-bottom: 40px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.newsletter { background: var(--brand-dark); border-radius: var(--radius); padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 30px 0; flex-wrap: wrap; color: #fff; }
.newsletter h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.newsletter p { opacity: .85; font-size: 14px; }
.newsletter form { display: flex; gap: 10px; flex: 1; max-width: 460px; min-width: 280px; }
.newsletter input { flex: 1; height: 50px; border-radius: 12px; border: none; padding: 0 16px; font-size: 14px; }
.newsletter input:focus { outline: none; }

.footer { background: #1c2126; color: #c2c8cf; margin-top: 40px; }
.footer-top { padding: 40px 0 30px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-col h3 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 13px; transition: .15s; }
.footer-col ul a:hover { color: #fff; }
.footer-about .logo {
    color: #fff;
    margin-bottom: 14px;
    place-self: center;
}
    .footer-about .logo img {
        -webkit-filter: contrast(0);
        filter: contrast(0);
        max-width: 10rem;
    }
.footer-about p { font-size: 13px; line-height: 2; margin-bottom: 16px; }
.footer-contact li { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 10px; }
.footer-contact svg { width: 18px; height: 18px;}
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: .15s; }
.socials a:hover { background: var(--brand); color: #fff; }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; }
.trust-badges { display: flex; gap: 12px; }
.trust-badges .tb { width: 64px; height: 64px; background: #fff; border-radius: 10px; display: grid; place-items: center; padding: 6px; }
.trust-badges img { max-width: 100%; max-height: 100%; }



.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 90; opacity: 0; visibility: hidden; transition: .25s; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; inset-inline-end: -300px; width: 290px; height: 100%; background: #fff; z-index: 100;
  transition: .3s; padding: 20px; overflow-y: auto;
}
.drawer.open { inset-inline-end: 0; }
.drawer .drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
    .drawer .drawer-head h3, .drawer .drawer-head span {
        font-weight: bold;
    }
.drawer nav a { display: block; padding: 12px 10px; border-radius: 10px; font-weight: 600; }
.drawer nav a:hover { background: var(--bg); }

@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .pd-grid { grid-template-columns: 1fr 1fr; }
  .pd-gallery { grid-column: 1 / -1; position: static; }
  .brands-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; top: 0; inset-inline-end: -320px; width: 300px; height: 100%; z-index: 100; border-radius: 0; overflow-y: auto; transition: .3s; }
  .filters.open { inset-inline-end: 0; }
  .filter-toggle-mobile { display: inline-flex; }
  .shop-products { grid-template-columns: repeat(2, 1fr); }
  .pd-grid { grid-template-columns: 1fr; }
  .buy-box { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .topbar { display: none; }
  .products-grid, .shop-products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-strip { grid-template-columns: repeat(3, 1fr); }
  .banner-duo { grid-template-columns: 1fr; }
  .blog-grid, .value-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .slide img { height: 200px; }
  .slide-caption { width: 100%; padding: 20px; }
  .slide-caption h2 { font-size: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .pd-features ul { grid-template-columns: 1fr; }
  .header-main { height: 100px; gap: 10px; }
  .logo span.logo-text { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section-head h2 { font-size: 17px; }
}
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    width: auto;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14), 0 3px 8px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s cubic-bezier(0.23, 1, 0.320, 1) forwards;
    min-width: 320px;
    pointer-events: auto;
    border-left: 4px solid;
    will-change: transform;
}

.toast.show {
    display: flex !important;
}

    .toast.success {
        border-left-color: #22c55e;
        --toast-bg: #f0fdf4;
        --toast-text: #166534;
        --toast-title: #15803d;
    }

    .toast.error {
        border-left-color: #ef4444;
        --toast-bg: #fef2f2;
        --toast-text: #7f1d1d;
        --toast-title: #991b1b;
    }

    .toast.warning {
        border-left-color: #f59e0b;
        --toast-bg: #fffbeb;
        --toast-text: #78350f;
        --toast-title: #92400e;
    }

    .toast.info {
        border-left-color: #3b82f6;
        --toast-bg: #eff6ff;
        --toast-text: #1e3a8a;
        --toast-title: #1e40af;
    }

.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: var(--toast-bg);
    gap: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--toast-title);
    margin: 0;
    flex-shrink: 0;
}

.toast-body {
    padding: 10px 16px;
    font-size: 14px;
    color: var(--toast-text);
    line-height: 1.5;
    word-break: break-word;
}

.btn-close {
    background: none;
    border: none;
    font-size: 20px;
    color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    padding: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    border-radius: 4px;
}

    .btn-close:hover {
        background-color: rgba(0, 0, 0, 0.08);
        color: rgba(0, 0, 0, 0.6);
    }

    .btn-close::before {
        content: "✕";
        font-weight: bold;
        font-size: 16px;
    }

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast.removing {
    animation: slideOut 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@media (max-width: 640px) {
    .toast-container {
        right: 12px;
        top: 12px;
        max-width: calc(100vw - 36px);
    }

    .toast {
        min-width: auto;
    }
}
@media (max-width: 768px) {
    .header-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 100;
        background: var(--bg);
        border-top: 1px solid var(--line);
        box-shadow: 0 -2px 12px rgba(0, 0, 0, .08);
        display: flex !important;
        align-items: center;
        justify-content: space-around;
        gap: 8px;
        padding: 10px 12px;
        height: 60px;
        box-sizing: border-box;
    }
    body {
        margin-bottom: 3rem;
    }
}

.app-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.45);
  z-index:2100;
  padding:20px;
}
.app-modal.open{ display:flex; }
.app-modal-dialog{ width:100%; max-width:460px; }
.app-modal-content{ background:var(--bg); border-radius:10px; overflow:hidden; box-shadow:0 12px 32px rgba(0,0,0,0.22); }
.app-modal-header{ display:flex; align-items:center; justify-content:space-between; padding:12px 16px; border-bottom:1px solid rgba(0,0,0,0.06); }
.app-modal-title{ margin:0; font-size:16px; }
.app-modal-body{ padding:16px; color:var(--muted); }
.app-modal-footer{ padding:12px; display:flex; gap:8px; justify-content:flex-end; border-top:1px solid rgba(0,0,0,0.04); }
.app-modal-close{ background:none; border:none; font-size:18px; width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
.app-modal-close::before{ content:'✕'; }
span#stockText\ outofstock {
    color: var(--accent);
}
h1.home-title {
    background: var(--brand);
    text-align: center;
    color: #fff;
    margin: 0;
    font-size: 1rem;
    padding: .5rem;
}