/* ============================================================
   Minimarket Digital — Sistema de estilos compartido
   Tipografía: Quicksand (titulares) + Nunito (cuerpo)
   Paleta naranja cálida: #f4a261 → #e76f51
   ============================================================ */

:root {
  /* Design tokens — colores de marca */
  --orange-1: #f4a261;
  --orange-2: #e76f51;
  --gradient-angle: 135deg;
  --accent: #e76f51;
  --accent-dark: #c25a3e;

  /* Neutros */
  --ink: #2b2522;
  --ink-soft: #5a514c;
  --ink-mute: #8a807a;
  --line: #ece6e1;
  --bg: #ffffff;
  --bg-soft: #faf6f2;
  --bg-card: #ffffff;
  --gray-text: #777777;

  /* Tipografía */
  --font-display: 'Quicksand', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  /* Tamaños / espaciado */
  --header-h: 5em;
  --header-h-mobile: 8em;     /* 2 × 4em */
  --container: 1280px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(35, 25, 20, .06), 0 2px 6px rgba(35, 25, 20, .04);
  --shadow: 0 4px 14px rgba(35, 25, 20, .08), 0 10px 30px rgba(35, 25, 20, .06);
  --shadow-lg: 0 12px 40px rgba(35, 25, 20, .14);

  /* Easing */
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

/* ===========================================================
   SCROLLBARS — finos y con la paleta de marca (global)
   =========================================================== */
/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
/* WebKit / Blink (Chrome, Edge, Safari) */
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
  background-clip: padding-box;
}
*::-webkit-scrollbar-corner {
  background: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================================================
   HEADER
   =========================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(var(--gradient-angle), var(--orange-1) 0%, var(--orange-2) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(231, 111, 81, .18);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  white-space: nowrap;
  letter-spacing: -.01em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .18);
  border: 1.5px solid rgba(255, 255, 255, .35);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

/* Logo SVG (mono, hereda color del .brand vía currentColor) */
.brand-logo { display: block; color: #fff; }
.brand-logo svg { height: 42px; width: auto; display: block; }
.footer .brand-logo svg { height: 46px; }
@media (max-width: 720px) {
  .brand-logo svg { height: 34px; }
}

.brand-text { line-height: 1.05; }
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .68rem;
  opacity: .85;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.search {
  flex: 1;
  position: relative;
  max-width: 560px;
}
.search input {
  width: 100%;
  height: 44px;
  padding: 0 18px 0 46px;
  border-radius: var(--radius-pill);
  border: none;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  font-family: inherit;
  font-size: .95rem;
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  transition: box-shadow .2s var(--ease);
}
.search input:focus {
  box-shadow: 0 4px 16px rgba(0, 0, 0, .14);
}
.search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-dark);
  pointer-events: none;
}

.search-suggest {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 8px);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  overflow: hidden;
  display: none;
  z-index: 90;
}
.search.open .search-suggest { display: block; }
.search-suggest .group-label {
  padding: 10px 16px 4px;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-mute);
  font-weight: 700;
}
.search-suggest a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: .92rem;
}
.search-suggest a:first-of-type { border-top: none; }
.search-suggest a:hover { background: var(--bg-soft); }
.search-suggest a .price { margin-left: auto; color: var(--accent); font-weight: 700; }
.search-suggest a .swatch {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg-soft); display: grid; place-items: center;
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: none;
  color: #fff;
  display: grid;
  place-items: center;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, .15); }
.country-select{ position:relative; display:inline-flex; }
.country-pill{
  display:inline-flex;align-items:center;gap:6px;
  padding:0 10px;height:34px;border-radius:999px;border:none;
  background:rgba(255,255,255,.16);color:#fff;
  font-family:var(--font-display);font-weight:700;font-size:.78rem;
  letter-spacing:.04em;cursor:pointer;user-select:none;
  transition:background .18s var(--ease);
}
.country-pill:hover{background:rgba(255,255,255,.26)}
.country-pill[aria-expanded="true"]{background:rgba(255,255,255,.3)}
.country-flag-img{border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12);object-fit:cover;display:block}
.country-flag-emoji{font-size:1.05rem;line-height:1}
.country-caret{font-size:.62rem;opacity:.85;transition:transform .2s var(--ease)}
.country-pill[aria-expanded="true"] .country-caret{transform:rotate(180deg)}

