/* ═══════════════════════════════════════════════════════════
   CellShop — styles.css
   Design: Apple-style minimalist · Inter · Blue accent
═══════════════════════════════════════════════════════════ */

/* ─── Design tokens ─────────────────────────────────────── */
:root {
  --color-bg:         #FFFFFF;
  --color-surface:    #F5F5F7;
  --color-surface-2:  #EBEBED;
  --color-border:     #E0E0E5;
  --color-text:       #0A0A0A;
  --color-text-2:     #3D3D3D;
  --color-muted:      #6E6E73;
  --color-accent:     #0071E3;
  --color-accent-h:   #0077ED;
  --color-accent-light: #E8F2FD;
  --color-white:      #FFFFFF;
  --color-success:    #34C759;
  --color-star:       #FF9500;

  --font-sans:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm:        8px;
  --radius-md:        14px;
  --radius-lg:        20px;
  --radius-xl:        28px;
  --radius-full:      9999px;

  --shadow-xs:        0 1px 3px rgba(0,0,0,.06);
  --shadow-sm:        0 2px 8px rgba(0,0,0,.08);
  --shadow-md:        0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:        0 12px 40px rgba(0,0,0,.12);
  --shadow-accent:    0 8px 24px rgba(0,113,227,.25);

  --transition-fast:  150ms cubic-bezier(.4,0,.2,1);
  --transition-base:  300ms cubic-bezier(.4,0,.2,1);
  --transition-slow:  500ms cubic-bezier(.4,0,.2,1);

  --header-h:         74px;
  --max-w:            1200px;
  --section-py:       120px;
}

/* ─── Reset & base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; border: none; background: none; cursor: pointer; }

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: var(--radius-full); }

/* ─── Focus ring ─────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ─── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT UTILITIES
═══════════════════════════════════════════════════════════ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section-anchor { scroll-margin-top: var(--header-h); }

/* ─── Section intro ─────────────────────────────────────── */
.section-intro {
  text-align: center;
  margin-bottom: 72px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--color-text);
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ─── Reveal animation ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* ═══════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition:
    background var(--transition-base),
    box-shadow var(--transition-base),
    backdrop-filter var(--transition-base),
    opacity var(--transition-base),
    transform var(--transition-base);
}

#header .container {
  height: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
}

.header-logo { flex: 1; }

.header-actions { flex: 1; display: flex; justify-content: flex-end; }

/* Appears frosted after hero */
#header.scrolled {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--color-text);
  flex-shrink: 0;
}

.logo-img {
  height: 46px;
  width: auto;
  display: block;
  transition: filter var(--transition-base), opacity var(--transition-fast);
}

.header-logo:hover .logo-img {
  opacity: .85;
}


.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.header-nav a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-2);
  padding: 8px 15px;
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 15px;
  right: 15px;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-fast);
}

.header-nav a:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.header-nav a:hover::after {
  transform: scaleX(.6);
}

.header-nav a.nav-active {
  color: var(--color-text);
  font-weight: 600;
}

.header-nav a.nav-active::after {
  transform: scaleX(1);
}

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.btn-wa-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: 0 2px 12px rgba(0,113,227,.28);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.btn-wa-header:hover {
  background: var(--color-accent-h);
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(0,113,227,.40);
}

.btn-wa-header svg { width: 16px; height: 16px; }

/* Mobile menu */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.menu-toggle:hover { background: var(--color-surface); }
.menu-toggle svg { width: 22px; height: 22px; }

/* ═══════════════════════════════════════════════════════════
   HERO — Video scroll-scrub
═══════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  height: 300vh;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.28) 0%,
    rgba(0,0,0,.04) 45%,
    rgba(0,0,0,.52) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-text-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  padding-top: var(--header-h);
  color: #fff;
  will-change: opacity, transform;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: 28px;
  padding: 7px 18px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-full);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp .6s ease .2s forwards;
}

.hero-headline {
  font-size: clamp(48px, 8vw, 108px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.04em;
  color: #fff;
  margin-bottom: 24px;
  text-shadow: 0 2px 32px rgba(0,0,0,.28);
  opacity: 0;
  transform: translateY(24px);
  animation: fadeSlideUp .7s ease .4s forwards;
}

.hero-sub {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255,255,255,.82);
  max-width: 560px;
  margin-bottom: 44px;
  text-shadow: 0 1px 10px rgba(0,0,0,.25);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp .7s ease .6s forwards;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp .7s ease .8s forwards;
}

.hero-text-wrap .btn-primary {
  background: #fff;
  color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.hero-text-wrap .btn-primary:hover {
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  transform: scale(1.03);
}

.hero-text-wrap .btn-secondary {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  border-color: rgba(255,255,255,.32);
}
.hero-text-wrap .btn-secondary:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.55);
  transform: scale(1.02);
}

/* Scroll indicator */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn .8s ease 1.4s forwards;
  transition: opacity 0.4s ease;
}

