/* ===================================================================
   Ruzzy — Design System 2026
   Neutral-first. Blue is an accent, never a background.
   Borders over shadows. Restrained radius. Calm spacing.
   Layered on top of style.css — purely visual.
   =================================================================== */

/* ── Tokens ────────────────────────────────────────────────────────── */
:root {
  /* Spacing scale (4px base) */
  --s-1: .25rem;  --s-2: .5rem;   --s-3: .75rem;  --s-4: 1rem;
  --s-5: 1.25rem; --s-6: 1.5rem;  --s-8: 2rem;    --s-10: 2.5rem;
  --s-12: 3rem;   --s-16: 4rem;   --s-20: 5rem;

  /* Radius — medium, not pill */
  --r-xs: 6px;  --r-sm: 8px;  --r-md: 10px;  --r-lg: 14px;  --r-pill: 999px;

  /* Elevation — used sparingly */
  --e-1: 0 1px 2px rgba(17,19,24,.05);
  --e-2: 0 4px 12px rgba(17,19,24,.08);
  --e-3: 0 12px 32px rgba(17,19,24,.12);

  --ease: cubic-bezier(.2,0,0,1);
  --r-ink: #111318;
}

/* ── Base ──────────────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-feature-settings: 'cv11', 'ss01';
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1240px; padding: 0 var(--s-5); }

h1, h2, h3, h4 { letter-spacing: -0.025em; color: var(--text); }

/* ── Accessibility: focus ──────────────────────────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* ════════════════════════════════════════════════════════════════════
   HEADER — white, quiet, spacious
   ════════════════════════════════════════════════════════════════════ */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: none !important;
}
.site-header.header-scrolled { box-shadow: var(--e-1) !important; }
.header-top { padding: var(--s-4) 0; gap: var(--s-6); }

/* Wordmark */
.logo { gap: .6rem; }
.logo-icon {
  width: 32px; height: 32px;
  background: var(--r-ink) !important;
  border-radius: var(--r-sm);
  font-size: .85rem;
  color: #fff;
  box-shadow: none;
}
.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--r-ink);
}
.logo-text .accent { color: var(--primary); font-weight: 700; }
.logo:hover .logo-icon { transform: none; }

/* Search — neutral, generous proportions */
.search-wrap { flex: 1; max-width: 560px; min-width: 0; position: relative; }
.search-form {
  border: 1px solid var(--border) !important;
  border-radius: var(--r-md) !important;
  background: var(--surface2) !important;
  overflow: hidden;
  transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
  box-shadow: none !important;
}
.search-form:focus-within {
  border-color: var(--primary) !important;
  background: var(--surface) !important;
  box-shadow: 0 0 0 3px rgba(29,78,216,.10) !important;
}
.search-form input {
  padding: .68rem 1rem;
  font-size: .91rem;
  background: transparent;
  color: var(--text);
}
.search-form input::placeholder { color: var(--text-light); }
.search-btn {
  background: transparent;
  color: var(--text-light);
  padding: .68rem 1rem;
  font-size: .92rem;
  transition: color .18s var(--ease);
}
.search-form:focus-within .search-btn { color: var(--primary); }
.search-btn:hover { background: transparent; color: var(--primary); }

/* Header actions */
.header-actions { gap: 2px; }
.header-btn {
  padding: .42rem .55rem;
  border-radius: var(--r-sm);
  font-size: .67rem;
  font-weight: 500;
  color: var(--text-muted);
  min-width: 52px;
  transition: color .18s var(--ease), background .18s var(--ease) !important;
}
.header-btn i { font-size: 1.02rem; color: var(--text); margin-bottom: 3px; transition: color .18s var(--ease); }
.header-btn:hover { background: var(--surface2); transform: none !important; }
.header-btn:hover i, .header-btn:hover { color: var(--primary); transform: none !important; }
.header-btn.is-active { color: var(--primary); }
.header-btn.is-active i { color: var(--primary); }
.header-btn:hover .fa-shopping-cart,
.header-btn:hover .fa-heart { animation: none !important; }
.badge-count {
  background: var(--primary);
  width: 17px; height: 17px;
  font-size: .6rem;
  top: 0; right: 2px;
  border: 2px solid var(--surface);
  animation: none !important;
}

/* Language pills */
.lang-btn {
  border-radius: var(--r-xs);
  border: 1px solid var(--border);
  font-size: .72rem;
  padding: .35rem .55rem;
  min-width: 34px;
  color: var(--text-muted);
}
.lang-btn.active, .lang-btn:hover {
  background: var(--r-ink);
  border-color: var(--r-ink);
  color: #fff;
}