.country-pop{
  position:absolute; top:calc(100% + 8px); right:0;
  width:288px; background:var(--bg, #fff);
  border:1px solid var(--line, #ece6e1); border-radius:14px;
  box-shadow:var(--shadow-lg, 0 16px 40px rgba(0,0,0,.16));
  z-index:60; overflow:hidden; color:var(--ink, #2b2622);
  animation:country-pop .18s var(--ease);
}
@keyframes country-pop{ from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:none} }
.country-search{ display:flex;align-items:center;gap:8px; padding:10px; border-bottom:1px solid var(--line,#ece6e1); background:var(--bg-soft,#faf7f4); }
.country-search i{ color:var(--ink-mute,#8a807a); font-size:.82rem; }
.country-search input{
  flex:1; height:34px; border:1.5px solid var(--line,#ece6e1); border-radius:8px;
  background:var(--bg,#fff); padding:0 10px; font:inherit; font-size:.86rem; color:inherit; outline:none;
}
.country-search input:focus{ border-color:var(--accent,#e76f51); box-shadow:0 0 0 3px rgba(231,111,81,.12); }
.country-list{ list-style:none; margin:0; padding:6px; max-height:300px; overflow-y:auto; }
.country-opt{
  display:flex;align-items:center;gap:10px; width:100%; padding:8px 10px;
  background:transparent;border:none;border-radius:9px;cursor:pointer;
  font:inherit;color:inherit;text-align:left;transition:background .12s var(--ease);
}
.country-opt:hover{ background:var(--bg-soft,#faf7f4); }
.country-opt[aria-selected="true"]{ background:#fdf0ea; }
.country-opt-flag{ border-radius:2px; box-shadow:inset 0 0 0 1px rgba(0,0,0,.1); object-fit:cover; flex-shrink:0; }
.country-opt-name{ flex:1; font-family:var(--font-display); font-weight:600; font-size:.9rem; }
.country-opt-dial{ font-size:.78rem; color:var(--ink-mute,#8a807a); }
.country-opt-tag{ font-size:.6rem; letter-spacing:.08em; font-weight:700; color:var(--accent,#e76f51); background:#fdf0ea; padding:2px 6px; border-radius:4px; }
.country-empty{ padding:18px; text-align:center; color:var(--ink-mute,#8a807a); font-size:.88rem; }

@media (max-width:720px){
  .country-pill .country-code{display:none}
  .country-pill{padding:0 8px;height:32px}
  .country-pop{ position:fixed; left:12px; right:12px; top:auto; width:auto; }
}
.icon-btn:active { transform: scale(.94); }
.icon-btn .label {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .15s;
  pointer-events: none;
  white-space: nowrap;
}
.icon-btn:hover .label { opacity: .9; }
.icon-btn .badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #fff;
  color: var(--accent-dark);
  font-size: .7rem;
  font-weight: 800;
  display: grid; place-items: center;
  font-family: var(--font-body);
}

/* Mobile header — 2 niveles de 4em */
.header-search-mobile { display: none; }
@media (max-width: 860px) {
  .header-row {
    height: 4em;
    padding: 0 14px;
  }
  .search { display: none; }
  .header-search-mobile {
    display: flex;
    height: 4em;
    align-items: center;
    padding: 0 14px;
    background: linear-gradient(var(--gradient-angle), var(--orange-1) 0%, var(--orange-2) 100%);
    border-top: 1px solid rgba(255, 255, 255, .18);
  }
  .header-search-mobile .search {
    display: block;
    flex: 1;
    max-width: none;
  }
  .icon-btn { width: 40px; height: 40px; }
  .icon-btn .label { display: none; }
  .brand-text small { display: none; }
}

/* ===========================================================
   HERO SLIDER
   =========================================================== */
.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 24 / 9;
  max-height: 560px;
  overflow: hidden;
  background: var(--bg-soft);
}
@media (max-width: 860px) {
  .hero-slider {
    aspect-ratio: auto;
    max-height: none;
    height: calc(100dvh - var(--header-h-mobile));
  }
}

.slides {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform .55s var(--ease);
  will-change: transform;
}
.slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  user-select: none;
}
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}
.slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .15) 60%, rgba(0, 0, 0, 0) 100%);
}
.slide-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding: 0 56px;
  color: #fff;
}
.slide-content .eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.slide-content h2 {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 16px;
  text-wrap: balance;
}
.slide-content p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  margin: 0 0 24px;
  opacity: .95;
  text-wrap: pretty;
}
.slide-content .cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
}
.slide-content .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

@media (max-width: 860px) {
  .slide-content { padding: 0 28px; }
  .slide-content h2 { font-size: 2rem; }
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .5);
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .18s var(--ease), transform .18s var(--ease);
  z-index: 5;
  backdrop-filter: blur(6px);
}
.slider-arrow:hover { background: rgba(255, 255, 255, .9); }
.slider-arrow:active { transform: translateY(-50%) scale(.94); }
.slider-arrow.prev { left: 22px; }
.slider-arrow.next { right: 22px; }

@media (max-width: 860px) {
  .slider-arrow { display: none; }
}

.slider-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.slider-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .55);
  padding: 0;
  cursor: pointer;
  transition: width .25s var(--ease), background .25s var(--ease);
}
.slider-dots button.active {
  width: 24px;
  border-radius: 5px;
  background: #fff;
}
@media (max-width: 860px) {
  .slider-dots button { width: 10px; height: 10px; }
  .slider-dots button.active { width: 28px; }
}

/* ===========================================================
   CATEGORÍAS CIRCULARES
   =========================================================== */
.section {
  padding: 64px 0;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -.01em;
}
.section-head .sub {
  color: var(--ink-mute);
  font-size: .95rem;
  margin-top: 6px;
}
.section-head .head-link {
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.section-head .head-link:hover { color: var(--accent-dark); }

.cats-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 22px;
}
@media (max-width: 1100px) { .cats-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px)  { .cats-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }

.cat-circle {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  display: grid;
  place-items: center;
  text-align: center;
  isolation: isolate;
  transition: transform .25s var(--ease);
}
.cat-circle:hover { transform: translateY(-3px); }
.cat-circle .cat-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(14px) saturate(1.1);
  transform: scale(1.15);
  z-index: -2;
}
.cat-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .72);
  transition: background .25s var(--ease);
  z-index: -1;
}
.cat-circle:hover::before { background: rgba(35, 25, 20, .72); }
.cat-circle .cat-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(.85rem, 1.1vw, 1rem);
  color: var(--gray-text);
  padding: 0 12px;
  transition: color .25s var(--ease), transform .25s var(--ease);
  letter-spacing: -.005em;
}
.cat-circle:hover .cat-name {
  color: #fff;
  transform: scale(1.05);
}

/* ===========================================================
   FRANJA: foto + carrusel productos
   =========================================================== */
.feature-strip {
  background: var(--bg-soft);
  padding: 72px 0;
}
.feature-strip-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: stretch;
  gap: 36px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .feature-strip-inner { grid-template-columns: 4fr 6fr; gap: 14px; }
}
@media (max-width: 600px) {
  .feature-strip-inner { grid-template-columns: 1fr; gap: 18px; }
}
.product-carousel { min-width: 0; }
.product-carousel-track { min-width: 0; }
.feature-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: end;
}
@media (max-width: 900px) {
  .feature-img { min-height: 0; }
  .feature-img-content { padding: 18px; }
  .feature-img-content h3 { font-size: 1.05rem; margin: 6px 0 10px; line-height: 1.25; }
  .feature-img-content .eyebrow { font-size: .6rem; }
  .feature-img-content .cta-link { font-size: .8rem; }
  .feature-strip { padding: 36px 0; }
  .feature-strip .section-head h2 { font-size: 1.1rem !important; }
  .feature-strip .section-head .sub { font-size: .78rem; }
}
@media (max-width: 600px) {
  .feature-img {
    aspect-ratio: 16 / 7;
    min-height: 0;
    align-items: center;
  }
  .feature-img-content { padding: 22px 20px; max-width: 78%; }
  .feature-img-content h3 { font-size: 1.15rem; margin: 4px 0 8px; }
  .feature-img-content .eyebrow { font-size: .62rem; }
  .feature-img-content .cta-link { font-size: .82rem; }
  .feature-strip .section-head h2 { font-size: 1.25rem !important; }
}
.feature-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .68));
}
.feature-img-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  color: #fff;
}
.feature-img-content .eyebrow {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: .9;
}
.feature-img-content h3 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  margin: 8px 0 14px;
}
.feature-img-content .cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-family: var(--font-display);
  border-bottom: 2px solid rgba(255, 255, 255, .5);
  padding-bottom: 2px;
}

