/* —— Design tokens —— */
:root {
  --blue-950: #0b2035;
  --blue-900: #0f2a44;
  --blue-800: #143652;
  --blue-700: #1a4463;
  --blue-600: #245779;
  --blue-500: #2f6f97;
  --blue-100: #dbe7f0;
  --blue-50: #f2f6fa;
  --gray-900: #0f172a;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --green-700: #047857;
  --green-100: #d1fae5;
  --amber-800: #ff7a00;
  --amber-100: #fff3e6;
  --accent: #ff7a00;
  --accent-hover: #f5a623;
  --primary: #0f2a44;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.1);
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
  --header-h: 72px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --font: "Cairo", system-ui, sans-serif;
  --max-w-prose: 42rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-600);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}

button:focus-visible,
.cart-btn:focus-visible {
  outline-offset: 2px;
}

.container {
  width: min(1140px, 100% - 2 * var(--space-4));
  margin-inline: auto;
}

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

/* —— Top bar —— */
.top-bar {
  background: var(--blue-950);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-bar-inner {
  padding-block: var(--space-2) var(--space-3);
}

.top-bar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4) var(--space-8);
}

.top-bar-list a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.top-bar-list a:hover {
  text-decoration: underline;
}

.top-bar-icon {
  display: inline-flex;
  vertical-align: middle;
  margin-inline-end: var(--space-2);
  opacity: 0.85;
}

@media (max-width: 640px) {
  .top-bar-inner {
    overflow: hidden;
  }

  .top-bar-list {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: var(--space-8);
    width: max-content;
    min-width: 100%;
    animation: top-bar-float 10s ease-in-out infinite alternate;
  }

  .top-bar-list li {
    white-space: nowrap;
  }
}

@keyframes top-bar-float {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-35%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-bar-list {
    animation: none !important;
  }
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.back-to-top-btn {
  position: fixed;
  inset-inline-end: 16px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--blue-700);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 140;
}

.back-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* —— Floating WhatsApp (storefront pages that include footer) —— */
.whatsapp-float {
  position: fixed;
  inset-inline-start: max(16px, env(safe-area-inset-left, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  border: 0;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
  text-decoration: none;
  color: #fff;
}

.whatsapp-float:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.45);
  outline-offset: 3px;
}

.global-search-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-3) 0;
}

.global-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2);
}

.global-search-input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0 0.9rem;
  font-family: inherit;
  font-size: 0.92rem;
}

.global-search-input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-100);
}

.global-search-btn {
  margin-top: 0;
  height: 44px;
  min-width: 96px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--header-h);
  flex-wrap: nowrap;
  padding-block: var(--space-3);
  position: relative;
}

.header-center {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
  color: var(--blue-900);
  transition: transform 0.2s ease, color 0.2s ease;
}

.logo:hover {
  text-decoration: none;
  color: var(--blue-600);
  transform: translateY(-1px);
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1.2;
}

.logo-text {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo-tagline {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--blue-600) 0%, var(--blue-800) 100%);
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.nav-toggle {
  order: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--gray-800);
  border-radius: 1px;
}

.main-nav {
  flex-shrink: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  padding: 0.2rem;
  box-shadow: var(--shadow-xs);
}

.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: var(--gray-700);
  text-decoration: none;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.search-toggle:hover {
  border-color: #93c5fd;
  color: var(--blue-700);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
}

