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

:root {
  /* Color Palette based on new logo colors */
  --primary-dark: #72913f;   /* Herbal Green */
  --primary-light: #cad29f;  /* Soft Sage Green */
  --accent-dark: #eb737a;    /* Coral Red/Rose */
  --accent-light: #fbe6e8;   /* Soft Coral tint */
  
  /* Neutral Colors */
  --bg-light: #f7f9f5;       /* Muted herbal off-white */
  --bg-card: #ffffff;
  --text-main: #232c1b;      /* Dark forest green-black */
  --text-muted: #5e6b54;     /* Muted dark forest green */
  --border-color: rgba(114, 145, 63, 0.15);
  --white: #ffffff;
  
  /* Fonts */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Shadows & Radius */
  --shadow-sm: 0 4px 6px -1px rgba(114, 145, 63, 0.08);
  --shadow-md: 0 10px 15px -3px rgba(114, 145, 63, 0.12), 0 4px 6px -2px rgba(114, 145, 63, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(114, 145, 63, 0.15), 0 10px 10px -5px rgba(114, 145, 63, 0.08);
  --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  
  /* Layout */
  --header-height: 80px;
  --container-width: 1200px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: var(--transition-smooth);
}

/* Glassmorphism Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(249, 251, 248, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(249, 251, 248, 0.95);
  height: 70px;
}

.nav-container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
  position: relative;
  height: 40px;
  min-width: 150px;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.logo span {
  color: var(--accent-dark);
}

header.scrolled .logo {
  opacity: 0;
  transform: scale(0.8) translateX(-30px);
  pointer-events: none;
}

/* Sidebar Hamburger Trigger Button */
.sidebar-trigger {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.6) translateX(-20px);
  position: absolute;
  left: 0;
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s;
}

.sidebar-trigger:hover {
  background-color: rgba(114, 145, 63, 0.1);
  color: var(--accent-dark);
}

header.scrolled .sidebar-trigger {
  opacity: 1;
  transform: scale(1) translateX(0);
  pointer-events: auto;
}

/* Center Navigation Links */
nav {
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

header.scrolled nav {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent-dark);
}

/* Centered Header Brand (Logo + Name) */
.header-center-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
  white-space: nowrap;
}

.header-center-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(114, 145, 63, 0.15));
}

.header-center-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.header-center-subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

header.scrolled .header-center-brand {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cart-icon-btn {
  position: relative;
  font-size: 1.5rem;
  padding: 0.5rem;
  border-radius: 50%;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-icon-btn:hover {
  background-color: rgba(114, 145, 63, 0.15);
  color: var(--accent-dark);
  transform: scale(1.05);
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--accent-dark);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-light);
  box-shadow: var(--shadow-sm);
  animation: pop 0.3s ease-out;
}

/* Hero Section */
.hero {
  padding: calc(var(--header-height) + 1rem) 0 3.5rem 0;
  background: linear-gradient(135deg, rgba(202, 210, 159, 0.2) 0%, var(--bg-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 115, 122, 0.15) 0%, transparent 70%);
  z-index: 0;
}

.hero-container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-content h1 span {
  background: linear-gradient(120deg, var(--text-main) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(123, 176, 116, 0.3);
}

.btn-primary:hover {
  background-color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 44, 30, 0.3);
}

.btn-secondary {
  background-color: var(--accent-light);
  color: var(--text-main);
  box-shadow: 0 4px 14px rgba(251, 165, 187, 0.3);
}

.btn-secondary:hover {
  background-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(176, 116, 131, 0.3);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  width: 100%;
  max-width: 380px;
  height: 380px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
  position: relative;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(114, 145, 63, 0.1);
}

.hero-slideshow {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* rellenar */
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-image-placeholder {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
  padding: 2rem;
  z-index: 2;
}

/* Category Filter Section */
.catalog-section {
  padding: 6rem 0;
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.filter-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-dark);
  color: var(--text-main);
}

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

