/*
 * main.css — ITCD Theme v3.0
 * MDComputers-inspired design. Red/Orange/Black light theme.
 */

/* ══════════════════════════════════════════════════
   1. ANNOUNCEMENT TOP BAR
══════════════════════════════════════════════════ */
.ann-bar {
  background: var(--header-top-bg);
  color: rgba(255,255,255,.85);
  padding: 6px 0;
  font-size: 12px;
}
.ann-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.ann-bar__left { display:flex; align-items:center; gap:var(--sp-4); }
.ann-bar__social { display:flex; gap:var(--sp-2); }
.ann-bar__social a {
  width: 26px; height: 26px;
  display: flex; align-items:center; justify-content:center;
  border-radius: var(--r-sm);
  color: rgba(255,255,255,.6);
  font-size: 13px;
  transition: var(--t-fast);
}
.ann-bar__social a:hover { color:#fff; background:var(--red); }
.ann-bar__divider { width:1px; height:16px; background:rgba(255,255,255,.15); }
.ann-bar__right { display:flex; align-items:center; gap:var(--sp-4); }
.ann-bar__link { color:rgba(255,255,255,.7); font-size:12px; transition:var(--t-fast); }
.ann-bar__link:hover { color:#fff; }
.ann-bar__phone { color:var(--yellow); font-weight:600; font-size:12px; }
.ann-bar__dismiss { color:rgba(255,255,255,.5); font-size:16px; cursor:pointer; padding:2px 4px; transition:var(--t-fast); }
.ann-bar__dismiss:hover { color:#fff; }

/* ══════════════════════════════════════════════════
   2. MIDDLE HEADER (Logo + Search + Icons)
══════════════════════════════════════════════════ */
.header-mid {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.header-mid__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo__mark {
  width: 42px; height: 42px;
  background: var(--red);
  border-radius: var(--r-lg);
  display: flex; align-items:center; justify-content:center;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.site-logo__text { font-family:var(--font-heading); font-size:22px; font-weight:700; color:var(--black); letter-spacing:-.5px; }
.site-logo__text span { color:var(--red); }
.site-logo__tagline { font-size:10px; color:var(--text-muted); font-weight:500; letter-spacing:.3px; text-transform:uppercase; }

/* Search bar */
.header-search {
  flex: 1;
  max-width: 600px;
  position: relative;
}
.header-search__form {
  display: flex;
  border: 2px solid var(--red);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
}
.header-search__input {
  flex: 1;
  padding: 9px var(--sp-4);
  font-size: 13px;
  border: none;
  outline: none;
  color: var(--text);
  min-width: 0;
}
.header-search__input::placeholder { color:var(--text-light); }
.header-search__btn {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 0 var(--sp-5);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items:center; gap:var(--sp-2);
  transition: background var(--t-fast);
  white-space: nowrap;
  flex-shrink: 0;
}
.header-search__btn:hover { background:var(--red-dark); }
.header-search__btn svg { width:16px; height:16px; }

/* Search results dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-dropdown);
  max-height: 420px;
  overflow-y: auto;
}
.search-dropdown[hidden] { display:none; }
.search-result {
  display: flex; align-items:center; gap:var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--t-fast);
}
.search-result:last-child { border-bottom:none; }
.search-result:hover { background:var(--gray-50); }
.search-result__img {
  width: 48px; height: 48px;
  object-fit: cover; border-radius: var(--r-md);
  border: 1px solid var(--border); flex-shrink:0;
  background: var(--gray-100);
}
.search-result__name { font-size:13px; font-weight:500; color:var(--text); line-height:1.3; }
.search-result__price { font-size:13px; font-weight:700; color:var(--red); margin-top:2px; }
.search-dropdown__empty,
.search-dropdown__loading { padding:var(--sp-5); text-align:center; font-size:13px; color:var(--text-muted); }

/* Header actions (right icons) */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-left: auto;
  flex-shrink: 0;
}
.h-action {
  display: flex; flex-direction:column; align-items:center;
  gap: 2px;
  padding: 6px var(--sp-3);
  border-radius: var(--r-md);
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: var(--t-fast);
  position: relative;
  white-space: nowrap;
  background: none; border: none;
}
.h-action:hover { color:var(--red); background:rgba(229,46,46,.05); }
.h-action__icon {
  position: relative;
  width: 22px; height: 22px;
  display: flex; align-items:center; justify-content:center;
}
.h-action__icon svg { width:20px; height:20px; }
.h-action__count {
  position: absolute;
  top: -6px; right: -8px;
  min-width: 16px; height: 16px;
  background: var(--red); color: #fff;
  font-size: 9px; font-weight: 700;
  border-radius: var(--r-full);
  display: flex; align-items:center; justify-content:center;
  padding: 0 3px;
  border: 2px solid var(--surface);
  line-height: 1;
}
.h-action__count.hidden { display:none; }
.h-action__label { font-size:11px; font-weight:500; color:var(--text-muted); }

/* ══════════════════════════════════════════════════
   3. NAVIGATION BAR (Red bottom bar)
══════════════════════════════════════════════════ */
.header-nav {
  background: var(--header-nav-bg);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: 0 2px 8px rgba(229,46,46,.25);
}
.header-nav__inner {
  display: flex;
  align-items: stretch;
  height: 44px;
}

/* All Categories button */
.nav-categories-btn {
  display: flex; align-items:center; gap:var(--sp-2);
  background: rgba(0,0,0,.25);
  color: #fff;
  padding: 0 var(--sp-5);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,.15);
  transition: background var(--t-fast);
}
.nav-categories-btn:hover { background:rgba(0,0,0,.35); }
.nav-categories-btn svg { width:18px; height:18px; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: stretch;
  flex: 1;
}
.nav-link {
  display: flex; align-items:center; gap:var(--sp-1);
  padding: 0 var(--sp-4);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
  border: none; background: none; cursor: pointer;
  position: relative;
}
.nav-link:hover { background:rgba(0,0,0,.2); color:#fff; }
.nav-link.active { background:rgba(0,0,0,.25); color:#fff; }
.nav-link .hot-badge {
  background: var(--yellow); color: var(--black);
  font-size: 9px; font-weight: 800;
  padding: 1px 5px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: .5px;
}
.nav-link__arrow { width:12px; height:12px; opacity:.7; transition:transform var(--t-fast); }
.nav-link:hover .nav-link__arrow { transform:rotate(180deg); }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  align-items: center; justify-content:center;
  width: 44px; height: 44px;
  color: #fff; cursor: pointer;
  border: none; background:none;
  flex-shrink: 0;
}
.hamburger svg { width:22px; height:22px; }
@media(max-width:900px){ .hamburger{ display:flex; } }
@media(max-width:900px){ .nav-links{ display:none; } .nav-categories-btn{ display:none; } }

/* ══════════════════════════════════════════════════
   4. SITE HEADER WRAPPER
══════════════════════════════════════════════════ */
.site-header { background:var(--surface); }
.header-mid { position:sticky; top:0; z-index:calc(var(--z-sticky)+1); }
@media(max-width:900px){
  .header-search { max-width:100%; }
  .site-logo__tagline { display:none; }
  .h-action__label { display:none; }
}
@media(max-width:640px){
  .ann-bar__left .ann-bar__social { display:none; }
  .header-mid__inner { gap:var(--sp-3); }
}

/* ══════════════════════════════════════════════════
   5. MOBILE NAV DRAWER
══════════════════════════════════════════════════ */
.mobile-nav {
  position: fixed; inset:0;
  z-index: var(--z-overlay);
  pointer-events: none;
}
.mobile-nav.is-open { pointer-events:all; }
.mobile-nav__overlay {
  position:absolute; inset:0;
  background:rgba(0,0,0,.5);
  opacity:0; transition:opacity var(--t-slow);
}
.mobile-nav.is-open .mobile-nav__overlay { opacity:1; }
.mobile-nav__drawer {
  position:absolute; top:0; left:0; bottom:0;
  width: min(85vw, 300px);
  background: var(--surface);
  box-shadow: var(--shadow-xl);
  transform: translateX(-100%);
  transition: transform var(--t-slow) cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction:column;
  overflow-y: auto;
}
.mobile-nav.is-open .mobile-nav__drawer { transform:translateX(0); }
.mobile-nav__head {
  background: var(--header-nav-bg);
  padding: var(--sp-4) var(--sp-5);
  display: flex; align-items:center; justify-content:space-between;
}
.mobile-nav__head-title { font-family:var(--font-heading); font-size:18px; font-weight:700; color:#fff; }
.mobile-nav__close { color:rgba(255,255,255,.8); cursor:pointer; border:none; background:none; font-size:22px; line-height:1; }
.mobile-nav__close:hover { color:#fff; }
.mobile-nav__body { padding:var(--sp-3); flex:1; }
.mobile-nav__link {
  display:flex; align-items:center; gap:var(--sp-3);
  padding:var(--sp-3) var(--sp-3);
  border-radius:var(--r-md);
  font-size:14px; font-weight:500;
  color:var(--text-muted); text-decoration:none;
  transition:var(--t-fast);
}
.mobile-nav__link:hover, .mobile-nav__link.active {
  background: rgba(229,46,46,.08); color:var(--red);
}
.mobile-nav__divider { height:1px; background:var(--border); margin:var(--sp-2) 0; }

/* Mobile bottom toolbar */
.mobile-toolbar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  z-index: var(--z-sticky);
  padding-bottom: env(safe-area-inset-bottom);
}
@media(max-width:900px){ .mobile-toolbar{ display:flex; } }

.mobile-toolbar__btn {
  flex: 1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:3px; padding:8px 0;
  color:var(--text-muted); text-decoration:none;
  font-size:10px; font-weight:500;
  transition:color var(--t-fast);
  border:none; background:none; cursor:pointer; position:relative;
}
.mobile-toolbar__btn:hover, .mobile-toolbar__btn.active { color:var(--red); }
.mobile-toolbar__btn svg { width:20px; height:20px; }
.mobile-toolbar__count {
  position:absolute; top:4px; left:50%; transform:translateX(4px);
  min-width:15px; height:15px;
  background:var(--red); color:#fff;
  font-size:8px; font-weight:700;
  border-radius:var(--r-full);
  display:flex; align-items:center; justify-content:center;
  padding:0 3px; line-height:1;
}
.mobile-toolbar__count.hidden { display:none; }
body { padding-bottom:0; }
@media(max-width:900px){ body{ padding-bottom:56px; } }

/* ══════════════════════════════════════════════════
   6. SIDE CART DRAWER
══════════════════════════════════════════════════ */
.cart-drawer {
  position: fixed;
  top:0; right:0; bottom:0;
  width: min(90vw, 380px);
  background: var(--surface);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-modal);
  transform: translateX(100%);
  transition: transform var(--t-slow) cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction:column;
}
.cart-drawer.is-open { transform:translateX(0); }
.cart-drawer-overlay {
  position:fixed; inset:0;
  background:rgba(0,0,0,.5);
  z-index:calc(var(--z-modal) - 1);
  opacity:0; pointer-events:none;
  transition:opacity var(--t-slow);
}
.cart-drawer-overlay.is-open { opacity:1; pointer-events:all; }

.cart-drawer__head {
  display:flex; align-items:center; justify-content:space-between;
  padding:var(--sp-4) var(--sp-5);
  border-bottom:1px solid var(--border);
  background:var(--gray-50);
}
.cart-drawer__title { font-family:var(--font-heading); font-size:17px; font-weight:700; display:flex; align-items:center; gap:var(--sp-2); }
.cart-drawer__close { width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:var(--r-md);color:var(--text-muted);cursor:pointer;border:none;background:none;transition:var(--t-fast); }
.cart-drawer__close:hover { background:var(--gray-200); color:var(--text); }

.cart-drawer__body { flex:1; overflow-y:auto; padding:var(--sp-4); }
.cart-drawer__empty { text-align:center; padding:var(--sp-16) var(--sp-8); }
.cart-drawer__empty-icon { font-size:48px; margin-bottom:var(--sp-3); }
.cart-drawer__empty p { font-size:14px; color:var(--text-muted); }

.cart-drawer__item {
  display:flex; gap:var(--sp-3);
  padding:var(--sp-3) 0;
  border-bottom:1px solid var(--border);
}
.cart-drawer__item:last-child { border-bottom:none; }
.cart-drawer__item-img {
  width:64px;height:64px;object-fit:cover;
  border-radius:var(--r-md);border:1px solid var(--border);
  flex-shrink:0;background:var(--gray-100);
}
.cart-drawer__item-info { flex:1; min-width:0; }
.cart-drawer__item-name { font-size:13px;font-weight:500;color:var(--text);line-height:1.3; display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.cart-drawer__item-price { font-size:14px;font-weight:700;color:var(--red);margin-top:4px; }
.cart-drawer__item-remove { color:var(--text-light);cursor:pointer;font-size:14px;border:none;background:none;transition:var(--t-fast); }
.cart-drawer__item-remove:hover { color:var(--danger); }

.cart-drawer__foot {
  padding:var(--sp-4) var(--sp-5);
  border-top:2px solid var(--border);
  background:var(--gray-50);
}
.cart-drawer__total-row { display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--sp-4); }
.cart-drawer__total-label { font-size:14px;font-weight:600;color:var(--text); }
.cart-drawer__total-amount { font-size:18px;font-weight:700;color:var(--red); }

/* ══════════════════════════════════════════════════
   7. HERO SLIDER
══════════════════════════════════════════════════ */
.hero { position:relative;overflow:hidden;background:var(--gray-900); }
.hero__track { display:flex;width:100%; }
.hero__slide {
  min-width:100%;position:relative;
  height:clamp(240px, 40vw, 480px);
  display:flex;align-items:center;
  flex-shrink:0;
}
.hero__slide-bg {
  position:absolute;inset:0;
  background-size:cover;background-position:center;
  transform:scale(1.03);
  transition:transform 8s ease-out;
}
.hero__slide.active .hero__slide-bg { transform:scale(1); }
.hero__overlay {
  position:absolute;inset:0;
  background:linear-gradient(100deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.35) 55%, transparent 100%);
}
.hero__content {
  position:relative;z-index:2;
  max-width:520px;
  animation:fadeInUp .6s ease both;
}
.hero__tag {
  display:inline-flex;align-items:center;gap:var(--sp-2);
  background:var(--red);color:#fff;
  font-size:11px;font-weight:700;
  padding:3px 10px;border-radius:var(--r-sm);
  text-transform:uppercase;letter-spacing:.5px;
  margin-bottom:var(--sp-3);
}
.hero__title {
  font-family:var(--font-heading);
  font-size:clamp(26px,4vw,48px);
  font-weight:700;color:#fff;
  line-height:1.1;
  margin-bottom:var(--sp-3);
  text-shadow:0 2px 8px rgba(0,0,0,.3);
  letter-spacing:-.5px;
}
.hero__sub {
  font-size:14px;color:rgba(255,255,255,.85);
  margin-bottom:var(--sp-5);
  line-height:1.6;
}
.hero__actions { display:flex;gap:var(--sp-3);flex-wrap:wrap; }

.hero__dots {
  position:absolute;bottom:var(--sp-4);left:50%;transform:translateX(-50%);
  display:flex;gap:var(--sp-2);z-index:3;
}
.hero__dot {
  width:8px;height:8px;border-radius:50%;
  background:rgba(255,255,255,.4);border:none;cursor:pointer;
  transition:var(--t-base);padding:0;
}
.hero__dot.active,.hero__dot:hover { background:#fff;transform:scale(1.3); }

.hero__arrow {
  position:absolute;top:50%;transform:translateY(-50%);
  z-index:3;width:40px;height:40px;
  background:rgba(255,255,255,.15);backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.25);
  border-radius:50%;color:#fff;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:var(--t-base);
  border-width:0;
}
.hero__arrow:hover { background:var(--red); }
.hero__arrow--prev { left:var(--sp-4); }
.hero__arrow--next { right:var(--sp-4); }
@media(max-width:480px){ .hero__arrow{display:none;} }

/* ══════════════════════════════════════════════════
   8. CATEGORY ICON GRID (MDComputers style)
══════════════════════════════════════════════════ */
.cat-icons {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-4) 0;
}
.cat-icons__grid {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}
.cat-icons__grid::-webkit-scrollbar { display:none; }
.cat-icon {
  display: flex;flex-direction:column;align-items:center;
  gap:var(--sp-1);
  padding:var(--sp-2) var(--sp-3);
  border-radius:var(--r-lg);
  text-decoration:none;
  cursor:pointer;
  flex-shrink:0;
  transition:var(--t-fast);
  min-width:72px;
  text-align:center;
}
.cat-icon:hover { background:rgba(229,46,46,.06); }
.cat-icon__img {
  width:52px;height:52px;object-fit:contain;
  border-radius:var(--r-md);
  border:1px solid var(--border);
  background:var(--gray-50);
  padding:4px;
  transition:transform var(--t-base);
}
.cat-icon:hover .cat-icon__img { transform:scale(1.07); }
.cat-icon__name { font-size:11px;font-weight:500;color:var(--text-muted);line-height:1.3;max-width:72px; }
.cat-icon:hover .cat-icon__name { color:var(--red); }

/* ══════════════════════════════════════════════════
   9. PROMO STRIP
══════════════════════════════════════════════════ */
.promo-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-2) 0;
}
.promo-strip__inner { display:flex;align-items:center;justify-content:center;gap:0; }
.promo-item {
  display:flex;align-items:center;gap:var(--sp-2);
  padding:var(--sp-2) var(--sp-5);
  border-right:1px solid var(--border);
  flex-shrink:0;
}
.promo-item:last-child { border-right:none; }
.promo-item__icon { font-size:20px;flex-shrink:0; }
.promo-item__label { font-size:12px;font-weight:700;color:var(--text);text-transform:uppercase;letter-spacing:.3px; }
.promo-item__text { font-size:11px;color:var(--text-muted); }
@media(max-width:768px){
  .promo-strip__inner { flex-wrap:wrap; }
  .promo-item { border-right:none; border-bottom:1px solid var(--border);width:50%;justify-content:center; }
  .promo-item:nth-child(3),.promo-item:nth-child(4) { border-bottom:none; }
}
@media(max-width:400px){ .promo-item{ width:100%; } }