.lang-toggle {
  height: 40px;
  min-width: 52px;
  padding: 0 var(--space-3);
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: var(--gray-700);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.lang-toggle:hover {
  border-color: #93c5fd;
  color: var(--blue-700);
  box-shadow: var(--shadow-xs);
}

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 96px;
  padding: 0 var(--space-4);
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.login-btn:hover {
  border-color: #93c5fd;
  color: var(--blue-700);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
}

.login-btn.is-active {
  border-color: #93c5fd;
  color: var(--blue-700);
  background: #eef5ff;
}

.login-btn[data-customer-session="1"] {
  max-width: min(200px, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-1);
}

.nav-link {
  display: block;
  padding: var(--space-2) var(--space-3);
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.nav-link:hover {
  color: var(--blue-600);
  background: #eef5ff;
  text-decoration: none;
}

.nav-link.is-active {
  color: var(--blue-700);
  background: #e8f1ff;
  box-shadow: inset 0 0 0 1px #bfdbfe;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding-inline: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--gray-700);
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.cart-btn:hover {
  border-color: #93c5fd;
  color: var(--blue-600);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.15);
  text-decoration: none;
}

.cart-btn-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.cart-btn-label {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.cart-count {
  position: absolute;
  top: -4px;
  inset-inline-start: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  background: var(--blue-600);
  color: var(--white);
  border-radius: 999px;
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: clamp(var(--space-10), 7vw, var(--space-12)) 0;
  color: var(--white);
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: hero-slideshow 15s infinite;
  background-size: cover;
  background-position: center;
}

.hero-slide--1 {
  animation-delay: 0s;
  background-image:
    linear-gradient(155deg, #0b2035 0%, #143652 55%, #245779 100%),
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.2) 0 2px, transparent 3px);
}

.hero-slide--2 {
  animation-delay: 5s;
  background-image:
    linear-gradient(145deg, #102a43 0%, #1b4965 50%, #2f6f97 100%),
    radial-gradient(circle at 75% 35%, rgba(255, 255, 255, 0.18) 0 2px, transparent 3px);
}

.hero-slide--3 {
  animation-delay: 10s;
  background-image:
    linear-gradient(160deg, #0f2a44 0%, #1f5f8b 52%, #3b82b0 100%),
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.18) 0 2px, transparent 3px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 31, 0.46);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image:
    radial-gradient(circle at 18% 28%, var(--white) 1px, transparent 1px),
    radial-gradient(circle at 82% 72%, var(--white) 1px, transparent 1px),
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.12) 49%, rgba(255, 255, 255, 0.12) 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(255, 255, 255, 0.12) 49%, rgba(255, 255, 255, 0.12) 51%, transparent 51%);
  background-size: 44px 44px, 56px 56px, 22px 22px, 22px 22px;
  pointer-events: none;
}

.hero-pattern::after {
  content: "";
  position: absolute;
  inset: 8% 10% 8% 10%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(200px, 260px);
  gap: var(--space-8);
  align-items: center;
}

@keyframes hero-slideshow {
  0%,
  28% {
    opacity: 1;
  }
  33%,
  100% {
    opacity: 0;
  }
}

.hero-content {
  max-width: 560px;
}

.hero-eyebrow {
  margin: 0 0 var(--space-3);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-100);
  opacity: 0.95;
}

.hero-title {
  margin: 0 0 var(--space-4);
  font-size: clamp(1.75rem, 4.2vw, 2.375rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin: 0 0 var(--space-6);
  font-size: 1.0625rem;
  font-weight: 400;
  opacity: 0.9;
  line-height: 1.7;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-panel {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3);
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius);
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 0.8125rem;
  opacity: 0.85;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem var(--space-6);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-stat {
    text-align: center;
  }
}

@media (max-width: 520px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }
}

/* —— Sections —— */
.section {
  padding: clamp(var(--space-10), 5vw, var(--space-12)) 0;
}

.section--tight {
  padding-top: var(--space-8);
}

.section--alt {
  background: var(--gray-100);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--gray-200);
}

.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: var(--space-8);
}

.section-head--stack {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: var(--space-4);
}

.section-head-text {
  flex: 1;
  min-width: min(100%, 280px);
}

.section-eyebrow {
  margin: 0 0 var(--space-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.section-title {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.375rem, 2.8vw, 1.75rem);
  font-weight: 700;
  color: var(--blue-900);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-lead {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.9375rem;
  max-width: var(--max-w-prose);
  font-weight: 500;
}

.section-lead--center {
  margin-inline: auto;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--blue-600);
  white-space: nowrap;
  text-decoration: none;
  padding: var(--space-2) 0;
}

.section-link:hover {
  color: var(--blue-800);
  text-decoration: none;
}

/* —— Home Hero V2 —— */
.home-hero-v2 {
  padding: 1rem 0 0.75rem;
}

.home-hero-v2-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 14px;
}

.home-hero-slider {
  position: relative;
  height: 420px;
  border-radius: 14px;
  overflow: hidden;
  background: #e5e7eb;
}

