/* ─── Variables ─────────────────────────────────────────── */
:root {
  --pink:         #FF3E8D;
  --pink-light:   #FFE8F3;
  --pink-dark:    #E0006E;
  --dark:         #1A1A2E;
  --text:         #333;
  --text-muted:   #888;
  --bg:           #F9F9F9;
  --white:        #FFFFFF;
  --border:       #F0F0F0;
  --star-gold:    #FFB800;
  --wa-green:     #25D366;
  --wa-dark:      #128C7E;
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    20px;
  --shadow-sm:    0 2px 12px rgba(0,0,0,0.06);
  --shadow:       0 8px 30px rgba(0,0,0,0.10);
  --shadow-pink:  0 8px 25px rgba(255,62,141,0.25);
  --font: 'Poppins', sans-serif;
  --transition: 0.25s ease;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }

.container { max-width: 1260px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 200;
}
.header-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.logo-icon { width: 38px; height: 38px; flex-shrink: 0; }
.logo-icon.small { width: 28px; height: 28px; }
.logo-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--dark);
}
.logo-pink { color: var(--pink); }

/* Nav */
.main-nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.nav-link {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover, .nav-link.active {
  background: var(--pink-light);
  color: var(--pink);
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 0.25rem; }
.icon-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}
.icon-btn:hover { background: var(--pink-light); color: var(--pink); }
.icon-btn svg { width: 20px; height: 20px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  margin-left: 0.25rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* Search bar */
.search-bar {
  display: none;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.search-bar.open { display: block; }
.search-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.search-inner input {
  width: 100%;
  padding: 0.65rem 3rem 0.65rem 1rem;
  border: 2px solid var(--pink-light);
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}
.search-inner input:focus { border-color: var(--pink); }
.search-close {
  position: absolute; right: 0.75rem; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 1rem; color: var(--text-muted);
}
.search-results {
  max-width: 600px;
  margin: 0.5rem auto 0;
}
.search-result-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition);
}
.search-result-item:hover { background: var(--pink-light); }
.search-result-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.search-result-item .sr-name { font-size: 0.85rem; font-weight: 500; }
.search-result-item .sr-price { font-size: 0.8rem; color: var(--pink); font-weight: 600; }

/* ─── Hero ────────────────────────────────────────────────── */
.hero-banner {
  background: linear-gradient(135deg, #FFF0F7 0%, #FFE8F3 50%, #FFF5FA 100%);
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.hero-content {
  max-width: 1260px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pink);
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}
.hero-banner h1 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.text-pink { color: var(--pink); }
.hero-sub { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 2rem; }
.btn-hero {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--pink);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  box-shadow: var(--shadow-pink);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,62,141,0.35); }

/* Decorative shapes */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,62,141,0.08);
}
.shape.s1 { width: 350px; height: 350px; right: -100px; top: -100px; }
.shape.s2 { width: 200px; height: 200px; right: 200px; bottom: -80px; background: rgba(255,62,141,0.05); }
.shape.s3 { width: 120px; height: 120px; right: 100px; top: 40px; background: rgba(255,62,141,0.12); }

/* ─── Category pills ─────────────────────────────────────── */
.cat-strip {
  padding: 1.5rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.cat-strip .container {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}
.cat-pill {
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--bg);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
  white-space: nowrap;
}
.cat-pill:hover { border-color: var(--pink); color: var(--pink); }
.cat-pill.active { background: var(--pink); color: white; border-color: var(--pink); box-shadow: var(--shadow-pink); }

/* ─── Catalog section ───────────────────────────────────── */
.catalog-section { padding: 2.5rem 0 5rem; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.section-head h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
}
.product-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  border: 1px solid var(--border);
}

/* ─── Products Grid ─────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* ─── Product Card ───────────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fadeUp 0.4s ease both;
}
.product-card:nth-child(2) { animation-delay: 0.06s; }
.product-card:nth-child(3) { animation-delay: 0.12s; }
.product-card:nth-child(4) { animation-delay: 0.18s; }
.product-card:nth-child(n+5) { animation-delay: 0.24s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-image-wrap {
  display: block;
  position: relative;
  aspect-ratio: 3/4;
  background: var(--bg);
  overflow: hidden;
}
.card-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .card-image-wrap img { transform: scale(1.05); }

.badge-discount {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(26,26,46,0.85);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.badge-discount.large { font-size: 0.82rem; padding: 0.35rem 0.8rem; }

.btn-wishlist {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  z-index: 2;
  transition: background var(--transition), color var(--transition);
}
.btn-wishlist svg { width: 16px; height: 16px; color: var(--text-muted); }
.btn-wishlist:hover { background: var(--pink); }
.btn-wishlist:hover svg { color: white; stroke: white; }

.img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #F5F5F5, #EBEBEB);
}
.img-placeholder svg { width: 48px; height: 48px; color: #CCC; }
.img-placeholder.large svg { width: 72px; height: 72px; }

.stock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  z-index: 3;
}

.card-body { padding: 1rem; }
.card-name {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
  color: var(--dark);
}
.card-name a:hover { color: var(--pink); }

.card-prices {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.price-current {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--pink);
}
.price-current.big { font-size: 1.6rem; }
.price-old {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-old.big { font-size: 1rem; }

/* Stars */
.card-rating, .detail-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.stars { display: flex; gap: 1px; }
.star { font-size: 0.85rem; }
.star.full  { color: var(--star-gold); }
.star.half  { color: var(--star-gold); opacity: 0.7; }
.star.empty { color: #DDD; }
.card-rating .stars .star { font-size: 0.82rem; }
.rating-val { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }

/* Card action buttons */
.card-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.btn-buy {
  flex: 1;
  text-align: center;
  padding: 0.6rem 0.5rem;
  background: var(--pink);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 12px rgba(255,62,141,0.2);
}
.btn-buy:hover { background: var(--pink-dark); box-shadow: var(--shadow-pink); }
.btn-cart {
  flex: 1;
  text-align: center;
  padding: 0.6rem 0.5rem;
  background: transparent;
  color: var(--wa-dark);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
  border: 1.5px solid var(--wa-dark);
  transition: background var(--transition), color var(--transition);
}
.btn-cart:hover { background: var(--wa-green); color: white; border-color: var(--wa-green); }

/* ─── Product Detail ─────────────────────────────────────── */
.product-detail-page { padding: 2rem 0 5rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--pink); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ─── Product detail gallery ─────────────────────────── */
.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 90px;
}
.detail-gallery .main-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 3/4;
  box-shadow: var(--shadow);
  position: relative;
}
.detail-gallery .main-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.25s;
}

/* Counter badge on main image */
.main-img-counter {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 50px;
  pointer-events: none;
}

/* Thumbnail row below main image */
.gallery-thumbs {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--pink) var(--pink-light);
}
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-track { background: var(--pink-light); border-radius: 2px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 2px; }

.thumb-wrap {
  width: 72px;
  aspect-ratio: 3/4;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: border-color 0.18s, transform 0.15s;
  background: var(--bg);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.thumb-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}
.thumb-wrap:hover img { transform: scale(1.06); }
.thumb-wrap.active {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 62, 141, 0.18);
}
.thumb-wrap:hover:not(.active) {
  border-color: rgba(255, 62, 141, 0.45);
}

.detail-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  background: var(--pink-light);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.detail-name {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.detail-rating { margin-bottom: 1.25rem; }
.detail-rating .stars .star { font-size: 1.1rem; }
.detail-rating .rating-val { font-size: 0.85rem; }

.detail-prices {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  background: var(--pink-light);
  border-radius: var(--radius);
}
.save-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2E7D52;
  background: #E8F5EE;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
}

.detail-stock-wrap { margin-bottom: 1.5rem; }
.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
}
.stock-badge.ok  { background: #E8F5EE; color: #2E7D52; }
.stock-badge.low { background: #FFF3E0; color: #E65100; }
.stock-badge.out { background: #FDECEA; color: #9B2335; }

.detail-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* WhatsApp Big Button */
.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.btn-whatsapp-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--wa-green);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(37,211,102,0.3);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn-whatsapp-big:hover {
  background: var(--wa-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37,211,102,0.4);
}
.btn-whatsapp-big svg { width: 24px; height: 24px; flex-shrink: 0; }

.btn-back-cat {
  display: block;
  text-align: center;
  padding: 0.8rem 2rem;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: border-color var(--transition), color var(--transition);
}
.btn-back-cat:hover { border-color: var(--pink); color: var(--pink); }

/* Detail extras */
.detail-extras {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.25rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.extra-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.extra-item svg { width: 16px; height: 16px; color: var(--pink); flex-shrink: 0; }

/* ─── WhatsApp Float ─────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px; height: 56px;
  background: var(--wa-green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse-wa 2.5s infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 10px 28px rgba(37,211,102,0.5); }
.wa-float svg { width: 30px; height: 30px; }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 6px 28px rgba(37,211,102,0.65), 0 0 0 8px rgba(37,211,102,0.12); }
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.footer-brand .logo-text { color: white; }
.footer-brand p { font-size: 0.82rem; margin-top: 0.5rem; opacity: 0.6; }
.footer-cols { display: flex; gap: 3rem; }
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 0.75rem;
}
.footer-col a {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  padding: 0.2rem 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--pink); }
.footer-bottom {
  max-width: 1260px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  opacity: 0.5;
}

/* ─── Empty ─────────────────────────────────────────────── */
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .detail-gallery { position: relative; top: 0; }
  .detail-gallery .main-image-wrap { max-height: 450px; }
  .thumb-wrap { width: 64px; }
}
@media (max-width: 700px) {
  .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: white; flex-direction: column; padding: 1rem; border-bottom: 1px solid var(--border); z-index: 100; gap: 0.25rem; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-cols { flex-direction: column; gap: 1.5rem; }
  .hero-banner { padding: 2.5rem 1.5rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .card-actions { flex-direction: column; }
  .wa-float { bottom: 1.25rem; right: 1.25rem; }
}

/* ─── Logo imagen real ──────────────────────────────────── */
.logo-img {
  height:70px;
  width: auto;
  object-fit: contain;

  display: block;
  transition: transform 0.25s ease;
}
.logo-img:hover { transform: scale(1.05); }
.logo-img.footer-logo {
  height: 84px;

  opacity: 0.85;
}
.logo-wrap { display: flex; align-items: center; }
