/* Sahara visual refresh. Presentation only; loaded after existing page styles. */
:root {
  --primary-red: #f04444;
  --primary-red-hover: #d72f36;
  --primary-red-glow: rgba(240, 68, 68, .16);
  --bg-dark: #101113;
  --bg-card: #191b1f;
  --bg-input: #22252a;
  --text-white: #f5f5f3;
  --text-gray: #adb0b8;
  --border-color: #33363c;
  --glass-bg: rgba(16, 17, 19, .96);
  --shadow-premium: 0 16px 40px rgba(0, 0, 0, .16);
  --sahara-radius: 18px;
}
html.light-mode {
  --primary-red: #c62832;
  --primary-red-hover: #a91e28;
  --bg-dark: #f5f5f2;
  --bg-card: #fff;
  --bg-input: #f0f1ee;
  --text-white: #202328;
  --text-gray: #626771;
  --border-color: #dadeda;
  --glass-bg: rgba(245, 245, 242, .97);
  --shadow-premium: 0 16px 40px rgba(31, 35, 40, .06);
}
body { -webkit-font-smoothing: antialiased; }
body .container { max-width: 1240px; padding-inline: 28px; }
body h1, body h2, body h3, body h4 { text-wrap: balance; }
body p { text-wrap: pretty; }
body a, body button, body input, body select { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--primary-red);
  outline-offset: 4px;
}
body header { background: var(--glass-bg); border-bottom-color: var(--border-color); }
body header .nav-container { gap: 20px; }
body nav ul { gap: 6px; }
body nav ul li a { padding: 10px 15px; border-radius: 9px; font-weight: 700; }
body nav ul li a.active { background: var(--primary-red-glow); }
body .logo-text span { letter-spacing: 1.3px; }
body .btn-primary, body .btn-cta-primary {
  background: #c92d39;
  color: #fff;
  border-radius: 11px;
  box-shadow: none;
  min-height: 48px;
}
body .btn-primary:hover, body .btn-cta-primary:hover {
  background: #b6222e;
  box-shadow: 0 8px 20px var(--primary-red-glow);
  transform: translateY(-2px);
}
body .btn-cta-secondary { border-radius: 11px; min-height: 46px; }
body .btn-cta-secondary:hover { background: var(--primary-red-glow); transform: none; }

/* Home: a quieter, more structured automotive identity. */
body .hero-home {
  min-height: 710px;
  padding: 150px 0 90px;
  background: radial-gradient(ellipse at 12% 40%, rgba(240,68,68,.08), transparent 55%), var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
}
body .hero-home::before {
  background-image: linear-gradient(115deg, transparent 62%, rgba(128,128,128,.035) 62%, rgba(128,128,128,.035) 78%, transparent 78%);
  background-size: auto;
}
body .hero-content-home { grid-template-columns: 1.2fr .8fr; gap: 70px; }
body .hero-badge {
  border-radius: 6px; padding: 8px 12px; font-size: 12px;
  color: var(--primary-red); background: var(--primary-red-glow);
  border-color: transparent;
}
body .hero-badge::before { animation: none; border: 0; }
body .hero-title-home { font-size: clamp(36px, 4.2vw, 58px); line-height: 1.45; letter-spacing: -.7px; margin-bottom: 22px; }
body .hero-title-home span {
  background: none; -webkit-text-fill-color: currentColor; color: var(--primary-red);
}
body .hero-subtitle-home { max-width: 570px; line-height: 2; font-size: 16px; }
body .hero-cta-group { gap: 10px; }
body .hero-cta-group a { font-size: 14px; padding: 13px 20px; }
body .hero-logo-big {
  width: 350px; height: 360px; border-radius: 24px; animation: none;
  background: linear-gradient(145deg, var(--bg-input), var(--bg-card));
  border: 1px solid var(--border-color); box-shadow: var(--shadow-premium);
  transform: rotate(-3deg);
}
body .hero-logo-big::before {
  inset: 16px; background: none; border: 1px solid var(--border-color);
  border-radius: 14px; padding: 0; mask: none; -webkit-mask: none;
}
body .hero-logo-big .hero-logo-img { max-width: 78%; filter: none; transform: rotate(3deg); }
body .floating-badge { animation: none; border-radius: 9px; box-shadow: var(--shadow-premium); font-size: 12px; transform: rotate(3deg); }
body .floating-badge:nth-child(2) { top: 24px; right: -22px; }
body .floating-badge:nth-child(3) { bottom: 42px; right: -22px; }
body .floating-badge:nth-child(4) { bottom: -12px; left: 12px; }
body .stats-bar { background: var(--bg-card); border-bottom: 1px solid var(--border-color); padding: 22px 0; }
body .stat-box { padding: 16px; }
body .stat-box .stat-num { font-size: 30px; letter-spacing: -.6px; color: var(--text-white); }
body .stat-box .stat-label { font-size: 12px; margin-top: 6px; }
body .section-label { font-size: 12px; letter-spacing: 0; margin-bottom: 12px; }
body .section-heading { font-size: clamp(27px, 3vw, 40px); line-height: 1.6; }
body .about-home, body .features-section, body .goals-section, body .brands-home-section { padding-block: 80px; }
body .about-text p { line-height: 2.1; font-size: 15px; }
body .about-grid-home { gap: 64px; }
body .feature-card, body .goal-card, body .map-card-home {
  border: 1px solid var(--border-color); border-radius: var(--sahara-radius);
  background: var(--bg-card); box-shadow: none;
}
body .feature-card, body .goal-card { padding: 30px; }
body .feature-card:hover, body .goal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-premium); }
body .feature-icon { border-radius: 12px; background: var(--primary-red-glow); }
body .feature-card p, body .goal-card p { line-height: 1.95; }
body .goal-number { border-radius: 10px; }
body .brand-home-card { border-radius: 12px; padding: 24px 14px; background: var(--bg-card); }
body .brand-home-card img { opacity: .9; }
body .cta-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 24px; padding: 52px 32px; }
body .cta-box::before { background: none; }
body .cta-box h2 { line-height: 1.6; }