.home-hero-track {
  position: relative;
  height: 100%;
}

.home-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.home-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.home-hero-slide img,
.home-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-hero-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

.home-hero-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  background: #0f172a;
  border-radius: 12px;
  color: #fff;
  padding: 14px;
}

.home-hero-title { margin: 0 0 6px; font-size: 1.75rem; line-height: 1.2; }
.home-hero-sub { margin: 0 0 10px; font-size: .95rem; }

.home-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
}

.home-hero-nav.prev { right: 12px; }
.home-hero-nav.next { left: 12px; }

.home-hero-dots {
  position: absolute;
  inset-inline: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 6;
}

.home-hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.6);
}
.home-hero-dot.is-active { background: #fff; }

.home-hero-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 204px 204px;
  gap: 12px;
}

.home-hero-banner {
  position: relative;
  height: 204px;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: block;
}

.home-hero-banner.wide {
  grid-column: 1 / -1;
  height: 204px;
}

.home-hero-banner-overlay {
  position: absolute;
  inset: auto 12px 12px 12px;
  background: #0f172a;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-hero-banner-overlay strong {
  font-size: 1.08rem;
}

@media (max-width: 1024px) {
  .home-hero-v2-grid {
    grid-template-columns: 1fr;
  }
  .home-hero-slider {
    height: 340px;
  }
  .home-hero-banners {
    grid-template-rows: 180px 180px;
  }
  .home-hero-banner,
  .home-hero-banner.wide {
    height: 180px;
  }
}

@media (max-width: 640px) {
  .home-hero-title { font-size: 1.2rem; }
  .home-hero-sub { font-size: .86rem; }
}

/* —— Categories —— */
.categories {
  background: var(--white);
  border-block: 1px solid var(--gray-200);
}

.categories-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-4);
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.categories-grid::-webkit-scrollbar {
  height: 8px;
}

.categories-grid::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.categories-grid::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 999px;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-4);
  min-height: 148px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  color: var(--gray-800);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.2s, transform 0.15s;
  flex: 0 0 220px;
}

.category-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transform: translateY(-2px);
  background: var(--white);
}

.category-card:hover .category-arrow {
  opacity: 1;
  transform: translateX(-3px);
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--blue-600);
  border: 1px solid var(--gray-200);
}

.category-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.category-desc {
  font-size: 0.8125rem;
  color: var(--gray-500);
  font-weight: 500;
  line-height: 1.45;
}

.category-arrow {
  position: absolute;
  bottom: var(--space-4);
  inset-inline-end: var(--space-4);
  font-size: 1rem;
  color: var(--blue-600);
  opacity: 0.35;
  transition: opacity 0.15s, transform 0.15s;
}

/* —— Products —— */
.products {
  background: var(--gray-50);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.products-page {
  background: var(--gray-50);
}

.categories-page {
  background: var(--gray-50);
}

.products-hero {
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: var(--white);
  padding: var(--space-10) 0;
}

.categories-hero {
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: var(--white);
  padding: var(--space-10) 0;
}

.services-page {
  background: var(--gray-50);
}

.portfolio-page {
  background: var(--gray-50);
}

.portfolio-hero {
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: var(--white);
  padding: var(--space-10) 0;
}

.portfolio-page-title {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.portfolio-page-sub {
  margin: 0;
  opacity: 0.9;
}

.portfolio-section-head {
  margin-bottom: var(--space-5);
}

.portfolio-section-intro {
  margin: var(--space-2) 0 0;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 52rem;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-5);
}

.portfolio-filter {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.88rem;
  text-decoration: none;
  transition: 0.15s ease;
}

.portfolio-filter:hover,
.portfolio-filter.is-active {
  border-color: var(--blue-800);
  background: rgba(26, 60, 143, 0.08);
  color: var(--blue-900);
  font-weight: 600;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.portfolio-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
}

.portfolio-card-media {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-100);
}

.portfolio-card-media--placeholder {
  background: linear-gradient(135deg, #e8ecf4 0%, #d5dbe8 100%);
}

.portfolio-card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portfolio-card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-800);
  background: rgba(26, 60, 143, 0.08);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.45rem;
}

