@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&display=swap');

:root {
  --primary: #a8446b;
  --primary-dark: #7d2f4f;
  --primary-light: #e7b7c6;
  --gold: #c9a55c;
  --gold-light: #e6cf9a;
  --wine: #3a0d1e;
  --wine-deep: #240712;
  --bg: #fbf6f4;
  --text: #2b1a20;
  --text-light: #7c6069;
  --border: #efe2e6;
  --success: #4b9b6e;
  --danger: #c0455a;
  --warning: #d9a441;
  --serif: 'Cormorant Garamond', Georgia, serif;
}

* { box-sizing: border-box; }

body {
  font-family: 'Manrope', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.footer { margin-top: auto !important; }

/* HEADER */
.header {
  background: #111;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2rem;
}

.logo img { height: 45px; }

.brand-text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  letter-spacing: .5px;
}
.brand-text em { font-style: italic; color: var(--gold); }

@media (max-width: 768px) {
  .brand-text { font-size: 1.3rem; }
}

.menu ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.menu ul li a {
  text-decoration: none;
  color: #e0d4e8;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

.menu ul li a:hover { color: var(--gold-light); }

.menu ul li:nth-child(2) a {
  background: var(--primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
}

.menu ul li:nth-child(2) a:hover { background: var(--primary-dark); }

.menu ul li { display: flex; align-items: center; }
.user-menu { display: flex; align-items: center; gap: 10px; }
.user-link { text-decoration: none; color: #e0d4e8; font-size: 14px; }
.user-link:hover { color: var(--gold-light); }

.search-bar { margin-left: auto; }

.search-form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(230,207,154,0.3);
  border-radius: 20px;
  padding: 4px 12px;
  width: 240px;
  transition: box-shadow 0.3s;
}

.search-form:focus-within {
  box-shadow: 0 0 0 3px rgba(230,207,154,0.2);
}

.search-form input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  padding: 6px;
  font-size: 0.9rem;
  color: #fff;
}

.search-form input::placeholder { color: rgba(255,255,255,0.45); }

.search-form button {
  background: none;
  border: none;
  color: var(--gold-light);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* FOOTER */
.footer {
  background: var(--primary);
  color: #e0d4e8;
  padding: 40px 0 20px;
}

.footer h4 { color: #fff; font-size: 16px; margin-bottom: 15px; }
.footer p, .footer a { color: #e0d4e8; font-size: 13px; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer hr { border-color: rgba(255,255,255,0.2); }

/* BUTTONS */
.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}
.btn-primary:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

/* CARDS */
.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-card .img-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}

.product-card .img-wrapper img {
  max-height: 180px;
  max-width: 90%;
  object-fit: contain;
  transition: transform 0.3s;
}

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

.product-card .img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.product-card:hover .img-overlay { opacity: 1; }

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

.product-card .card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-card .price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
}

.product-card .card-category {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

.product-card .btn-cart {
  margin-top: auto;
  background: var(--primary-light);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.3s;
}

.product-card .btn-cart:hover { background: var(--primary); color: #fff; }
.product-card .btn-cart:disabled { background: #ccc; cursor: not-allowed; }

.product-card-sm .img-wrapper { height: 120px; }
.product-card-sm .img-wrapper img { max-height: 100px; }
.product-card-sm .card-body { padding: 10px; }
.product-card-sm .card-title { font-size: 11px; margin-bottom: 4px; }
.product-card-sm .price { font-size: 14px; }
.product-card-sm .btn-cart { padding: 6px; font-size: 12px; }

/* BADGES */
.product-badge {
  position: absolute;
  top: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  z-index: 2;
}

.product-badge.nuevo { left: 8px; background: var(--warning); color: #000; }
.product-badge.sin-stock { right: 8px; background: #343a40; color: #fff; }
.product-badge.oferta { right: 8px; background: #dc3545; color: #fff; }

/* CART BUTTON */
.cart-floating {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 999;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(201,165,92,0.5);
  cursor: pointer;
  text-decoration: none;
  color: var(--wine);
  transition: transform 0.3s, box-shadow 0.3s;
}

.cart-floating:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(201,165,92,0.65);
  color: var(--wine);
}

.cart-floating .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary-dark);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .cart-floating { top: 130px; }
}

/* OFFCANVAS CART */
.offcanvas-header { background: var(--border); }
.offcanvas-body { background: #f8f9fa; }

/* MODAL THUMBNAILS */
.modal-thumb {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--border);
  cursor: pointer;
  padding: 3px;
  background: #fafafa;
  transition: border-color 0.2s;
  flex-shrink: 0;
}

.modal-thumb:hover { border-color: var(--primary-light); }
.modal-thumb.active { border-color: var(--primary); }

/* FILTERS */
.filters-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 20px;
}

.filters-card h5 { color: var(--primary); font-size: 16px; margin-bottom: 15px; }

/* HERO */
.hero-section {
  position: relative;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  overflow: hidden;
  background: var(--wine-deep);
}

.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item { height: 100%; }

.hero-slide {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.hero-slide-1 {
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(201,165,92,.20), transparent 55%),
    linear-gradient(135deg, #3a0d1e 0%, #7d2f4f 55%, #a8446b 100%);
}
.hero-slide-2 {
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(231,183,198,.22), transparent 55%),
    linear-gradient(135deg, #240712 0%, #5a1f38 55%, #8a3358 100%);
}
.hero-slide-3 {
  background:
    radial-gradient(120% 120% at 70% 90%, rgba(201,165,92,.24), transparent 55%),
    linear-gradient(135deg, #2b0a19 0%, #6d2846 55%, #b0577a 100%);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .4;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
  background: radial-gradient(240px 240px at var(--gx,50%) var(--gy,50%),
              rgba(230,207,154,.35), rgba(230,207,154,0) 70%);
  mix-blend-mode: screen;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
  gap: 30px;
}

.hero-copy { color: #fff; align-self: center; padding: 48px 0; }

.hero-kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(230,207,154,.5);
  border-radius: 30px;
  padding: 5px 14px;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.02;
  margin: 0 0 12px;
  color: #fff;
  letter-spacing: .5px;
}

.hero-title em { font-style: italic; color: var(--gold-light); }

.hero-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: #f3dfe6;
  margin: 0 0 14px;
}

.hero-description {
  font-size: .98rem;
  line-height: 1.7;
  color: rgba(255,255,255,.82);
  max-width: 44ch;
  margin: 0 0 26px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #3a0d1e;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .3px;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 40px;
  box-shadow: 0 10px 26px rgba(201,165,92,.35);
  transition: transform .3s ease, box-shadow .3s ease;
}

.hero-btn i { transition: transform .3s ease; }
.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(201,165,92,.5);
  color: #3a0d1e;
}
.hero-btn:hover i { transform: translateX(5px); }

.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  will-change: transform;
}

.hero-image {
  height: 440px;
  max-height: 70vh;
  width: auto;
  object-fit: contain;
  object-position: bottom;
  display: block;
  filter: drop-shadow(0 30px 45px rgba(0,0,0,.45));
}

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
  width: 46px;
  height: 46px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(230,207,154,.5);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  opacity: 1;
  z-index: 3;
}
.hero-section .carousel-control-prev { left: 22px; }
.hero-section .carousel-control-next { right: 22px; }
.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover { background: rgba(201,165,92,.4); }

.hero-indicators { z-index: 3; margin-bottom: 14px; }
.hero-indicators [data-bs-target] {
  width: 26px;
  height: 4px;
  border-radius: 3px;
  background: rgba(255,255,255,.4);
  border: none;
}
.hero-indicators .active { background: var(--gold-light); }

.carousel-item.active .hero-copy { animation: heroFade .8s ease both; }
.carousel-item.active .hero-visual { animation: heroFade 1s ease .1s both; }

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

@media (max-width: 991px) {
  .hero-inner { padding: 44px 30px; gap: 20px; }
  .hero-image { max-height: 320px; }
}

@media (max-width: 767px) {
  .hero-slide { min-height: 0; transform: none !important; }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 22px 34px;
    gap: 6px;
  }
  .hero-copy { order: 2; }
  .hero-visual { order: 1; transform: none !important; }
  .hero-image { max-height: 220px; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-btn { margin: 0 auto; }
  .hero-section .carousel-control-prev { left: 8px; }
  .hero-section .carousel-control-next { right: 8px; }
}

/* CATEGORY CARDS */
.category-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: var(--text);
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  color: var(--primary);
}