.product-carousel {
  position: relative;
}
.product-carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.product-carousel-track::-webkit-scrollbar { display: none; }

.product-card {
  flex: 0 0 calc(50% - 9px);
  scroll-snap-align: start;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
@media (max-width: 600px) {
  .product-carousel-track > .product-card { flex: 0 0 78%; }
  /* Within the feature strip we want exactly 2 visible products on mobile (now full-width) */
  .feature-strip .product-carousel-track > .product-card { flex: 0 0 calc(50% - 9px); }
  .feature-strip .product-card .product-body { padding: 14px 14px 16px; }
  .feature-strip .product-card .product-name { font-size: .92rem; }
  .feature-strip .product-card .price { font-size: 1.05rem; }
  .feature-strip .product-card .add-btn { width: 36px; height: 36px; }
}

.product-card .product-img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
  position: relative;
}
.product-card .product-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}
.product-card .wish-btn {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  border: none;
  color: var(--ink-soft);
  display: grid; place-items: center;
}
.product-card .wish-btn.active { color: var(--accent); }

.product-card .product-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-card .product-cat {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-mute);
  font-weight: 700;
}
.product-card .product-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .product-foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.product-card .price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.product-card .price-old {
  font-size: .85rem;
  color: var(--ink-mute);
  text-decoration: line-through;
  margin-right: 6px;
  font-weight: 500;
}
.product-card .add-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  display: grid; place-items: center;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.product-card .add-btn:hover { background: var(--accent-dark); transform: scale(1.06); }