.portfolio-card-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--blue-900);
}

.portfolio-card-meta {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--gray-500);
}

.portfolio-card-text {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.6;
  font-size: 0.92rem;
  flex: 1;
}

.portfolio-card-link {
  margin-top: var(--space-3);
  align-self: flex-start;
}

.portfolio-empty {
  text-align: center;
  color: var(--gray-600);
  padding: 3rem 1rem;
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.services-hero {
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: var(--white);
  padding: var(--space-10) 0;
}

.search-page {
  background: var(--gray-50);
}

.search-hero {
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: var(--white);
  padding: var(--space-10) 0;
}

.search-page-title {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.search-page-sub {
  margin: 0;
  opacity: 0.9;
}

.search-results-title {
  margin: 0 0 var(--space-4);
  color: var(--blue-900);
}

.search-empty {
  margin: 0 0 var(--space-5);
  color: var(--gray-600);
  background: var(--white);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
}

.search-results-grid {
  grid-template-columns: repeat(3, 1fr);
}

.services-page-title {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.services-page-sub {
  margin: 0;
  opacity: 0.9;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: var(--space-6);
}

.service-title {
  margin: 0 0 var(--space-2);
  color: var(--blue-900);
  font-size: 1.1rem;
}

.service-text {
  margin: 0;
  color: var(--gray-600);
}

.service-details-btn {
  margin-top: var(--space-3);
}

.home-services .home-service-cover {
  height: 160px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--gray-100);
}

.service-details-page {
  background: var(--gray-50);
}

.service-details-layout {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 320px);
  gap: var(--space-6);
}

.service-details-main {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: var(--space-6);
}

.service-details-title {
  margin: 0 0 var(--space-3);
  color: var(--blue-900);
  font-size: clamp(1.55rem, 3vw, 1.9rem);
}

.service-details-lead {
  margin: 0 0 var(--space-5);
  color: var(--gray-600);
}

.service-section-title {
  margin: 0 0 var(--space-2);
  color: var(--blue-900);
  font-size: 1.1rem;
}

.service-section-text {
  margin: 0 0 var(--space-5);
  color: var(--gray-700);
}

.service-details-list {
  margin: 0;
  padding: 0 1rem 0 0;
  color: var(--gray-700);
}

.service-details-list li {
  margin-bottom: 0.45rem;
}

.service-details-aside {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: var(--space-5);
  height: fit-content;
  display: grid;
  gap: var(--space-3);
}

.service-cta-title {
  margin: 0;
  color: var(--blue-900);
}

.service-cta-text {
  margin: 0;
  color: var(--gray-600);
}

.about-page {
  background: var(--gray-50);
}

.about-hero {
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: var(--white);
  padding: var(--space-10) 0;
}

.about-page-title {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.about-page-sub {
  margin: 0;
  opacity: 0.9;
}

.contact-page {
  background: var(--gray-50);
}

.contact-hero {
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: var(--white);
  padding: var(--space-10) 0;
}

.contact-page-title {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.contact-page-sub {
  margin: 0;
  opacity: 0.9;
}

.cart-page {
  background: var(--gray-50);
}

.checkout-page {
  background: var(--gray-50);
}

.checkout-hero {
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: var(--white);
  padding: var(--space-10) 0;
}

.checkout-page-title {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.checkout-page-sub {
  margin: 0;
  opacity: 0.9;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: var(--space-6);
}

.checkout-form,
.checkout-summary {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: var(--space-6);
}

.checkout-card-title {
  margin: 0 0 var(--space-4);
  color: var(--blue-900);
}

.checkout-summary .btn {
  width: 100%;
  margin-top: var(--space-3);
}

.checkout-payment-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.checkout-payment-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.checkout-payment-option:has(input:checked) {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px var(--blue-100);
}

.checkout-payment-option input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--blue-600);
}

.checkout-payment-option-label {
  font-weight: 600;
  color: var(--gray-800);
}

.checkout-payment-details {
  margin-top: var(--space-2);
  padding: var(--space-4);
  border: 1px solid #dbeafe;
  border-radius: var(--radius);
  background: #f8fbff;
}

.checkout-payment-instructions {
  margin: 0 0 var(--space-3);
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.55;
}

.checkout-payment-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.checkout-payment-info-list li {
  font-size: 0.92rem;
  color: var(--gray-800);
}

.checkout-payment-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.checkout-payment-cod-hint {
  margin: var(--space-2) 0 var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.9rem;
  line-height: 1.55;
}

.thankyou-page {
  background: var(--gray-50);
}

.thankyou-hero {
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: var(--white);
  padding: var(--space-12) 0;
}

.thankyou-wrap {
  display: grid;
  place-items: center;
}

.thankyou-card {
  width: min(680px, 100%);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  color: var(--gray-800);
  text-align: center;
  padding: var(--space-8);
}

.thankyou-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.thankyou-page-title {
  margin: 0 0 var(--space-3);
  color: var(--blue-900);
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.thankyou-page-sub {
  margin: 0 0 var(--space-5);
  color: var(--gray-600);
}

.thankyou-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

.cart-hero {
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: var(--white);
  padding: var(--space-10) 0;
}

.cart-page-title {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.cart-page-sub {
  margin: 0;
  opacity: 0.9;
}

.login-page {
  background: var(--gray-50);
}

.account-page {
  background: var(--gray-50);
}

.account-hero {
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: var(--white);
  padding: var(--space-10) 0;
}

.account-page-title {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.account-page-sub {
  margin: 0;
  opacity: 0.9;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: var(--space-6);
}

.account-main {
  display: grid;
  gap: var(--space-5);
}

.account-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: var(--space-5);
}

.account-card-title {
  margin: 0 0 var(--space-3);
  color: var(--blue-900);
}

.account-meta {
  margin: 0 0 var(--space-2);
  color: var(--gray-600);
}

.account-order-list {
  display: grid;
  gap: var(--space-3);
}

.account-order-row {
  display: grid;
  grid-template-columns: minmax(5rem, 1fr) auto auto auto;
  gap: var(--space-3);
  align-items: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
}

.order-id--link {
  text-decoration: none;
  color: var(--gray-800);
}

.order-id--link:hover {
  color: var(--blue-600);
  text-decoration: underline;
}

.account-order-date {
  color: var(--gray-500);
  font-size: 0.85rem;
  white-space: nowrap;
}

.account-alert {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
  font-size: 0.9rem;
}

.account-alert--success {
  background: var(--green-100);
  color: var(--green-700);
  border: 1px solid #bbf7d0;
}

.account-alert--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.account-form-actions {
  margin-top: var(--space-4);
}

.account-card .form-grid {
  margin-top: var(--space-2);
}

@media (max-width: 640px) {
  .account-order-row {
    grid-template-columns: 1fr 1fr;
    row-gap: var(--space-2);
  }

  .account-order-row .order-id--link {
    grid-column: 1 / -1;
  }

  .account-order-row .account-order-date {
    grid-column: 1 / 2;
  }

  .account-order-row .order-status {
    grid-column: 2 / 3;
    justify-self: end;
  }

  .account-order-row .order-total {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.order-id {
  color: var(--gray-800);
  font-weight: 700;
}

.order-total {
  color: var(--blue-700);
  font-weight: 700;
}

.order-status {
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
}

.order-status--done {
  background: var(--green-100);
  color: var(--green-700);
}

.order-status--processing {
  background: var(--amber-100);
  color: var(--amber-800);
}

.account-address {
  margin: 0 0 var(--space-4);
  color: var(--gray-700);
}

.login-hero {
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: var(--white);
  padding: var(--space-10) 0;
}

.login-page-title {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.login-page-sub {
  margin: 0;
  opacity: 0.9;
}

.login-wrap {
  display: grid;
  place-items: center;
}

.login-form {
  width: min(460px, 100%);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
  display: grid;
  gap: var(--space-4);
}

.login-form-title {
  margin: 0;
  color: var(--blue-900);
}

.login-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  color: var(--gray-600);
}

.login-meta label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.login-register {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray-600);
  text-align: center;
}

.register-page .login-form {
  width: min(520px, 100%);
}

.register-form-title {
  margin: 0;
  color: var(--blue-900);
}

.register-login {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray-600);
  text-align: center;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: var(--space-6);
}

.cart-items {
  display: grid;
  gap: var(--space-4);
}

.cart-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: var(--space-4);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.cart-item-img {
  height: 78px;
  border-radius: var(--radius-sm);
}

.cart-item-info h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--gray-900);
}

.cart-item-info p {
  margin: 0;
  color: var(--gray-500);
  font-size: 0.86rem;
}

.cart-item-price {
  margin-top: var(--space-2) !important;
  color: var(--blue-700) !important;
  font-weight: 700;
}

.cart-item-qty {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.cart-item-qty button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
}

.cart-summary {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-xs);
  height: fit-content;
}

.cart-summary h2 {
  margin: 0 0 var(--space-4);
  color: var(--blue-900);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  color: var(--gray-700);
}

.summary-total {
  padding-top: var(--space-3);
  border-top: 1px solid var(--gray-200);
  font-size: 1.05rem;
}

.cart-summary .btn {
  width: 100%;
  margin-top: var(--space-3);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: var(--space-6);
}

.contact-card,
.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
}