/* ══════════════════════════════════════════════════
   10. PRODUCT CARD
══════════════════════════════════════════════════ */
.product-card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  overflow:hidden;
  display:flex;flex-direction:column;
  position:relative;
  transition:box-shadow var(--t-slow), transform var(--t-slow), border-color var(--t-slow);
}
.product-card:hover {
  box-shadow:var(--shadow-card-hover);
  transform:translateY(-3px);
  border-color:var(--red);
}
.product-card:hover .product-card__atc { opacity:1; transform:translateY(0); }

/* Image */
.product-card__img-wrap {
  position:relative;aspect-ratio:1;
  overflow:hidden;background:var(--gray-50);
}
.product-card__img {
  width:100%;height:100%;object-fit:contain;
  padding:var(--sp-2);
  transition:transform var(--t-slow);
}
.product-card:hover .product-card__img { transform:scale(1.06); }

/* Badges */
.product-card__badges {
  position:absolute;top:var(--sp-2);left:var(--sp-2);
  display:flex;flex-direction:column;gap:3px;z-index:2;
}

/* Wishlist */
.product-card__wish {
  position:absolute;top:var(--sp-2);right:var(--sp-2);z-index:2;
  width:30px;height:30px;
  background:var(--surface);border:1px solid var(--border);
  border-radius:50%;display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:var(--t-base);
  box-shadow:var(--shadow-sm);
  opacity:0;transform:scale(.8);
}
.product-card:hover .product-card__wish,
.product-card__wish.active { opacity:1;transform:scale(1); }
.product-card__wish:hover,.product-card__wish.active {
  background:#fff0f0;border-color:var(--red);
}
.product-card__wish svg { width:14px;height:14px;stroke:var(--text-muted); }
.product-card__wish:hover svg,.product-card__wish.active svg { stroke:var(--red);fill:var(--red); }

