/* ─── RESET — surgical, not nuclear ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
a,
img,
ol,
ul,
li,
article,
aside,
footer,
header,
nav,
section {
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --primary: #1e3a5f;
  --primary-dark: #0f2744;
  --primary-light: #eef4fb;
  --accent: #2563eb;
  --dark-bg: #111827;
  --dark-surface: #1f2937;
  --savings: #16a34a;
  --whatsapp: #25D366;
  --whatsapp-hover: #1da851;
  --surface: #f7f7f5;
  --white: #ffffff;
  --border: #e5e5e0;
  --border-strong: #d4d0c8;
  --text: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #6b7280;
  --danger: #dc2626;
  --warning: #d97706;

  /* Layout */
  --header-height: 56px;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.5rem;
  --space-2xl: 2rem;
  --space-3xl: 3rem;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 4px 12px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 12px 32px rgba(28, 25, 23, 0.12);

  /* Motion */
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index scale */
  --z-base: 1;
  --z-sticky: 50;
  --z-drawer: 100;
  --z-modal: 200;
  --z-toast: 9999;
}

@media (min-width: 480px) {
  :root {
    --header-height: 64px;
  }
}

/* FIX 1: scroll-padding-top bumped to cover the taller real header
   (brand row + mobile search bar + category nav) on mobile */
html {
  scroll-padding-top: 130px;
}

@media (min-width: 1024px) {
  html {
    scroll-padding-top: calc(var(--header-height) + 52px);
    /* brand + category nav */
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
}

a {
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  font-style: italic;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 16px;
  /* prevents iOS zoom */
  line-height: inherit;
  color: inherit;
}

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

/* ─── PAGE CONTAINER ─── */
.page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .page-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .page-container {
    padding: 0 2.5rem;
  }
}

.section-gap {
  padding: 2rem 0;
}

@media (min-width: 480px) {
  .section-gap {
    padding: 1.5rem 0;
  }
}

@media (min-width: 1024px) {
  .section-gap {
    padding: 2.5rem 0;
  }
}

/* ════════════════════════════════
   HEADER
════════════════════════════════ */

/* FIX 2: height was fixed at 56px which clipped the mobile search bar.
   Use height:auto so the header grows to fit all its children. */
.site-header {
  background: var(--dark-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  height: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .site-header__inner {
    padding: 1rem 0;
    gap: 1rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  flex: 1;
}

@media (min-width: 480px) {
  .brand {
    gap: 0.75rem;
  }
}

.brand__menu-toggle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  transition: color var(--transition);
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 480px) {
  .brand__menu-toggle {
    font-size: 1.25rem;
  }
}

.brand__menu-toggle:hover {
  color: var(--white);
}

.brand__menu-toggle:active {
  transform: scale(0.9);
}

@media (min-width: 1024px) {
  .brand__menu-toggle {
    display: none;
  }
}

.brand__logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 auto;
  transform: translateX(-22px);
}

@media (min-width: 480px) {
  .brand__logo-wrap {
    gap: 0.5rem;
  }
}

.brand__logo-icon {
  width: 2rem;
  height: 2rem;
  background: var(--primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  overflow: hidden;
  flex-shrink: 0;
}

.brand__logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 480px) {
  .brand__logo-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (min-width: 640px) {
  .brand__logo-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }
}

.brand__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .brand__name {
    font-size: 1.25rem;
  }
}

@media (min-width: 640px) {
  .brand__name {
    font-size: 1.5rem;
  }
}

/* ════════════════════════════════
   SEARCH BAR
════════════════════════════════ */

/* FIX 3: min-width:0 prevents the search bar from overflowing
   its flex container on very narrow screens */
.search-bar {
  flex: 1;
  max-width: 42rem;
  position: relative;
  min-width: 0;
}

.search-bar--desktop {
  display: none;
}

@media (min-width: 1024px) {
  .search-bar--desktop {
    display: block;
  }
}

.search-bar--mobile {
  padding: 0.5rem 0 1rem;
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 1024px) {
  .search-bar--mobile {
    display: none;
  }
}

/* FIX 3 cont: wrapper also needs min-width:0 */
.search-bar__wrapper {
  position: relative;
  width: 100%;
  min-width: 0;
}