.contact-card-title {
  margin: 0 0 var(--space-4);
  color: var(--blue-900);
  font-size: 1.25rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--gray-700);
}

.contact-list li {
  margin-bottom: var(--space-3);
  line-height: 1.7;
}

.contact-social {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-200);
}

.contact-social-label {
  margin: 0 0 var(--space-3);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.contact-social-links .social-link {
  background: var(--gray-50);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.contact-social-links .social-link:hover {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-500);
  text-decoration: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 0.9rem;
  color: var(--gray-700);
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 0.7rem 0.85rem;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--gray-900);
}

.form-field textarea {
  resize: vertical;
}

.form-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #6b7280 50%),
    linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position:
    calc(1rem) calc(50% - 3px),
    calc(0.65rem) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-inline-end: 2rem;
  cursor: pointer;
}

.form-field input[type="file"] {
  padding: 0.45rem 0.55rem;
  background: var(--gray-50);
}

.upload-hint {
  color: var(--gray-500);
  font-size: 0.8rem;
  font-weight: 500;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-100);
}

.form-field--full {
  grid-column: 1 / -1;
}

.btn-primary-dark {
  background: var(--accent);
  color: var(--white);
  margin-top: var(--space-3);
}

.btn-primary-dark:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.products-page-title {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.products-page-sub {
  margin: 0;
  opacity: 0.9;
}

.categories-page-title {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.categories-page-sub {
  margin: 0;
  opacity: 0.9;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.products-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) 1fr;
  gap: var(--space-6);
  align-items: start;
}

.products-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--space-6));
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: var(--space-5);
}