/* ATC overlay */
.product-card__atc {
  position:absolute;bottom:0;left:0;right:0;
  background:var(--red);color:#fff;
  border:none;padding:var(--sp-2);
  font-size:12px;font-weight:600;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;gap:var(--sp-1);
  opacity:0;transform:translateY(8px);
  transition:opacity var(--t-base), transform var(--t-base), background var(--t-fast);
  z-index:2;
}
.product-card__atc:hover { background:var(--red-dark); }
.product-card__atc svg { width:14px;height:14px; }

/* Body */
.product-card__body {
  padding:var(--sp-3);
  display:flex;flex-direction:column;gap:var(--sp-1);
  flex:1;
}
.product-card__cat { font-size:11px;font-weight:500;color:var(--red);text-transform:uppercase;letter-spacing:.3px; }
.product-card__name {
  font-size:13px;font-weight:500;color:var(--text);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  line-height:1.4;
  transition:color var(--t-fast);
}
.product-card:hover .product-card__name { color:var(--red); }
.product-card__rating { display:flex;align-items:center;gap:4px;font-size:11px;color:var(--text-muted); }
.product-card__stars { color:#f59e0b;letter-spacing:1px;font-size:11px; }

.product-card__footer {
  display:flex;align-items:center;justify-content:space-between;
  margin-top:auto;padding-top:var(--sp-2);
  border-top:1px solid var(--border);
}
.product-card__price { font-size:15px;font-weight:700;color:var(--text); }
.product-card__price--sale { color:var(--red); }
.product-card__price-orig { font-size:11px;color:var(--text-light);text-decoration:line-through;display:block; }
.product-card__btn {
  width:32px;height:32px;
  background:var(--red);color:#fff;
  border-radius:var(--r-md);border:none;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:var(--t-fast);flex-shrink:0;
}
.product-card__btn:hover { background:var(--red-dark);transform:scale(1.08); }
.product-card__btn svg { width:15px;height:15px; }

/* Out of stock */
.product-card--oos .product-card__img { filter:grayscale(30%);opacity:.85; }

/* Grids */
.product-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:var(--sp-4);
}
@media(max-width:1200px){ .product-grid{ grid-template-columns:repeat(3,1fr); } }
@media(max-width:900px){  .product-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:480px){  .product-grid{ grid-template-columns:repeat(2,1fr);gap:var(--sp-2); } }