/* Category nav — icon-led, quiet */
.cat-nav { border-top: 1px solid var(--border-light); }
.cat-nav-link {
  padding: .7rem .85rem;
  font-size: .83rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  gap: .45rem;
}
.cat-nav-link i { font-size: .85rem; color: var(--text-light); transition: color .18s; }
.cat-nav-link:hover, .cat-nav-link.active { color: var(--text); border-bottom-color: var(--primary); }
.cat-nav-link:hover i, .cat-nav-link.active i { color: var(--primary); }

/* Search suggestions */
.search-suggest {
  border-radius: var(--r-md);
  border-color: var(--border);
  box-shadow: var(--e-3);
  top: calc(100% + 4px);
}
.ss-item { padding: .55rem .8rem; }
.ss-item:hover { background: var(--surface2); }
.ss-img { border-radius: var(--r-xs); }
.ss-cat .ss-name { color: var(--primary); }
.ss-price { color: var(--r-ink); }

/* ════════════════════════════════════════════════════════════════════
   HERO — light neutral canvas, no gradient wash
   ════════════════════════════════════════════════════════════════════ */
.hero {
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border);
  padding: var(--s-16) 0 !important;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after { display: none !important; }

.hero-inner {
  grid-template-columns: 1.05fr 1fr;
  gap: var(--s-16);
  align-items: center;
}
.hero-content { color: var(--text); }

/* Eyebrow */
.hero-badge {
  background: var(--surface2) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-muted) !important;
  border-radius: var(--r-pill);
  padding: .35rem .8rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  backdrop-filter: none;
  box-shadow: none;
  margin-bottom: var(--s-5);
  animation: none !important;
}
.hero-badge i { color: var(--primary); }

.hero-content h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem) !important;
  font-weight: 700 !important;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--r-ink);
  text-shadow: none !important;
  margin-bottom: var(--s-4);
  animation: none !important;
}
.hero-content h1 span {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--text-muted);
  display: block;
}
.hero-content > p {
  font-size: 1.02rem !important;
  line-height: 1.65;
  color: var(--text-muted);
  opacity: 1 !important;
  max-width: 420px;
  margin-bottom: var(--s-8);
  animation: none !important;
}
.hero-btns { gap: var(--s-3); margin-bottom: 0; animation: none !important; }

/* ── Hero showcase — real products, layered composition ────────────── */
.hero-showcase {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: var(--s-3);
  width: 100%;
  align-items: stretch;
}

/* Featured product */
.hs-feature {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(11,27,63,.04), 0 12px 28px -18px rgba(11,27,63,.35);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.hs-feature:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 2px 4px rgba(11,27,63,.05), 0 22px 44px -20px rgba(11,27,63,.42);
}
.hs-media {
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--surface2);
  overflow: hidden;
}
.hs-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.hs-feature:hover .hs-media img { transform: scale(1.04); }
.hs-body {
  display: flex; flex-direction: column; gap: .2rem;
  padding: var(--s-4) var(--s-5) var(--s-5);
}
.hs-cat {
  font-size: .65rem; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-light);
}
.hs-name {
  font-size: .95rem; font-weight: 600; color: var(--text);
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.hs-price {
  font-size: 1.18rem; font-weight: 700; color: var(--r-ink);
  letter-spacing: -0.02em; margin-top: .15rem;
}

/* Supporting column — cards keep their natural height (works with 1, 2 or 3
   products); the catalog tile anchors to the bottom so the column reads as
   a deliberate composition rather than a stretched card. */
.hs-side { display: flex; flex-direction: column; gap: var(--s-3); }
.hs-more { margin-top: auto; }
.hs-mini {
  display: flex; align-items: center; gap: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .6rem .75rem .6rem .6rem;
  flex: 0 0 auto;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.hs-mini:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 10px 24px -16px rgba(11,27,63,.4);
}
.hs-mini-media {
  width: 62px; height: 62px; flex-shrink: 0;
  border-radius: 10px; overflow: hidden; background: var(--surface2);
}
.hs-mini-media img { width: 100%; height: 100%; object-fit: cover; }
.hs-mini-body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.hs-mini-name {
  font-size: .8rem; font-weight: 500; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hs-mini-price { font-size: .86rem; font-weight: 700; color: var(--r-ink); letter-spacing: -0.02em; }

/* Category quick-links inside the hero composition */
.hs-cats {
  display: flex; flex-wrap: wrap; gap: .4rem;
  align-content: flex-start;
}
.hs-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: .42rem .75rem;
  font-size: .78rem; font-weight: 500;
  color: var(--text-muted);
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
.hs-chip i { font-size: .72rem; color: var(--primary); }
.hs-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-xlight); }

/* Catalog link tile — the one deliberately branded surface */
.hs-more {
  display: flex; align-items: center; gap: var(--s-3);
  background: var(--primary-ink);
  border: 1px solid var(--primary-ink);
  border-radius: 14px;
  padding: .8rem .9rem;
  color: #fff;
  font-size: .85rem; font-weight: 600;
  transition: background .2s var(--ease), transform .25s var(--ease);
}
.hs-more:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.hs-more-icon {
  width: 30px; height: 30px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12);
  border-radius: 8px;
  font-size: .75rem;
  transition: transform .25s var(--ease);
}
.hs-more:hover .hs-more-icon { transform: translateX(3px); }