.category-card i { font-size: 2rem; color: var(--primary); margin-bottom: 10px; }
.category-card h6 { font-weight: 600; margin: 0; }

.category-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 12px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* SLIDER DE CATEGORÍAS */
.slider-section { padding: 30px 0 0; }

.slider-section h3,
.custom-title {
  margin-bottom: 20px;
  font-size: 20px;
  color: var(--primary);
  text-align: center;
}

.container > h3.text-center,
.slider-section h3,
.custom-title {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: .3px;
}
.container > h3.text-center { font-size: 2rem; }

.slider-infinito-container { position: relative; width: 100%; margin: 0 auto; }
.slider-infinito-wrapper { overflow: hidden; padding: 15px 0; }
.slider-infinito {
  display: flex;
  justify-content: center;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.slide-infinito {
  flex: 0 0 calc(16.666% - 20px);
  margin: 0 10px;
  transition: all 0.3s ease;
}

.slider-dots { display: flex; justify-content: center; padding: 20px 0; gap: 8px; }
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}
.dot.active { background: var(--primary); transform: scale(1.2); }

.categoria-card {
  text-align: center;
  padding: 15px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  color: var(--text);
}

.categoria-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  color: var(--primary);
}

.categoria-imagen {
  width: 80px; height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 15px;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

a.categoria-nombre { text-decoration: none; color: var(--text); }
h4.categoria-nombre { font-size: 1rem; color: var(--text); margin: 0; line-height: 1.3; }

.slider-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #555;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease;
}
.slider-arrow:hover { color: #000; }
.slider-arrow.left { left: 10px; }
.slider-arrow.right { right: 10px; }

@media (max-width: 767px) {
  .slide-infinito { flex: 0 0 calc(50% - 20px); }
  .categoria-imagen { width: 60px; height: 60px; }
  h4.categoria-nombre { font-size: 0.85rem; }
  .slider-arrow { font-size: 1.6rem; top: 35%; }
  .slider-dots { display: none; }
}

@media (max-width: 480px) {
  .slide-infinito { flex: 0 0 calc(100% - 20px); }
}

/* CHECKOUT */
.checkout-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 25px;
}