.hero-scroll-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

.hero-scroll-dot {
  width: 2px;
  height: 36px;
  background: rgba(255,255,255,.18);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.hero-scroll-dot::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 0;
  right: 0;
  height: 50%;
  background: rgba(255,255,255,.75);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out 1.8s infinite;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}
.btn-primary:hover {
  background: var(--color-accent-h);
  transform: scale(1.03);
  box-shadow: var(--shadow-accent);
}
.btn-primary:active { transform: scale(.98); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--color-border);
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    border-color var(--transition-fast);
}
.btn-secondary:hover {
  background: var(--color-surface-2);
  border-color: var(--color-text-2);
  transform: scale(1.02);
}


/* ═══════════════════════════════════════════════════════════
   PRODUCTS
═══════════════════════════════════════════════════════════ */
#products {
  padding: var(--section-py) 0;
  background: var(--color-bg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-card-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
  overflow: hidden;
}

.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: var(--color-white);
}

.product-badge.badge-sold { background: var(--color-success); }
.product-badge.badge-premium { background: var(--color-text); }
.product-badge.badge-sale { background: #FF3B30; }

.product-card-body { padding: 18px 20px 22px; }

.product-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.product-desc {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -.02em;
}

.product-cta {
  width: 32px; height: 32px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.product-card:hover .product-cta {
  transform: scale(1.15);
  background: var(--color-accent-h);
}
.product-cta svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ═══════════════════════════════════════════════════════════
   REPAIRS
═══════════════════════════════════════════════════════════ */
#repairs {
  padding: var(--section-py) 0;
  background: var(--color-surface);
}

.repairs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.repair-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  cursor: pointer;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.repair-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.repair-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.repair-card:hover::before { transform: scaleX(1); }

.repair-icon {
  width: 52px; height: 52px;
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 20px;
}
.repair-icon svg { width: 26px; height: 26px; }

.repair-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--color-text);
  margin-bottom: 10px;
}

.repair-desc {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.repair-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.repair-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted);
  background: var(--color-surface);
  padding: 5px 10px;
  border-radius: var(--radius-full);
}
.repair-tag svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

.repair-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent);
}
.repair-price span {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted);
  margin-right: 4px;
}

.repair-img-wrap {
  margin: -32px -28px 24px;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.repair-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.repair-card:hover .repair-img { transform: scale(1.04); }

.repair-img-fallback {
  width: 100%;
  height: 100%;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

/* ═══════════════════════════════════════════════════════════
   WHY US
═══════════════════════════════════════════════════════════ */
#why-us {
  padding: var(--section-py) 0;
  background: var(--color-bg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
  cursor: default;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 64px; height: 64px;
  background: var(--color-accent-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin: 0 auto 22px;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.why-card:hover .why-icon {
  background: var(--color-accent);
  color: var(--color-white);
  transform: scale(1.08);
}
.why-icon svg { width: 28px; height: 28px; }

.why-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--color-text);
  margin-bottom: 10px;
}

.why-desc {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════════ */
#testimonials {
  padding: var(--section-py) 0;
  background: var(--color-surface);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.star {
  color: var(--color-star);
  font-size: 16px;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-2);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-text::before { content: '"'; }
.testimonial-text::after  { content: '"'; }

.testimonial-author { display: flex; align-items: center; gap: 14px; }

.testimonial-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--color-accent), #5AC8FA);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-white);
  flex-shrink: 0;
  overflow: hidden;
}
.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -.01em;
}

.testimonial-role { font-size: 12px; color: var(--color-muted); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════ */
#contact {
  padding: var(--section-py) 0;
  background: var(--color-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 32px; }

.contact-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-block-icon {
  width: 44px; height: 44px;
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}
.contact-block-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.contact-block-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.contact-block-value {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.5;
}

.schedule-rows { display: flex; flex-direction: column; gap: 4px; }
.schedule-row {
  display: flex;
  gap: 8px;
  font-size: 14px;
}
.schedule-row span:first-child { color: var(--color-muted); min-width: 160px; }
.schedule-row span:last-child { font-weight: 600; color: var(--color-text); }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: #25D366;
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  width: fit-content;
}
.btn-whatsapp:hover {
  background: #128C7E;
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(37,211,102,.3);
}
.btn-whatsapp:active { transform: scale(.98); }
.btn-whatsapp svg { width: 22px; height: 22px; }