/* Horizontal scroll */
.product-scroll {
  display:flex;gap:var(--sp-3);
  overflow-x:auto;padding-bottom:var(--sp-2);
  scrollbar-width:thin;scrollbar-color:var(--border-dark) transparent;
  scroll-snap-type:x mandatory;
}
.product-scroll .product-card {
  min-width:180px;max-width:180px;
  flex-shrink:0;scroll-snap-align:start;
}
@media(max-width:640px){
  .product-scroll .product-card{ min-width:155px;max-width:155px; }
}

/* ══════════════════════════════════════════════════
   11. BRAND LOGOS STRIP
══════════════════════════════════════════════════ */
.brands-strip {
  background:var(--surface);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding:var(--sp-4) 0;
  overflow:hidden;
}
.brands-track {
  display:flex;gap:var(--sp-8);
  overflow-x:auto;scrollbar-width:none;
  padding-bottom:2px;align-items:center;
}
.brands-track::-webkit-scrollbar{ display:none; }
.brand-logo {
  display:flex;align-items:center;justify-content:center;
  height:36px;flex-shrink:0;
  opacity:.5;filter:grayscale(100%);
  transition:var(--t-base);
  padding:0 var(--sp-3);
}
.brand-logo:hover { opacity:1;filter:none; }
.brand-logo img { height:100%;width:auto;object-fit:contain;max-width:80px; }
.brand-logo span {
  font-family:var(--font-heading);
  font-size:16px;font-weight:700;
  color:var(--gray-500);letter-spacing:1px;
  text-transform:uppercase;
  white-space:nowrap;
}