/* PAGINATION */
#pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 30px;
}

#pagination button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

#pagination button:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

#pagination button:disabled { background: #e0e0e0; color: #999; cursor: not-allowed; }
#pagination button.active { background: var(--primary-dark); font-weight: 700; }

/* WHATSAPP FLOAT — eliminado, integrado en chatbot */

/* BRANDS SLIDER */
.slider-marcas {
  height: 100px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.slider-marcas::before,
.slider-marcas::after {
  background: linear-gradient(to right, rgba(249,249,249,1) 0%, rgba(249,249,249,0) 100%);
  content: "";
  height: 100px;
  position: absolute;
  width: 150px;
  z-index: 2;
}

.slider-marcas::before { left: 0; top: 0; }
.slider-marcas::after { right: 0; top: 0; transform: rotateZ(180deg); }

.slider-marcas .slide-track {
  animation: scroll-marcas 30s linear infinite;
  display: flex;
  width: calc(200px * 18);
}

.slider-marcas .slide {
  height: 100px;
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.slider-marcas .slide img {
  max-height: 80px;
  max-width: 180px;
  object-fit: contain;
}

@keyframes scroll-marcas {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-200px * 11)); }
}

/* RESPONSIVE MENU */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .header-container {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 8px 12px;
  }

  .menu-toggle {
    position: static;
    transform: none;
    order: 1;
    flex-shrink: 0;
  }

  .logo { order: 2; flex: 1; text-align: center; }
  .logo img { height: 36px; }

  .search-bar { order: 3; flex-shrink: 0; margin: 0; width: auto; }

  .search-form {
    width: 36px;
    height: 36px;
    padding: 0;
    overflow: hidden;
    transition: width 0.3s;
    border-radius: 50%;
    justify-content: center;
  }

  .search-form input { display: none; }

  .search-form button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .search-form:focus-within {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    height: auto;
    border-radius: 20px;
    z-index: 1200;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 4px 12px;
  }

  .search-form:focus-within input {
    display: block;
    color: var(--text);
  }

  .search-form:focus-within button {
    width: 28px;
    height: 28px;
    border-radius: 0;
    color: var(--primary);
  }

  .menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17,17,17,0.97);
    z-index: 1100;
    justify-content: center;
    align-items: center;
  }

  .menu.open { display: flex; }
  .menu ul { flex-direction: column; text-align: center; gap: 25px; }
  .menu ul li a { font-size: 18px; color: #e0d4e8; }
  .menu ul li a:hover { color: var(--gold-light); }
}