/* Hero visual — product/category composition */
.hero-visual { display: flex; }
.hero-card-grid {
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  max-width: 100%;
  width: 100%;
}
.hero-mini-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-lg);
  padding: var(--s-5) !important;
  color: var(--text) !important;
  text-align: left;
  backdrop-filter: none !important;
  box-shadow: var(--e-1) !important;
  animation: none !important;
  transition: border-color .18s var(--ease), transform .18s var(--ease) !important;
}
.hero-mini-card:hover {
  border-color: var(--border-strong) !important;
  transform: translateY(-2px) !important;
}
.hero-mini-card .icon {
  font-size: 1.1rem;
  margin-bottom: var(--s-3);
  filter: none !important;
  color: var(--primary);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-xlight);
  border-radius: var(--r-sm);
}
.hero-mini-card h4 { font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: .15rem; }
.hero-mini-card p  { font-size: .76rem; color: var(--text-muted); opacity: 1 !important; }

/* ════════════════════════════════════════════════════════════════════
   BUTTONS — medium radius, solid accent
   ════════════════════════════════════════════════════════════════════ */
.btn {
  border-radius: var(--r-md);
  font-size: .9rem;
  font-weight: 600;
  padding: .7rem 1.3rem;
  border-width: 1px;
  letter-spacing: -0.01em;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease) !important;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: none !important;
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: none !important;
  box-shadow: none !important;
}
.btn-primary:active { transform: none !important; }
.btn-outline {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { background: var(--surface2); border-color: var(--text-muted); color: var(--text); }
.btn-secondary { background: var(--r-ink); border-color: var(--r-ink); color: #fff; }
.btn-secondary:hover { filter: none; background: #000; }
.btn-sm { padding: .5rem 1rem; font-size: .82rem; }
.btn-lg { padding: .85rem 1.8rem; font-size: .98rem; }
.btn-pulse { animation: none !important; }
.btn .ripple-span { display: none !important; }

/* ════════════════════════════════════════════════════════════════════
   SECTIONS
   ════════════════════════════════════════════════════════════════════ */
.section { padding: var(--s-12) 0; }
@media (min-width: 1100px) { .section { padding: var(--s-16) 0; } }

.section-header { margin-bottom: var(--s-6); align-items: baseline; }
.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  padding-left: 0;
  letter-spacing: -0.025em;
  color: var(--r-ink);
}
.section-title::before { display: none; }
.section-title span { color: var(--text-muted); font-weight: 600; }
.see-all {
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
}
.see-all:hover { background: transparent; color: var(--primary-dark); }

/* ── Benefit strip ─────────────────────────────────────────────────── */
.features {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-grid { grid-template-columns: repeat(3, 1fr); }
.feature-item {
  padding: var(--s-6) var(--s-5);
  border-right: 1px solid var(--border-light);
  justify-content: flex-start;
  gap: var(--s-4);
}
@media (min-width: 769px) { .feature-item { justify-content: center; } }
.feature-icon {
  width: 40px; height: 40px;
  background: var(--surface2);
  color: var(--text);
  border-radius: var(--r-sm);
  font-size: .95rem;
  box-shadow: none;
}
.feature-item:hover .feature-icon {
  background: var(--primary-xlight);
  color: var(--primary);
  transform: none;
}
.feature-item:hover .feature-icon i { color: var(--primary); }
.feature-text h4 { font-size: .88rem; font-weight: 600; }
.feature-text p  { font-size: .78rem; color: var(--text-muted); }

/* ── Category tiles — retail, not dashboard ────────────────────────── */
.categories-grid { grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: var(--s-3); }
.cat-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border) !important;
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: none !important;
  gap: var(--s-4);
  overflow: hidden;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease) !important;
}
/* left accent rail reveals on hover */
.cat-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .25s var(--ease);
}
.cat-card:hover::before { transform: scaleY(1); }
.cat-card:hover {
  border-color: var(--border-strong) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 26px -18px rgba(11,27,63,.45) !important;
}
.cat-icon {
  font-size: 1rem;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-xlight);
  border-radius: 11px;
  color: var(--primary);
  flex-shrink: 0;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.cat-card:hover .cat-icon { transform: none; background: var(--primary); color: #fff; }
.cat-info h3 { font-size: .92rem; font-weight: 600; letter-spacing: -0.012em; }

/* ════════════════════════════════════════════════════════════════════
   PRODUCT CARDS — white, bordered, information-dense
   ════════════════════════════════════════════════════════════════════ */
.products-grid { grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: var(--s-4); }
@media (min-width: 1100px) {
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); gap: var(--s-4); }
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border) !important;
  border-radius: var(--r-lg);
  box-shadow: none !important;
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease),
              transform .2s var(--ease) !important;
}
.product-card:hover {
  border-color: var(--border-strong) !important;
  box-shadow: 0 12px 28px -20px rgba(11,27,63,.5) !important;
  transform: translateY(-3px) !important;
}
.product-img-wrap { background: var(--surface2); }
.product-img-wrap::after { display: none !important; }
.product-img-wrap img { transition: transform .5s var(--ease); }
.product-card:hover .product-img-wrap img { transform: scale(1.045); }