.carousel-nav {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  align-items: center;
}
.carousel-nav button {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  display: grid; place-items: center;
  transition: background .15s, color .15s, border-color .15s;
}
.carousel-nav button:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.carousel-nav .dots {
  display: flex;
  gap: 6px;
  margin-left: 12px;
}
.carousel-nav .dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line);
  transition: background .2s, width .2s;
}
.carousel-nav .dots span.active {
  background: var(--accent);
  width: 22px;
  border-radius: 4px;
}

/* ===========================================================
   GRID PRODUCTOS (categoría)
   =========================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* ===========================================================
   NEWSLETTER
   =========================================================== */
.newsletter {
  padding: 72px 24px;
  background: linear-gradient(var(--gradient-angle), var(--orange-1) 0%, var(--orange-2) 100%);
  color: #fff;
  text-align: center;
}
.newsletter-inner {
  max-width: 640px;
  margin: 0 auto;
}
.newsletter h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-bottom: 10px;
  text-wrap: balance;
}
.newsletter p {
  margin: 0 0 28px;
  opacity: .95;
}
.newsletter form {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, .12);
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(8px);
}
.newsletter input {
  flex: 1;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: none;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}
.newsletter button {
  height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
  transition: background .18s var(--ease);
  white-space: nowrap;
}
.newsletter button:hover { background: #000; }
@media (max-width: 560px) {
  .newsletter form { flex-direction: column; background: transparent; border: none; padding: 0; gap: 12px; }
  .newsletter input, .newsletter button { width: 100%; }
}

/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
  background: linear-gradient(var(--gradient-angle), var(--orange-2) 0%, var(--orange-1) 100%);
  color: #fff;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.footer-col {
  padding: 0 28px;
  border-left: 1.5px dotted rgba(255, 255, 255, .55);
}
.footer-col:first-child { padding-left: 0; border-left: none; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .footer-col { border-left: none; padding: 0 18px; }
  .footer-col:nth-child(odd) { padding-left: 0; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col { padding: 0; }
}

.footer h4 {
  font-size: 1.05rem;
  margin-bottom: 16px;
  letter-spacing: .01em;
}
.footer ul li {
  margin-bottom: 10px;
  opacity: .92;
}
.footer ul li a:hover { text-decoration: underline; }

.footer .brand {
  margin-bottom: 16px;
  font-size: 1.4rem;
}
.footer .copyright {
  font-size: .85rem;
  opacity: .85;
  line-height: 1.6;
}

/* CTA proveedores — tarjeta sólida que resalta sobre el naranja */
.footer-cta {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  background: #fff;
  border-radius: var(--radius);
  color: var(--orange-2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.footer-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.footer-cta .footer-cta-ico {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(var(--gradient-angle), var(--orange-1) 0%, var(--orange-2) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .95rem;
}
.footer-cta .footer-cta-body {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.footer-cta .footer-cta-body strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  white-space: nowrap;
}
.footer-cta .footer-cta-body small {
  font-family: var(--font-body);
  font-size: .76rem;
  color: var(--gray-text);
  opacity: .9;
}

.libro-reclamaciones {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 700;
  font-family: var(--font-display);
}
.libro-reclamaciones:hover { background: rgba(255, 255, 255, .22); }

.footer .phone {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin: 0 0 6px;
  color: #fff;
  letter-spacing: -.01em;
}
.footer .phone-label {
  text-align: center;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .88;
  margin-bottom: 22px;
}
.footer .social-label {
  text-align: center;
  font-size: .85rem;
  margin-bottom: 12px;
  opacity: .92;
}
.footer .socials {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.footer .socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .35);
  display: grid; place-items: center;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.footer .socials a:hover { background: rgba(255, 255, 255, .3); transform: translateY(-2px); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1.5px dotted rgba(255, 255, 255, .5);
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  opacity: .9;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===========================================================
   OVERLAY + DRAWER (menú lateral & carrito)
   =========================================================== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 8, 0);
  z-index: 9000;
  pointer-events: none;
  transition: background .3s var(--ease);
}
.overlay.show {
  background: rgba(15, 10, 8, .55);
  pointer-events: auto;
  backdrop-filter: blur(2px);
}

.drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 92vw);
  height: 100dvh;
  background: #fff;
  z-index: 9001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  box-shadow: -10px 0 40px rgba(0, 0, 0, .15);
}
.drawer.show { transform: translateX(0); }
.drawer.menu-drawer { width: min(360px, 88vw); }

.drawer-head {
  height: 4em;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: linear-gradient(var(--gradient-angle), var(--orange-1) 0%, var(--orange-2) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.drawer-head .close {
  margin-left: auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  border: none;
  color: #fff;
  display: grid; place-items: center;
}
.drawer-head .close:hover { background: rgba(255, 255, 255, .3); }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.drawer-foot {
  border-top: 1px solid var(--line);
  padding: 18px 20px 22px;
  background: var(--bg-soft);
  flex-shrink: 0;
}

/* Menú acordeón */
.acc-menu, .acc-menu ul {
  list-style: none; padding: 0; margin: 0;
}
.acc-menu li { border-bottom: 1px solid var(--line); }
.acc-menu li > a, .acc-menu li > .acc-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.acc-menu li > .acc-toggle .chev {
  margin-left: auto;
  transition: transform .25s var(--ease);
  color: var(--ink-mute);
}
.acc-menu li.open > .acc-toggle .chev { transform: rotate(180deg); }
.acc-menu li > .acc-toggle:hover { color: var(--accent); }

.acc-menu ul {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
  padding-left: 18px;
}
.acc-menu li.open > ul { max-height: 1200px; }
.acc-menu ul li { border-bottom: none; border-top: 1px dashed var(--line); }
.acc-menu ul li > a, .acc-menu ul li > .acc-toggle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 4px;
  color: var(--ink-soft);
}
.acc-menu ul ul li > a, .acc-menu ul ul li > .acc-toggle {
  font-weight: 500;
  font-size: .9rem;
  padding: 10px 4px;
  color: var(--ink-mute);
}

/* Cart */
.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-mute);
}
.cart-empty .ic {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: grid; place-items: center;
  margin: 0 auto 14px;
  color: var(--accent);
}
.cart-empty h4 { font-size: 1.1rem; margin: 0 0 6px; color: var(--ink); }

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-item .thumb {
  width: 70px; height: 70px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
}
.cart-item .info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-item .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
  line-height: 1.3;
}
.cart-item .meta {
  font-size: .75rem;
  color: var(--ink-mute);
}
.cart-item .qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  padding: 3px;
  width: fit-content;
  margin-top: 4px;
}
.cart-item .qty button {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--ink);
  display: grid; place-items: center;
  font-weight: 700;
}
.cart-item .qty button:hover { background: var(--accent); color: #fff; }
.cart-item .qty span {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
  font-size: .85rem;
}
.cart-item .right { display: flex; flex-direction: column; align-items: end; gap: 8px; }
.cart-item .price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.cart-item .remove {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--ink-mute);
  display: grid; place-items: center;
}
.cart-item .remove:hover { color: var(--accent); background: var(--bg-soft); }