.contact-map-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-open-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}
.map-open-link:hover { opacity: .75; }

.contact-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 380px;
  background: var(--color-surface);
  position: relative;
}
.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
#footer {
  background: var(--color-text);
  color: rgba(255,255,255,.7);
  padding: 60px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 32px;
}

.footer-brand .header-logo { color: var(--color-white); margin-bottom: 16px; }

.footer-desc {
  font-size: 14px;
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
}
.footer-social a:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 18px;
}

.footer-col-links { display: flex; flex-direction: column; gap: 10px; }
.footer-col-links a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color var(--transition-fast);
  cursor: pointer;
}
.footer-col-links a:hover { color: var(--color-white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy { font-size: 13px; }

.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  transition: color var(--transition-fast);
}
.footer-legal a:hover { color: rgba(255,255,255,.8); }

/* ═══════════════════════════════════════════════════════════
   WHATSAPP FLOAT
═══════════════════════════════════════════════════════════ */
#whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  z-index: 90;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
  animation: floatPop .5s cubic-bezier(.34,1.56,.64,1) 1.2s both;
}
#whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 30px rgba(37,211,102,.5);
}
#whatsapp-float svg { width: 28px; height: 28px; }

/* ─── Tooltip ───────────────────────────────────────────── */
#whatsapp-float::before {
  content: 'Escríbenos';
  position: absolute;
  right: calc(100% + 12px);
  background: var(--color-text);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}
#whatsapp-float:hover::before { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   KEYFRAMES
═══════════════════════════════════════════════════════════ */
@keyframes fadeSlideUp {
  to { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes floatPop {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes scrollDot {
  0%   { top: -50%; }
  100% { top: 110%; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

/* ── Tablet ── */
@media (max-width: 1024px) {
  :root { --section-py: 88px; }

  .products-grid  { grid-template-columns: repeat(2, 1fr); }
  .repairs-grid   { grid-template-columns: repeat(2, 1fr); }
  .why-grid       { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid   { grid-template-columns: 1fr; gap: 48px; }
  .footer-top     { grid-template-columns: 1fr 1fr; }

  .hero-sub { max-width: 100%; }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  :root {
    --section-py: 72px;
    --header-h:   60px;
  }

  body { font-size: 16px; }

  .header-nav, .header-actions .btn-wa-header { display: none; }
  .menu-toggle { display: flex; }

  .products-grid  { grid-template-columns: 1fr 1fr; gap: 14px; }
  .repairs-grid   { grid-template-columns: 1fr; }
  .why-grid       { grid-template-columns: 1fr 1fr; }
  .footer-top     { grid-template-columns: 1fr; gap: 32px; }

  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { justify-content: center; }

  .contact-grid { gap: 32px; }
  .contact-map { height: 260px; }

  .footer-bottom { flex-direction: column; text-align: center; }

  #whatsapp-float { bottom: 20px; right: 20px; width: 54px; height: 54px; }
  #whatsapp-float svg { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .why-grid      { grid-template-columns: 1fr; }

  .section-intro { margin-bottom: 48px; }
  .section-title { font-size: 30px; }
}

/* ─── Mobile nav overlay ────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transform: translateX(100%);
  transition: transform var(--transition-base);
}
.mobile-nav.open { transform: none; }

.mobile-nav a {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -.02em;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.mobile-nav a:hover { color: var(--color-accent); }

.mobile-nav-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.mobile-nav-close:hover { background: var(--color-surface); }
.mobile-nav-close svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }

.mobile-nav-wa {
  margin-top: 16px;
  padding: 14px 32px;
  background: #25D366;
  color: var(--color-white) !important;
  border-radius: var(--radius-full);
  font-size: 18px !important;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT CARD — Image + new price fields
═══════════════════════════════════════════════════════════ */
.product-card-img {
  height: 240px;
  position: relative;
  overflow: hidden;
  background: var(--color-white);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 16px;
  box-sizing: border-box;
  display: block;
  transition: transform var(--transition-slow);
}
.product-card:hover .product-card-img img { transform: scale(1.06); }

.product-img-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}

.product-discount-badge {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: #FF3B30;
  color: var(--color-white);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 8px;
}
.star { color: var(--color-surface-2); font-size: 13px; }
.star.star-full { color: var(--color-star); }
.product-rating-count { font-size: 12px; color: var(--color-muted); margin-left: 4px; }

.product-prices {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-price-old {
  font-size: 13px;
  color: var(--color-muted);
  text-decoration: line-through;
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════
   CATALOG TOOLBAR — filters + sort
═══════════════════════════════════════════════════════════ */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-2);
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}
.filter-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}
.filter-chip.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sort-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
  white-space: nowrap;
}

.sort-select {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color var(--transition-fast);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E6E73' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.sort-select:focus {
  border-color: var(--color-accent);
  outline: none;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-muted);
  font-size: 16px;
  padding: 60px 20px;
}

/* ═══════════════════════════════════════════════════════════
   DETAIL VIEW
═══════════════════════════════════════════════════════════ */
#detail-view {
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: 80px;
  background: var(--color-bg);
}

.detail-wrapper { width: 100%; }

/* Breadcrumb */
.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  transition: gap var(--transition-fast);
}
.detail-back-link:hover { gap: 10px; }