/* ══════════════════════════════════════════════════
   12. CATEGORY CARDS
══════════════════════════════════════════════════ */
.cat-card {
  position:relative;border-radius:var(--r-lg);
  overflow:hidden;aspect-ratio:4/3;
  display:block;text-decoration:none;
  cursor:pointer;
}
.cat-card::after {
  content:'';position:absolute;inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 60%);
  transition:background var(--t-slow);
}
.cat-card:hover::after { background:linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 60%, transparent 100%); }
.cat-card__img { width:100%;height:100%;object-fit:cover;transition:transform var(--t-slow) ease; }
.cat-card:hover .cat-card__img { transform:scale(1.06); }
.cat-card__body { position:absolute;bottom:0;left:0;right:0;padding:var(--sp-3) var(--sp-4);z-index:1; }
.cat-card__name { font-family:var(--font-heading);font-size:15px;font-weight:700;color:#fff; }
.cat-card__sub { font-size:11px;color:rgba(255,255,255,.7);margin-top:2px; }

.cat-grid { display:grid;grid-template-columns:repeat(4,1fr);gap:var(--sp-3); }
@media(max-width:900px){ .cat-grid{ grid-template-columns:repeat(3,1fr); } }
@media(max-width:600px){ .cat-grid{ grid-template-columns:repeat(2,1fr);gap:var(--sp-2); } }

/* ══════════════════════════════════════════════════
   13. NEWSLETTER
══════════════════════════════════════════════════ */
.newsletter {
  background:linear-gradient(135deg, var(--red) 0%, #b91c1c 100%);
  padding:var(--sp-10) 0;
  position:relative;overflow:hidden;
}
.newsletter::before {
  content:'';position:absolute;
  top:-60%;right:-5%;
  width:400px;height:400px;
  background:rgba(255,255,255,.05);
  border-radius:50%;
}
.newsletter__inner {
  position:relative;z-index:1;
  display:grid;grid-template-columns:1fr 1fr;
  gap:var(--sp-10);align-items:center;
}
@media(max-width:768px){ .newsletter__inner{ grid-template-columns:1fr;gap:var(--sp-6);text-align:center; } }
.newsletter__heading { font-family:var(--font-heading);font-size:28px;font-weight:700;color:#fff;margin-bottom:var(--sp-2); }
.newsletter__sub { font-size:14px;color:rgba(255,255,255,.8);line-height:1.6; }
.newsletter__form {
  display:flex;gap:var(--sp-2);
  background:rgba(255,255,255,.12);
  backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.2);
  border-radius:var(--r-lg);
  padding:var(--sp-1-5, 6px);
}
.newsletter__input {
  flex:1;background:none;border:none;outline:none;
  color:#fff;font-size:13px;
  padding:var(--sp-2) var(--sp-3);min-width:0;
}
.newsletter__input::placeholder { color:rgba(255,255,255,.5); }
.newsletter__btn {
  background:#fff;color:var(--red);
  border:none;border-radius:var(--r-md);
  padding:var(--sp-2) var(--sp-5);
  font-size:13px;font-weight:700;
  cursor:pointer;white-space:nowrap;flex-shrink:0;
  transition:var(--t-fast);
}
.newsletter__btn:hover { background:var(--gray-100); }
.newsletter__msg { font-size:12px;color:rgba(255,255,255,.7);margin-top:var(--sp-2);display:flex;align-items:center;gap:var(--sp-2); }

/* ══════════════════════════════════════════════════
   14. FOOTER
══════════════════════════════════════════════════ */
.site-footer { background:var(--black);color:rgba(255,255,255,.7);padding:var(--sp-10) 0 0; }
.footer__grid {
  display:grid;grid-template-columns:2fr 1fr 1fr 1fr;
  gap:var(--sp-8);padding-bottom:var(--sp-10);
  border-bottom:1px solid rgba(255,255,255,.08);
}
@media(max-width:900px){ .footer__grid{ grid-template-columns:1fr 1fr;gap:var(--sp-6); } }
@media(max-width:480px){ .footer__grid{ grid-template-columns:1fr;gap:var(--sp-5); } }

.footer__brand-logo { display:flex;align-items:center;gap:var(--sp-2);margin-bottom:var(--sp-4);text-decoration:none; }
.footer__brand-mark { width:40px;height:40px;background:var(--red);border-radius:var(--r-lg);display:flex;align-items:center;justify-content:center;color:#fff;font-family:var(--font-heading);font-size:16px;font-weight:700; }
.footer__brand-name { font-family:var(--font-heading);font-size:20px;font-weight:700;color:#fff; }
.footer__desc { font-size:13px;line-height:1.7;margin-bottom:var(--sp-5); }
.footer__social { display:flex;gap:var(--sp-2); }
.footer__social-link { width:34px;height:34px;background:rgba(255,255,255,.08);border-radius:var(--r-md);display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.6);transition:var(--t-fast);text-decoration:none; }
.footer__social-link:hover { background:var(--red);color:#fff; }

.footer__col-title { font-size:13px;font-weight:700;color:#fff;text-transform:uppercase;letter-spacing:.5px;margin-bottom:var(--sp-4); }
.footer__links { display:flex;flex-direction:column;gap:var(--sp-2); }
.footer__links a { font-size:13px;color:rgba(255,255,255,.6);transition:var(--t-fast);text-decoration:none; }
.footer__links a:hover { color:#fff;padding-left:4px; }

.footer__bottom {
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:var(--sp-4);padding:var(--sp-4) 0;
}
.footer__copy { font-size:12px;color:rgba(255,255,255,.4); }
.footer__payments { display:flex;align-items:center;gap:var(--sp-2);font-size:12px;color:rgba(255,255,255,.4); }
.payment-chip { background:rgba(255,255,255,.08);padding:3px 8px;border-radius:var(--r-sm);font-weight:600; }

/* ══════════════════════════════════════════════════
   15. TOAST
══════════════════════════════════════════════════ */
.toast-container {
  position:fixed;top:var(--sp-4);right:var(--sp-4);
  z-index:var(--z-toast);
  display:flex;flex-direction:column;gap:var(--sp-2);
  pointer-events:none;max-width:340px;width:100%;
}
.toast {
  display:flex;align-items:flex-start;gap:var(--sp-3);
  background:var(--surface);
  border:1px solid var(--border);border-radius:var(--r-xl,10px);
  padding:var(--sp-3) var(--sp-4);
  box-shadow:var(--shadow-xl);pointer-events:all;
  animation:slideRight var(--t-slow) ease both;
  border-left:4px solid var(--border);
}
.toast--success { border-left-color:var(--success); }
.toast--error   { border-left-color:var(--danger); }
.toast--info    { border-left-color:var(--red); }
.toast__msg { flex:1;font-size:13px;font-weight:500;color:var(--text); }
.toast__close { color:var(--text-light);cursor:pointer;border:none;background:none;font-size:16px;line-height:1;padding:2px; }

/* ══════════════════════════════════════════════════
   16. SCROLL TO TOP
══════════════════════════════════════════════════ */
.scroll-top {
  position:fixed;bottom:var(--sp-6);right:var(--sp-4);
  width:40px;height:40px;
  background:var(--red);color:#fff;
  border-radius:var(--r-md);border:none;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;box-shadow:var(--shadow-red);
  z-index:var(--z-sticky);
  opacity:0;transform:translateY(12px);pointer-events:none;
  transition:opacity var(--t-base), transform var(--t-base);
}
.scroll-top.visible { opacity:1;transform:translateY(0);pointer-events:all; }
.scroll-top:hover { background:var(--red-dark); }
@media(max-width:900px){ .scroll-top{ bottom:calc(var(--sp-6) + 56px); } }

/* ══════════════════════════════════════════════════
   17. RECENTLY VIEWED
══════════════════════════════════════════════════ */
.recently-viewed { background:var(--gray-50); }

.skeleton-card {
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--r-lg);overflow:hidden;
  min-width:180px;max-width:180px;flex-shrink:0;
}
.skeleton-card__img { aspect-ratio:1;background:linear-gradient(90deg,var(--gray-100) 25%,var(--gray-200) 37%,var(--gray-100) 63%);background-size:400px 100%;animation:shimmer 1.4s ease-in-out infinite; }
.skeleton-card__body { padding:var(--sp-3);display:flex;flex-direction:column;gap:var(--sp-2); }
.skeleton-line { border-radius:var(--r-sm);background:linear-gradient(90deg,var(--gray-100) 25%,var(--gray-200) 37%,var(--gray-100) 63%);background-size:400px 100%;animation:shimmer 1.4s ease-in-out infinite; }

/* ══════════════════════════════════════════════════
   18. PAGE UTILS
══════════════════════════════════════════════════ */
.breadcrumb { display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2);font-size:12px;color:var(--text-muted);padding:var(--sp-3) 0; }
.breadcrumb a { color:var(--text-muted);transition:var(--t-fast); }
.breadcrumb a:hover { color:var(--red); }
.breadcrumb__sep { color:var(--text-light); }
.breadcrumb__cur { color:var(--text);font-weight:500; }

.pagination { display:flex;align-items:center;justify-content:center;gap:var(--sp-1);padding:var(--sp-6) 0; }
.page-btn { width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--r-md);font-size:13px;font-weight:500;color:var(--text-muted);border:1px solid var(--border);background:var(--surface);transition:var(--t-fast);cursor:pointer; }
.page-btn:hover { border-color:var(--red);color:var(--red); }
.page-btn--active { background:var(--red);border-color:var(--red);color:#fff; }

/* ══════════════════════════════════════════════════
   19. RESPONSIVE
══════════════════════════════════════════════════ */
@media(max-width:640px){
  .section { padding-block:var(--sp-6); }
  .hide-mobile { display:none !important; }
}
@media(min-width:641px){
  .hide-desktop { display:none !important; }
}

/* ══ Scroll Section with Overlay Arrows ══ */
.scroll-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}
.scroll-nav__left { display: flex; align-items: center; gap: 12px; }
.scroll-nav__right { display: flex; align-items: center; gap: 6px; }

/* Small header arrow buttons */
.scroll-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  background: #fff;
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
  flex-shrink: 0;
}
.scroll-btn:hover { background: var(--red); color: #fff; transform: scale(1.08); }
.scroll-btn:disabled { border-color: #e5e7eb; color: #d1d5db; cursor: not-allowed; transform: none; }
.scroll-btn svg { width: 13px; height: 13px; pointer-events: none; }

/* Scroll wrapper with side overlay arrows */
.scroll-wrap {
  position: relative;
}

/* Overlay arrow buttons on left/right edges */
.scroll-wrap__arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 36px; height: 36px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s, opacity .2s, transform .15s;
  opacity: 0;
  pointer-events: none;
}
.scroll-wrap:hover .scroll-wrap__arrow,
.scroll-wrap:focus-within .scroll-wrap__arrow {
  opacity: 1;
  pointer-events: all;
}
.scroll-wrap__arrow:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 4px 12px rgba(229,46,46,.3);
  transform: translateY(-50%) scale(1.08);
}
.scroll-wrap__arrow--prev { left: -14px; }
.scroll-wrap__arrow--next { right: -14px; }
.scroll-wrap__arrow svg { width: 16px; height: 16px; pointer-events: none; }
.scroll-wrap__arrow:disabled { opacity: 0 !important; pointer-events: none !important; }

/* ══ Header: MDComputers style phone/email right ══ */
.h-contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  flex-shrink: 0;
}
.h-contact__phone {
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}
.h-contact__email {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ══ Hero Slider Animation ══ */
.hero-slide {
  display: none !important;
  opacity: 0;
  transform: translateX(30px);
}
.hero-slide.active {
  display: flex !important;
  opacity: 0;
  transform: translateX(30px);
  animation: heroSlideIn .5s ease forwards;
}
.hero-slide.leaving {
  display: flex !important;
  opacity: 1;
  transform: translateX(0);
  animation: heroSlideOut .35s ease forwards;
}
@keyframes heroSlideIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes heroSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-30px); }
}