/* Badges — small, tasteful */
.product-badge {
  top: 10px; left: 10px;
  padding: .2rem .5rem;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: none;
  border-radius: var(--r-xs);
  box-shadow: none;
  animation: none !important;
}
.badge-sale { background: var(--red); }
.badge-new  { background: var(--green); }
.badge-hot  { background: var(--r-ink); }
.badge-trend{ background: var(--r-ink); }

.trending-dot {
  top: 10px; right: 46px;
  width: 26px; height: 26px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  box-shadow: none;
  font-size: .78rem;
}

/* Wishlist — subtle, with a small confirming pop */
.fav-btn {
  top: 8px; right: 8px;
  width: 30px; height: 30px;
  background: rgba(255,255,255,.94) !important;
  border: 1px solid var(--border);
  color: var(--text-light);
  box-shadow: none;
  backdrop-filter: none;
  font-size: .8rem;
  transition: color .18s var(--ease), border-color .18s var(--ease),
              transform .18s var(--ease) !important;
}
.fav-btn:hover { color: var(--red); border-color: var(--border-strong); transform: scale(1.08) !important; }
.fav-btn:active { transform: scale(.92) !important; }
.fav-btn.active { color: var(--red); border-color: #F3C9C9; animation: favPop .28s var(--ease) !important; }
@keyframes favPop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.22); }
  100% { transform: scale(1); }
}

.product-info { padding: var(--s-4); }
.product-category {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: .3rem;
}
.product-name {
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  background-image: none !important;
  margin-bottom: var(--s-3);
}
.product-name:hover { color: var(--primary); }

.pc-rating { margin: -.1rem 0 .5rem; font-size: .76rem; }
.pc-rating .fa-star { color: var(--yellow); }

/* Price — strongest element after name */
.product-prices { gap: .4rem; margin-bottom: var(--s-3); align-items: baseline; }
.price-current {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--r-ink);
}
.price-old { font-size: .78rem; color: var(--text-light); }
.discount-tag {
  background: transparent;
  color: var(--red);
  font-size: .72rem;
  font-weight: 600;
  padding: 0;
  border-radius: 0;
}

.product-actions { gap: var(--s-2); }
.add-cart-btn {
  background: var(--r-ink) !important;
  border-radius: var(--r-sm);
  font-size: .8rem;
  font-weight: 600;
  padding: .6rem .75rem;
  box-shadow: none !important;
  transition: background .18s var(--ease) !important;
  transform: none !important;
  will-change: auto;
}
.add-cart-btn:hover { background: var(--primary) !important; box-shadow: none !important; transform: none !important; }
.add-cart-btn:active { transform: none !important; }
.detail-btn {
  width: 38px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.detail-btn:hover { border-color: var(--border-strong); color: var(--text); }

/* ════════════════════════════════════════════════════════════════════
   PRODUCT DETAIL
   ════════════════════════════════════════════════════════════════════ */
.product-detail-page { padding-top: var(--s-6); }
.breadcrumb { font-size: .8rem; color: var(--text-light); margin-bottom: var(--s-6); }
.breadcrumb a:hover { color: var(--primary); }

.product-detail-grid { gap: var(--s-12); }
.product-gallery {
  border: 1px solid var(--border) !important;
  border-radius: var(--r-lg);
  background: var(--surface) !important;
  box-shadow: none !important;
}
@media (min-width: 769px) { .product-gallery { position: sticky; top: 88px; } }

.trending-badge, .flash-sale-banner {
  border-radius: var(--r-xs);
  font-size: .72rem;
  font-weight: 600;
  padding: .3rem .6rem;
  box-shadow: none;
}
.flash-sale-banner { background: var(--red) !important; }
.trending-badge { background: var(--surface2); color: var(--text); }
.trending-badge i { color: var(--red); font-size: .7rem; }

.product-detail-cat { font-size: .72rem; letter-spacing: .05em; color: var(--text-light); }
.product-detail-info h1 {
  font-size: clamp(1.5rem, 2.2vw, 1.95rem) !important;
  font-weight: 700 !important;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--r-ink);
  margin-bottom: var(--s-4);
}
.product-detail-prices { gap: var(--s-3); margin-bottom: var(--s-5); }
.product-detail-prices .price-current {
  font-size: 1.9rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em;
}
.product-detail-prices .discount-tag { font-size: .85rem; }
.product-desc { font-size: .94rem; line-height: 1.7; color: var(--text-muted); }