.cart-summary {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-family: var(--font-display);
}
.cart-summary .total {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-dark);
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  background: linear-gradient(var(--gradient-angle), var(--orange-1) 0%, var(--orange-2) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
  box-shadow: 0 6px 18px rgba(231, 111, 81, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(231, 111, 81, .45); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: .92rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .ic { color: #ffd9a8; }

/* Page-specific helpers */
.page-shell { padding: 36px 0 80px; }
.crumbs {
  display: flex;
  gap: 8px;
  font-size: .85rem;
  color: var(--ink-mute);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--ink-mute); opacity: .6; }
.page-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin: 0 0 8px;
  letter-spacing: -.015em;
}
.page-sub {
  color: var(--ink-mute);
  margin-bottom: 32px;
  max-width: 600px;
}

/* Cards/forms */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  color: var(--ink);
}
.form-row input, .form-row select, .form-row textarea {
  height: 46px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  padding: 0 14px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .15s;
}
.form-row textarea { height: auto; padding: 12px 14px; min-height: 90px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--accent); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }

/* ===========================================================
   FontAwesome — tamaños en los botones-ícono que antes usaban
   SVG inline de 24×24. FA hereda font-size, así que fijamos el
   tamaño en el contenedor.
   =========================================================== */
.icon-btn > i,
.add-btn > i,
.wish-btn > i,
.cart-item .qty button > i,
.cart-item .remove > i,
.carousel-nav button > i,
.drawer-head .close > i,
.acc-menu .chev > i,
.search-icon > i,
.search-suggest .swatch > i { font-size: 18px; line-height: 1; }

.toast .ic > i { font-size: 16px; }
.cart-empty .ic > i { font-size: 32px; }