/* ══ MOBILE FIXES ══ */

/* Hero mobile */
@media(max-width:860px){
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-right { flex-direction: row; gap: 8px; }
  .hbanner { min-height: 110px; flex: 1; }
  .hbanner__title { font-size: 15px; }
  .hero-main { min-height: 220px; }
  .hero-slide__body { padding: 20px 18px; }
  .hero-slide__title { font-size: 22px; }
  .hero-slide__sub { font-size: 12px; margin-bottom: 12px; }
}

/* Announcement bar mobile */
@media(max-width:640px){
  .ann-bar__inner { flex-wrap: wrap; gap: 4px; }
  .ann-bar__left { flex-wrap: wrap; gap: 6px; }
  .ann-bar__right { gap: 8px; }
  .ann-bar__divider { display: none; }
}

/* Middle header mobile */
@media(max-width:640px){
  .header-mid__inner { flex-wrap: wrap; gap: 8px; padding: 8px 0; }
  .header-search { max-width: 100%; width: 100%; order: 3; }
  .header-search__btn span { display: none; }
  .header-search__btn { padding: 0 14px; }
  .site-logo { order: 1; }
  .header-actions { order: 2; margin-left: auto; }
  .h-contact { display: none !important; }
  .h-action__label { display: none; }
  .h-action { padding: 6px 8px; }
}

