/* ===== Base ===== */
:root {
  --brand-warning: #ffb703;
  --brand-warning-dark: #e29e00;
  --brand-dark: #1a1a1a;
  --brand-whatsapp: #25d366;
  --shadow-soft: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  background-color: #f8f9fa;
  color: #212529;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  letter-spacing: -0.01em;
}

/* ===== Navbar ===== */
.navbar {
  backdrop-filter: blur(6px);
}

.navbar-brand span {
  letter-spacing: 0.02em;
}

.navbar .btn-warning {
  border-radius: 50px;
  box-shadow: 0 0.25rem 0.75rem rgba(255, 183, 3, 0.35);
}

.navbar .btn-warning:hover {
  background-color: var(--brand-warning-dark);
  border-color: var(--brand-warning-dark);
  transform: translateY(-1px);
}

/* ===== Section heading accent ===== */
.section-eyebrow {
  display: inline-block;
  color: var(--brand-warning-dark);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.section-divider {
  width: 64px;
  height: 4px;
  background: var(--brand-warning);
  border-radius: 4px;
  margin: 0.75rem auto 0;
}

/* ===== Hero ===== */
.hero-section {
  position: relative;
  min-height: 60vh;
  background: url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1600&q=80")
    center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.75));
}

.hero-section .container {
  z-index: 1;
}

.hero-section h1 {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-section .lead {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.92;
}

.hero-section .btn-warning {
  border-radius: 50px;
  box-shadow: var(--shadow-strong);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-section .btn-warning:hover {
  transform: translateY(-2px);
  background-color: var(--brand-warning-dark);
  border-color: var(--brand-warning-dark);
}

/* ===== Category tabs ===== */
#category-tabs .nav-link {
  border-radius: 50px;
  color: var(--brand-dark);
  background-color: #fff;
  border: 1px solid #e0e0e0;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  transition: all 0.2s ease;
}

#category-tabs .nav-link:hover {
  background-color: #fff3cd;
}

#category-tabs .nav-link.active {
  background-color: var(--brand-warning);
  color: #1a1a1a;
  border-color: var(--brand-warning);
}

/* ===== Product cards ===== */
.product-card {
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-soft) !important;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong) !important;
}

.product-img {
  height: 180px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.product-card .card-title {
  font-weight: 600;
}

.product-card .btn-add {
  border-radius: 50px;
  transition: transform 0.15s ease;
}

.product-card .btn-add:hover {
  transform: translateY(-1px);
}

.qty-control .qty-value {
  pointer-events: none;
  font-weight: 600;
  opacity: 1 !important;
}

/* ===== Cart ===== */
.cart-item-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  flex-shrink: 0;
}

#cartOffcanvas {
  width: 420px;
  max-width: 100vw;
}

/* ===== Footer ===== */
footer a {
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--brand-warning) !important;
}

.footer-contact li {
  margin-bottom: 0.5rem;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.social-link:hover {
  background-color: var(--brand-warning);
  color: var(--brand-dark) !important;
  transform: translateY(-3px);
}

/* ===== Scrollbar de offcanvas más prolijo ===== */
.offcanvas-body {
  overflow-y: auto;
}

.offcanvas {
  box-shadow: -0.5rem 0 2rem rgba(0, 0, 0, 0.15);
}

/* ===== Botón flotante de WhatsApp ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: var(--brand-whatsapp);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 0.5rem 1.5rem rgba(37, 211, 102, 0.5);
  z-index: 1040;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: whatsapp-pulse 2.4s infinite;
}

.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0.75rem 1.75rem rgba(37, 211, 102, 0.65);
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 576px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }
}