.product-meta {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: .3rem var(--s-4);
  margin-bottom: var(--s-5);
}
.meta-row { font-size: .85rem; border-bottom-color: var(--border-light); }

.qty-picker { border: 1px solid var(--border); border-radius: var(--r-md); }
.qty-btn { background: var(--surface); width: 38px; font-size: 1rem; color: var(--text-muted); }
.qty-btn:hover { background: var(--surface2); color: var(--text); }
.qty-picker input { width: 46px; font-weight: 600; font-size: .92rem; }

.add-to-cart-big {
  background: var(--primary) !important;
  border-radius: var(--r-md);
  padding: .85rem !important;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: none !important;
  transform: none !important;
  transition: background .18s var(--ease) !important;
  will-change: auto;
}
.add-to-cart-big:hover { background: var(--primary-dark) !important; transform: none !important; box-shadow: none !important; }
.add-to-cart-big:active { transform: none !important; }

.fav-btn-lg {
  width: 48px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.fav-btn-lg:hover { transform: none !important; border-color: var(--red); color: var(--red); }

.delivery-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  font-size: .84rem;
  font-weight: 500;
  color: var(--text);
  gap: .5rem;
}
.delivery-box i { color: var(--text-muted); }

.trust-row { gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--border); }
.trust-row span {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: .4rem .8rem;
}
.trust-row span i { color: var(--text-light) !important; }

.product-detail-info .btn-outline {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.product-detail-info .btn-outline:hover { background: var(--surface2); color: var(--text); border-color: var(--text-muted); }

/* ════════════════════════════════════════════════════════════════════
   CATALOG / FILTERS / PAGINATION
   ════════════════════════════════════════════════════════════════════ */
.products-page { padding: var(--s-6) 0 var(--s-16); }
.products-page-header h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; }

.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.filter-label { font-size: .8rem; color: var(--text-muted); }
.filter-select {
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: .82rem;
  padding: .45rem .7rem;
  color: var(--text);
}
.filter-select:focus { border-color: var(--primary); }
.results-count { font-size: .82rem; color: var(--text-muted); }
.active-cat-chip {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: .8rem;
}

.pagination { gap: var(--s-1); margin-top: var(--s-10); }
.page-btn {
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: .85rem;
  color: var(--text-muted);
  min-width: 38px; height: 38px;
}
.page-btn:hover:not(.disabled) { border-color: var(--border-strong); color: var(--text); background: var(--surface); transform: none !important; }
.page-btn.active { background: var(--r-ink); border-color: var(--r-ink); color: #fff; }

/* ════════════════════════════════════════════════════════════════════
   CART / CHECKOUT
   ════════════════════════════════════════════════════════════════════ */
.cart-page, .checkout-page { padding: var(--s-8) 0 var(--s-16); }
.cart-header { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: var(--s-6); }

.cart-items {
  border: 1px solid var(--border) !important;
  border-radius: var(--r-lg);
  box-shadow: none !important;
}
.cart-item { padding: var(--s-4); gap: var(--s-4); border-bottom-color: var(--border-light); }
.cart-item:hover { background: transparent; }
.cart-item-img { width: 76px; height: 76px; border-radius: var(--r-sm); box-shadow: none; border: 1px solid var(--border); }
.cart-item-name { font-size: .92rem; font-weight: 600; }
.cart-item-price { font-size: .82rem; color: var(--text-muted); }
.cart-item-subtotal { font-size: .98rem; font-weight: 700; color: var(--r-ink); }
.qty-input {
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: .88rem;
  padding: .4rem;
}
.qty-input:focus { border-color: var(--primary); box-shadow: none; }

.order-summary {
  border: 1px solid var(--border) !important;
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: none !important;
}
@media (min-width: 769px) { .order-summary { position: sticky; top: 88px; } }
.order-summary h3 {
  font-size: 1rem; font-weight: 700;
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--border-light);
  letter-spacing: -0.02em;
}
.summary-row { font-size: .86rem; color: var(--text-muted); }
.summary-row.total {
  font-size: 1.02rem;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: var(--s-3);
  margin-top: var(--s-2);
}
.summary-row.total span:last-child { font-weight: 700; color: var(--r-ink) !important; }
.order-summary .btn-primary { border-radius: var(--r-md); padding: .8rem; box-shadow: none !important; }

.checkout-form-card {
  border: 1px solid var(--border) !important;
  border-radius: var(--r-lg);
  padding: var(--s-8);
  box-shadow: none !important;
}
.form-section h3 {
  font-size: .78rem;
  letter-spacing: .05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: var(--s-2);
  margin-bottom: var(--s-4);
}
.form-group label { font-size: .84rem; font-weight: 500; color: var(--text); }
.form-control {
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: .7rem .9rem;
  font-size: .9rem;
}
.form-control:focus { border-color: var(--primary); box-shadow: none !important; background: var(--surface); }