/* Nav bar mobile */
@media(max-width:900px){
  .header-nav__inner { height: 40px; }
  .nav-categories-btn { padding: 0 14px; font-size: 12px; }
}

/* Product cards mobile */
@media(max-width:480px){
  .hscroll .pcard { min-width: 150px; max-width: 150px; }
  .pcard__body { padding: 8px; gap: 4px; }
  .pcard__name { font-size: 12px; }
  .pcard__price, .pcard__price--sale { font-size: 13px; }
  .pcard__atc { padding: 7px 8px; font-size: 11px; }
}

/* Popular categories mobile */
@media(max-width:480px){
  .pop-cat-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .pop-cat__lbl { font-size: 12px; padding: 8px 10px; }
}

/* Gamer zone mobile */
@media(max-width:480px){
  .gamer-grid { grid-template-columns: repeat(3,1fr); gap: 6px; }
  .gamer-tile__name { font-size: 10px; }
}

/* Brand row mobile */
@media(max-width:480px){
  .brand-row { flex-wrap: wrap; }
  .brand-cell { width: 25%; min-width: unset; border-bottom: 1px solid #e5e7eb; }
  .brand-cell span { font-size: 10px; }
}

/* Review cards mobile */
@media(max-width:480px){
  .rev-card { min-width: 230px; max-width: 230px; padding: 12px; }
  .rev-name { font-size: 12px; }
  .rev-text { font-size: 11px; }
}

/* Sections mobile padding */
@media(max-width:640px){
  .hp-sec { padding: 14px 0; }
  .sec-head { margin-bottom: 12px; }
  .deal-banner { padding: 20px 20px; }
  .db-title { font-size: 22px; }
  .db-badge { width: 72px; height: 72px; }
  .db-badge__num { font-size: 22px; }
  .wide-fallback { padding: 18px 20px; min-height: 90px; }
  .wf-title { font-size: 18px; }
  .wf-cta { padding: 7px 16px; font-size: 12px; margin-top: 10px; }
  .wf-icon { font-size: 36px; }
}

/* Scroll arrows mobile — always visible */
@media(max-width:640px){
  .scroll-wrap__arrow {
    opacity: 1 !important;
    pointer-events: all !important;
    width: 28px; height: 28px;
  }
  .scroll-wrap__arrow--prev { left: -10px; }
  .scroll-wrap__arrow--next { right: -10px; }
}

/* Newsletter mobile */
@media(max-width:700px){
  .nl-grid { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .nl-h { font-size: 20px; }
  .nl-wrap { padding: 24px 0; }
}

/* Footer mobile */
@media(max-width:480px){
  .footer__grid { grid-template-columns: 1fr; gap: 20px; padding-bottom: 24px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer__payments { flex-wrap: wrap; }
}

/* Mobile bottom toolbar spacing */
@media(max-width:900px){
  body { padding-bottom: 56px; }
  .scroll-top { bottom: calc(16px + 56px); }
}

/* ══ Hero mobile: stack right banners below main ══ */
@media(max-width:640px){
  .hero-right {
    flex-direction: row !important;
    gap: 8px;
  }
  .hbanner {
    min-height: 90px;
    flex: 1;
  }
  .hbanner__title { font-size: 14px; line-height: 1.2; }
  .hbanner__sub { display: none; }
  .hbanner__body { padding: 12px 14px; }
  .hero-main { min-height: 200px; }
  .hero-slide__body { padding: 16px 16px; max-width: 280px; }
  .hero-slide__tag { font-size: 9px; margin-bottom: 6px; }
  .hero-slide__title { font-size: 20px; margin-bottom: 6px; }
  .hero-slide__sub { font-size: 11px; margin-bottom: 12px; }
  .hero-arrow { width: 28px; height: 28px; }
}

/* ══ Customer feedback always visible ══ */
.hp-sec--feedback { display: block !important; }