/* Catalog and product surfaces. Existing filtering and cart hooks stay intact. */
body .store-hero {
  background: var(--bg-card); border-bottom: 1px solid var(--border-color);
  padding-block: 56px 44px;
}
body .store-hero h1, body .store-hero h2 { line-height: 1.6; }
body .store-hero p { line-height: 1.9; }
body .brands-grid { gap: 12px; }
body .brand-card { border-radius: 12px; background: var(--bg-card); padding: 22px 12px; }
body .brand-card.active, body .quick-cat-card.active {
  border-color: var(--primary-red); background: var(--primary-red-glow);
  box-shadow: inset 0 -3px var(--primary-red);
}
body .quick-cat-card { border-radius: 12px; padding: 18px 10px; }
body .quick-cat-img-wrapper { border-radius: 12px; }
body .filter-center { background: var(--bg-card); padding: 26px; border-radius: var(--sahara-radius); border: 1px solid var(--border-color); box-shadow: none; }
body .filter-search-box input, body .filter-vin-box input {
  border-radius: 11px; min-height: 54px; background: var(--bg-dark); font-size: 15px;
}
body .filter-select select { border-radius: 9px; min-height: 46px; background-color: var(--bg-input); }
body .products-grid { gap: 20px; }
body .product-card { border-radius: 16px; box-shadow: none; }
body .product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-premium); }
body .product-img-wrapper { height: 225px; padding: 24px; background: var(--bg-input); }
body .product-details { padding: 20px; }
body .product-name { line-height: 1.7; height: 58px; font-size: 16px; }
body .product-compat { line-height: 1.8; }
body .price-iqd { font-size: 21px; line-height: 1.6; }
body .card-badge { border-radius: 6px; padding: 5px 9px; }
body .detail-img-container { border-radius: var(--sahara-radius); }
body .cart-drawer { border-inline-start: 1px solid var(--border-color); box-shadow: var(--shadow-premium); }
body .modal-content { border-radius: 20px; border: 1px solid var(--border-color); }
body .cart-drawer-header, body .cart-footer { padding: 22px; }