.payment-option label {
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  padding: .85rem 1rem;
  font-size: .88rem;
  font-weight: 500;
}
.payment-option input:checked + label {
  border-color: var(--primary);
  background: var(--primary-xlight);
  box-shadow: none;
  transform: none;
}
.checkout-form-card button[type="submit"] {
  border-radius: var(--r-md);
  font-weight: 600;
  box-shadow: none !important;
}

/* ── Order success ─────────────────────────────────────────────────── */
.success-page { padding: var(--s-16) 0; }
.success-page .success-icon {
  width: 64px; height: 64px;
  font-size: 1.8rem;
  background: #E8F5EC;
  box-shadow: none;
  margin-bottom: var(--s-5);
  animation: none !important;
}
.success-page h1 { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; color: var(--r-ink); animation: none !important; }
.order-box {
  border: 1px solid var(--border) !important;
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: none !important;
  animation: none !important;
}
.order-box h3 { font-size: .98rem; font-weight: 700; border-bottom: 1px solid var(--border-light); }

/* ── Promo banner — dark, not blue gradient ────────────────────────── */
.promo-banner {
  background: var(--r-ink) !important;
  border-radius: var(--r-lg);
  box-shadow: none;
  padding: var(--s-10) var(--s-12);
}
.promo-banner h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.025em; }
.promo-banner .accent { color: #93B4FF; }
.promo-banner p { opacity: .7; font-size: .92rem; }
.promo-emoji { animation: none !important; opacity: .35; font-size: 3rem; }

/* ── Trust badges strip ────────────────────────────────────────────── */
.trust-section { background: var(--surface) !important; border-top: 1px solid var(--border); }
.trust-badges-grid > div {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: var(--s-4) var(--s-2);
  box-shadow: none;
  transition: none;
}
.trust-badges-grid > div:hover { transform: none; box-shadow: none; }
.trust-badges-grid > div:hover > div { transform: none; }
.trust-badges-grid h4 { font-size: .85rem; font-weight: 600; color: var(--text); }
.tb-icon {
  width: 40px; height: 40px;
  margin: 0 auto var(--s-3);
  display: flex; align-items: center; justify-content: center;
  background: var(--surface2);
  border-radius: var(--r-sm);
  color: var(--primary);
  font-size: 1rem;
}

/* ── Today's deals block ───────────────────────────────────────────── */
.deals-head {
  display: flex; align-items: center; gap: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: var(--s-4) var(--s-5);
  color: var(--text);
}
.deals-head i { color: var(--red); font-size: .95rem; }
.deals-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; color: var(--r-ink); }
.deals-sub { font-size: .82rem; color: var(--text-muted); }
.deals-grid {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  padding: var(--s-5);
}
.deals-grid .product-card { border-color: var(--border-light) !important; }
@media (max-width: 768px) {
  .deals-head { padding: var(--s-3) var(--s-4); }
  .deals-title { font-size: .95rem; }
  .deals-sub { display: none; }
  .deals-grid { padding: var(--s-3); }
}