/* PROMO BANNERS */
.promo-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 200px;
  display: flex;
  align-items: stretch;
  transition: transform 0.3s, box-shadow 0.3s;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.promo-banner-link:hover .promo-banner {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.14);
}

.promo-banner-img { flex: 0 0 42%; position: relative; overflow: hidden; }
.promo-banner-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.promo-banner-link:hover .promo-banner-img img { transform: scale(1.05); }

.promo-banner-img-placeholder {
  flex: 0 0 42%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.promo-banner-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.75rem;
  color: var(--text);
}

.promo-banner-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  margin-bottom: 0.5rem;
  width: fit-content;
}

.promo-banner-title { font-size: 1.5rem; font-weight: 800; margin: 0 0 0.4rem; line-height: 1.2; color: var(--text); }
.promo-banner-desc { font-size: 0.88rem; margin: 0 0 1rem; color: var(--text-light); line-height: 1.5; }

.promo-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  width: fit-content;
  transition: background 0.2s, transform 0.2s;
}

.promo-banner-link:hover .promo-banner-btn { background: var(--primary-dark); transform: translateX(3px); }

@media (max-width: 768px) {
  .promo-banner { height: auto; flex-direction: column; }
  .promo-banner-img, .promo-banner-img-placeholder { flex: 0 0 auto; width: 100%; height: 200px; background: #f8f8f8; }
  .promo-banner-img img { width: 100%; height: 200px; object-fit: contain; }
  .promo-banner-content { padding: 1rem 1.1rem; align-items: center; text-align: center; }
  .promo-banner-title { font-size: 1.05rem; }
  .promo-banner-desc { display: none; }
  .promo-banner-btn { font-size: 0.75rem; padding: 6px 12px; }
}

/* =============================================
   ANIMATIONS & TRANSITIONS - Emil Kowalski Principles
   ============================================= */

/* Custom easing curves - stronger than default */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* Scroll reveal animations */
[data-animate-on-scroll] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-animate-on-scroll].animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations for grids */
[data-animate-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

[data-animate-stagger].animate-in > *:nth-child(1) { transition-delay: 0ms; }
[data-animate-stagger].animate-in > *:nth-child(2) { transition-delay: 50ms; }
[data-animate-stagger].animate-in > *:nth-child(3) { transition-delay: 100ms; }
[data-animate-stagger].animate-in > *:nth-child(4) { transition-delay: 150ms; }
[data-animate-stagger].animate-in > *:nth-child(5) { transition-delay: 200ms; }
[data-animate-stagger].animate-in > *:nth-child(6) { transition-delay: 250ms; }

/* Improved hover states - following Emil's principles */
.product-card {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.product-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Image hover - more natural */
.product-card .img-wrapper img {
  transition: transform 0.4s var(--ease-out);
}

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

/* Overlay hover */
.product-card .img-overlay {
  transition: opacity 0.3s var(--ease-out);
}

.product-card:hover .img-overlay {
  opacity: 1;
}

/* Button hover - more responsive */
.btn-primary {
  transition: background 0.2s var(--ease-out), transform 0.1s var(--ease-out);
}

.btn-primary:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  transform: translateY(-1px);
}

/* Stats card hover - subtle but noticeable */
.stat-card {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.stat-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Category card hover */
.category-card {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  color: var(--primary);
}

/* Categoria card hover */
.categoria-card {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.categoria-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Promo banner hover */
.promo-banner {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.promo-banner-link:hover .promo-banner {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.14);
}

/* Modal animations - replacing Bootstrap fade */
.modal.fade .modal-dialog {
  transform: translate(0, -30px);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
}

.modal.show .modal-dialog {
  transform: translate(0, 0);
  opacity: 1;
}

/* Modal content scale-in - nothing appears from nothing */
.modal-content {
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

/* Offcanvas animations */
.offcanvas {
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
}

.offcanvas.show {
  transform: translateX(0);
}

/* Offcanvas body content fade-in */
.offcanvas-body {
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.offcanvas.show .offcanvas-body {
  opacity: 1;
}

/* Button active state - instant feedback */
.btn:active {
  transform: scale(0.97);
  transition: transform 0.1s var(--ease-out);
}

/* Card active state on click */
.product-card:active {
  transform: scale(0.99);
}

/* Tooltip instant appearance on subsequent hovers */
.tooltip {
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  opacity: 0;
  pointer-events: none;
}

.tooltip.show {
  opacity: 1;
  pointer-events: all;
}

/* Skip animation on subsequent tooltips */
.tooltip[data-instant] {
  transition-duration: 0s !important;
}

/* Popover origin-aware (example - would need JS to set --transform-origin) */
.popover {
  transform-origin: var(--transform-origin, center);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.popover.show {
  opacity: 1;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Keep fade animations for comprehension */
  .modal.fade .modal-dialog {
    transition: opacity 0.2s ease;
  }

  .modal.show .modal-dialog {
    opacity: 1;
  }
}

/* =============================================
   CHATBOT WIDGET — Seduccion CHIC!
   ============================================= */

#cb-main-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border: 3px solid var(--gold);
  cursor: pointer;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(168,68,107,.45), 0 0 0 2px rgba(201,165,92,.25);
  transition: transform .3s, box-shadow .3s;
}
#cb-main-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 26px rgba(168,68,107,.6), 0 0 0 4px rgba(201,165,92,.35);
}
#cb-main-btn svg { width: 26px; height: 26px; fill: #fff; }
#cb-main-icon-open, #cb-main-icon-close {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem; line-height: 1;
}

#cb-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 18px; height: 18px;
  background: var(--gold);
  border-radius: 50%;
  display: none;
  align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  color: var(--wine);
  animation: cb-pulse 1.8s infinite;
}
@keyframes cb-pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.3); }
}

