/* SACATE S.A. — Mobile-first styles
   Identity: white background, black header, blue accent, clean and premium look. */

:root {
  --bg: #ffffff;
  --ink: #000000;
  --muted: #666666;
  --black: #0a0a0a;
  --black-soft: #1c1c1c;
  --accent: #1d4ed8;
  --accent-dark: #163da0;
  --accent-soft: #eaf1ff;
  --cta: #000000;
  --cta-hover: #262626;
  --announce: #2e3a59;
  --line: #ececec;
  --sale: #d43b2a;
  --wa: #25d366;
  --wa-dark: #1ebe5d;
  --radius: 0.875rem;
  --radius-sm: 0.5rem;
  --radius-input: 4px;
  --max: 75rem;
  --header-h: 3.75rem;
  --fs-title: clamp(1.5rem, 1vw + 0.75rem, 2.25rem);
  --fs-sub: 1rem;
  --fs-body: 0.875rem;
  --font: "Open Sans", "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
  --font-display: "Poppins", "Segoe UI", Arial, Helvetica, sans-serif;
  --font-logo: Georgia, "Times New Roman", serif;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.14);
  --shadow-wa: 0 8px 24px rgba(37, 211, 102, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  font-size: clamp(14px, 0.9vw + 6px, 17px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
main { flex: 1; width: 100%; }
body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.15; font-family: var(--font-display); }
h1 { font-size: var(--fs-title); font-weight: 700; }
h2 { font-size: var(--fs-title); font-weight: 700; }
h3 { font-size: var(--fs-sub); font-weight: 600; }
p { line-height: 1.55; }

/* ---------- Info bar (envio gratis + pago contra entrega) ---------- */
.info-bar {
  background: var(--announce);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-body);
  line-height: 1.3;
  letter-spacing: 0.2px;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 0.25rem;
  column-gap: 0.875rem;
  text-align: center;
}
.info-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
}
.info-bar-item i { font-size: 1rem; }
.info-bar-icon { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }
.info-bar-emoji { font-size: 1rem; line-height: 1; }
.info-bar-sep {
  width: 1px;
  height: 1.125rem;
  background: rgba(255, 255, 255, 0.45);
}
@media (max-width: 599px) {
  .info-bar-sep { display: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--black);
  color: #fff;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.header__left { display: flex; align-items: center; gap: 0.625rem; }

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
}
.logo-img { height: 2.5rem; width: auto; max-width: 9.375rem; object-fit: contain; display: block; }

/* Hamburger menu button (mobile) */
.menu-open-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 2.625rem; height: 2.625rem;
  background: none; border: 0; color: #fff;
}
.menu-open-btn svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }

/* Header actions (right) */
.header__actions { display: flex; align-items: center; gap: 0.375rem; }
.icon-btn {
  position: relative;
  width: 2.625rem; height: 2.625rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; color: #fff;
  border-radius: 12px;
  transition: background var(--transition, 0.15s);
}
.icon-btn:hover, .icon-btn:focus-visible { background: rgba(255, 255, 255, 0.1); }
.icon-btn svg { width: 21px; height: 21px; stroke: #fff; stroke-width: 2; fill: none; }

.cart-badge {
  position: absolute; top: 0.1875rem; right: 0.125rem;
  background: var(--sale); color: #fff;
  font-size: 0.6875rem; font-weight: 700;
  min-width: 1.25rem; height: 1.25rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  border: 2px solid var(--black);
  display: none;
  align-items: center; justify-content: center;
  line-height: 1;
  box-sizing: border-box;
}
.cart-badge.is-visible { display: flex; }

/* ==========================================================================
   Single navigation (mobile = drawer, desktop = horizontal bar)
   ========================================================================== */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.55);
  visibility: hidden; opacity: 0; transition: opacity 0.2s;
}
.overlay.is-open { visibility: visible; opacity: 1; }