.product-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-smooth);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(123, 176, 116, 0.4);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--accent-light);
  color: var(--text-main);
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50px;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.product-img-container {
  height: 220px;
  background: linear-gradient(to bottom right, var(--bg-light), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-img-placeholder {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

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

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-price {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.add-cart-btn {
  width: 42px;
  height: 42px;
  background-color: var(--primary-light);
  color: var(--text-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.add-cart-btn:hover {
  background-color: var(--accent-light);
  transform: scale(1.1);
}

/* Shopping Cart Drawer */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: rgba(33, 44, 30, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  height: 100dvh;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cart-overlay.active .cart-drawer {
  right: 0;
}

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

.cart-header h3 {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-close-btn {
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-close-btn:hover {
  background-color: var(--accent-light);
  color: var(--accent-dark);
}

.cart-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-empty-message {
  text-align: center;
  color: var(--text-muted);
  margin-top: 4rem;
  font-size: 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid rgba(123, 176, 116, 0.1);
  padding-bottom: 1rem;
  align-items: center;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  background-color: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  flex-shrink: 0;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.cart-item-price {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
}

.cart-item-qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.qty-val {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 15px;
  text-align: center;
}

.cart-item-remove {
  font-size: 1.1rem;
  color: var(--text-muted);
  padding: 0.5rem;
}

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

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-light);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.cart-total-val {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-dark);
}

.checkout-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Product Detail Page Styles */
.detail-section {
  padding: calc(var(--header-height) + 4rem) 0 6rem 0;
}

.detail-container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.detail-gallery {
  background: linear-gradient(to bottom right, var(--bg-light), var(--primary-light));
  border-radius: var(--radius-lg);
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.detail-gallery-placeholder {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-muted);
}

.detail-info h2 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.detail-category {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
}

.detail-price {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.detail-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.detail-meta {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.detail-meta h4 {
  margin-bottom: 0.75rem;
}

.detail-meta ul {
  list-style-position: inside;
  color: var(--text-muted);
}

.detail-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.3rem;
  background-color: var(--white);
}

.qty-control-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.qty-control-btn:hover {
  background-color: var(--primary-light);
}

.qty-display {
  width: 40px;
  text-align: center;
  font-weight: 600;
}

/* Footer */
footer {
  background-color: var(--text-main);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem 0;
  border-top: 3px solid var(--primary-dark);
}

.footer-container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  margin-bottom: 1.5rem;
}

.footer-links h4, .footer-contact h4 {
  color: var(--white);
  margin-bottom: 1.2rem;
  font-size: 1.15rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

/* Animations */
@keyframes pop {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Responsive design */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content p {
    margin: 0 auto 2.5rem auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image-wrapper {
    margin: 0 auto;
  }
  
  .detail-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .detail-gallery {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Always show sidebar trigger on mobile/vertical layout and align left */
  .sidebar-trigger,
  header.scrolled .sidebar-trigger {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateX(0);
    margin-right: 0.8rem;
  }
  
  .nav-left {
    min-width: auto;
  }
  
  .logo {
    font-size: 1.4rem;
  }
}

/* --- Nuevos Estilos para Logo y Carruseles de Imágenes Reales --- */

.logo-img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 0 10px rgba(114, 145, 63, 0.3);
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.home-page .logo-img {
  opacity: 0;
  transform: scale(0.3);
  pointer-events: none;
}

.home-page header.scrolled .logo-img {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Imagen de Producto en Catálogo */
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  opacity: 0;
  transition: var(--transition-smooth);
}

.product-img.active {
  display: block;
  opacity: 1;
}

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

/* Contenedor del Carrusel en Catálogo */
.product-img-carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slides {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Botones de Navegación del Carrusel en Catálogo */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-light);
  border: 1px solid var(--primary-dark);
  color: var(--text-main);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.carousel-nav-btn:hover {
  background-color: var(--accent-light);
  border-color: var(--accent-dark);
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-md);
  color: var(--text-main);
}

.carousel-nav-btn.prev-btn {
  left: 8px;
}

.carousel-nav-btn.next-btn {
  right: 8px;
}

/* Estilos de la Galería y Carrusel en Detalle del Producto */
.detail-gallery {
  position: relative;
  overflow: hidden;
}

.detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: var(--radius-lg);
}

.detail-img.active {
  display: block;
  opacity: 1;
}

.detail-gallery-carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.detail-carousel-slides {
  width: 100%;
  height: 100%;
}

/* Botones de Navegación del Carrusel en Detalle */
.detail-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-dark);
  border: 1px solid var(--primary-dark);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.detail-carousel-btn:hover {
  background-color: var(--text-main);
  border-color: var(--text-main);
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-md);
}

.detail-carousel-btn.prev-btn {
  left: 16px;
}

.detail-carousel-btn.next-btn {
  right: 16px;
}

/* Miniatura en el Carrito */
.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

/* Custom styles for Hero Logo & Transition */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(114, 145, 63, 0.15));
  transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Scroll-triggered class for the Hero Logo transition */
body.scrolled-past-hero .hero-logo-container {
  opacity: 0;
  transform: scale(0.4) translateY(-80px);
  pointer-events: none;
}

/* Navigation Sidebar Drawer (Left Aligned) */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(35, 44, 27, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background-color: var(--accent-light); /* #fbe6e8 */
  box-shadow: 5px 0 25px rgba(35, 44, 27, 0.15);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sidebar-overlay.active .sidebar {
  left: 0;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(114, 145, 63, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.sidebar-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.sidebar-close-btn {
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.sidebar-close-btn:hover {
  background-color: var(--accent-light);
  color: var(--accent-dark);
}

.sidebar-body {
  flex-grow: 1;
  padding: 2rem 1.5rem;
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-links a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(114, 145, 63, 0.08);
  transition: padding-left 0.3s ease, color 0.3s ease;
}

.sidebar-links a:hover {
  color: var(--accent-dark);
  padding-left: 8px;
}

/* Mobile responsive typography adjustments */
@media (max-width: 768px) {
  .header-center-subtitle {
    display: none !important;
  }
  .header-center-title {
    font-size: 1.2rem !important;
  }
}

/* Hero responsive styling for mobile portrait & landscape viewports */
@media (max-width: 992px) {
  .hero {
    padding: calc(var(--header-height) + 2rem) 0 4rem 0;
  }
  
  .hero-content h1 {
    font-size: 2.6rem;
  }
  
  .hero-logo {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: calc(var(--header-height) + 1.5rem) 0 2.5rem 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
  }
  
  .hero-logo {
    width: 80px;
    height: 80px;
  }
  
  .hero-logo-container {
    margin-bottom: 1.2rem;
  }
  
  .hero-image-wrapper {
    max-width: 260px;
    height: 260px;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 992px) and (orientation: landscape) {
  .hero {
    padding: calc(var(--header-height) + 1rem) 0 2rem 0;
  }
  
  .hero-container {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    text-align: left;
  }
  
  .hero-content {
    align-items: flex-start;
    text-align: left;
  }
  
  .hero-logo-container {
    justify-content: flex-start;
    margin-bottom: 0.8rem;
  }
  
  .hero-logo {
    width: 70px;
    height: 70px;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
    text-align: left;
    line-height: 1.2;
  }
  
  .hero-content p {
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    max-width: 100%;
    text-align: left;
    line-height: 1.5;
  }
  
  .hero-buttons {
    justify-content: flex-start;
    flex-direction: row;
    width: auto;
    gap: 1rem;
  }
  
  .hero-buttons .btn {
    width: auto;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .hero-image-wrapper {
    max-width: 220px;
    height: 220px;
    margin: 0 auto;
  }
}

/* --- Estilos para la Nueva Sección Showcase de Bombillas (Dentro de la categoría) --- */

.bombillas-showcase-container {
  width: 100%;
  margin-bottom: 4rem;
  animation: fadeIn 0.4s ease-out;
}

.bombillas-showcase-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 800px;
}

.bombillas-carousel-wrapper {
  --carousel-gap: 1.5rem;
  --carousel-visible: 3;
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.bombillas-carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.bombillas-showcase-grid {
  display: flex;
  gap: var(--carousel-gap);
  width: 100%;
  transform: translateX(0);
}

.bombillas-showcase-grid.transitioning {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.showcase-card-img-wrapper {
  flex: 0 0 calc((100% - (var(--carousel-visible) - 1) * var(--carousel-gap)) / var(--carousel-visible));
  height: 480px; /* ocupa la mayoria de la mitad superior */
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.showcase-card-img-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(114, 145, 63, 0.35);
}

.showcase-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

/* Botones de Control de Navegación del Carrusel */
.carousel-control-btn {
  background-color: var(--primary-dark);
  border: 1px solid var(--primary-dark);
  color: var(--white);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.carousel-control-btn:hover {
  background-color: var(--text-main);
  border-color: var(--text-main);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-control-btn.prev {
  left: -23px;
}

.carousel-control-btn.next {
  right: -23px;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 2100;
  padding-top: 40px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(35, 44, 27, 0.96); /* Tonalidad del color forest dark green de la marca */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 82vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: var(--white);
  font-size: 2.2rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  cursor: pointer;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--accent-dark); /* Color sólido de acento coral */
  box-shadow: var(--shadow-md);
}

.lightbox-close:hover {
  color: var(--white);
  background-color: var(--primary-dark); /* Color sólido de acento verde */
  transform: rotate(90deg) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Ajustes de responsividad */
@media (max-width: 1200px) {
  .showcase-card-img-wrapper {
    height: 400px;
  }
}

@media (max-width: 992px) {
  .bombillas-carousel-wrapper {
    --carousel-visible: 2;
  }
  
  .showcase-card-img-wrapper {
    height: 380px;
  }
  
  .carousel-control-btn.prev {
    left: 8px;
  }
  
  .carousel-control-btn.next {
    right: 8px;
  }
}

@media (max-width: 768px) {
  .showcase-card-img-wrapper {
    height: 340px;
  }
  
  .lightbox-close {
    top: 15px;
    right: 15px;
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .bombillas-carousel-wrapper {
    --carousel-visible: 1;
    --carousel-gap: 1rem;
  }
  
  .showcase-card-img-wrapper {
    height: 300px;
  }
}

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

/* Botón Flotante de WhatsApp */
.whatsapp-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  z-index: 999;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  visibility: visible;
  opacity: 1;
}

.whatsapp-icon-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #25d366; /* Verde oficial de WhatsApp */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Asegura que la imagen rellene la forma redondeada */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* La imagen cubre toda la superficie del botón */
  transition: transform 0.3s ease;
}

.whatsapp-float-btn:hover .whatsapp-icon-wrapper {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.whatsapp-float-btn:hover .whatsapp-icon-wrapper img {
  transform: scale(1.1);
}

.whatsapp-float-btn.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Mensaje Emergente (Tooltip) de WhatsApp */
.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background-color: var(--accent-dark); /* Color rojo/coral propuesto */
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent var(--accent-dark); /* Color rojo/coral para la flecha */
}

.whatsapp-float-btn:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 480px) {
  .whatsapp-tooltip {
    display: none; /* Se oculta en móviles para no interferir con la pantalla */
  }
}

/* --- Ajustes responsivos para el Carrito --- */

/* Dispositivos con pantallas pequeñas (ancho <= 576px) */
@media (max-width: 576px) {
  .cart-drawer {
    max-width: 100%; /* Toma todo el ancho en móviles pequeños */
  }
  .cart-header,
  .cart-body,
  .cart-footer {
    padding: 1rem; /* Menor padding para dar más espacio horizontal al contenido */
  }
  .cart-item {
    gap: 0.75rem;
  }
  .cart-item-img {
    width: 60px;
    height: 60px; /* Reducción de imagen para optimizar espacio */
  }
  .cart-item-title {
    font-size: 0.9rem;
  }
  .cart-item-price {
    font-size: 0.9rem;
  }
}

/* Dispositivos con baja altura de pantalla (por ejemplo, móviles en formato horizontal) */
@media (max-height: 576px) {
  .cart-header {
    padding: 0.5rem 1rem;
  }
  .cart-header h3 {
    font-size: 1.1rem;
  }
  .cart-close-btn {
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }
  .cart-body {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }
  .cart-item {
    padding-bottom: 0.75rem;
    gap: 0.75rem;
  }
  .cart-item-img {
    width: 50px;
    height: 50px; /* Reducción mayor para horizontal */
  }
  .cart-item-qty-controls {
    margin-top: 0.25rem;
  }
  .cart-footer {
    padding: 0.75rem 1rem;
  }
  .cart-total-row {
    margin-bottom: 0.75rem;
    font-size: 1rem;
  }
  .cart-total-val {
    font-size: 1.25rem;
  }
  .checkout-btn {
    padding: 0.6rem;
    font-size: 0.9rem;
  }
}


