/* ============================
   VARIABLES & RESET
   ============================ */
:root {
  --primary: #c41e3a;
  --primary-dark: #8b0000;
  --secondary: #165b33;
  --secondary-dark: #0d3d22;
  --accent: #d4af37;
  --accent-light: #f4d03f;
  --red: #c41e3a;
  --red-dark: #8b0000;
  --green: #165b33;
  --green-dark: #0d3d22;
  --gold: #d4af37;
  --gold-light: #f4d03f;
  --snow: #fff5f5;
  --dark: #1a0a0a;
  --gray: #6b7280;
  --light-gray: #fef2f2;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(196,30,58,0.15);
  --shadow-hover: 0 8px 30px rgba(196,30,58,0.25);
  --radius: 16px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

img {
  max-width: 100%;
  height: auto;
}

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

/* ============================
   HEADER
   ============================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.header-top {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--green-dark));
  color: var(--white);
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
}

.header-top-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links-header {
  display: flex;
  gap: 10px;
}

.social-link-header {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link-header:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.social-link-header.facebook {
  background: #1877F2;
}

.social-link-header.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link-header.tiktok {
  background: #000000;
}

.social-link-header.youtube {
  background: #FF0000;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-weight: 600;
  font-size: 15px;
  position: relative;
  padding: 8px 0;
  transition: var(--transition);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  border-radius: 2px;
  transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-action-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--light-gray);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.nav-action-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

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

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

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================
   HERO SLIDER
   ============================ */
.hero {
  margin-top: 110px;
  position: relative;
  overflow: hidden;
  height: 500px;
}

.hero-slider {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-color: var(--primary-dark);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
}

/* Slides use background images from HTML */

.hero-content {
  width: 100%;
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  justify-content: flex-end;
  z-index: 5;
}

.hero-text {
  max-width: 550px;
  color: var(--white);
}

/* Hero text styles removed - only button used */

/* ============================
   PRODUCT SHOWCASE (Below Slider)
   ============================ */
.product-showcase {
  padding: 40px 0;
  background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.showcase-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: var(--transition);
  cursor: pointer;
}

.showcase-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(196,30,58,0.2);
}

.showcase-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.showcase-item .showcase-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 20px;
  color: white;
}

.showcase-item .showcase-overlay h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.showcase-item .showcase-overlay span {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
}

@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

.hero-btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(22,91,51,0.5);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  animation: flashBtn 2s ease-in-out infinite;
}

.hero-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  animation: flashSweep 3s ease-in-out infinite;
}

.hero-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.3);
  animation: flashBorder 1.5s ease-in-out infinite;
}

.hero-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 25px rgba(22,91,51,0.7);
  background: var(--green-dark);
  animation: none;
}

@keyframes flashBtn {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(22,91,51,0.5);
  }
  25% {
    box-shadow: 0 4px 25px rgba(22,91,51,0.8), 0 0 40px rgba(212,175,55,0.3);
  }
  50% {
    box-shadow: 0 4px 15px rgba(22,91,51,0.5);
  }
  75% {
    box-shadow: 0 4px 30px rgba(22,91,51,0.9), 0 0 50px rgba(212,175,55,0.4);
  }
}

@keyframes flashSweep {
  0% { left: -60%; }
  30%, 100% { left: 150%; }
}

@keyframes flashBorder {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; border-color: var(--gold); }
}

.hero-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 25px rgba(196,30,58,0.6);
  animation: none;
  background: var(--primary-dark);
}

@keyframes bounceBtn {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(196,30,58,0.5);
  }
  50% {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(196,30,58,0.7);
  }
}

.hero-image {
  display: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 12px;
  z-index: 10;
}

.hero-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.hero-dot.active {
  background: var(--white);
  transform: scale(1.2);
  border-color: var(--white);
}

.hero-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
  pointer-events: none;
}

.hero-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  pointer-events: all;
}

.hero-arrow:hover {
  background: var(--white);
  color: var(--dark);
}

/* ============================
   SECTION TITLES
   ============================ */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p {
  color: var(--gray);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto;
}

/* ============================
   CATEGORIES
   ============================ */
.categories {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  group: true;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  z-index: 1;
  transition: var(--transition);
}

.category-card:hover::before {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%);
}

.category-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  transition: var(--transition);
}