.detail-breadcrumb-sep { color: var(--color-border); font-size: 14px; }
.detail-breadcrumb-cat { font-size: 13px; color: var(--color-muted); }
.detail-breadcrumb-name {
  font-size: 13px;
  color: var(--color-text-2);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}

/* Layout */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 56%);
  gap: 72px;
  margin-bottom: 72px;
  align-items: start;
}

/* Gallery — right column, image + vertical thumbs */
.detail-gallery {
  order: 2;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: row;
  gap: 14px;
}

.gallery-main-wrap {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  aspect-ratio: 1;
  flex: 1;
  min-width: 0;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 32px;
  box-sizing: border-box;
  transition: opacity var(--transition-base);
}

.gallery-main-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 90px;
}

.detail-badge-pos {
  position: absolute;
  top: 16px; left: 16px;
  font-size: 12px;
  padding: 5px 12px;
}
.detail-badge-pos2 {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 12px;
  padding: 5px 12px;
}

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  width: 80px;
  flex-shrink: 0;
  align-self: flex-start;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color var(--transition-fast);
  background: #f5f5f7;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; box-sizing: border-box; }
.gallery-thumb.active { border-color: var(--color-accent); }
.gallery-thumb:hover:not(.active) { border-color: var(--color-text-2); }

/* Info panel */
.detail-info { order: 1; display: flex; flex-direction: column; gap: 20px; }

.detail-header { display: flex; flex-direction: column; gap: 10px; }

.detail-category {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.detail-name {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--color-text);
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.detail-rating .star { font-size: 16px; }
.detail-rating-score {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}
.detail-rating-count { font-size: 13px; color: var(--color-muted); }

.detail-price-block { display: flex; flex-direction: column; gap: 6px; }

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.detail-price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--color-text);
  line-height: 1;
}

.detail-price-old {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-muted);
  text-decoration: line-through;
}

.detail-savings-line {
  font-size: 14px;
  color: var(--color-muted);
}
.detail-savings-line strong { color: var(--color-text); }
.detail-discount-pct {
  font-size: 13px;
  font-weight: 700;
  color: #FF3B30;
  background: rgba(255,59,48,.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Color selector — Apple style */
.detail-section-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-muted);
  margin-bottom: 12px;
  letter-spacing: 0;
  text-transform: none;
}
.detail-section-label strong { color: var(--color-text); font-weight: 600; }
.detail-color-sep { color: var(--color-muted); font-weight: 300; }

/* Apple-style delivery boxes */
.detail-delivery { display: flex; flex-direction: column; gap: 10px; }

.delivery-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  background: var(--color-white);
}
.delivery-box:hover { border-color: var(--color-text-2); background: var(--color-surface); }

.delivery-box-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #25D366;
  margin-top: 1px;
}
.delivery-box:last-child .delivery-box-icon { color: var(--color-text-2); }

.delivery-box-text { flex: 1; min-width: 0; }
.delivery-box-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 3px;
}
.delivery-box-subtitle {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 4px;
}
.delivery-box-link {
  font-size: 13px;
  color: var(--color-accent);
  font-weight: 500;
}