.search-bar__input {
  width: 100%;
  padding: 0.625rem 1rem;
  padding-right: 3.25rem;
  background: var(--dark-surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 16px;
  outline: none;
  color: var(--white);
  transition: all var(--transition);
}

@media (min-width: 480px) {
  .search-bar__input {
    padding: 0.75rem 1.25rem;
    padding-right: 3.5rem;
  }
}

.search-bar__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-bar__input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

.search-bar__btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  padding: 0 1rem;
  background: var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--white);
  transition: background var(--transition);
  min-width: 44px;
}

@media (min-width: 480px) {
  .search-bar__btn {
    padding: 0 1.25rem;
  }
}

.search-bar__btn:hover {
  background: var(--primary-dark);
}

.search-bar__btn:active {
  transform: scale(0.98);
}

.search-results {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: none;
  max-height: 400px;
  overflow-y: auto;
  transform: translateY(-4px);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}

.search-results.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background var(--transition);
}

.search-result-item:hover {
  background: var(--surface);
}

.search-result-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.search-result-item__info {
  flex: 1;
  min-width: 0;
}

.search-result-item__name {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-item__price {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

.search-no-results {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ════════════════════════════════
   CATEGORY NAV
════════════════════════════════ */
.category-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

/* FIX 4: category nav was hidden on mobile (display:none until 1024px).
   Now always visible as a horizontally-scrollable pill row.
   The overflow + scrollbar rules already in place handle mobile perfectly. */
.category-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.625rem 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-nav__list::-webkit-scrollbar {
  display: none;
}

.category-nav__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-secondary);
  transition: all var(--transition);
  min-height: 36px;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .category-nav__item {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    min-height: 44px;
  }
}

.category-nav__item:hover {
  background: var(--surface);
  color: var(--text);
}

.category-nav__item--active {
  background: var(--dark-bg);
  color: var(--white);
}

.category-nav__item--active:hover {
  background: var(--dark-surface);
  color: var(--white);
}

.category-nav__item i {
  font-size: 0.625rem;
}

/* ════════════════════════════════
   MOBILE DRAWER
════════════════════════════════ */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
}

.mobile-drawer.open {
  visibility: visible;
  opacity: 1;
}

.mobile-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.mobile-drawer__panel {
  position: relative;
  background: var(--white);
  width: 80vw;
  max-width: 20rem;
  height: 100%;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1;
}

.mobile-drawer.open .mobile-drawer__panel {
  transform: translateX(0);
}

.mobile-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-drawer__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}

.mobile-drawer__close {
  color: #4b5563;
  font-size: 1.25rem;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-drawer__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  min-height: 44px;
  transition: background var(--transition);
}

.mobile-drawer__link:hover {
  background: #f9fafb;
}

.mobile-drawer__link--active {
  background: var(--primary);
  color: var(--white);
}

.mobile-drawer__link i {
  font-size: 0.625rem;
}

/* ════════════════════════════════
   HERO BANNER
════════════════════════════════ */
.hero-banner {
  position: relative;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
}

@media (min-width: 1024px) {
  .hero-banner {
    border-radius: var(--radius-xl);
  }
}

/* FIX 5: .hero-banner__viewport had no CSS at all.
   This is the element that clips slides during carousel transitions.
   overflow:hidden must live here, NOT on the track. */
.hero-banner__viewport {
  overflow: hidden;
  border-radius: inherit;
  width: 100%;
}

/* FIX 5 cont: removed overflow:hidden from here — the viewport handles clipping */
.hero-banner__track {
  display: flex;
  transition: transform 0.5s ease;
}

.hero-banner__slide,
.hero-banner__slide-link {
  min-width: 100%;
}

.hero-banner__slide-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.hero-banner__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 130px;
  position: relative;
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .hero-banner__grid {
    min-height: 160px;
    gap: 0.75rem;
  }
}

@media (min-width: 768px) {
  .hero-banner__grid {
    min-height: 200px;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .hero-banner__grid {
    grid-template-columns: 1fr 1fr;
    min-height: 260px;
    gap: 2rem;
  }
}

.hero-banner__content {
  padding: 0.875rem 1rem;
  color: var(--white);
  position: relative;
  z-index: 10;
}

@media (min-width: 480px) {
  .hero-banner__content {
    padding: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-banner__content {
    padding: 4rem;
  }
}

.hero-banner__eyebrow {
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

@media (min-width: 480px) {
  .hero-banner__eyebrow {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-banner__eyebrow {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
}

.hero-banner__heading {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.25rem;
}

@media (min-width: 480px) {
  .hero-banner__heading {
    font-size: 1.5rem;
    margin-bottom: 0.375rem;
  }
}

@media (min-width: 1024px) {
  .hero-banner__heading {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
  }
}

.hero-banner__subheading {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0;
}

@media (min-width: 480px) {
  .hero-banner__subheading {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-banner__subheading {
    font-size: 1.5rem;
  }
}

.hero-banner__image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 0.5rem;
  overflow: hidden;
}

.hero-banner__image {
  width: 100%;
  height: 100%;
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
  border-radius: var(--radius-md);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

@media (min-width: 480px) {
  .hero-banner__image {
    max-width: 150px;
    max-height: 150px;
  }
}

@media (min-width: 768px) {
  .hero-banner__image {
    max-width: 180px;
    max-height: 180px;
  }
}

@media (min-width: 1024px) {
  .hero-banner__image {
    max-width: 220px;
    max-height: 220px;
    margin: auto 50px;
    border-radius: 5px;
  }
}

.hero-banner__image--mobile {
  display: none;
}

.hero-banner__dots {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  z-index: 10;
}

@media (min-width: 480px) {
  .hero-banner__dots {
    bottom: 1.5rem;
    left: 2rem;
  }
}

@media (min-width: 1024px) {
  .hero-banner__dots {
    bottom: 2rem;
    left: 4rem;
  }
}

.carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
  min-height: unset;
  min-width: unset;
}

.carousel-dot--active {
  width: 1.5rem;
  background: var(--white);
}

.hero-banner__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  min-width: unset;
  min-height: unset;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-full);
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background var(--transition);
  z-index: 10;
}

@media (min-width: 768px) {
  .hero-banner__nav {
    display: flex;
  }
}

@supports (backdrop-filter: blur(4px)) {
  .hero-banner__nav {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
  }
}

@media (min-width: 1024px) {
  .hero-banner__nav {
    width: 3rem;
    height: 3rem;
  }
}

.hero-banner__nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-banner__nav:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-banner__nav--prev {
  left: 0.5rem;
}

@media (min-width: 480px) {
  .hero-banner__nav--prev {
    left: 1rem;
  }
}

.hero-banner__nav--next {
  right: 0.5rem;
}

@media (min-width: 480px) {
  .hero-banner__nav--next {
    right: 1rem;
  }
}

.hero-banner__skeleton {
  min-height: 140px;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.06) 25%,
      rgba(255, 255, 255, 0.12) 50%,
      rgba(255, 255, 255, 0.06) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@media (min-width: 480px) {
  .hero-banner__skeleton {
    min-height: 170px;
  }
}

@media (min-width: 768px) {
  .hero-banner__skeleton {
    min-height: 210px;
  }
}

@media (min-width: 1024px) {
  .hero-banner__skeleton {
    min-height: 280px;
  }
}

.hero-banner__product-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.375rem;
}

@media (min-width: 480px) {
  .hero-banner__product-label {
    font-size: 0.75rem;
  }
}

.hero-banner__product-price {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.375rem;
}

.hero-banner__product-price-main {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--white);
}

@media (min-width: 480px) {
  .hero-banner__product-price-main {
    font-size: 1.375rem;
  }
}

.hero-banner__product-price-original {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: line-through;
}

.hero-banner__product-badge {
  background: #ef4444;
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
}

/* ════════════════════════════════
   SECTION HEADER
════════════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .section-header {
    margin-bottom: 1.5rem;
  }
}

.section-header__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

@media (min-width: 480px) {
  .section-header__title {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .section-header__title {
    font-size: 1.5rem;
  }
}

.section-header__highlight {
  color: var(--primary);
}

.section-header__view-all {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.8125rem;
  transition: gap var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .section-header__view-all {
    font-size: 0.875rem;
    gap: 0.5rem;
  }
}

.section-header__view-all:hover {
  gap: 0.625rem;
}

.section-header__view-all i {
  font-size: 0.625rem;
}

/* ════════════════════════════════
   PRODUCT GRID — mobile-first 2 cols
════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
  margin-bottom: 2rem;
}

.product-grid:last-child {
  margin-bottom: 0;
}

@media (min-width: 480px) {
  .product-grid {
    gap: 0.75rem;
  }
}

@media (min-width: 640px) {
  .product-grid {
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
}

/* ════════════════════════════════
   PRODUCT CARD
════════════════════════════════ */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  cursor: pointer;
  position: relative;
  transition: all var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

@media (min-width: 480px) {
  .product-card {
    padding: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .product-card {
    padding: 1rem;
  }
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.product-card__badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--primary);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  z-index: 1;
}

@media (min-width: 480px) {
  .product-card__badge {
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
  }
}

.product-card__image-wrap {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 0.375rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

@media (min-width: 480px) {
  .product-card__image-wrap {
    border-radius: var(--radius-md);
    padding: 0.5rem;
    margin-bottom: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .product-card__image-wrap {
    padding: 1rem 1.5rem;
  }
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card__image {
  transform: scale(1.05);
}

/* FIX 6: -webkit-line-clamp was missing — titles never actually clamped,
   causing cards to have inconsistent heights and a broken grid layout. */
.product-card__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (min-width: 480px) {
  .product-card__title {
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .product-card__title {
    font-size: 1rem;
  }
}

.product-card__pricing {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.product-card__price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}

@media (min-width: 480px) {
  .product-card__price {
    font-size: 1rem;
  }
}

.product-card__original-price {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

@media (min-width: 480px) {
  .product-card__original-price {
    font-size: 0.75rem;
  }
}

.product-card__savings {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--savings);
}

@media (min-width: 480px) {
  .product-card__savings {
    font-size: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .product-card__price {
    font-size: 1rem;
  }

  .product-card__original-price {
    font-size: 0.75rem;
  }

  .product-card__savings {
    font-size: 0.75rem;
  }
}

@media (min-width: 1280px) {
  .product-card__title {
    font-size: 0.875rem;
  }

  .product-card__price {
    font-size: 1.0625rem;
  }
}

/* FIX 7: feature pills at 9px are useless on mobile — hide them below 480px */
.product-card__features {
  display: none;
}

@media (min-width: 480px) {
  .product-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.375rem;
  }
}

.product-card__feature {
  font-size: 0.625rem;
  background: var(--surface);
  color: var(--text-secondary);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

/* FIX 8: button font-size was 0.625rem (10px) — unreadable on mobile.
   Raised to 0.75rem (12px) minimum across all breakpoints. */
.product-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  padding: 0.4rem 0.25rem;
  margin-top: 0.5rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  /* was 0.625rem — too small to read */
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  text-align: center;
  text-decoration: none;
  min-height: 36px;
  line-height: 1.2;
}

.product-card__btn i {
  font-size: 0.8125rem;
}

@media (min-width: 480px) {
  .product-card__btn {
    font-size: 0.8125rem;
    padding: 0.5rem;
    min-height: 40px;
    gap: 0.375rem;
  }

  .product-card__btn i {
    font-size: 0.875rem;
  }
}

@media (min-width: 1024px) {
  .product-card__btn {
    font-size: 0.875rem;
    padding: 0.625rem;
    min-height: 44px;
    gap: 0.5rem;
  }
}

.product-card__btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}

.product-card__btn--whatsapp:hover {
  background: var(--whatsapp-hover);
}

.product-card__btn:hover {
  background: var(--primary-dark);
}

.product-card__btn:active {
  background: var(--primary-dark);
  transform: scale(0.98);
}

.product-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.product-card__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.site-footer {
  background: var(--dark-bg);
  color: rgba(255, 255, 255, 0.9);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 4rem 0;
  }
}

.footer-brand__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-brand__logo-icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
}

.footer-brand__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.footer-section__heading {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  opacity: 0.85;
  transition: opacity var(--transition);
  min-height: 44px;
  padding: 0.5rem 0;
}

.footer-contact__item:hover {
  opacity: 1;
}

.footer-contact__icon {
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.footer-contact__label {
  font-size: 0.875rem;
  opacity: 0.7;
}

.footer-contact__value {
  font-weight: 600;
  color: var(--white);
}

.footer-nav-column__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-column__link {
  font-size: 0.875rem;
  opacity: 0.75;
  transition: opacity var(--transition);
  color: rgba(255, 255, 255, 0.75);
}

.footer-nav-column__link:hover {
  opacity: 1;
  color: var(--white);
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright__text {
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.6;
  padding: 1.5rem 0;
  color: rgba(255, 255, 255, 0.6);
}

/* ════════════════════════════════
   SKELETONS
════════════════════════════════ */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton--text {
  height: 1.25rem;
}

.skeleton--w40 {
  width: 40%;
}

.skeleton--w20 {
  width: 20%;
}

.skeleton-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
}

@media (min-width: 480px) {
  .skeleton-card {
    padding: 0.75rem;
  }
}

.skeleton-card::before {
  content: '';
  display: block;
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.skeleton-card::after {
  content: '';
  display: block;
  height: 2.5rem;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ════════════════════════════════
   TOAST
════════════════════════════════ */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 0.75rem;
  left: 0.75rem;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .toast-container {
    top: 1.5rem;
    right: 1.5rem;
    left: auto;
  }
}

.toast {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform 0.3s ease;
  max-width: 100%;
}

@media (min-width: 480px) {
  .toast {
    max-width: 360px;
  }
}

.toast.show {
  transform: translateX(0);
}

.toast--success {
  background: var(--savings);
}

.toast--error {
  background: var(--danger);
}

.toast--info {
  background: var(--primary);
}

/* ════════════════════════════════
   PRODUCT DETAIL PAGE
════════════════════════════════ */
.product-detail {
  padding: 1.5rem 0;
}

@media (min-width: 768px) {
  .product-detail {
    padding: 2rem 0;
  }
}

.product-detail__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .product-detail__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* ── Gallery ── */
.gallery {
  position: relative;
}

.gallery__main {
  width: 100%;
  aspect-ratio: 1;
  max-height: 70vh;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

@media (min-width: 480px) {
  .gallery__main {
    max-height: none;
  }
}

.gallery__main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.gallery__thumbs::-webkit-scrollbar {
  display: none;
}

.gallery__thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
  flex-shrink: 0;
  background: var(--surface);
}

@media (min-width: 480px) {
  .gallery__thumb {
    width: 64px;
    height: 64px;
  }
}

.gallery__thumb--active {
  border-color: var(--primary);
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .gallery__thumb {
    width: 80px;
    height: 80px;
  }
}

/* ── Product Info ── */
.product-info__category {
  display: inline-block;
  background: var(--surface);
  color: var(--primary);
  padding: 0.2rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
}

.product-info__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.625rem;
  line-height: 1.3;
}

@media (min-width: 480px) {
  .product-info__name {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  .product-info__name {
    font-size: 2rem;
  }
}

.product-info__pricing {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.product-info__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

@media (min-width: 480px) {
  .product-info__price {
    font-size: 1.75rem;
  }
}

.product-info__original {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-info__discount {
  background: var(--primary);
  color: var(--white);
  padding: 0.2rem 0.625rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.product-info__savings {
  color: var(--savings);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.product-info__stock {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.product-info__stock--in {
  color: var(--savings);
}

.product-info__stock--out {
  color: #ef4444;
}

.product-info__divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

.specs-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
}

.specs-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.specs-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.specs-list__item i {
  color: var(--primary);
  font-size: 0.75rem;
  width: 1rem;
  text-align: center;
  flex-shrink: 0;
  margin-top: 0.2em;
}

/* ── WhatsApp Order Button ── */
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1rem;
  min-height: 52px;
  background: var(--whatsapp);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  position: sticky;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 10;
}

@media (min-width: 768px) {
  .whatsapp-btn {
    position: static;
  }
}

.whatsapp-btn:hover {
  background: var(--whatsapp-hover);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:active {
  transform: scale(0.98);
}

.whatsapp-btn i {
  font-size: 1.375rem;
}

/* ── Back Link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
  transition: gap var(--transition);
  min-height: 44px;
}

.back-link:hover {
  gap: 0.75rem;
}

/* ════════════════════════════════
   ACCESSIBILITY & REDUCED MOTION
════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ════════════════════════════════
   PRINT
   FIX 9: removed ~250 lines of duplicated global rules that were
   copy-pasted inside this block and had zero effect on print output.
   Only the meaningful overrides remain.
════════════════════════════════ */
@media print {

  .site-header,
  .site-footer,
  .hero-banner,
  .mobile-drawer,
  .search-bar,
  .category-nav,
  .toast-container,
  .hero-banner__nav,
  .hero-banner__dots {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .product-card {
    break-inside: avoid;
    border: 1px solid #000;
  }

  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 0.75rem;
  }
}