/* ── Flash sale strip ──────────────────────────────────────────────── */
.flash-sale-strip { background: var(--red) !important; animation: none !important; }
.flash-sale-strip i { animation: none !important; }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--r-ink) !important;
  color: #9CA3AF;
  padding: var(--s-16) 0 var(--s-6);
  margin-top: var(--s-16);
}
.site-footer .logo-icon { background: var(--surface) !important; color: var(--r-ink); }
.site-footer .logo-text { color: #fff; }
.site-footer .logo-text .accent { color: #93B4FF; }
.footer-col h4 {
  font-size: .78rem;
  letter-spacing: .06em;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.footer-col h4::after { display: none; }
.footer-col a { font-size: .85rem; color: #9CA3AF; }
.footer-col a:hover { color: #fff; transform: none !important; }
.footer-brand p { font-size: .86rem; line-height: 1.7; color: #9CA3AF; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem; color: #6B7280; }
.social-link {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.06);
  border-radius: var(--r-sm);
  color: #9CA3AF;
}
.social-link:hover { background: var(--primary); color: #fff; transform: none !important; }

/* ── Flash messages / alerts ───────────────────────────────────────── */
.flash-msg {
  border-radius: var(--r-md);
  font-size: .87rem;
  font-weight: 500;
  padding: .75rem 1rem;
  animation: none !important;
}
.flash-msg.success { background: #E8F5EC; color: #14532D; }
.flash-msg.error   { background: #FDECEC; color: #7F1D1D; }
.flash-msg.info    { background: var(--primary-xlight); color: var(--primary-ink); }

/* ════════════════════════════════════════════════════════════════════
   ACCOUNT (Hisob)
   ════════════════════════════════════════════════════════════════════ */
.account-page { padding: var(--s-8) 0 var(--s-16); }
.account-page .page-header { padding: 0 0 var(--s-6); }
.account-page .page-header h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; }
.account-page .page-header p { font-size: .9rem; color: var(--text-muted); margin-top: .25rem; }

.account-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--s-5); align-items: start; }
.account-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}
.account-card-title {
  display: flex; align-items: center; gap: .55rem;
  font-size: .95rem; font-weight: 700; letter-spacing: -0.02em;
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-3);
  border-bottom: 1px solid var(--border-light);
}
.account-card-title i { color: var(--primary); font-size: .85rem; }

.acc-order-list { list-style: none; margin: 0; padding: 0; }
.acc-order + .acc-order { border-top: 1px solid var(--border-light); }
.acc-order-link {
  display: flex; align-items: center; gap: var(--s-3);
  padding: .8rem .25rem;
  transition: background .18s var(--ease);
  border-radius: var(--r-sm);
}
.acc-order-link:hover { background: var(--surface2); }
.acc-order-id { font-weight: 700; font-size: .88rem; color: var(--r-ink); min-width: 52px; }
.acc-order-meta { display: flex; flex-direction: column; gap: .1rem; flex: 1; min-width: 0; }
.acc-order-total { font-size: .88rem; font-weight: 600; color: var(--text); }
.acc-order-date { font-size: .74rem; color: var(--text-light); }
.acc-chevron { color: var(--text-light); font-size: .7rem; }
.status-pill {
  font-size: .7rem; font-weight: 600;
  padding: .22rem .6rem;
  border-radius: var(--r-pill);
  white-space: nowrap;
  background: var(--surface2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.status-pill.status-delivered { background: #E9F6EE; color: #14532D; border-color: #CBE8D6; }
.status-pill.status-cancelled { background: #FDECEC; color: #7F1D1D; border-color: #F5CFCF; }
.status-pill.status-processing,
.status-pill.status-shipped    { background: var(--primary-xlight); color: var(--primary-dark); border-color: var(--primary-light); }

.acc-empty { text-align: center; padding: var(--s-8) var(--s-3); }
.acc-empty p { font-size: .9rem; color: var(--text-muted); margin-bottom: var(--s-4); }

.account-side { display: flex; flex-direction: column; gap: var(--s-4); }
.account-tile {
  display: flex; align-items: center; gap: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.account-tile:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.account-tile-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-xlight); color: var(--primary);
  border-radius: 11px;
}
.account-tile strong { display: block; font-size: .9rem; font-weight: 600; color: var(--text); }
.account-tile em { display: block; font-style: normal; font-size: .78rem; color: var(--text-muted); }
.account-note p { font-size: .86rem; line-height: 1.65; color: var(--text-muted); margin-bottom: var(--s-4); }

@media (max-width: 860px) {
  .account-grid { grid-template-columns: 1fr; }
}

/* ── Image placeholders (icon, not emoji) ──────────────────────────── */
.product-img-placeholder, .no-img, .img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface2);
  color: var(--text-light);
  font-size: 1.4rem;
}
.no-img { font-size: 2.5rem; }
.product-img-placeholder { font-size: 1.6rem; }
.trending-dot i { color: var(--red); font-size: .7rem; }
.success-page .success-icon i { color: var(--green); }

/* ── Empty states ──────────────────────────────────────────────────── */
.empty-state, .cart-empty { padding: var(--s-16) var(--s-4); }
.empty-icon { font-size: 2.5rem; margin-bottom: var(--s-4); opacity: .5; }
.empty-state h2, .cart-empty h2 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; }
.empty-state p, .cart-empty p { font-size: .9rem; color: var(--text-muted); }

/* ── Scroll reveal: keep subtle ────────────────────────────────────── */
.anim-fade-up { transform: translateY(10px); transition-duration: .4s !important; }

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE — mobile designed, not shrunk
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--s-10); }
  .hero-visual { display: flex !important; }
  .hero-content > p { max-width: none; }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--s-4); }

  /* Header: brand + actions on one row, search on its own row below */
  .header-top { padding: var(--s-3) 0; gap: var(--s-2); flex-wrap: wrap; align-items: center; }
  .logo-text { font-size: 1rem; }
  .logo-icon { width: 28px; height: 28px; font-size: .75rem; }
  .search-wrap { order: 3; flex-basis: 100%; max-width: none; }
  .header-actions { margin-left: auto; gap: 0; flex-shrink: 0; }
  /* icon-only keeps the whole row on one line down to 320px */
  .header-btn span { display: none; }
  .header-btn { padding: .45rem .5rem; min-width: 40px; }
  .header-btn i { font-size: 1.05rem; margin-bottom: 0; }
  .badge-count { top: -1px; right: 0; }
  .lang-btn { min-width: 30px; padding: .3rem .45rem; font-size: .7rem; }

  /* Hero: compact */
  .hero { padding: var(--s-10) 0 var(--s-8) !important; }
  .hero-content h1 { font-size: 1.75rem !important; letter-spacing: -0.03em; }
  .hero-content > p { font-size: .95rem !important; margin-bottom: var(--s-6); }
  .hero-badge { font-size: .65rem; margin-bottom: var(--s-4); }
  .hero-btns { gap: var(--s-2); }
  .hero-btns .btn { flex: 1; justify-content: center; padding: .75rem 1rem; }
  .hero-card-grid { gap: var(--s-2); }
  .hero-mini-card { padding: var(--s-4) !important; }
  .hero-mini-card .icon { width: 32px; height: 32px; font-size: .95rem; margin-bottom: var(--s-2); }
  .hero-mini-card h4 { font-size: .8rem; }
  .hero-mini-card p { font-size: .7rem; }

  /* Hero showcase: featured on top, supporting row below */
  .hero-showcase { grid-template-columns: 1fr; gap: var(--s-3); }
  .hs-feature { flex-direction: row; align-items: center; border-radius: 14px; }
  .hs-media { width: 116px; flex-shrink: 0; aspect-ratio: 1 / 1; }
  .hs-body { padding: var(--s-3) var(--s-4); flex: 1; min-width: 0; }
  .hs-name { font-size: .88rem; }
  .hs-price { font-size: 1.05rem; }
  /* Supporting row: product + catalog tile, equal height.
     Category chips are hidden here — the full category grid sits directly below. */
  .hs-side { flex-direction: row; gap: var(--s-2); align-items: stretch; }
  .hs-cats { display: none; }
  .hs-more { margin-top: 0; }
  .hs-mini { flex: 1 1 0; min-width: 0; align-items: center; gap: var(--s-3); padding: .5rem .6rem; }
  .hs-mini-media { width: 46px; height: 46px; border-radius: 9px; }
  .hs-mini-name { font-size: .76rem; }
  .hs-mini-price { font-size: .84rem; }
  .hs-more { flex: 0 0 auto; align-items: center; font-size: .78rem; padding: .6rem .85rem; }
  .hs-more-icon { width: 26px; height: 26px; }

  .account-page { padding: var(--s-6) 0 var(--s-10); }
  .account-card { padding: var(--s-4); }
  .acc-order-link { gap: var(--s-2); padding: .7rem .15rem; }
  .acc-order-id { min-width: 42px; font-size: .82rem; }
  .status-pill { font-size: .66rem; padding: .2rem .5rem; }
  .acc-chevron { display: none; }

  .section { padding: var(--s-8) 0; }
  .section-title { font-size: 1.15rem; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--border-light); padding: var(--s-4); }
  .feature-item:last-child { border-bottom: none; }

  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
  .cat-card { padding: var(--s-3); }
  .cat-icon { width: 32px; height: 32px; font-size: .85rem; }
  .cat-info h3 { font-size: .82rem; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
  .product-info { padding: var(--s-3); }
  .product-name { font-size: .84rem; }
  .price-current { font-size: .98rem; }
  .add-cart-btn { font-size: .76rem; padding: .55rem .5rem; }
  .detail-btn { width: 34px; }

  .product-detail-grid { gap: var(--s-6); }
  .product-detail-info h1 { font-size: 1.35rem !important; }
  .product-detail-prices .price-current { font-size: 1.55rem !important; }

  .cart-item { padding: var(--s-3); gap: var(--s-3); }
  .cart-item-img { width: 60px; height: 60px; }
  .checkout-form-card { padding: var(--s-5); }
  .order-summary { padding: var(--s-4); }
  .promo-banner { padding: var(--s-6); border-radius: var(--r-md); }
  .promo-banner h2 { font-size: 1.15rem; }
  .filter-bar { padding: var(--s-3); }
  .filter-price { max-width: 78px; }
}

@media (max-width: 420px) {
  /* Cart row: let the controls wrap under the product instead of overflowing */
  .cart-item { flex-wrap: wrap; row-gap: var(--s-3); }
  .cart-item-info { flex: 1 1 55%; min-width: 0; }
  .cart-item-name { overflow-wrap: anywhere; }
  .cart-item > div:last-child { flex: 1 1 100%; justify-content: space-between; }
}

@media (max-width: 380px) {
  .products-grid { gap: var(--s-2); }
  .hero-content h1 { font-size: 1.55rem !important; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; }
  .header-btn span { display: none; }
  .header-btn { min-width: 38px; padding: .4rem .35rem; }
  .header-btn i { margin-bottom: 0; }
  .cart-item-img { width: 52px; height: 52px; }
  .hs-media { width: 92px; }
  .hs-mini-media { height: 58px; }
}

/* ── Reduced motion ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .anim-fade-up { opacity: 1 !important; transform: none !important; }
}
