/* SMART storefront — premium brand design system */

:root {
  /* Official SMART brand tokens */
  --brand-primary: #f36a3e;
  --brand-hover: #e85b30;
  --brand-light: #fff0ea;
  --brand-secondary: #f46c3c;
  --brand-accent: #f36a3e;
  --brand-accent-hover: #e85b30;

  --color-white: #ffffff;
  --color-on-brand: #ffffff;
  --color-text: #222222;
  --color-text-secondary: #737373;
  --color-background: #f8f8f8;
  --color-border: #eaeaea;

  /* Surfaces */
  --page: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8f8f8;

  /* Component aliases */
  --ink: #222222;
  --ink-soft: #4a4a4a;
  --brand-surface: var(--color-background);
  --brand-surface-2: #f1f1f1;
  --brand-text: var(--color-text);
  --brand-text-muted: var(--color-text-secondary);
  --brand-success: #1f7a4d;
  --brand-danger: #c43535;
  --accent-soft: var(--brand-light);
  --accent-softer: color-mix(in srgb, var(--brand-primary) 8%, white);
  --background: var(--color-background);
  --background-elevated: var(--surface);
  --border: var(--color-border);

  /* Spacing & shape */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --shadow-sm: 0 1px 2px rgba(34, 34, 34, 0.04);
  --shadow-md: 0 10px 30px rgba(34, 34, 34, 0.08);
  --shadow-lift: 0 14px 36px rgba(34, 34, 34, 0.1);
  --container: 1140px;
  --header-h: 4.25rem;

  /* Typography */
  --font-display: "Outfit", system-ui, sans-serif;
  --font: "Manrope", system-ui, sans-serif;
  --font-ar: "Cairo", system-ui, sans-serif;
  --text-xs: 0.72rem;
  --text-sm: 0.84rem;
  --text-md: 0.95rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.35rem, 2.4vw, 1.75rem);
  --text-hero: clamp(2rem, 5.5vw, 3.5rem);
  --leading-tight: 1.08;
  --leading-snug: 1.25;
  --leading-body: 1.55;
  --tracking-tight: -0.035em;
  --tracking-brand: 0.14em;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pattern: radial-gradient(rgba(34, 34, 34, 0.04) 0.65px, transparent 0.65px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--brand-text);
  background: var(--page);
  font-family: var(--font);
  font-size: 16px;
  line-height: var(--leading-body);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[dir="rtl"] {
  font-family: var(--font-ar);
}

body.drawer-open,
body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--color-text);
}

body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3,
body[dir="rtl"] h4 {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

p {
  margin: 0;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(1.2) blur(14px);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header__main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem 1rem;
  min-height: var(--header-h);
  padding: 0.55rem 0;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo__img {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(200px, 58vw);
  object-fit: contain;
  object-position: left center;
}

.logo--footer .logo__img {
  height: 56px;
  max-width: 240px;
  filter: none;
}

.logo--drawer .logo__img {
  height: 44px;
  max-width: 180px;
}

.header__search {
  display: none;
}

.search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  height: 2.7rem;
  padding: 0 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background-elevated);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-light);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.875rem;
}

.search__icon {
  display: inline-flex;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--brand-text-muted);
  flex-shrink: 0;
}

.search__icon svg,
.icon-btn svg,
.trust__item svg,
.cat-card__icon svg,
.qty-btn svg,
.promo-band__icon svg {
  width: 100%;
  height: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.action-link {
  display: none;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  color: var(--brand-text);
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.2s ease;
}

.action-link:hover {
  background: var(--brand-surface);
}

.action-link svg {
  width: 1.15rem;
  height: 1.15rem;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: var(--radius);
  color: var(--brand-text);
  transition: background 0.2s ease;
}

.icon-btn svg {
  width: 1.2rem;
  height: 1.2rem;
}

.icon-btn:hover {
  background: var(--brand-surface);
}

.icon-btn--cart {
  width: auto;
  min-width: 2.55rem;
  padding-inline: 0.65rem;
  gap: 0.35rem;
  background: var(--brand-primary);
  color: var(--color-on-brand);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--brand-primary) 28%, transparent);
}

.icon-btn--cart:hover {
  background: var(--brand-hover);
}

.icon-btn--cart .cart-label {
  display: none;
  font-size: 0.78rem;
  font-weight: 700;
}