.site-nav {
  position: fixed; top: 0; bottom: 0; left: 0;
  width: 84%; max-width: 21.25rem;
  background: var(--black); color: #fff;
  z-index: 101;
  transform: translateX(-100%); transition: transform 0.28s;
  padding: 1.25rem 1.25rem 1.5rem;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 0.25rem;
}
.site-nav.is-open { transform: translateX(0); }
.nav-close {
  width: 2.5rem; height: 2.5rem;
  margin-left: auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12); border: 0; color: #fff;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s;
  flex: 0 0 auto;
}
.nav-close:hover, .nav-close:focus-visible { background: rgba(255,255,255,0.22); }
.nav-link {
  display: inline-flex; align-items: center;
  padding: 0.75rem 0.875rem;
  font-family: var(--font-display);
  font-size: var(--fs-sub); font-weight: 600;
  color: #fff;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover, .nav-link:focus-visible { background: rgba(255, 255, 255, 0.1); color: #fff; }
.nav-link.is-active { background: var(--accent); color: #fff; }
.nav-foot { margin-top: 1.25rem; font-size: var(--fs-body); color: rgba(255,255,255,0.6); line-height: 1.5; }

/* ---------- Mobile drawer (drill-down menu) ---------- */
.nav-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.625rem;
  padding: 0.125rem 0 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 0.625rem;
}
.nav-back {
  width: 2.5rem; height: 2.5rem; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1); border: 0; color: #fff;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s;
  visibility: visible;
  opacity: 1;
}
.nav-back:hover { background: rgba(255,255,255,0.22); }
.nav-back svg { width: 20px; height: 20px; }
.nav-back.is-hidden { visibility: hidden; opacity: 0; pointer-events: none; }
.nav-brand {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700; letter-spacing: 2px;
  color: #fff;
}

.nav-list { display: flex; flex-direction: column; gap: 0.25rem; }
.nav-item {
  width: 100%;
  text-align: left;
  display: inline-flex; align-items: center;
  padding: 0.8125rem 1rem;
  font-family: var(--font-display);
  font-size: var(--fs-sub); font-weight: 600;
  color: #fff;
  background: none; border: 0;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}