#cb-box {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 360px;
  max-height: 560px;
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid var(--gold);
  box-shadow: 0 16px 48px rgba(58,13,30,.22);
  display: flex;
  flex-direction: column;
  z-index: 1049;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(.96);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
#cb-box.cb-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.cb-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 13px 16px;
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
  border-bottom: 2px solid var(--gold);
}
.cb-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.cb-header-info { flex: 1; }
.cb-header-name { color: #fff; font-weight: 700; font-size: .88rem; line-height: 1.2; }
.cb-header-status {
  color: rgba(255,255,255,.8); font-size: .72rem;
  display: flex; align-items: center; gap: 4px;
}
.cb-header-status::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; display: inline-block;
}
#cb-close {
  background: none; border: none; color: rgba(255,255,255,.8);
  cursor: pointer; font-size: 1.2rem; padding: 4px; transition: color .2s;
}
#cb-close:hover { color: #fff; }

#cb-body {
  flex: 1; overflow-y: auto;
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 8px;
  background: #fdf8f9;
  scroll-behavior: smooth;
}
#cb-body::-webkit-scrollbar { width: 4px; }
#cb-body::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }

.cb-msg { display: flex; }
.cb-bot  { justify-content: flex-start; }
.cb-user { justify-content: flex-end; }
.cb-bubble {
  max-width: 85%; padding: 9px 13px; border-radius: 14px;
  font-size: .83rem; line-height: 1.55;
}
.cb-bot .cb-bubble {
  background: #fff; color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.cb-user .cb-bubble {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; border-bottom-right-radius: 4px;
}