.cart-count {
  position: absolute;
  top: 0.2rem;
  inset-inline-end: 0.2rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.25rem;
  border-radius: 0.25rem;
  background: #fff;
  color: var(--brand-primary);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.05rem;
  text-align: center;
}

.header__nav {
  display: none;
  border-top: 1px solid var(--border);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  min-height: 2.75rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-desktop::-webkit-scrollbar {
  display: none;
}

.nav-desktop a {
  position: relative;
  flex-shrink: 0;
  padding: 0.7rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--brand-text-muted);
  transition: color 0.2s ease;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--brand-text);
}

.nav-desktop a.is-active::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0;
  height: 2px;
  background: var(--brand-primary);
}

.mobile-search {
  padding: 0 0 0.85rem;
}

.search--mobile {
  display: flex;
}

.lg-hidden {
  display: inline-flex;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(17, 17, 17, 0.42);
}

.drawer__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(21.5rem, 90vw);
  height: 100%;
  padding: 0;
  background: #fff;
  box-shadow: var(--shadow-md);
}

body[dir="rtl"] .drawer__panel {
  margin-inline-start: auto;
}

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 0.85rem 0.7rem;
  border-bottom: 1px solid var(--border);
}

.drawer__title {
  margin: 0;
  color: var(--brand-text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.drawer__close {
  flex-shrink: 0;
}

.drawer__body {
  flex: 1;
  overflow: auto;
  padding: 0.15rem 0 4.5rem;
  -webkit-overflow-scrolling: touch;
}

.drawer__cat-list {
  display: grid;
}

.drawer__cat-group {
  border-bottom: 1px solid #ececec;
}

.drawer__cat-row {
  display: grid;
  grid-template-columns: 1.6rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.35rem;
  padding: 0.7rem 0.95rem;
  border: 0;
  border-bottom: 1px solid #ececec;
  background: transparent;
  color: var(--brand-text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  text-align: start;
  cursor: pointer;
}

.drawer__cat-group > .drawer__cat-row {
  border-bottom: 0;
}

.drawer__cat-row:hover .drawer__cat-name {
  color: var(--brand-primary);
}

.drawer__cat-group.is-open > .drawer__cat-toggle .drawer__cat-name {
  color: var(--brand-primary);
}

.drawer__cat-icon {
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
  color: #8a8a8a;
}

.drawer__cat-icon svg {
  width: 100%;
  height: 100%;
}

.drawer__cat-name {
  min-width: 0;
  line-height: 1.3;
}

.drawer__cat-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  color: #9a9a9a;
}

.drawer__cat-arrow svg {
  width: 1rem;
  height: 1rem;
}

.drawer__cat-arrow--box {
  border-radius: 0.28rem;
  background: transparent;
}

.drawer__cat-arrow-down {
  display: none;
}

.drawer__cat-group.is-open .drawer__cat-arrow--box {
  background: var(--brand-primary);
  color: #fff;
}

.drawer__cat-group.is-open .drawer__cat-arrow-right {
  display: none;
}

.drawer__cat-group.is-open .drawer__cat-arrow-down {
  display: inline-flex;
}

.drawer__cat-children {
  display: grid;
  padding: 0.15rem 0.95rem 0.75rem 3.3rem;
  background: #fafafa;
}

body[dir="rtl"] .drawer__cat-children {
  padding-inline-start: 0.95rem;
  padding-inline-end: 3.3rem;
}

.drawer__cat-sub {
  padding: 0.55rem 0;
  color: #6f6f6f;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
}

.drawer__cat-sub:hover {
  color: var(--brand-primary);
}

.drawer__empty {
  padding: 1.5rem 1rem;
  color: var(--brand-text-muted);
  font-size: 0.9rem;
}

.drawer__footer {
  position: absolute;
  inset-inline-start: 0.85rem;
  bottom: 1rem;
  z-index: 2;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.drawer__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.55rem;
  padding: 0.5rem 0.95rem 0.5rem 0.7rem;
  border-radius: 999px;
  background: #ececec;
  color: #222;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
}

.drawer__whatsapp svg {
  width: 1.4rem;
  height: 1.4rem;
  color: #25d366;
}

.drawer__whatsapp:hover {
  background: #e2e2e2;
  color: #222;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition:
    background 0.22s var(--ease),
    border-color 0.22s var(--ease),
    color 0.22s var(--ease),
    transform 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn--primary {
  background: var(--brand-primary);
  color: var(--color-on-brand);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-primary) 28%, transparent);
}

.btn--primary:hover {
  background: var(--brand-hover);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-primary) 34%, transparent);
}

.btn--outline {
  border-color: color-mix(in srgb, var(--color-text) 22%, transparent);
  color: var(--color-text);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-light);
}

.btn--soft {
  background: var(--brand-surface);
  color: var(--brand-text);
  border-color: var(--border);
  min-height: 2.4rem;
  font-size: 0.8rem;
}

.btn--soft:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn--soft.is-added {
  background: var(--brand-light);
  color: var(--brand-primary);
  border-color: transparent;
}

.btn--ghost {
  background: transparent;
  color: var(--brand-primary);
  min-height: 2.2rem;
  padding-inline: 0;
  border: 0;
  justify-content: flex-start;
}

.btn--ghost:hover {
  color: var(--brand-hover);
  transform: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn--light {
  background: var(--surface);
  color: var(--color-text);
}

.btn--light:hover {
  background: var(--brand-light);
}

.btn--ghost-light {
  color: var(--color-text);
  border-color: var(--border);
  background: var(--surface);
}

.btn--ghost-light:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-light);
}

/* Hero — premium light stage */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.hero--banners {
  padding: 0;
}

.hero__stage {
  width: 100%;
  min-width: 0;
}

.hero-banner {
  position: relative;
  width: 100%;
}

.hero-banner__track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6.2;
  min-height: 220px;
  max-height: min(52vh, 520px);
  overflow: hidden;
  background: #ececec;
}

.hero-banner__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s var(--ease);
  color: inherit;
  text-decoration: none;
}

.hero-banner__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-banner__media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-banner__nav {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  transform: translateX(-50%);
  padding: 0.25rem 0.4rem;
  border-radius: 999px;
  background: color-mix(in srgb, #111 35%, transparent);
  backdrop-filter: blur(6px);
}

.hero-banner__dot {
  width: 1.35rem;
  height: 0.28rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, #fff 42%, transparent);
  cursor: pointer;
  transition: background 0.2s ease, width 0.25s var(--ease);
}

.hero-banner__dot.is-active {
  width: 2.2rem;
  background: #fff;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.05rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.trust-strip__item:last-child {
  border-bottom: 0;
}

.trust-strip__icon {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand-light);
  color: var(--brand-primary);
  flex-shrink: 0;
}

.trust-strip__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.trust-strip strong {
  display: block;
  font-size: 0.88rem;
}

.trust-strip__item > div > span {
  display: block;
  color: var(--brand-text-muted);
  font-size: 0.78rem;
}

/* Sections */
.section {
  padding: var(--space-7) 0;
}

.section--surface {
  background: var(--color-background);
  border-block: 1px solid var(--border);
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: var(--space-5);
}

.eyebrow {
  margin-bottom: 0.4rem;
  color: var(--brand-primary);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: var(--tracking-brand);
  text-transform: uppercase;
}

.section__head h2 {
  font-size: var(--text-xl);
}

.section__head p {
  margin-top: 0.35rem;
  color: var(--brand-text-muted);
  font-size: var(--text-md);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  color: var(--brand-text);
  font-size: 0.84rem;
  font-weight: 750;
  border-bottom: 1.5px solid var(--brand-primary);
  padding-bottom: 0.1rem;
}

.link-more svg {
  width: 1rem;
  height: 1rem;
  color: var(--brand-primary);
}

body[dir="rtl"] .link-more svg {
  transform: scaleX(-1);
}

/* Featured category rail — horizontal looping ring, icon + name */
.cat-rail {
  position: relative;
}

.cat-rail__viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.cat-rail__track {
  display: flex;
  width: max-content;
  /* Keep marquee math in LTR so RTL pages never open a dead gap. */
  direction: ltr;
  will-change: transform;
  animation: catRailSpin 28s linear infinite;
}

.cat-rail.is-paused .cat-rail__track,
.cat-rail:hover .cat-rail__track,
.cat-rail:focus-within .cat-rail__track {
  animation-play-state: paused;
}

.cat-rail.is-static .cat-rail__track {
  animation: none;
  direction: inherit;
}

.cat-rail.is-static .cat-rail__viewport {
  overflow-x: auto;
  mask-image: none;
  -webkit-mask-image: none;
  -webkit-overflow-scrolling: touch;
}