.nav-item:hover, .nav-item:focus-visible { background: rgba(255,255,255,0.1); color: #fff; }
.nav-item.is-active { background: var(--accent); color: #fff; }
.nav-item.nav-cat { justify-content: space-between; }
.nav-item.nav-cat::after { content: "›"; color: rgba(255,255,255,0.6); font-size: 20px; line-height: 1; }

.nav-sub-link { padding-left: 1.5rem; font-weight: 500; }
.nav-view-all { font-weight: 700; }

/* Desktop dropdown bar */
.nav-desktop-links { display: none; }
@media (min-width: 1024px) {
  .nav-desktop-links { display: flex; align-items: center; gap: 0.25rem; }
  .nav-desktop-links .nav-link { padding: 0.5625rem 0.875rem; font-size: var(--fs-body); color: #e9e9e9; }
  .nav-drop {
    position: relative;
    list-style: none;
  }
  .nav-drop summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex; align-items: center;
    padding: 0.5625rem 0.875rem;
    font-family: var(--font-display);
    font-size: var(--fs-body); font-weight: 600;
    color: #e9e9e9;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
  }
  .nav-drop summary::-webkit-details-marker { display: none; }
  .nav-drop summary .nav-chevron {
    margin-left: 7px;
    width: 14px; height: 14px;
    stroke: rgba(255,255,255,0.65);
    stroke-width: 2; fill: none;
    transition: transform 0.2s;
  }
  .nav-drop[open] summary .nav-chevron { transform: rotate(180deg); }
  .nav-drop summary:hover, .nav-drop[open] summary { background: rgba(255,255,255,0.1); color: #fff; }
  .nav-drop-panel {
    position: absolute; top: 100%; left: 0;
    min-width: 12.5rem;
    background: var(--black);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 0.5rem;
    display: flex; flex-direction: column; gap: 0.125rem;
    z-index: 120;
  }
  .nav-drop-panel .nav-link { width: 100%; white-space: nowrap; }
  .nav-drop-panel .nav-sub-link { padding-left: 0.875rem; }
  .nav-drop-panel .nav-sub-link:first-child { font-weight: 700; }
}
.nav-foot { margin-top: 1.25rem; font-size: var(--fs-body); color: rgba(255,255,255,0.6); line-height: 1.5; }

@media (min-width: 1024px) {
  .site-nav {
    position: static; width: auto; flex: 1;
    flex-direction: row; align-items: center; justify-content: center;
    gap: 0.375rem; padding: 0.375rem 0.5rem; margin: 0 auto;
    transform: none; overflow: visible;
  }
  .nav-close, .nav-bar, .nav-list, .nav-foot { display: none; }
}

/* ==========================================================================
   Search (overlay)
   ========================================================================== */
.search-overlay {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 110;
  background: #fff; color: var(--ink); padding: 1rem;
  box-shadow: 0 12px 26px rgba(0,0,0,0.14);
  transform: translateY(-0.75rem);
  opacity: 0; visibility: hidden;
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  overflow-y: auto;
}
.search-overlay.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.search-overlay .menu-close {
  width: 2.5rem; height: 2.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f2f2f2; border: 0; color: var(--ink);
  border-radius: 10px;
}
.search-head { display: flex; align-items: center; gap: 0.75rem; }
.search-input {
  flex: 1;
  font-family: var(--font);
  font-size: var(--fs-sub); padding: 0.75rem 0.875rem;
  background: #fff;
  border: 1.5px solid var(--line);
  border-bottom: 2px solid var(--ink);
  border-radius: var(--radius-input);
  color: var(--ink);
  outline: none;
}
.search-results { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.625rem; }
.search-result { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem; border-radius: 8px; }
.search-result img, .search-thumb { width: 2.75rem; height: 3.25rem; object-fit: cover; border-radius: 6px; }
.search-result-name { font-weight: 600; font-size: var(--fs-sub); }
.search-result-aud { font-size: var(--fs-body); color: var(--muted); }
.search-result-price { font-size: var(--fs-body); color: var(--muted); }
.search-empty { color: var(--muted); padding: 1.25rem; text-align: center; }

/* ==========================================================================
   Layout
   ========================================================================== */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.section { padding: 1.75rem 1rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.625rem; flex-wrap: wrap; margin-bottom: 1.125rem; }
.section-title { color: var(--ink); font-size: var(--fs-title); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; flex: 0 0 auto; }
.link-more { color: var(--accent); font-weight: 600; font-size: var(--fs-body); }
.link-more:hover { color: var(--accent-dark); }

/* ==========================================================================
   Hero (no photo: clean gradient, ready for real image later)
   ========================================================================== */
.hero { position: relative; color: #fff; }
.hero-media {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url("../assets/images/hero.png") center / cover no-repeat #1a1a1a;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 1.875rem 1rem;
  width: 100%;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-body); letter-spacing: 4px; text-transform: uppercase;
  color: #c9c9c9; margin-bottom: 0.625rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 9vw, 4.5rem);
  font-weight: 800; letter-spacing: 3px; margin: 0;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.hero-sub {
  font-family: var(--font-display);
  font-size: var(--fs-sub); font-weight: 400;
  color: #fff; margin: 1rem 0 0; letter-spacing: 0.5px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.hero-copy .btn { margin-top: 1.75rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.375rem;
  font-family: var(--font-display);
  font-size: var(--fs-body); font-weight: 600; letter-spacing: .5px;
  border-radius: var(--radius-sm);
  border: 0;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--cta); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--cta-hover); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1.5px solid var(--black); color: var(--black);
  font-family: var(--font-display);
  font-weight: 600; padding: 0.875rem 1.25rem; border-radius: var(--radius-sm);
}
.btn-outline:hover { background: #f5f5f5; }

.btn-ghost { font-family: var(--font-display); background: #fff; border: 1.5px solid var(--black); color: var(--black); font-weight: 600; padding: 0.875rem; border-radius: var(--radius-sm); }
.btn-dark { font-family: var(--font-display); background: var(--cta); color: #fff; font-weight: 600; font-size: var(--fs-body); padding: 0.875rem; border-radius: var(--radius-sm); }
.btn-dark:hover, .btn-dark:focus-visible { background: var(--cta-hover); }

/* WhatsApp button (primary and floating) */
.btn-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5625rem;
  background: var(--wa); color: #fff;
  font-family: var(--font-display);
  font-weight: 700; padding: 0.9375rem 1.5rem; border-radius: var(--radius-sm);
  font-size: var(--fs-body); letter-spacing: .2px;
  box-shadow: var(--shadow-wa);
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
}
#order-checkout { width: 100%; margin-bottom: 2.5rem; }
.btn-wa:hover, .btn-wa:focus-visible { background: var(--wa-dark); transform: translateY(-1px); }
.btn-wa svg { width: 19px; height: 19px; fill: #fff; flex-shrink: 0; }

/* Add-to-order button */
.btn-add2 {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--cta); color: #fff;
  font-family: var(--font-display);
  font-weight: 700; padding: 1rem; border: 0; border-radius: var(--radius-sm);
  font-size: var(--fs-body); width: 100%;
}
.btn-add2:hover, .btn-add2:focus-visible { background: var(--cta-hover); }
.btn-add2:disabled { background: #b9b9b9; color: #fff; cursor: not-allowed; }

/* ==========================================================================
   Products — 2 column grid
   ========================================================================== */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; transition: box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); }
.product-card .media { position: relative; aspect-ratio: 1/1; background: #f5f5f5; }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .product-card .media { aspect-ratio: 4/5; } }

/* Discount / offer badges */
.badge {
  position: absolute; top: 0.625rem; left: 0.625rem;
  z-index: 1;
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.65625rem; font-weight: 800; letter-spacing: .4px;
  padding: 0.3125rem 0.5625rem; border-radius: 999px;
}
.badge-sale {
  background: var(--sale); color: #fff;
  box-shadow: 0 2px 8px rgba(212, 63, 42, 0.35);
}
.badge-off { background: var(--black); color: #fff; }
.badge-new { background: var(--accent); color: #fff; }

.product-card .body { display: flex; flex-direction: column; flex: 1; padding: 0.875rem 0.875rem 1rem; }
.p-name { font-family: var(--font-display); font-size: var(--fs-sub); font-weight: 600; line-height: 1.3; color: var(--ink); }
.p-audience { font-size: var(--fs-body); color: var(--muted); font-weight: 500; margin-top: 0.1875rem; }
.p-price-row { display: flex; flex-direction: column; gap: 0.125rem; margin-top: 0.3125rem; }
.p-price-line { display: flex; align-items: baseline; gap: 0.375rem; }
.p-price { font-family: var(--font); font-size: var(--fs-body); font-weight: 400; color: var(--ink); }
.p-oldprice { font-size: var(--fs-body); color: var(--muted); text-decoration: line-through; }
.p-off { font-size: var(--fs-body); font-weight: 700; color: var(--sale); }

.card-colors { display: flex; align-items: center; gap: 0.375rem; flex-wrap: wrap; margin-top: 0.5rem; }
.card-color {
  width: 1rem; height: 1rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}
.card-color-more {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.card-actions { display: flex; margin-top: auto; padding-top: 0.75rem; }
.btn-view {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1.5px solid var(--black); color: var(--black);
  font-family: var(--font-display);
  font-weight: 600; font-size: var(--fs-body); padding: 0.75rem;
  border-radius: 8px;
  white-space: nowrap;
}
.btn-view:hover, .btn-view:focus-visible { background: #f5f5f5; }
@media (min-width: 768px) {
  .card-actions { margin-top: 0.625rem; }
  .btn-view { padding: 0.6875rem 0.75rem; font-size: var(--fs-body); }
}

/* ==========================================================================
   Contact page (Escríbenos)
   ========================================================================== */
.contact-title {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink);
  margin: 0 0 1.5rem;
}
.contact-page { padding-top: 2rem; }
.contact-intro {
  max-width: 34rem;
  color: var(--muted);
  margin: 1rem 0 2.5rem;
  font-size: var(--fs-sub);
  line-height: 1.6;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; align-items: start; max-width: 52rem; margin: 0 auto; }
}
.contact-block { text-align: left; }
.contact-heading {
  font-family: var(--font-display);
  font-size: var(--fs-sub);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1rem;
}
.contact-tagline {
  font-size: var(--fs-body);
  color: var(--muted);
  letter-spacing: 1px;
  margin: 0.5rem 0 1.5rem;
}
.contact-sub {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--ink);
  margin: 1.25rem 0 0.25rem;
}
.contact-line {
  display: block;
  font-size: var(--fs-body);
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  text-decoration: none;
}
.contact-line a { color: var(--ink); }
.contact-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.25rem;
}
@media (min-width: 768px) {
  .contact-social { justify-content: flex-start; }
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 1.25rem;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.social-link:hover { background: var(--black); color: #fff; border-color: var(--black); }
.contact-help { padding-top: 0.5rem; }
@media (min-width: 768px) { .contact-help { padding-top: 0; } }
.contact-text {
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}
.contact-wa { margin-top: 0.25rem; width: 100%; }
@media (min-width: 768px) {
  .contact-wa { width: auto; min-width: 14rem; }
}

/* ==========================================================================
   Categories
   ========================================================================== */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.category-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4;
  display: flex; align-items: flex-end;
}
.cat-chaqueta { background: linear-gradient(160deg, rgba(0,0,0,.25), rgba(0,0,0,.45)), url("../assets/images/cat-chaqueta.jpg") center/cover no-repeat, linear-gradient(160deg, #333 0%, #1c1c1c 100%); }
.cat-bata { background: linear-gradient(160deg, rgba(0,0,0,.25), rgba(0,0,0,.45)), url("../assets/images/cat-bata.jpg") center/cover no-repeat, linear-gradient(160deg, #4a3630 0%, #2c2120 100%); }
.cat-camisa { background: linear-gradient(160deg, rgba(0,0,0,.25), rgba(0,0,0,.45)), url("../assets/images/cat-camisa.jpg") center/cover no-repeat, linear-gradient(160deg, #2c3c52 0%, #182434 100%); }
.category-card .label {
  position: relative; width: 100%;
  color: #fff; padding: 0.75rem; font-weight: 700; font-size: var(--fs-sub);
  font-family: var(--font-display); letter-spacing: .5px;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
}
@media (min-width: 768px) {
  .category-card .label { font-size: var(--fs-sub); }
}

/* ==========================================================================
   Catalog: action bar
   ========================================================================== */
.catalog-bar {
  display: flex; flex-direction: column; align-items: stretch; gap: 0.75rem;
  padding: 0.75rem 1rem; background: #fff; border-bottom: 1px solid var(--line);
}
.catalog-head { margin-bottom: 0.25rem; }
.catalog-title {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink);
}
.sort-wrap { position: relative; display: flex; flex-direction: column; gap: 0.375rem; }
.sort-label {
  font-family: var(--font);
  font-size: var(--fs-body); font-weight: 600;
  color: var(--ink);
}
.sort-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  width: 100%;
  font-family: var(--font-display);
  font-size: var(--fs-body); font-weight: 600;
  color: var(--black);
  background: #fff;
  border: 1.5px solid var(--black);
  border-radius: var(--radius-sm);
  padding: 0.8125rem 0.875rem;
  cursor: pointer;
  white-space: nowrap;
}
.sort-btn:hover, .sort-btn:focus-visible { border-color: var(--cta); outline: none; }
.sort-chevron { width: 16px; height: 16px; stroke: var(--black); transition: transform 0.2s; flex-shrink: 0; }
.sort-wrap.is-open .sort-chevron { transform: rotate(180deg); }
.sort-panel {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0; right: 0;
  z-index: 140;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  padding: 0.375rem;
  display: none;
  flex-direction: column;
  gap: 0.125rem;
}
.sort-panel.is-open { display: flex; }
.sort-opt {
  text-align: left; width: 100%;
  font-family: var(--font-display);
  font-size: var(--fs-body); font-weight: 600;
  color: var(--ink);
  background: none; border: 0;
  border-radius: 8px;
  padding: 0.6875rem 0.75rem;
  cursor: pointer;
}
.sort-opt:hover, .sort-opt:focus-visible { background: #f5f5f5; }
.sort-opt.is-active { background: var(--black); color: #fff; }

/* ==========================================================================
   Catalog: header (title + actions)
   ========================================================================== */
.catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.catalog-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.catalog-filter-btn { padding: 0.5625rem 0.875rem; }
.sort-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.sort-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--fs-body); font-weight: 600;
  color: var(--black);
  background: #fff;
  border: 1.5px solid var(--black);
  border-radius: var(--radius-sm);
  padding: 0.5625rem 0.875rem;
  cursor: pointer;
  white-space: nowrap;
}

/* ==========================================================================
   Catalog: filter drawer (slides from the right)
   ========================================================================== */
.filter-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 185;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s;
}
.filter-drawer-overlay.is-open { opacity: 1; visibility: visible; }
.filter-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 190;
  width: min(20rem, 86vw);
  max-width: 100%;
  background: #fff;
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
}
.filter-drawer.is-open { transform: translateX(0); }
.filter-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.125rem;
  border-bottom: 1px solid var(--line);
}
.filter-drawer-head h3 { margin: 0; font-size: var(--fs-sub); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.filter-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.125rem;
}
.filter-group { margin-bottom: 1.5rem; }
.filter-group-title {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.5rem;
  font-size: var(--fs-body);
  color: var(--ink);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}
.filter-option:hover { background: #f7f7f7; }
.filter-option input { width: 1.125rem; height: 1.125rem; accent-color: var(--black); }
.filter-drawer-foot {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  border-top: 1px solid var(--line);
}
.filter-drawer-foot .btn { flex: 1; }

/* ==========================================================================
   Product page
   ========================================================================== */
.pd { padding: 0 1rem; }
.pd-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-size: var(--fs-body);
  color: var(--muted);
  padding: 0.875rem 0 0.25rem;
}
.pd-breadcrumb a { color: var(--muted); text-decoration: none; }
.pd-breadcrumb a:hover { color: var(--ink); }
.pd-breadcrumb-sep { color: var(--muted); }
.pd-breadcrumb-current { color: var(--ink); font-weight: 600; }

@media (max-width: 1023px) {
  .pd-layout { display: flex; flex-direction: column; }
  .pd-gallery { aspect-ratio: 1/1; width: 100%; max-height: 60svh; }
  .pd-media { flex: none; }
  .pd-info { padding-bottom: 1rem; }
  .pd-details { margin-top: 1.5rem; }
}
@media (max-width: 1023px) and (max-height: 760px) {
  .pd-gallery { aspect-ratio: 5/4; max-height: 52svh; }
  .pd-info .variant-label { margin-top: 0.4375rem; }
  .pd-info .pd-prices { margin-top: 0.25rem; }
}

@media (max-width: 1023px) {
  .header .logo { position: absolute; left: 50%; transform: translateX(-50%); }
}

.pd-gallery-wrap { position: relative; }
.pd-gallery { border-radius: var(--radius); overflow: hidden; }
.pd-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--black);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.18s, background 0.18s;
}
.pd-nav svg { width: 1.125rem; height: 1.125rem; stroke: currentColor; }
.pd-nav-prev { left: 0.625rem; }
.pd-nav-next { right: 0.625rem; }
.pd-nav.is-hidden { opacity: 0; pointer-events: none; }
.pd-track {
  display: flex; height: 100%;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  scrollbar-width: none;
}
.pd-track::-webkit-scrollbar { display: none; }
.pd-img {
  flex: 0 0 100%; width: 100%; height: 100%;
  object-fit: contain; scroll-snap-align: center;
  background: #fff;
}
.pd-thumbs { display: none; }
.pd-thumb { width: 3.875rem; height: 4.75rem; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.pd-thumb.active { border-color: var(--black); }
.pd-info { padding-top: 0.75rem; }
.pd-buy { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.125rem; }
.pd-buy .pd-cta { flex: 1; margin-top: 0; }
.pd-details { margin-top: 3.25rem; }

@media (min-width: 1024px) {
  .pd-layout { display: grid; grid-template-columns: 5fr 4fr; gap: 3rem; align-items: start; }
  .pd-thumbs { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
  .pd-gallery { height: calc(100svh - var(--header-h) - 8.125rem); }
  .pd-info { padding-top: 0; }
  .pd-buy { margin-top: 1.375rem; }
.pd-details { margin-top: 3.5rem; }
}
.pd-name { font-family: var(--font-display); font-size: var(--fs-title); font-weight: 700; }
.pd-prices { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.1875rem; }
.pd-price-line { display: flex; align-items: baseline; gap: 0.5rem; }
.pd-price { font-family: var(--font); font-size: var(--fs-sub); font-weight: 600; }
.pd-oldprice { font-family: var(--font); font-size: var(--fs-body); color: var(--muted); text-decoration: line-through; }
.pd-discount {
  display: inline-block; font-size: var(--fs-body); font-weight: 800; color: #fff;
  background: var(--sale); padding: 0.1875rem 0.5rem; border-radius: 6px;
}
.variant-label { font-family: var(--font-display); font-size: var(--fs-body); font-weight: 600; margin: 1.125rem 0 0.5rem; }
.variant-label.is-missing .variant-label-text,
.variant-label.is-missing:not(.variant-row) { color: var(--sale); }
.variant-label.is-missing .variant-label-text::after,
.variant-label.is-missing:not(.variant-row)::after { content: " *"; }
@media (max-width: 480px) {
  .variant-label { margin: 0.5625rem 0 0.3125rem; }
}
.color-opt {
  width: 1.875rem; height: 1.875rem; border-radius: 50%;
  border: 2px solid #fff; display: inline-block;
  box-shadow: 0 0 0 1px var(--line);
  margin: 0 0.625rem 0.5rem 0; cursor: pointer;
}
.color-opt.selected {
  border-color: #fff;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--black);
}
.size-opt {
  min-width: 2.875rem; padding: 0.5625rem 0.625rem; border: 1.5px solid var(--line); background: #fff;
  font-family: var(--font-display); font-weight: 600; border-radius: 9px; text-align: center; font-size: var(--fs-body);
  margin: 0 0.5rem 0.5rem 0; cursor: pointer; color: var(--ink);
}
.size-opt.selected { border-color: var(--black); box-shadow: 0 0 0 2px var(--black); }
.size-opt.disabled { opacity: .35; cursor: not-allowed; }

.qty-control { display: inline-flex; align-items: center; border: 1.5px solid var(--black); border-radius: 9px; }
.qty-btn { width: 2.5rem; height: 2.5rem; font-size: var(--fs-sub); background: #fff; border: 0; color: var(--black); }
.qty-btn:disabled { opacity: .4; cursor: not-allowed; }
.qty-value { width: 3rem; text-align: center; font-weight: 800; font-size: var(--fs-sub); }

.pd-cta { display: grid; grid-template-columns: 1fr; gap: 0.625rem; margin-top: 0.625rem; }
.pd-cta .btn-add2 { background: var(--cta); color: #fff; font-weight: 700; padding: 1rem; border: 0; border-radius: var(--radius-sm); font-size: var(--fs-body); }

.size-guide-toggle {
  display: inline-flex; align-items: center; gap: 0.3125rem;
  background: var(--accent-soft); border: 0; color: var(--accent);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-body); padding: 0.375rem 0.6875rem; border-radius: 8px;
}
.size-guide-toggle svg { width: 15px; height: 15px; stroke: var(--accent); }

.variant-row { display: flex; align-items: center; justify-content: space-between; gap: 0.625rem; }
.variant-row .size-guide-toggle { margin-left: auto; flex-shrink: 0; }

/* Size guide modal */
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.6); visibility: hidden; opacity: 0; transition: opacity 0.2s; display: flex; align-items: flex-end; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal-panel { background: #fff; width: 100%; max-height: 86%; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 1.375rem; }
#size-guide-modal { align-items: center; justify-content: center; padding: 1rem; }
#size-guide-modal .modal-panel { max-width: 1100px; width: 100%; max-height: 88vh; max-height: 88svh; border-radius: 18px; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
#size-guide-modal .modal-head { padding: 1.125rem 1.375rem; border-bottom: 1px solid var(--line); flex-shrink: 0; }
#size-guide-modal #size-guide-body { flex: 1; min-height: 0; overflow: auto; touch-action: pan-x pan-y; -webkit-user-select: none; user-select: none; }
#size-guide-modal #size-guide-body img { display: block; width: 100%; height: auto; border-radius: 0; transform-origin: 0 0; }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-close { width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center; background: #f2f2f2; border: 0; font-size: 1.125rem; border-radius: 10px; }
.guide-table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
.guide-table th, .guide-table td { border: 1px solid var(--line); padding: 0.625rem; text-align: left; }
.guide-table th { background: #f7f7f7; font-weight: 700; }
.guide-note { font-size: var(--fs-body); color: var(--muted); margin-top: 0.75rem; }

.modal-confirm { text-align: center; padding: 0.5rem 0.25rem 0.25rem; }
.modal-confirm-icon {
  width: 3.5rem; height: 3.5rem; margin: 0 auto 0.875rem;
  display: flex; align-items: center; justify-content: center;
  background: #1a9c3c; color: #fff; border-radius: 50%;
}
.modal-confirm h3 { margin: 0 0 0.25rem; font-weight: 400; }
.modal-confirm p { margin: 0 0 1.125rem; color: var(--muted); }
.modal-confirm a { display: block; width: 100%; font-weight: 500; }
.modal-confirm a + a { margin-top: 0.625rem; }
.modal-confirm .modal-confirm-actions { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: 1rem; }

/* ==========================================================================
   Accordions
   ========================================================================== */
.accordion { border-bottom: 1px solid var(--line); }
.accordion-head {
  background: none; border: 0; width: 100%; text-align: left;
  font-family: var(--font-display);
  padding: 1rem; font-weight: 600; font-size: var(--fs-sub);
  display: flex; justify-content: space-between; align-items: center;
}
.accordion-head svg { width: 18px; height: 18px; stroke: var(--ink); transition: transform 0.2s; }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.25s; }
.accordion-body .inner { padding: 0 1rem 1rem; }
.accordion.open .accordion-body { max-height: 25rem; }
.accordion.open .accordion-head svg { transform: rotate(180deg); }
.accordion-list { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.accordion-list .tag { background: #f2f2f2; padding: 0.375rem 0.625rem; border-radius: 6px; font-size: var(--fs-body); }

/* ==========================================================================
   Order (cart)
   ========================================================================== */
.order-empty { text-align: center; padding: 3.75rem 1rem; }
.order-empty h2 { font-size: var(--fs-title); }

.order-item { display: flex; gap: 0.75rem; align-items: stretch; padding: 0.875rem; border-bottom: 1px solid var(--line); }
.order-item .thumb, .order-item > img { width: 4rem; height: auto; object-fit: cover; border-radius: 8px; flex-shrink: 0; align-self: stretch; }
.order-item .info { flex: 1; }
.order-item .name { font-weight: 700; font-size: var(--fs-sub); }
.order-item .meta { font-size: var(--fs-body); color: var(--muted); }
.order-right { display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; flex-shrink: 0; }
.order-item .price { font-weight: 800; white-space: nowrap; font-size: var(--fs-sub); }
.btn-remove {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--sale); padding: 0.375rem;
  border-radius: 8px; cursor: pointer;
}
.btn-remove:hover { color: var(--sale); background: #f5f5f5; }

.order-total { background: #fff; color: var(--ink); padding: 1.125rem; border-radius: 12px; border: 1px solid var(--line); }
.order-total .row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.order-total .grand { font-weight: 900; font-size: var(--fs-sub); border-top: 1px solid var(--line); padding-top: 0.75rem; }

.order-note { font-size: var(--fs-body); color: var(--muted); margin-top: 0.625rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--black);
  color: #fff;
  padding: 1.375rem 1rem;
  text-align: center;
}
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #fff;
  transition: transform 0.18s, background 0.18s;
}
.footer-social-link i { font-size: 1.125rem; }
.footer-social-link.is-facebook { color: #1877f2; }
.footer-social-link.is-instagram { color: #e4405f; }
.footer-social-link.is-tiktok { color: #010101; }
.footer-social-img { width: 1.375rem; height: 1.375rem; object-fit: contain; }
.footer-social-link:hover { transform: translateY(-2px); background: #f0f0f0; }
.footer-note {
  font-size: var(--fs-body);
  opacity: 0.85;
  font-family: var(--font);
  line-height: 1.5;
}

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */
/* ==========================================================================
   WhatsApp flotante
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 1.125rem;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 1.125rem);
  z-index: 999;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  overflow: visible;
  transform: translateZ(0);
  transition: transform 0.18s, box-shadow 0.18s;
}

/* Pulse ring behind the button (brand-style WhatsApp) */
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -0.375rem;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: waPulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.45); opacity: 0; }
}

.whatsapp-float:hover, .whatsapp-float:focus-visible {
  transform: scale(1.08);
  background: var(--wa-dark);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.5);
}
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }
@media (max-width: 599px) {
  .whatsapp-float { width: 3.25rem; height: 3.25rem; right: 0.875rem; bottom: calc(env(safe-area-inset-bottom, 0px) + 0.875rem); }
}

/* Oculta el botón flotante de WhatsApp mientras un modal/drawer esté abierto */
body:has(.modal.is-open) .whatsapp-float,
body:has(.filter-drawer.is-open) .whatsapp-float,
body:has(.site-nav.is-open) .whatsapp-float,
body:has(.search-overlay.is-open) .whatsapp-float { display: none; }

/* ==========================================================================
   Responsive / Accessibility
   ========================================================================== */
@media (max-width: 480px) {
  .header { padding: 0 0.75rem; min-height: 3.5rem; }
  .container { padding: 0 0.75rem; }
  .section { padding: 1.5rem 0.75rem; }
  .logo-img { height: 2rem; }
  .menu-open-btn, .icon-btn { width: 2.5rem; height: 2.5rem; }
  .section-title { font-size: clamp(1.25rem, 1vw + 0.5rem, 1.75rem); }
  .hero-sub { font-size: 0.9375rem; }
  .btn-add2 { padding: 0.875rem; }
  .btn-wa { padding: 0.8125rem 1.25rem; }
  .btn-view { padding: 0.6875rem; }
  .btn, .btn-dark, .btn-ghost, .btn-outline { padding-top: 0.5625rem; padding-bottom: 0.5625rem; }
}
@media (min-width: 768px) {
  .info-bar { font-size: var(--fs-body); }
  .product-card .p-name { font-size: var(--fs-sub); }
}
@media (min-width: 1024px) {
  .container { padding: 0 1.5rem; }
  .hero-copy { display: none; }
  .hero-media { background: url("../assets/images/hero-horizontal.jpg") center / cover no-repeat #1a1a1a; }
  .header { padding: 0 1.75rem; }
  .menu-open-btn { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .whatsapp-float::before { animation: none; }
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }