/* ==========================================================================
   HILOS & PUNTADAS - Mercería Creativa Stylesheet
   Estilo cálido, artesanal, rosa empolvado, lila suave y tonos ciruela
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --merc-rose: #be185d;
  --merc-rose-dark: #9d174d;
  --merc-rose-light: #db2777;
  --merc-gold: #d97706;
  --merc-bg: #fcf8f6;
  --merc-surface: #ffffff;
  --merc-card: #ffffff;
  --merc-card-hover: #fff5f7;
  --merc-border: #f3e4e8;
  --merc-text: #2e1022;
  --merc-text-muted: #4a2336;
  --merc-subtext: #6b4f59;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--merc-bg);
  color: var(--merc-text);
  line-height: 1.6;
}

h1, h2, h3, h4, .brand-font {
  font-family: 'Outfit', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Nav */
.merc-nav {
  position: sticky;
  top: 50px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--merc-border);
  box-shadow: 0 2px 10px rgba(190, 24, 93, 0.03);
  padding: 14px 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  font-size: 30px;
}

.logo-text h1 {
  font-size: 22px;
  font-weight: 800;
  color: #2e1022;
  line-height: 1;
}

.logo-text h1 span {
  color: var(--merc-rose);
}

.logo-tag {
  font-size: 11px;
  color: var(--merc-subtext);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-cart-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--merc-rose), var(--merc-rose-dark));
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(190, 24, 93, 0.25);
  transition: all 0.2s ease;
}

.btn-cart-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(190, 24, 93, 0.35);
}

/* Hero */
.hero-merc {
  padding: 60px 0 45px;
  text-align: center;
  background: radial-gradient(circle at 50% 15%, rgba(219, 39, 119, 0.08) 0%, transparent 70%);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid var(--merc-border);
  color: var(--merc-rose-light);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.hero-title {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-title span {
  color: var(--merc-rose-light);
}

.hero-subtitle {
  max-width: 650px;
  margin: 0 auto 30px;
  font-size: 16px;
  color: var(--merc-subtext);
}

.hero-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.pill-box {
  background: #ffffff;
  border: 1px solid var(--merc-border);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--merc-rose);
  box-shadow: 0 2px 6px rgba(190, 24, 93, 0.04);
}

/* Sticky Categories */
.filter-sticky-bar {
  position: sticky;
  top: 106px;
  z-index: 90;
  background: rgba(252, 248, 246, 0.95);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  border-bottom: 1px solid var(--merc-border);
  margin-bottom: 40px;
}

.filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
}

.filter-pills::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid var(--merc-border);
  color: #6b4f59;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.filter-btn:hover {
  background: #fff5f7;
  color: var(--merc-rose);
  border-color: #fbcfe8;
}

.filter-btn.active {
  background: var(--merc-rose);
  border-color: var(--merc-rose);
  color: #fff;
  font-weight: 700;
}

/* Products Grid */
.menu-section-header {
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.menu-section-header h3 {
  font-size: 26px;
  font-weight: 800;
  color: #2e1022;
}

.menu-section-header span {
  font-size: 13px;
  color: var(--merc-rose);
  font-weight: 600;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  margin-bottom: 60px;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--merc-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(190, 24, 93, 0.05);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--merc-rose);
  box-shadow: 0 16px 36px rgba(190, 24, 93, 0.12);
}

.product-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #fdf2f4;
  display: block;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

.product-thumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to top, rgba(46, 16, 34, 0.15), transparent);
  pointer-events: none;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--merc-rose), #9d174d);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 19px;
  font-weight: 700;
  color: #2e1022;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 13px;
  color: #6b4f59;
  line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--merc-border);
  padding-top: 14px;
}

.product-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--merc-rose);
}

.btn-add-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fdf2f4;
  border: 1px solid #fbcfe8;
  color: var(--merc-rose);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-add-item:hover {
  background: var(--merc-rose);
  color: #fff;
  border-color: var(--merc-rose);
}

/* Custom Advisory Banner */
.custom-banner {
  background: linear-gradient(135deg, var(--merc-surface), #3e1634);
  border: 1px solid var(--merc-border);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.custom-content h3 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #fff;
}

.custom-content p {
  color: var(--merc-subtext);
  max-width: 600px;
  font-size: 14px;
}

.btn-custom-cta {
  background: var(--merc-rose-light);
  color: #831843;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(251, 207, 232, 0.4);
}

/* Footer */
.merc-footer {
  padding: 50px 0 100px;
  border-top: 1px solid var(--merc-border);
  background: #0b050d;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 18px;
  color: var(--merc-rose-light);
  margin-bottom: 14px;
}

.footer-col p {
  font-size: 13px;
  color: var(--merc-subtext);
  margin-bottom: 6px;
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: #64748b;
  border-top: 1px solid var(--merc-border);
  padding-top: 20px;
}

.footer-bottom a {
  color: var(--merc-rose-light);
  text-decoration: none;
}

@media (max-width: 768px) {
  .merc-nav {
    top: 48px;
  }
  .filter-sticky-bar {
    top: 100px;
  }
  .custom-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }
  .logo-text h1 {
    font-size: 18px;
  }
  .logo-tag {
    font-size: 9.5px;
  }
  .logo-icon {
    font-size: 24px;
  }
  .btn-cart-nav {
    padding: 6px 12px;
    font-size: 12px;
  }
  .product-body {
    padding: 16px;
  }
  .hero-merc {
    padding: 36px 0 24px;
  }
  .hero-pills {
    gap: 8px;
  }
  .pill-box {
    font-size: 12px;
    padding: 6px 12px;
  }
}