.cat-rail.is-static .cat-rail__group:not(:first-child) {
  display: none;
}

.cat-rail__group {
  display: flex;
  flex: 0 0 auto;
  gap: 0.65rem;
  padding: 0.15rem 0.35rem 0.35rem;
}

@keyframes catRailSpin {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.cat-rail__item {
  flex: 0 0 auto;
  width: 7.6rem;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.55rem;
  min-height: 6.4rem;
  padding: 0.9rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
  transition:
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease);
}

.cat-rail__item:hover,
.cat-rail__item:focus-visible {
  border-color: color-mix(in srgb, var(--brand-primary) 42%, var(--border));
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  outline: none;
}

.cat-rail__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.8rem;
  background: var(--brand-light);
  color: var(--brand-primary);
  line-height: 0;
}

.cat-rail__icon svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke-width: 1.9;
}

.cat-rail__item strong {
  font-size: 0.82rem;
  line-height: 1.25;
  font-weight: 750;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-block {
  margin-bottom: 2.25rem;
}

.cat-card__count {
  color: var(--brand-text-muted);
  font-size: 0.75rem;
  font-weight: 650;
}

.subcat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.subcat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.2rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--brand-text);
  font-size: 0.82rem;
  font-weight: 650;
}

.subcat-chip small {
  color: var(--brand-text-muted);
  font-weight: 700;
}

.subcat-chip.is-active,
.subcat-chip:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-light);
}

/* Product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    border-color 0.25s var(--ease),
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease);
}

.product-card:hover {
  border-color: color-mix(in srgb, var(--brand-primary) 28%, var(--border));
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(180deg, #fafafa, var(--color-background));
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.1rem;
  transition: transform 0.45s var(--ease-out);
}

.product-card:hover .product-card__media img {
  transform: scale(1.04);
}

.badge-discount {
  position: absolute;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 1;
  min-width: 2.55rem;
  padding: 0.32rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--brand-primary);
  color: var(--color-on-brand);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--brand-primary) 35%, transparent);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.95rem 1rem 1.05rem;
  flex: 1;
}

.product-card__brand {
  font-size: var(--text-xs);
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-text-muted);
}

.product-card__title {
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.35;
}

.product-card__title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.product-card__title a:hover {
  color: var(--brand-primary);
}

.product-card__footer,
.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  margin-top: auto;
  padding-top: 0.55rem;
}

.product-card__cta {
  width: 100%;
  margin-top: 0.35rem;
}

.product-card__prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.55rem;
}

.price {
  font-family: var(--font-display);
  font-weight: 750;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.price-compare {
  font-size: 0.78rem;
  color: var(--brand-text-muted);
  text-decoration: line-through;
}

.stock {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-inline-start: auto;
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
}

.stock.is-in {
  color: var(--brand-success);
}

.stock.is-out {
  color: var(--brand-danger);
}

.stock__dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: currentColor;
}

.product-card .btn--soft {
  margin-top: 0;
  border-radius: var(--radius-sm);
}

/* Classic category grid (categories page / fallback) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.category-grid--browse {
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.9rem;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--background-elevated);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cat-card:hover {
  border-color: color-mix(in srgb, var(--brand-primary) 40%, var(--border));
  transform: translateY(-2px);
}

.cat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--brand-primary);
  line-height: 0;
}

.cat-card__icon svg {
  width: 1.85rem;
  height: 1.85rem;
  stroke-width: 1.85;
}

.cat-card strong {
  font-size: 0.95rem;
}

/* Promo band — orange → white (no black) */
.promo-band {
  position: relative;
  overflow: hidden;
  padding: var(--space-7) 0;
  color: var(--brand-text);
  background:
    radial-gradient(ellipse 55% 80% at 0% 50%, color-mix(in srgb, var(--brand-primary) 35%, white), transparent 70%),
    linear-gradient(105deg, color-mix(in srgb, var(--brand-primary) 38%, white) 0%, color-mix(in srgb, var(--brand-primary) 12%, white) 42%, #ffffff 100%);
  border-block: 1px solid color-mix(in srgb, var(--brand-primary) 16%, var(--border));
}

.promo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pattern);
  background-size: 16px 16px;
  opacity: 0.35;
  pointer-events: none;
}

.promo-band::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: var(--brand-primary);
}

.promo-band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.promo-band h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-bottom: 0.45rem;
  color: var(--brand-text);
}

.promo-band p {
  max-width: 36rem;
  color: var(--brand-text-muted);
}

.promo-band__points {
  display: grid;
  gap: 0.65rem;
}

.promo-band__points li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--brand-text);
}

.promo-band__icon {
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--brand-primary) 16%, white);
  color: var(--brand-primary);
  flex-shrink: 0;
}

/* Page headings / listing */
.page-hero {
  padding: 1.75rem 0 0.5rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  color: var(--brand-text-muted);
  font-size: 0.85rem;
}

.breadcrumbs a:hover {
  color: var(--brand-primary);
}

.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.35rem;
}

.page-hero p {
  color: var(--brand-text-muted);
}

.listing {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem 0 3rem;
}

.listing__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.listing__count {
  color: var(--brand-text-muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.listing__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.select,
.input {
  height: 2.55rem;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background-elevated);
  outline: none;
}

.select:focus,
.input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-light);
}

.listing__layout {
  display: grid;
  gap: 1.25rem;
}

.filters {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--background-elevated);
  padding: 1rem;
}

.filters h3 {
  margin-bottom: 0.85rem;
  font-size: 1rem;
}

.filter-group {
  margin-bottom: 1rem;
}

.filter-group h4 {
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  color: var(--brand-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.filter-list {
  display: grid;
  gap: 0.35rem;
}

.filter-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.25rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.filter-list input {
  accent-color: var(--brand-primary);
}

.filter-list__parent {
  margin-top: 0.35rem;
  font-weight: 750;
}

.filter-list__child {
  padding-inline-start: 1.1rem !important;
  color: var(--color-text-secondary);
}

.filter-price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.filter-actions {
  display: grid;
  gap: 0.5rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--brand-text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* Product detail */
.product-detail {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 0 3rem;
}

.product-detail__gallery {
  display: grid;
  gap: 0.75rem;
}

.product-detail__media {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--brand-surface);
  overflow: hidden;
  aspect-ratio: 1;
}

.product-detail__media img,
.product-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

.product-gallery__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.product-gallery__track::-webkit-scrollbar {
  display: none;
}

.product-gallery__slide {
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.product-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  translate: 0 -50%;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, white 88%, transparent);
  color: var(--brand-text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.product-gallery__nav:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.product-gallery__nav--prev {
  inset-inline-start: 0.65rem;
}

.product-gallery__nav--next {
  inset-inline-end: 0.65rem;
}

.product-gallery__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.65rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  pointer-events: none;
}

.product-gallery__dot {
  pointer-events: auto;
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-text) 28%, white);
  cursor: pointer;
}

.product-gallery__dot.is-active {
  width: 1rem;
  background: var(--brand-primary);
}

.product-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.product-gallery__thumb {
  flex: 0 0 4.25rem;
  width: 4.25rem;
  height: 4.25rem;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 0.65rem;
  background: var(--brand-surface);
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.25rem;
}

.product-gallery__thumb.is-active,
.product-gallery__thumb:hover {
  border-color: var(--brand-primary);
}

.product-detail__brand {
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-text-muted);
}

.product-detail h1 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.product-detail__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.product-detail__price-row .price {
  font-size: 1.5rem;
  color: var(--brand-primary);
}

.product-detail__desc {
  margin: 1rem 0 1.25rem;
  color: var(--brand-text-muted);
  max-width: 42rem;
}

.buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--background-elevated);
}

.qty-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
}

.qty-btn svg {
  width: 1rem;
  height: 1rem;
}

.qty input {
  width: 3rem;
  border: 0;
  text-align: center;
  background: transparent;
  outline: none;
}

/* Cart */
.cart-layout {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem 0 3rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--background-elevated);
}

.cart-line img {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--brand-surface);
}

.cart-line__top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.cart-line__title {
  font-size: 0.92rem;
  font-weight: 700;
}

.cart-line__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.65rem;
}

.cart-summary {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  background: var(--background-elevated);
  height: fit-content;
}

.cart-summary h2 {
  margin-bottom: 0.85rem;
  font-size: 1.1rem;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-weight: 750;
}

.checkout-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.checkout-form h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--color-text);
}

.checkout-form__field {
  display: grid;
  gap: 0.35rem;
}

.checkout-form__field span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-secondary);
}