.color-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-border) !important;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  position: relative;
  flex-shrink: 0;
  outline: none;
}
.color-swatch:hover { transform: scale(1.18); }
.color-swatch.active {
  border-color: var(--color-text) !important;
  transform: scale(1.18);
  box-shadow: 0 0 0 3px var(--color-white), 0 0 0 5px var(--color-text);
}
.color-swatch:focus-visible {
  box-shadow: 0 0 0 3px var(--color-white), 0 0 0 5px var(--color-accent);
}

/* Stock indicator */
.detail-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-success);
  background: rgba(52,199,89,.1);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  width: fit-content;
}
.detail-stock svg { stroke: var(--color-success); }
.detail-stock.low-stock { color: #FF9500; background: rgba(255,149,0,.1); }
.detail-stock.low-stock svg { stroke: #FF9500; }

/* CTA */
.detail-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.detail-wa-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 28px;
  background: #25D366;
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}
.detail-wa-btn:hover {
  background: #128C7E;
  box-shadow: 0 8px 28px rgba(37,211,102,.35);
}

/* Compatibility */
.detail-compat { padding-top: 4px; border-top: 1px solid var(--color-border); }

.compat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.compat-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

/* Bottom tabs: description + specs */
.detail-bottom {
  margin-bottom: 72px;
  border-top: 1px solid var(--color-border);
  padding-top: 48px;
}

.detail-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0;
}

.detail-tab {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-muted);
  padding: 12px 20px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
  margin-bottom: -1px;
}
.detail-tab.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.detail-tab:hover:not(.active) { color: var(--color-text); }

.detail-long-desc {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text-2);
  max-width: 760px;
  margin-bottom: 32px;
}

.detail-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}

.detail-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--color-text-2);
  line-height: 1.5;
}

.detail-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--color-success);
}

/* Spec table */
.spec-table {
  width: 100%;
  max-width: 600px;
  border-collapse: collapse;
  font-size: 15px;
}

.spec-table tr { border-bottom: 1px solid var(--color-border); }
.spec-table tr:last-child { border-bottom: none; }

.spec-key {
  padding: 14px 16px 14px 0;
  font-weight: 600;
  color: var(--color-text);
  width: 40%;
  vertical-align: top;
}

.spec-val {
  padding: 14px 0;
  color: var(--color-muted);
  vertical-align: top;
}

/* Related products */
.related-section { margin-top: 24px; }

.related-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--color-text);
  margin-bottom: 32px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.related-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.related-card-img {
  height: 140px;
  overflow: hidden;
  background: var(--color-white);
  position: relative;
}
.related-card-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
  transition: transform var(--transition-base);
}
.related-card:hover .related-card-img img { transform: scale(1.05); }

.related-card-body { padding: 14px 16px 18px; }
.related-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Header scrolled state in detail page */
body.detail-open #header { opacity: 1; pointer-events: auto; transform: translateY(0); background: rgba(255,255,255,.92); backdrop-filter: blur(20px) saturate(1.8); -webkit-backdrop-filter: blur(20px) saturate(1.8); box-shadow: 0 1px 0 rgba(0,0,0,.08); }
body.detail-open #header .logo-img { filter: none; }
body.detail-open #header .header-logo { color: var(--color-text); }
body.detail-open #header .header-nav a { color: var(--color-text-2); }
body.detail-open #header .header-nav a:hover { color: var(--color-text); background: var(--color-surface); }
body.detail-open #header .btn-wa-header { background: var(--color-accent); border: none; }
body.detail-open #header .menu-toggle { color: var(--color-text); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Detail + Catalog additions
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr; gap: 40px; }
  .detail-gallery { order: 1; position: static; flex-direction: column; }
  .detail-info { order: 2; }
  .gallery-main-wrap { max-width: 480px; margin: 0 auto 0; flex: none; width: 100%; }
  .gallery-thumbs { flex-direction: row; width: auto; height: 80px; overflow-y: hidden; overflow-x: auto; }
  .gallery-thumb { width: 72px; height: 72px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .catalog-toolbar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .sort-wrap { width: 100%; }
  .sort-select { flex: 1; }
  .detail-layout { gap: 32px; }
  .detail-name { font-size: 26px; }
  .detail-price { font-size: 28px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .detail-breadcrumb-name { max-width: 160px; }
  .detail-bottom { padding-top: 32px; }
}

@media (max-width: 480px) {
  .filter-chips { gap: 6px; }
  .filter-chip { font-size: 12px; padding: 6px 14px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .detail-price { font-size: 24px; }
  .gallery-main-wrap { border-radius: 0; }
  .detail-actions { flex-direction: column; }
  .detail-wa-btn { justify-content: center; }
}