.products-sidebar-title {
  margin: 0 0 var(--space-3);
  color: var(--blue-900);
  font-size: 1rem;
}

.products-sidebar-nav {
  display: grid;
  gap: var(--space-2);
}

.products-sidebar-link {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--gray-50);
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.products-sidebar-link:hover {
  text-decoration: none;
  border-color: #bfdbfe;
  color: var(--blue-700);
  background: #eff6ff;
}

.products-sidebar-link.is-active {
  border-color: #bfdbfe;
  color: var(--blue-700);
  background: #eff6ff;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-700);
  cursor: pointer;
}

.chip.is-active,
.chip:hover {
  color: var(--blue-700);
  border-color: #bfdbfe;
  background: #eff6ff;
}

.products-grid--catalog {
  grid-template-columns: repeat(4, 1fr);
}

.categories-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.category-showcase-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: var(--space-5);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.category-showcase-top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.category-showcase-title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--blue-900);
}

.category-showcase-text {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.7;
}

.category-showcase-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: var(--blue-700);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
}

.category-showcase-link:hover {
  text-decoration: none;
  background: #ffe5cc;
}

.product-link {
  color: inherit;
  text-decoration: none;
}

.product-link:hover {
  color: var(--blue-700);
  text-decoration: underline;
}

.btn-outline-mini {
  width: 100%;
  border: 1px solid #ffd1a6;
  color: #a84f00;
  background: #fff3e6;
  padding: 0.55rem var(--space-3);
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.btn-outline-mini:hover {
  background: #ffe5cc;
  text-decoration: none;
}

.btn-quote {
  border-color: #bfdbfe;
  color: var(--blue-700);
  background: #eff6ff;
}

.btn-quote:hover {
  background: #dbeafe;
}

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s, border-color 0.15s;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-200);
}