.checkout-form .input {
  width: 100%;
  border-radius: var(--radius);
}

.checkout-form__error {
  margin: 0;
  color: var(--brand-danger);
  font-size: 0.8rem;
  font-weight: 650;
}

.checkout-form #checkoutBtn {
  margin-top: 0.25rem;
}

.contact-card,
.brand-page-grid,
.simple-grid {
  display: grid;
  gap: 0.85rem;
}

.contact-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--background-elevated);
}

.contact-card a {
  color: var(--brand-primary);
  font-weight: 650;
}

.contact-locations {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-address {
  margin: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--brand-text);
}

.contact-address + .contact-address {
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.contact-address__link {
  color: var(--brand-text) !important;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  word-break: break-word;
}

.contact-address__link:hover {
  color: var(--brand-primary) !important;
}

.contact-maps-btn {
  justify-self: start;
  min-height: 2.25rem;
  padding-inline: 0.85rem;
  font-size: 0.84rem;
}

/* Footer — orange → white brand gradient */
.site-footer {
  margin-top: 0;
  padding: var(--space-7) 0 var(--space-5);
  background:
    radial-gradient(ellipse 70% 55% at 100% 0%, color-mix(in srgb, var(--brand-primary) 28%, white), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--brand-primary) 42%, white) 0%, color-mix(in srgb, var(--brand-primary) 16%, white) 38%, #ffffff 100%);
  color: var(--brand-text);
  border-top: 1px solid color-mix(in srgb, var(--brand-primary) 18%, var(--border));
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary) 0%, color-mix(in srgb, var(--brand-primary) 45%, white) 55%, transparent 100%);
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: auto auto -35% -8%;
  width: min(26rem, 70vw);
  height: min(26rem, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand-primary) 20%, transparent), transparent 70%);
  pointer-events: none;
}

.footer__brand {
  position: relative;
  z-index: 1;
  max-width: 26rem;
}

.site-footer .logo--footer {
  display: inline-flex;
  padding: 0.45rem 0.65rem 0.45rem 0.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 22%, white);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--brand-primary) 12%, transparent);
}

.site-footer .logo__img {
  height: 52px;
  max-width: 220px;
}

.footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}

.footer__about {
  margin-top: 0.9rem;
  max-width: 28rem;
  color: var(--brand-text-muted);
  font-size: 0.92rem;
  line-height: var(--leading-body);
}

.site-footer h3 {
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-primary);
}

.footer__links {
  display: grid;
  gap: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer__links a {
  color: inherit;
  transition: color 0.2s var(--ease);
}

.footer__links a:hover {
  color: var(--brand-primary);
}

.footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid color-mix(in srgb, var(--brand-primary) 20%, var(--border));
  color: var(--brand-text-muted);
  font-size: 0.82rem;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer__legal a {
  color: inherit;
}

.footer__legal a:hover {
  color: var(--brand-primary);
}

.footer__maps {
  color: var(--brand-text) !important;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  word-break: break-word;
}

.footer__maps:hover {
  color: var(--brand-primary) !important;
}

/* Floating WhatsApp — always visible */
.whatsapp-float {
  position: fixed;
  z-index: 95;
  inset-inline-end: 1rem;
  bottom: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.35rem;
  padding: 0.7rem 0.95rem 0.7rem 0.7rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.38);
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  animation: wa-float-in 0.45s var(--ease-out) both;
}

.whatsapp-float svg {
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
}

.whatsapp-float__label {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.whatsapp-float:hover {
  background: #1ebe57;
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.45);
}

.whatsapp-float:focus-visible {
  outline: 3px solid color-mix(in srgb, #25d366 45%, white);
  outline-offset: 3px;
}

@keyframes wa-float-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .whatsapp-float {
    inset-inline-end: 0.85rem;
    bottom: 0.95rem;
    min-height: 3.5rem;
    min-width: 3.5rem;
    padding: 0.85rem;
    justify-content: center;
  }

  .whatsapp-float__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .whatsapp-float svg {
    width: 1.7rem;
    height: 1.7rem;
  }
}

.toast {
  position: fixed;
  inset-inline: 0;
  bottom: 1rem;
  z-index: 90;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.cart-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 20, 32, 0.55);
  backdrop-filter: blur(4px);
  animation: cartModalFade 0.22s var(--ease);
}

.cart-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--background-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  text-align: center;
  animation: cartModalPop 0.28s var(--ease);
}

.cart-modal__close {
  position: absolute;
  top: 0.65rem;
  inset-inline-end: 0.65rem;
}

.cart-modal__check {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.85rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand-light);
  color: var(--brand-primary);
}

.cart-modal__check svg {
  width: 1.35rem;
  height: 1.35rem;
}

.cart-modal__panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.cart-modal__lead {
  margin: 0 0 1rem;
  color: var(--brand-text-muted);
  font-size: 0.95rem;
}

.cart-modal__product {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 0.85rem;
  padding: 0.75rem;
  text-align: start;
  border-radius: var(--radius);
  background: var(--brand-surface);
  border: 1px solid var(--border);
}

.cart-modal__product img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--background);
  flex-shrink: 0;
}

.cart-modal__product strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.35;
}

.cart-modal__product span {
  display: block;
  margin-top: 0.25rem;
  color: var(--brand-text-muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.cart-modal__count {
  margin: 0 0 1rem;
  color: var(--brand-text-muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.cart-modal__actions {
  display: grid;
  gap: 0.65rem;
}

@keyframes cartModalFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes cartModalPop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Motion / reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-strip__item {
    border-bottom: 0;
    border-inline-end: 1px solid var(--border);
    padding-inline: 1rem;
  }

  .trust-strip__item:first-child {
    padding-inline-start: 0;
  }

  .trust-strip__item:last-child {
    border-inline-end: 0;
    padding-inline-end: 0;
  }

  .cart-line {
    grid-template-columns: 6rem 1fr auto;
    align-items: center;
  }

  .promo-band__inner {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@media (min-width: 960px) {
  .lg-hidden {
    display: none !important;
  }

  .header__search {
    display: block;
    max-width: 28rem;
    justify-self: center;
    width: 100%;
  }

  .header__nav {
    display: block;
  }

  .action-link {
    display: inline-flex;
  }

  .icon-btn--cart .cart-label {
    display: inline;
  }

  .header__actions .icon-btn#searchOpen {
    display: none;
  }

  .hero-banner__track {
    aspect-ratio: 16 / 5.8;
    max-height: min(48vh, 560px);
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .listing__layout {
    grid-template-columns: 15.5rem 1fr;
    align-items: start;
  }

  .product-detail {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .cart-layout {
    grid-template-columns: 1fr 20rem;
  }

  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .brand-page-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Filter sheet + sticky buy bar (shared) */
.filters-open {
  display: none;
}

.filters-sheet {
  display: contents;
}

.filters__head {
  display: none;
}

.buy-bar {
  display: none;
}

.header__search-mobile {
  display: none;
}

.drawer__cats,
.drawer__tools {
  display: none;
}

@media (max-width: 959px) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(14px);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border-bottom: 1px solid var(--border);
  }

  .header__main {
    grid-template-columns: 1fr auto;
    min-height: 3.4rem;
    padding: 0.45rem 0 0.35rem;
    gap: 0.5rem;
  }

  .header__search {
    display: none !important;
  }

  .header__search-mobile {
    display: block;
    padding: 0 0 0.65rem;
  }

  body[data-page="home"] .header__search-mobile {
    display: none;
  }

  .header-tool,
  .action-link {
    display: none !important;
  }

  .logo__img {
    height: 40px;
    max-width: 160px;
  }

  .icon-btn--cart {
    background: var(--brand-primary);
    color: var(--color-on-brand);
  }

  .icon-btn--cart .cart-count {
    background: var(--surface);
    color: var(--brand-primary);
  }

  .drawer__panel {
    width: min(21.5rem, 92vw);
  }

  body[dir="rtl"] .drawer__cat-arrow svg {
    transform: scaleX(-1);
  }

  /* Homepage hero — mobile designed banners */
  .hero-banner__track {
    aspect-ratio: 4 / 5;
    min-height: 280px;
    max-height: min(68vh, 640px);
  }

  .hero-banner__nav {
    bottom: 0.7rem;
  }

  .trust-strip {
    gap: 0;
    border-radius: var(--radius-lg);
  }

  .trust-strip__item {
    padding: 0.85rem 0.9rem;
  }

  .trust-strip__item span:last-child,
  .trust-strip__item > div > span {
    font-size: 0.78rem;
  }

  .section {
    padding: 1.75rem 0;
  }

  .section__head {
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .section__head h2 {
    font-size: 1.2rem;
  }

  .section__head p {
    font-size: 0.88rem;
  }

  .link-more {
    flex-shrink: 0;
    font-size: 0.82rem;
  }

  .cat-rail__group {
    gap: 0.55rem;
  }

  .cat-rail__item {
    width: 6.8rem;
    min-height: 5.9rem;
    padding: 0.75rem 0.5rem;
  }

  .cat-rail__icon {
    width: 2.3rem;
    height: 2.3rem;
  }

  .cat-rail__item strong {
    font-size: 0.76rem;
  }

  .cat-rail__track {
    animation-duration: 22s;
  }

  .product-grid {
    gap: 0.65rem;
  }

  .product-card__media {
    aspect-ratio: 1 / 0.92;
  }

  .product-card__media img {
    padding: 0.65rem;
  }

  .product-card__body {
    padding: 0.7rem 0.7rem 0.8rem;
    gap: 0.3rem;
  }

  .product-card__brand {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .product-card__title {
    font-size: 0.86rem;
  }

  .product-card__title a {
    -webkit-line-clamp: 2;
  }

  .price {
    font-size: 0.95rem;
  }

  .stock {
    font-size: 0.68rem;
  }

  .product-card__cta {
    min-height: 2.2rem;
    font-size: 0.72rem;
    padding: 0.4rem 0.55rem;
  }

  .page-hero {
    padding: 1.1rem 0 0.75rem;
  }

  .page-hero h1 {
    font-size: 1.35rem;
  }

  .page-hero--compact {
    padding-bottom: 0.35rem;
  }

  .subcat-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    margin-bottom: 0.85rem;
    -webkit-overflow-scrolling: touch;
  }

  .subcat-chip {
    flex: 0 0 auto;
    min-height: 2rem;
    font-size: 0.78rem;
  }

  .listing__toolbar {
    gap: 0.65rem;
    margin-bottom: 0.85rem;
  }

  .filters-open {
    display: inline-flex;
  }

  .filters-sheet {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
  }

  .filters-sheet[hidden] {
    display: none !important;
  }

  .filters-sheet__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(34, 34, 34, 0.45);
  }

  .filters-sheet .filters {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(82vh, 40rem);
    overflow: auto;
    border-radius: 1rem 1rem 0 0;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 40px rgba(34, 34, 34, 0.18);
  }

  .filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
  }

  body.filters-open {
    overflow: hidden;
  }

  .product-detail {
    padding-bottom: 5.5rem;
    gap: 1rem;
  }

  .product-detail__media {
    aspect-ratio: 1 / 0.95;
    border-radius: var(--radius-lg);
  }

  .product-detail__media .badge-discount {
    position: absolute;
    top: 0.75rem;
    inset-inline-start: 0.75rem;
    z-index: 1;
  }

  .product-detail h1 {
    font-size: 1.3rem;
    margin-bottom: 0.55rem;
  }

  .buy-row--desktop {
    display: none;
  }

  .buy-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(34, 34, 34, 0.08);
  }

  .buy-bar__price {
    display: grid;
    gap: 0.15rem;
  }

  .buy-bar .btn {
    flex: 1;
    max-width: 14rem;
    justify-content: center;
  }

  .cart-line {
    grid-template-columns: 4.5rem 1fr;
    gap: 0.75rem;
  }

  .cart-summary,
  .checkout-form {
    border-radius: var(--radius-lg);
  }

  .site-footer {
    width: 100%;
    overflow: hidden;
  }

  .footer__grid {
    gap: 1.35rem;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .promo-band__inner {
    gap: 1rem;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

@media (max-width: 379px) {
  .container {
    width: min(100% - 1.1rem, var(--container));
  }

  .product-card__cta {
    font-size: 0.68rem;
  }
}

@media (min-width: 960px) {
  .filters-open,
  .header__search-mobile,
  .buy-bar,
  .filters-sheet__backdrop,
  .filters__head {
    display: none !important;
  }

  .filters-sheet,
  .filters-sheet[hidden] {
    display: contents !important;
  }

  .filters-sheet .filters {
    position: static;
    max-height: none;
    overflow: visible;
    box-shadow: none;
    border-radius: var(--radius-lg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cat-rail__track {
    animation: none !important;
  }

  .cat-rail__viewport {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .cat-rail__group:not(:first-child) {
    display: none;
  }
}