/* Account, sign-in and app page. */
body .auth-card, body .profile-card, body .order-card, body .profile-edit-box {
  border-radius: 20px; border: 1px solid var(--border-color);
  background: var(--bg-card); box-shadow: var(--shadow-premium);
}
body .auth-card { padding: 36px; }
body .auth-card-header h2 { line-height: 1.7; }
body .auth-card-header p { line-height: 1.9; }
body .auth-switcher { border-radius: 11px; padding: 5px; }
body .auth-switcher-btn { min-height: 44px; border-radius: 8px; }
body .form-group input, body .form-group select { border-radius: 9px; min-height: 48px; }
body .profile-avatar-banner { background: var(--bg-input); border-bottom: 1px solid var(--border-color); }
body .bg-orb { opacity: .15; }
body .orders-header { padding-bottom: 18px; border-bottom: 1px solid var(--border-color); }
body .apps-hero { background: var(--bg-card); border-bottom: 1px solid var(--border-color); padding-block: 70px; }
html.light-mode body .apps-hero { background: var(--bg-card); }
body .feature { border-radius: 16px; box-shadow: none; }
body .apps-store { background: #c92d39; box-shadow: none; }
body .download { background: #a9222d; border-radius: 20px; }
body footer { background: var(--bg-card); border-top: 1px solid var(--border-color); padding-top: 56px; }
body .footer-col p { line-height: 2; }
body .footer-links { gap: 14px; }
body .social-btn { border-radius: 10px; }
body .footer-bottom { margin-top: 38px; padding-block: 22px; }

@media (min-width: 901px) {
  body header .nav-container { gap: 12px; padding-inline: 18px; }
  body nav ul li a { padding-inline: 8px; font-size: 14px; }
}

@media (max-width: 1100px) and (min-width: 769px) {
  body .hero-content-home { gap: 32px; }
  body .hero-logo-big { width: 285px; height: 320px; }
  body header .nav-container { gap: 10px; }
  body nav ul li a { padding-inline: 9px; font-size: 13px; }
  body .hero-cta-group a { padding-inline: 14px; }
}
@media (max-width: 768px) {
  body .container { padding-inline: 18px; }
  body .hero-home { padding: 104px 0 48px !important; }
  body .hero-content-home { grid-template-columns: 1fr; gap: 28px; }
  body .hero-title-home { font-size: clamp(31px, 7.5vw, 44px); line-height: 1.55; }
  body .hero-subtitle-home { font-size: 14px; margin-bottom: 24px; }
  body .hero-badge { font-size: 10px; max-width: 100%; line-height: 1.9; }
  body .hero-cta-group { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 430px; margin-inline: auto; }
  body .hero-cta-group a { width: 100%; max-width: none; padding: 12px 8px; font-size: 12px; }
  body .hero-cta-group a:first-child { grid-column: 1 / -1; }
  body .stats-bar { padding-block: 12px; }
  body .stats-grid { gap: 0; }
  body .stat-box { padding: 18px 8px; }
  body .stat-box:nth-child(2n) { border-left: 0; }
  body .stat-box:nth-child(-n+2) { border-bottom: 1px solid var(--border-color); }
  body .stat-box .stat-num { font-size: 25px; }
  body .about-home, body .features-section, body .goals-section, body .brands-home-section { padding-block: 48px; }
  body .about-grid-home { gap: 28px; }
  body .feature-card, body .goal-card { padding: 24px; }
  body .cta-box { padding: 32px 20px; border-radius: 18px; }
  body .store-hero { padding-block: 38px 30px; }
  body .filter-center { padding: 16px; border-radius: 14px; }
  body .filter-row-bottom { gap: 10px; }
  body .filter-select { min-width: 0; }
  body .filter-select select { font-size: 12px; }
  body .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body .product-img-wrapper { height: 160px; padding: 14px; }
  body .product-details { padding: 12px; }
  body .product-name { font-size: 13px; line-height: 1.8; height: 47px; }
  body .product-compat { font-size: 10px; }
  body .price-iqd { font-size: 16px; }
  body .product-footer { gap: 6px; flex-wrap: wrap; }
  body .card-badge { font-size: 9px; padding: 4px 6px; }
  body .auth-card { padding: 26px 20px; border-radius: 16px; }
  body .apps-hero { padding-block: 40px; }
  body .footer-grid { gap: 30px; }
}
@media (max-width: 360px) {
  body .products-grid { grid-template-columns: 1fr; }
  body .hero-cta-group { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