.product-media {
  position: relative;
  background: var(--gray-100);
}

.product-img {
  height: 168px;
  background: linear-gradient(145deg, #e8eef6 0%, #d8e2ee 100%);
  position: relative;
}

.product-img::before {
  content: "";
  position: absolute;
  inset: 18% 22%;
  border: 2px solid var(--gray-400);
  border-radius: 5px;
  opacity: 0.45;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 7px,
    rgba(37, 99, 235, 0.12) 7px,
    rgba(37, 99, 235, 0.12) 9px
  );
}

.product-img.has-image::before {
  display: none;
}

.product-img--2 {
  background: linear-gradient(145deg, #f2ebe3 0%, #e4d9cc 100%);
}

.product-img--3 {
  background: linear-gradient(145deg, #e8f2ec 0%, #d2e4da 100%);
}

.product-img--4 {
  background: linear-gradient(145deg, #e6eaf4 0%, #ccd6ea 100%);
}

.product-badge {
  position: absolute;
  top: var(--space-3);
  inset-inline-start: var(--space-3);
  padding: var(--space-1) var(--space-3);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
}

.product-badge--stock {
  background: var(--green-100);
  color: var(--green-700);
}

.product-badge--low {
  background: var(--amber-100);
  color: var(--amber-800);
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.product-sku {
  margin: 0 0 var(--space-2);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  text-transform: uppercase;
}

.product-name {
  margin: 0 0 var(--space-2);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.45;
}

.product-cat {
  margin: 0 0 var(--space-4);
  font-size: 0.8125rem;
  color: var(--gray-500);
  font-weight: 500;
}

.product-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--gray-100);
}

.product-price {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-700);
  letter-spacing: -0.02em;
}

.product-price .currency {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-inline-end: 0.2rem;
  color: var(--gray-600);
}

.btn-cart {
  width: 100%;
  background: var(--accent);
  color: var(--white);
  padding: 0.65rem var(--space-4);
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-cart:hover {
  background: var(--accent-hover);
}

.btn-cart:active {
  transform: scale(0.99);
}

.product-details-page {
  background: var(--gray-50);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  color: var(--gray-500);
  font-size: 0.86rem;
}

.breadcrumb a {
  color: var(--gray-600);
}

.product-details-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: var(--space-8);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
}

.product-img--detail {
  height: 320px;
  border-radius: var(--radius);
}

.product-details-title {
  margin: var(--space-3) 0 var(--space-2);
  font-size: 1.6rem;
  color: var(--gray-900);
}

.product-details-sku {
  margin: 0 0 var(--space-3);
  color: var(--gray-500);
  font-size: 0.85rem;
}

.product-details-price {
  margin: 0 0 var(--space-4);
  font-size: 1.8rem;
  color: var(--blue-700);
  font-weight: 700;
}

.product-details-desc {
  margin: 0 0 var(--space-4);
  color: var(--gray-700);
  line-height: 1.8;
}

.product-details-list {
  margin: 0 0 var(--space-5);
  padding: 0 1rem 0 0;
  color: var(--gray-700);
}

.product-details-list li {
  margin-bottom: 0.35rem;
}

.product-details-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.btn-outline-dark {
  border: 1px solid var(--gray-300);
  color: var(--gray-800);
  background: var(--white);
}

.btn-outline-dark:hover {
  background: var(--gray-100);
  text-decoration: none;
}

/* —— Features —— */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.feature-card {
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius);
  background: var(--blue-50);
  color: var(--blue-600);
  border: 1px solid var(--blue-100);
}

.feature-title {
  margin: 0 0 var(--space-2);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--blue-900);
}

.feature-text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
  font-weight: 500;
}

/* —— About —— */
.about {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 300px);
  gap: var(--space-10);
  align-items: start;
}

.about-text {
  margin: 0 0 var(--space-4);
  color: var(--gray-700);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 500;
}