.category-card:nth-child(1) .category-bg { background: linear-gradient(135deg, #c41e3a, #8b0000); }
.category-card:nth-child(2) .category-bg { background: linear-gradient(135deg, #165b33, #0d3d22); }
.category-card:nth-child(3) .category-bg { background: linear-gradient(135deg, #d4af37, #b8860b); }
.category-card:nth-child(4) .category-bg { background: linear-gradient(135deg, #c41e3a, #165b33); }
.category-card:nth-child(5) .category-bg { background: linear-gradient(135deg, #8b0000, #d4af37); }

.category-card:hover .category-bg {
  transform: scale(1.1);
}

.category-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
  color: var(--white);
}

.category-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.category-info span {
  font-size: 14px;
  opacity: 0.8;
}

/* ============================
   PRODUCTS
   ============================ */
.products {
  padding: 80px 0;
  background: var(--light-gray);
  position: relative;
  overflow: hidden;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.product-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-new {
  background: var(--green);
  color: var(--white);
}

.badge-sale {
  background: var(--primary);
  color: var(--white);
}

.badge-hot {
  background: var(--orange);
  color: var(--white);
}

.product-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(20px);
  transition: var(--transition);
  z-index: 5;
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(0);
}

.product-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.product-action-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.product-action-btn.wishlisted {
  background: var(--primary);
  color: var(--white);
}

.product-image {
  position: relative;
  height: 260px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-gray);
  transition: var(--transition);
}

/* Product images use actual images */

.product-card:hover .product-image {
  transform: scale(1.02);
}

.product-quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.product-card:hover .product-quick-add {
  opacity: 1;
  transform: translateY(0);
}

.quick-add-btn {
  width: 100%;
  padding: 12px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.quick-add-btn:hover {
  filter: brightness(1.1);
}

.product-info {
  padding: 20px;
}

.product-category {
  font-size: 12px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 6px;
}

.product-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.product-name a:hover {
  color: var(--primary);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.stars {
  color: #fbbf24;
  font-size: 14px;
  letter-spacing: 2px;
}

.rating-count {
  font-size: 12px;
  color: var(--gray);
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
}

.current-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.original-price {
  font-size: 14px;
  color: var(--gray);
  text-decoration: line-through;
}

/* ============================
   PROMO BANNER
   ============================ */
.promo-banner {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.promo-card {
  border-radius: var(--radius);
  padding: 50px 40px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Promo card with image */
.promo-card-with-image {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
}

.promo-card-with-image .promo-card-content {
  flex: 1;
  padding: 40px;
}

.promo-card-with-image .promo-card-image {
  width: 200px;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.promo-card-with-image .promo-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-card:nth-child(1) {
  background: linear-gradient(135deg, #c41e3a, #8b0000);
  color: var(--white);
}

.promo-card:nth-child(2) {
  background: linear-gradient(135deg, #165b33, #0d3d22);
  color: var(--white);
}

.promo-emoji {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 120px;
  opacity: 0.3;
}

.promo-tag {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.promo-card h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.promo-card p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 350px;
}

.promo-btn {
  display: inline-block;
  background: var(--white);
  color: var(--dark);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
  width: fit-content;
}

.promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ============================
   FEATURES
   ============================ */
.features {
  padding: 60px 0;
  background: var(--dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 13px;
  opacity: 0.7;
}

/* ============================
   NEWSLETTER
   ============================ */
.newsletter {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #c41e3a 0%, #165b33 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.newsletter h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.newsletter p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 16px 24px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  outline: none;
}

.newsletter-form button {
  padding: 16px 32px;
  border: none;
  background: var(--gold);
  color: var(--dark);
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--accent-light);
  transform: scale(1.05);
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.social-links-footer {
  display: flex;
  gap: 16px;
}

.social-link-footer {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link-footer:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.social-link-footer.facebook {
  background: #1877F2;
}

.social-link-footer.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link-footer.tiktok {
  background: #000000;
}

.social-link-footer.youtube {
  background: #FF0000;
}

.footer-col h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--gold);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(212,175,55,0.2);
  padding-top: 30px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  padding-right: 100px;
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

.payment-methods {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pay-logo {
  height: 32px;
  object-fit: contain;
  transition: var(--transition);
}

.pay-logo:hover {
  transform: scale(1.1);
}

/* ============================
   CART SIDEBAR
   ============================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100%;
  background: var(--white);
  z-index: 2001;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 30px rgba(0,0,0,0.2);
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 20px;
  font-weight: 700;
}

.cart-close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--light-gray);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-close:hover {
  background: var(--primary);
  color: var(--white);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}

.cart-empty .empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--light-gray);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.cart-item-price {
  color: var(--primary);
  font-weight: 700;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--light-gray);
  background: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.cart-item-remove {
  color: var(--gray);
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
  align-self: flex-start;
}

.cart-item-remove:hover {
  color: var(--primary);
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--light-gray);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
}

.cart-checkout {
  width: 100%;
  padding: 16px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.cart-checkout:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* ============================
   MOBILE MENU
   ============================ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 300px;
  height: 100%;
  background: var(--white);
  z-index: 2001;
  transition: var(--transition);
  padding: 24px;
  box-shadow: 5px 0 30px rgba(0,0,0,0.2);
}

.mobile-menu.open {
  left: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav a {
  padding: 14px 16px;
  font-weight: 600;
  font-size: 16px;
  border-radius: 10px;
  transition: var(--transition);
}

.mobile-nav a:hover {
  background: var(--light-gray);
  color: var(--primary);
}

/* ============================
   SCROLL TO TOP
   ============================ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(196,30,58,0.4);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 100;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-4px);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    display: none;
  }

  .hero {
    height: 450px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-image {
    font-size: 100px;
  }

  .hero-slide:nth-child(1),
  .hero-slide:nth-child(2),
  .hero-slide:nth-child(3) {
    align-items: center;
    justify-content: center;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }

  .promo-card-with-image {
    flex-direction: column;
  }

  .promo-card-with-image .promo-card-image {
    width: 100%;
    height: 200px;
    min-height: auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .hero-image {
    display: none;
  }

  .cart-sidebar {
    width: 100%;
    right: -100%;
  }
}

/* ============================
   SNOWFALL ANIMATION
   ============================ */
.snowflakes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: #fff;
  font-size: 1em;
  text-shadow: 0 0 5px rgba(255,255,255,0.7);
  animation: fall linear infinite;
  opacity: 0.8;
}

@keyframes fall {
  to {
    transform: translateY(105vh) rotate(360deg);
  }
}

.snowflake:nth-child(1) { left: 5%; animation-duration: 10s; animation-delay: 0s; font-size: 0.8em; }
.snowflake:nth-child(2) { left: 15%; animation-duration: 12s; animation-delay: 1s; font-size: 1.2em; }
.snowflake:nth-child(3) { left: 25%; animation-duration: 8s; animation-delay: 2s; font-size: 0.6em; }
.snowflake:nth-child(4) { left: 35%; animation-duration: 14s; animation-delay: 0.5s; font-size: 1em; }
.snowflake:nth-child(5) { left: 45%; animation-duration: 11s; animation-delay: 3s; font-size: 1.4em; }
.snowflake:nth-child(6) { left: 55%; animation-duration: 9s; animation-delay: 1.5s; font-size: 0.7em; }
.snowflake:nth-child(7) { left: 65%; animation-duration: 13s; animation-delay: 2.5s; font-size: 1.1em; }
.snowflake:nth-child(8) { left: 75%; animation-duration: 10s; animation-delay: 4s; font-size: 0.9em; }
.snowflake:nth-child(9) { left: 85%; animation-duration: 15s; animation-delay: 0.8s; font-size: 1.3em; }
.snowflake:nth-child(10) { left: 95%; animation-duration: 11s; animation-delay: 3.5s; font-size: 0.5em; }

/* ============================
   FESTIVE BADGE GLOW
   ============================ */
.badge-sale {
  background: var(--primary);
  color: var(--white);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { box-shadow: 0 0 5px var(--primary); }
  to { box-shadow: 0 0 20px var(--primary), 0 0 30px var(--gold); }
}

/* ============================
   PRODUCT CARD CHRISTMAS BORDER
   ============================ */
.product-card {
  border: 2px solid transparent;
  transition: var(--transition);
}

.product-card:hover {
  border-color: var(--gold);
}

/* ============================
   CACHAQUITO MASCOT
   ============================ */

/* Footer - asomándose desde la derecha, arriba del botón de WhatsApp */
.mascot-footer {
  position: fixed;
  right: 10px;
  bottom: 150px;
  width: 180px;
  z-index: 998;
  filter: drop-shadow(0 4px 15px rgba(0,0,0,0.3));
  animation: peekFromRight 3s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% {
    transform: rotate(0deg);
  }
  15% {
    transform: rotate(-8deg);
  }
  30% {
    transform: rotate(0deg);
  }
  45% {
    transform: rotate(8deg);
  }
  60% {
    transform: rotate(0deg);
  }
}

@keyframes peekFromRight {
  0%, 100% {
    transform: translateX(0) rotate(0deg);
  }
  30% {
    transform: translateX(-20px) rotate(-3deg);
  }
  60% {
    transform: translateX(-10px) rotate(2deg);
  }
}

/* ============================
   FLOATING BUTTONS
   ============================ */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: var(--transition);
}

.floating-btn:hover {
  transform: scale(1.1);
}

.whatsapp-btn {
  background: #25d366;
}

.whatsapp-btn:hover {
  background: #20ba5a;
}

.chatbot-btn {
  background: var(--primary);
}

.chatbot-btn:hover {
  background: var(--primary-dark);
}

/* ============================
   CHATBOT WIDGET
   ============================ */
.chatbot-widget {
  position: fixed;
  bottom: 160px;
  right: 30px;
  width: 320px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  z-index: 1000;
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.chatbot-widget.open {
  display: flex;
  animation: slideUp 0.3s ease;
}

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

.chatbot-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

.chatbot-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
}

.chatbot-messages {
  flex: 1;
  padding: 16px;
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chatbot-message {
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 85%;
  font-size: 14px;
  line-height: 1.4;
}

.chatbot-message.bot {
  background: var(--light-gray);
  color: var(--dark);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chatbot-message.user {
  background: var(--primary);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chatbot-input {
  display: flex;
  padding: 12px;
  gap: 8px;
  border-top: 1px solid var(--light-gray);
}

.chatbot-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--light-gray);
  border-radius: 20px;
  font-size: 14px;
  outline: none;
}

.chatbot-input input:focus {
  border-color: var(--primary);
}

.chatbot-input button {
  padding: 10px 20px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.chatbot-input button:hover {
  background: var(--primary-dark);
}

@media (max-width: 480px) {
  .floating-buttons {
    bottom: 20px;
    right: 20px;
  }

  .chatbot-widget {
    right: 10px;
    left: 10px;
    width: auto;
    bottom: 140px;
  }
}