.cb-typing { display: flex; align-items: center; gap: 5px; padding: 12px 16px; }
.cb-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary-light);
  animation: cb-bounce .9s infinite;
}
.cb-typing span:nth-child(2) { animation-delay: .15s; }
.cb-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes cb-bounce {
  0%,80%,100% { transform: translateY(0); }
  40%          { transform: translateY(-6px); }
}

.cb-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 4px 2px; }
.cb-quick-btn {
  background: #fff;
  border: 1.5px solid var(--primary-light);
  color: var(--primary-dark);
  border-radius: 20px; padding: 5px 12px;
  font-size: .75rem; font-weight: 600;
  cursor: pointer; font-family: 'Manrope', sans-serif;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.cb-quick-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.cb-cat-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; padding: 4px 0;
}
.cb-cat-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 10px 8px;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 12px; cursor: pointer;
  font-size: .75rem; font-weight: 600; color: var(--text);
  text-align: center; font-family: 'Manrope', sans-serif;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  white-space: normal;
}
.cb-cat-card:hover {
  border-color: var(--primary); color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168,68,107,.15);
}
.cb-cat-img { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.cb-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cb-cat-icon { font-size: 1.8rem; }

.cb-products-list { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.cb-product-card {
  display: flex; gap: 10px; align-items: center;
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 10px;
  text-decoration: none; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.cb-product-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 3px 10px rgba(168,68,107,.12);
  color: var(--text);
}
.cb-product-img {
  width: 52px; height: 52px; border-radius: 8px;
  overflow: hidden; flex-shrink: 0;
  background: #f5f0f2;
  display: flex; align-items: center; justify-content: center;
}
.cb-product-img img { width: 100%; height: 100%; object-fit: cover; }
.cb-no-img { font-size: 1.5rem; }
.cb-product-info { flex: 1; min-width: 0; }
.cb-product-name {
  font-size: .78rem; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.cb-product-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.cb-price { font-size: .85rem; font-weight: 700; color: var(--primary-dark); }
.cb-price-old { font-size: .75rem; color: var(--text-light); text-decoration: line-through; }
.cb-stock-ok { font-size: .68rem; color: var(--success); font-weight: 600; }
.cb-stock-no { font-size: .68rem; color: var(--danger); font-weight: 600; }

.cb-product-card {
  display: flex; align-items: center;
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 10px;
  gap: 0;
  transition: border-color .2s, box-shadow .2s;
}
.cb-product-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 3px 10px rgba(168,68,107,.12);
}
.cb-product-link {
  display: flex; gap: 10px; align-items: center;
  flex: 1; min-width: 0;
  text-decoration: none; color: var(--text);
}
.cb-product-link:hover { color: var(--text); }

.cb-add-cart {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  margin-left: 8px;
  transition: background .2s, transform .2s;
}
.cb-add-cart svg { width: 18px; height: 18px; fill: #fff; }
.cb-add-cart:hover { background: var(--primary-dark); transform: scale(1.1); }
.cb-add-cart--added { background: var(--success) !important; }
.cb-add-cart--disabled { background: #ccc !important; cursor: not-allowed; }
.cb-add-cart--disabled:hover { transform: none !important; }

.cb-wa-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25d366; color: #fff;
  padding: 8px 16px; border-radius: 20px;
  text-decoration: none; font-weight: 700; font-size: .82rem;
  margin-top: 6px; transition: background .2s;
}
.cb-wa-link:hover { background: #1da851; color: #fff; }
.cb-wa-link i { font-size: 1.1rem; }

.cb-footer {
  padding: 10px 12px; border-top: 1px solid var(--border);
  background: #fff; flex-shrink: 0;
}
#cb-form { display: flex; gap: 8px; align-items: center; }
#cb-input {
  flex: 1; border: 1.5px solid var(--border);
  border-radius: 22px; padding: 8px 14px;
  font-size: .83rem; outline: none;
  font-family: 'Manrope', sans-serif; color: var(--text);
  transition: border-color .2s;
}
#cb-input:focus { border-color: var(--gold); }
#cb-send {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .2s, transform .2s;
}
#cb-send:hover { background: var(--primary-dark); transform: scale(1.08); }
#cb-send svg { width: 16px; height: 16px; fill: #fff; }

@media (max-width: 480px) {
  #cb-box { width: calc(100vw - 24px); right: 12px; bottom: 88px; }
  #cb-main-btn { right: 12px; bottom: 16px; }
  .cb-cat-grid { grid-template-columns: 1fr 1fr; }
}

.cb-products-list { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }

.cb-product-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  transition: border-color .2s, box-shadow .2s;
}
.cb-product-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 3px 10px rgba(168,68,107,.12);
}
.cb-product-link {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
}
.cb-product-link:hover { color: var(--text); }
.cb-product-img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f0f2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cb-product-img img { width: 100%; height: 100%; object-fit: cover; }
.cb-no-img { font-size: 1.5rem; }
.cb-product-info { flex: 1; min-width: 0; }
.cb-product-name {
  font-size: .78rem; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.cb-product-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.cb-price { font-size: .85rem; font-weight: 700; color: var(--primary-dark); }
.cb-price-old { font-size: .75rem; color: var(--text-light); text-decoration: line-through; }
.cb-stock-ok { font-size: .68rem; color: var(--success); font-weight: 600; }
.cb-stock-no { font-size: .68rem; color: var(--danger); font-weight: 600; }

.cb-add-cart {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
}
.cb-add-cart svg { width: 18px; height: 18px; fill: #fff; }
.cb-add-cart:hover { background: var(--primary-dark); transform: scale(1.1); }
.cb-add-cart--added { background: var(--success) !important; }
.cb-add-cart--disabled { background: #ccc !important; cursor: not-allowed; }
.cb-add-cart--disabled:hover { transform: none !important; }

.cb-wa-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25d366; color: #fff;
  padding: 8px 16px; border-radius: 20px;
  text-decoration: none; font-weight: 700; font-size: .82rem;
  margin-top: 6px; transition: background .2s;
}
.cb-wa-link:hover { background: #1da851; color: #fff; }
.cb-wa-link i { font-size: 1.1rem; }

.cb-footer {
  padding: 10px 12px; border-top: 1px solid var(--border);
  background: #fff; flex-shrink: 0;
}
#cb-form { display: flex; gap: 8px; align-items: center; }
#cb-input {
  flex: 1; border: 1.5px solid var(--border);
  border-radius: 22px; padding: 8px 14px;
  font-size: .83rem; outline: none;
  font-family: 'Manrope', sans-serif; color: var(--text);
  transition: border-color .2s;
}
#cb-input:focus { border-color: var(--gold); }
#cb-send {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .2s, transform .2s;
}
#cb-send:hover { background: var(--primary-dark); transform: scale(1.08); }
#cb-send svg { width: 16px; height: 16px; fill: #fff; }

@media (max-width: 480px) {
  #cb-box { width: calc(100vw - 24px); right: 12px; bottom: 88px; }
  #cb-main-btn { right: 12px; bottom: 16px; }
  .cb-cat-grid { grid-template-columns: 1fr 1fr; }
}