.about-text--muted {
  margin-bottom: 0;
  color: var(--gray-500);
  font-size: 0.9375rem;
}

.about-aside {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--gray-200);
}

.about-stat:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.about-stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue-600);
  letter-spacing: -0.02em;
}

.about-stat-cap {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 600;
}

/* —— Footer —— */
.site-footer {
  background: var(--blue-950);
  color: rgba(255, 255, 255, 0.88);
  padding-top: var(--space-10);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: var(--space-8) var(--space-6);
  padding-bottom: var(--space-10);
}

.footer-brand {
  padding-inline-end: var(--space-4);
}

.footer-logo {
  display: inline-block;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: var(--space-3);
  text-decoration: none;
}

.footer-logo:hover {
  color: var(--blue-100);
  text-decoration: none;
}

.footer-desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  max-width: 280px;
}

.footer-heading {
  margin: 0 0 var(--space-4);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: var(--space-3);
}

.footer-list a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
}

.footer-list a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-list--contact li {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.footer-social-label {
  margin: var(--space-5) 0 var(--space-3);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.social-links {
  display: flex;
  gap: var(--space-2);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: var(--blue-600);
  border-color: var(--blue-500);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-4) 0;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.copyright {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.footer-legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* —— Responsive —— */
@media (max-width: 1024px) {
  .category-card { flex-basis: 200px; }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid--catalog {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-layout {
    grid-template-columns: 1fr;
  }

  .products-sidebar {
    position: static;
  }

  .categories-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-details-layout {
    grid-template-columns: 1fr;
  }

  .service-details-layout {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .thankyou-card {
    padding: var(--space-6);
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
    padding-inline-end: 0;
  }
}

@media (max-width: 768px) {
  .site-header,
  .global-search-wrap {
    transition: transform 0.24s ease, opacity 0.24s ease;
    will-change: transform;
  }

  .site-header.is-hidden-on-scroll,
  .global-search-wrap.is-hidden-on-scroll {
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
  }

  .nav-toggle {
    display: flex;
    order: 2;
    z-index: 130;
  }

  .global-search-form {
    grid-template-columns: 1fr;
  }

  .global-search-btn {
    width: 100%;
  }

  .logo {
    order: 1;
  }

  .header-center {
    order: 0;
    flex: 0 0 auto;
    width: 0;
    min-width: 0;
    overflow: visible;
  }

  .header-actions {
    order: 3;
    margin-inline-start: auto;
    gap: var(--space-1);
  }

  .cart-btn-label {
    display: none;
  }

  .login-btn {
    min-width: 0;
    max-width: min(120px, 28vw);
    padding-inline: var(--space-3);
    font-size: 0.78rem;
  }

  .main-nav {
    position: fixed;
    top: 0;
    inset-inline-start: -110%;
    width: min(320px, 86vw);
    height: 100dvh;
    margin: 0;
    border-radius: 0 18px 18px 0;
    border: 1px solid var(--gray-200);
    border-inline-start: 0;
    padding: calc(var(--header-h) + var(--space-3)) var(--space-4) var(--space-4);
    z-index: 120;
    overflow-y: auto;
    transition: inset-inline-start 0.28s ease, box-shadow 0.28s ease;
    box-shadow: none;
  }

  .main-nav.is-open {
    inset-inline-start: 0;
    box-shadow:
      var(--shadow-lg),
      0 0 0 100vmax rgba(15, 23, 42, 0.38);
  }

  .nav-list {
    flex-direction: column;
    gap: var(--space-2);
    padding: 0;
  }

  .nav-list li {
    border-bottom: 0;
  }

  .nav-link {
    padding: var(--space-3);
    border-radius: 10px;
    border: 1px solid transparent;
    background: var(--white);
  }

  .nav-link:hover,
  .nav-link.is-active {
    border-color: #bfdbfe;
  }

  .category-card { flex-basis: 180px; }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid--catalog {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-results-grid {
    grid-template-columns: 1fr;
  }

  .products-sidebar-nav {
    grid-template-columns: 1fr 1fr;
  }

  .categories-showcase-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .product-details-actions {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (min-width: 769px) {
  .main-nav {
    max-height: none !important;
  }
}
