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

/* ===== VARIABLES CSS ===== */
:root {
  --header-height: 3.5rem;

  /* ===== Colors ===== */
  /* Mas Vida Color Palette */
  --green-vitality: #1E4620;
  --green-leaf: #4C8C6C;
  --white-color: #FFFFFF;
  --soft-gray: #F2F2F2;
  --natural-beige: #F5EFE6;
  --text-dark: #2C3E50;
  --text-light: #7F8C8D;
  --accent-green: #27AE60;
  --shadow-color: rgba(30, 70, 32, 0.1);
  --gradient-primary: linear-gradient(135deg, var(--green-vitality) 0%, var(--green-leaf) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--accent-green) 0%, var(--green-leaf) 100%);

  /* ===== Font and Typography ===== */
  --body-font: 'Montserrat', sans-serif;
  --biggest-font-size: 3rem;
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.813rem;

  /* ===== Font Weight ===== */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  --font-extra-bold: 800;

  /* ===== Margins Bottom ===== */
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-25: 1.25rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  /* ===== Z Index ===== */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;

  /* ===== Transitions ===== */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media screen and (max-width: 992px) {
  :root {
    --biggest-font-size: 2.25rem;
    --h1-font-size: 1.75rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.75rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--white-color);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: var(--text-dark);
  font-weight: var(--font-semi-bold);
  line-height: 1.2;
}

ul {
  list-style: none;
}

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

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

button {
  cursor: pointer;
  border: none;
  outline: none;
}

/* ===== REUSABLE CSS CLASSES ===== */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.grid {
  display: grid;
}

.section {
  padding: 5rem 0 2rem;
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-0-75);
  color: var(--accent-green);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section__title {
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-3);
  font-weight: var(--font-bold);
  text-align: center;
}

.accent-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-primary);
  color: var(--white-color);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: var(--font-medium);
  transition: var(--transition-fast);
  box-shadow: 0 8px 24px var(--shadow-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: var(--small-font-size);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--shadow-color);
}

.button-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--green-vitality);
  padding: 1rem 2rem;
  border: 2px solid var(--green-vitality);
  border-radius: 50px;
  font-weight: var(--font-medium);
  transition: var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: var(--small-font-size);
}

.button-outline:hover {
  background: var(--green-vitality);
  color: var(--white-color);
  transform: translateY(-2px);
}

/* ===== HEADER & NAV ===== */
.header {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: var(--transition-fast);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 70, 32, 0.1);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--green-vitality);
  font-weight: var(--font-bold);
  font-size: var(--h3-font-size);
}

.nav__logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav__list {
  display: flex;
  column-gap: 2rem;
}

.nav__link {
  color: var(--text-dark);
  font-weight: var(--font-medium);
  transition: var(--transition-fast);
  position: relative;
  font-size: var(--small-font-size);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--accent-green);
}

.nav__link.active-link::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.nav__toggle,
.nav__close {
  display: none;
}

/* ===== HOME ===== */
.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--natural-beige) 0%, var(--soft-gray) 100%);
  position: relative;
  overflow: hidden;
}

.home__container {
  row-gap: 3rem;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  padding-top: var(--header-height);
}

.home__data-subtitle {
  font-size: var(--small-font-size);
  color: var(--accent-green);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-75);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.home__data-title {
  font-size: var(--biggest-font-size);
  font-weight: var(--font-extra-bold);
  margin-bottom: var(--mb-1-5);
  line-height: 1.1;
}

.home__data-description {
  margin-bottom: var(--mb-2-5);
  color: var(--text-light);
  font-size: var(--normal-font-size);
  max-width: 480px;
}

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

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

.home__img {
  width: 400px;
  height: 400px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><linearGradient id="leaf" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%234C8C6C"/><stop offset="100%" style="stop-color:%231E4620"/></linearGradient></defs><path d="M200 50 C250 50, 350 100, 350 200 C350 300, 250 350, 200 350 C150 350, 50 300, 50 200 C50 100, 150 50, 200 50 Z" fill="url(%23leaf)" opacity="0.8"/><circle cx="200" cy="200" r="120" fill="white" opacity="0.9"/><text x="200" y="180" text-anchor="middle" font-family="Arial" font-size="16" fill="%231E4620" font-weight="bold">HIERBAS</text><text x="200" y="200" text-anchor="middle" font-family="Arial" font-size="16" fill="%231E4620" font-weight="bold">AROMÁTICAS</text><text x="200" y="220" text-anchor="middle" font-family="Arial" font-size="14" fill="%234C8C6C">FRESCAS</text></svg>') center/cover;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 20px 40px var(--shadow-color);
  animation: float 6s ease-in-out infinite;
}

.home__img-overlay {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: var(--white-color);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  box-shadow: 0 8px 24px var(--shadow-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Floating Cards */
.floating-cards {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  background: var(--white-color);
  padding: 1rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  color: var(--green-vitality);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(76, 140, 108, 0.2);
}

.floating-card i {
  color: var(--accent-green);
  font-size: 1.2rem;
}

.card-1 {
  top: 20%;
  left: 10%;
  animation: float 4s ease-in-out infinite;
}

.card-2 {
  top: 60%;
  right: 10%;
  animation: float 5s ease-in-out infinite reverse;
}

.card-3 {
  bottom: 20%;
  left: 15%;
  animation: float 6s ease-in-out infinite;
}

/* ===== ABOUT ===== */
.about__container {
  row-gap: 3rem;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}

.about__description {
  margin-bottom: var(--mb-2);
  color: var(--text-light);
  font-size: var(--normal-font-size);
}

.about__features {
  display: grid;
  gap: 1rem;
}

.about__feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dark);
  font-weight: var(--font-medium);
}

.about__feature i {
  color: var(--accent-green);
  font-size: 1.2rem;
}

.about__img {
  width: 400px;
  height: 400px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><linearGradient id="hands" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%234C8C6C"/><stop offset="100%" style="stop-color:%231E4620"/></linearGradient></defs><rect width="400" height="400" fill="url(%23hands)" opacity="0.1" rx="20"/><circle cx="200" cy="200" r="100" fill="white" opacity="0.9"/><path d="M150 180 Q200 150, 250 180 Q200 210, 150 180" fill="%231E4620" opacity="0.8"/><text x="200" y="250" text-anchor="middle" font-family="Arial" font-size="14" fill="%231E4620" font-weight="bold">CUIDADO</text><text x="200" y="270" text-anchor="middle" font-family="Arial" font-size="14" fill="%231E4620" font-weight="bold">ARTESANAL</text></svg>') center/cover;
  border-radius: 20px;
  position: relative;
  justify-self: center;
  box-shadow: 0 20px 40px var(--shadow-color);
}

.about__img-overlay {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-secondary);
  color: var(--white-color);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  box-shadow: 0 8px 24px var(--shadow-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== PRODUCTS ===== */
.products {
  background-color: var(--soft-gray);
}

.products__container {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.products__card {
  background-color: var(--white-color);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  transition: var(--transition-medium);
  box-shadow: 0 10px 30px var(--shadow-color);
  border: 1px solid rgba(76, 140, 108, 0.1);
}

.products__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-color);
}

.products__img {
  margin-bottom: var(--mb-1-5);
}

.products__icon {
  font-size: 3rem;
  color: var(--accent-green);
  margin-bottom: var(--mb-1);
}

.products__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
  color: var(--green-vitality);
  font-weight: var(--font-bold);
}

.products__description {
  color: var(--text-light);
  margin-bottom: var(--mb-1-5);
  line-height: 1.6;
}

.products__features {
  display: grid;
  gap: 0.5rem;
  text-align: left;
}

.products__feature {
  color: var(--text-dark);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
}

/* ===== CATALOG ===== */
.catalog {
  background-color: var(--white-color);
}

.search-container {
  max-width: 600px;
  margin: 0 auto 3rem;
  text-align: center;
}

.search-box {
  margin-bottom: 1rem;
}

.search-stats {
  color: var(--text-light);
  font-size: var(--small-font-size);
}

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

/* ===== CATALOG LAYOUT ===== */
.search-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.view-controls {
  display: flex;
  gap: 0.5rem;
  background: var(--soft-gray);
  padding: 0.25rem;
  border-radius: 25px;
}

.view-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  border-radius: 20px;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 1rem;
}

.view-btn.active,
.view-btn:hover {
  background: var(--accent-green);
  color: var(--white-color);
}

/* ===== CATALOG LAYOUT ===== */
.hits-container {
  display: grid;
  gap: 2rem;
  margin: 2rem auto 3rem auto;
  max-width: 1200px;
  padding: 0 1rem;
  min-height: 400px;
  list-style: none;
  counter-reset: none;
}

/* Eliminar numeración de Algolia */
.hits-list,
.hit-item {
  list-style: none !important;
  counter-reset: none !important;
}

.hits-list::before,
.hit-item::before {
  display: none !important;
  content: none !important;
}

/* Asegurar que no hay numeración automática en ningún lado */
#hits, #hits * {
  list-style: none !important;
  counter-reset: none !important;
}

#hits::before, #hits *::before {
  display: none !important;
  content: none !important;
}

/* Forzar grid layout en el contenedor principal */
#hits {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#hits.grid-view {
  display: block !important;
}

#hits.list-view {
  display: block !important;
}

/* Reglas super específicas para sobrescribir Algolia */
.hits-container#hits {
  display: block !important;
  width: 100% !important;
}

/* Asegurar que los elementos hijos no interfieran */
#hits > * {
  display: block !important;
  width: 100% !important;
}

#hits .ais-Hits {
  display: block !important;
  width: 100% !important;
}

/* ===== ALGOLIA GRID LAYOUT - REFACTORIZADO ===== */
/* Contenedor principal del catálogo */
#hits {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 2rem !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 2rem auto !important;
  padding: 0 1rem !important;
  list-style: none !important;
  counter-reset: none !important;
  box-sizing: border-box !important;
}

/* Contenedores internos de Algolia */
#hits .ais-Hits,
#hits .ais-Hits-list {
  display: contents !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Items individuales */
.ais-Hits-item {
  display: block !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ais-Hits-item::before {
  display: none !important;
  content: none !important;
}

/* Vista Lista */
#hits.list-view {
  grid-template-columns: 1fr !important;
  gap: 1.5rem !important;
  max-width: 900px !important;
}


/* Vista Lista (override para contenedor antiguo) */
.hits-container.list-view {
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 900px;
}

/* ===== CATALOG ITEM (Grid View) ===== */
.catalog-item {
  background: var(--white-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px var(--shadow-color);
  transition: var(--transition-medium);
  border: 1px solid rgba(76, 140, 108, 0.1);
  display: flex;
  flex-direction: column;
  height: 520px;
  max-height: 520px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.catalog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--shadow-color);
}

/* ===== ITEM IMAGE ===== */
.item-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--soft-gray);
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.catalog-item:hover .item-image img {
  transform: scale(1.05);
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-weight: var(--font-bold);
}

.image-placeholder i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.image-placeholder span {
  font-size: var(--small-font-size);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== STOCK BADGE ===== */
.stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  backdrop-filter: blur(10px);
}

.stock-badge.in-stock {
  background: rgba(39, 174, 96, 0.95);
  color: var(--white-color);
}

.stock-badge.limited {
  background: rgba(255, 193, 7, 0.95);
  color: var(--white-color);
}

/* ===== ITEM CONTENT ===== */
.item-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.item-category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-green);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.item-category i {
  font-size: 1rem;
}

.item-title {
  font-size: var(--h3-font-size);
  color: var(--green-vitality);
  font-weight: var(--font-bold);
  line-height: 1.3;
  margin: 0;
}

.item-description {
  color: var(--text-light);
  font-size: var(--small-font-size);
  line-height: 1.4;
  margin: 0;
  height: 40px;
  max-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== ITEM META ===== */
.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.freshness-tag,
.stock-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
}

.freshness-tag {
  color: var(--accent-green);
  background: rgba(39, 174, 96, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
}

.stock-info {
  color: var(--green-vitality);
}

.freshness-tag i,
.stock-info i {
  font-size: 0.9rem;
}

/* ===== PRICE SECTION ===== */
.price-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.5rem 0;
}

.price {
  font-size: var(--h3-font-size);
  color: var(--accent-green);
  font-weight: var(--font-bold);
}

.price-consult {
  font-size: var(--normal-font-size);
  color: var(--green-vitality);
  font-weight: var(--font-medium);
  font-style: italic;
}

.sku {
  font-size: var(--smaller-font-size);
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== QUANTITY SECTION ===== */
.quantity-section {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--soft-gray);
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--soft-gray);
  border-radius: 25px;
  padding: 0.25rem;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: var(--white-color);
  color: var(--green-vitality);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  font-size: 0.8rem;
  font-weight: var(--font-bold);
  box-shadow: 0 2px 8px rgba(30, 70, 32, 0.1);
}

.qty-btn:hover {
  background: var(--accent-green);
  color: var(--white-color);
  transform: scale(1.1);
}

.qty-btn.minus:hover {
  background: #FF6B6B;
}

.qty-input {
  width: 45px;
  height: 30px;
  border: none;
  background: var(--white-color);
  text-align: center;
  font-weight: var(--font-bold);
  color: var(--green-vitality);
  border-radius: 8px;
  font-size: var(--small-font-size);
  outline: none;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input:focus {
  box-shadow: 0 0 0 2px var(--accent-green);
}

.add-btn {
  background: var(--gradient-primary);
  color: var(--white-color);
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: var(--smaller-font-size);
  box-shadow: 0 5px 15px var(--shadow-color);
  flex: 1;
  justify-content: center;
}

.add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow-color);
}

.add-btn:active {
  transform: translateY(0);
}

/* ===== ADD TO CART BUTTON ===== */
.add-to-cart-btn {
  background: var(--gradient-primary);
  color: var(--white-color);
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: var(--smaller-font-size);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow-color);
}

.add-to-cart-btn:active {
  transform: translateY(0);
}

/* ===== QUANTITY CONTROLS ===== */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--soft-gray);
  border-radius: 25px;
  padding: 0.25rem;
  width: fit-content;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--white-color);
  color: var(--green-vitality);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  font-size: 0.875rem;
  font-weight: var(--font-bold);
  box-shadow: 0 2px 8px rgba(30, 70, 32, 0.1);
}

.quantity-btn:hover {
  background: var(--accent-green);
  color: var(--white-color);
  transform: scale(1.1);
}

.quantity-btn:active {
  transform: scale(0.95);
}

.quantity-btn.minus:hover {
  background: #FF6B6B;
}

.quantity-input {
  width: 50px;
  height: 32px;
  border: none;
  background: var(--white-color);
  text-align: center;
  font-weight: var(--font-bold);
  color: var(--green-vitality);
  border-radius: 8px;
  font-size: var(--small-font-size);
  outline: none;
  -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-input:focus {
  box-shadow: 0 0 0 2px var(--accent-green);
}

/* ===== LIST VIEW MODIFICATIONS ===== */
.hits-container.list-view .catalog-item {
  flex-direction: row;
  align-items: stretch;
  min-height: 200px;
  max-height: 220px;
}

.hits-container.list-view .item-image {
  width: 220px;
  min-width: 220px;
  height: auto;
  flex-shrink: 0;
  border-radius: 20px 0 0 20px;
}

.hits-container.list-view .item-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hits-container.list-view .item-title {
  font-size: var(--h2-font-size);
  margin-bottom: 0.5rem;
}

.hits-container.list-view .item-description {
  -webkit-line-clamp: 2;
  margin-bottom: 0.75rem;
  flex: 1;
}

.hits-container.list-view .item-meta {
  flex-wrap: nowrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.hits-container.list-view .freshness-tag {
  white-space: nowrap;
}

.hits-container.list-view .stock-info {
  white-space: nowrap;
}

.hits-container.list-view .price-section {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.hits-container.list-view .quantity-section {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 1rem;
}

.hits-container.list-view .quantity-controls {
  flex-shrink: 0;
}

.hits-container.list-view .add-btn {
  flex: 0 0 auto;
  min-width: 120px;
  padding: 0.6rem 1rem;
  font-size: var(--smaller-font-size);
}

.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* ===== ALGOLIA HIGHLIGHT STYLES ===== */
mark {
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.2) 0%, rgba(76, 140, 108, 0.2) 100%);
  color: var(--green-vitality);
  font-weight: var(--font-bold);
  padding: 0.1rem 0.2rem;
  border-radius: 3px;
  border: 1px solid rgba(39, 174, 96, 0.3);
}

/* ===== IMPROVED BUTTON STATES ===== */
.qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--soft-gray);
  color: var(--text-light);
}

.qty-btn:disabled:hover {
  transform: none;
  background: var(--soft-gray);
  color: var(--text-light);
}

.add-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--soft-gray);
  color: var(--text-light);
}

.add-btn:disabled:hover {
  transform: none;
  box-shadow: none;
  background: var(--soft-gray);
  color: var(--text-light);
}

/* ===== LOADING STATES ===== */
.catalog-item.loading {
  opacity: 0.7;
  pointer-events: none;
}

.catalog-item.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 20px;
}

/* ===== ENHANCED STOCK BADGES ===== */
.stock-badge.out-of-stock {
  background: rgba(255, 107, 107, 0.95);
  color: var(--white-color);
}

.catalog-item.out-of-stock {
  opacity: 0.8;
}

.catalog-item.out-of-stock .add-btn {
  background: var(--soft-gray);
  color: var(--text-light);
  cursor: not-allowed;
}

.catalog-item.out-of-stock .add-btn:hover {
  transform: none;
  box-shadow: none;
}

/* ===== QUANTITY INPUT IMPROVEMENTS ===== */
.qty-input:invalid {
  border: 2px solid #FF6B6B;
  background: rgba(255, 107, 107, 0.1);
}

.qty-input:valid {
  border: 1px solid var(--soft-gray);
}

/* Algolia Search Styles */
.ais-SearchBox-form {
  display: flex;
  position: relative;
}

.ais-SearchBox-input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid var(--green-leaf);
  border-radius: 50px;
  font-size: var(--normal-font-size);
  outline: none;
  transition: var(--transition-fast);
}

.ais-SearchBox-input:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.ais-SearchBox-submit,
.ais-SearchBox-reset {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--green-vitality);
  cursor: pointer;
  font-size: 1.2rem;
}

.ais-RefinementList {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.ais-RefinementList-item {
  background: var(--soft-gray);
  border-radius: 25px;
  padding: 0.5rem 1rem;
  transition: var(--transition-fast);
}

.ais-RefinementList-checkbox {
  margin-right: 0.5rem;
}

.ais-RefinementList-item:hover,
.ais-RefinementList-item--selected {
  background: var(--accent-green);
  color: var(--white-color);
}

.ais-Pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem auto;
  flex-wrap: wrap;
  max-width: 100%;
}

.ais-Pagination-item {
  border-radius: 10px;
  overflow: hidden;
}

.ais-Pagination-link {
  padding: 0.75rem 1rem;
  background: var(--white-color);
  color: var(--text-dark);
  transition: var(--transition-fast);
  border-radius: 10px;
  font-weight: var(--font-medium);
  border: 2px solid var(--soft-gray);
  min-width: 44px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(30, 70, 32, 0.1);
}

.ais-Pagination-link:hover {
  background: var(--accent-green);
  color: var(--white-color);
  border-color: var(--accent-green);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.ais-Pagination-item--selected .ais-Pagination-link {
  background: var(--green-vitality);
  color: var(--white-color);
  border-color: var(--green-vitality);
  box-shadow: 0 5px 15px rgba(30, 70, 32, 0.3);
}

.ais-Pagination-item--disabled .ais-Pagination-link {
  background: var(--soft-gray);
  color: var(--text-light);
  cursor: not-allowed;
  opacity: 0.5;
}

.ais-Pagination-item--disabled .ais-Pagination-link:hover {
  transform: none;
  background: var(--soft-gray);
  color: var(--text-light);
  border-color: var(--soft-gray);
}

/* ===== CONTACT ===== */
.contact {
  background-color: var(--natural-beige);
}

.contact__container {
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

.contact__title {
  font-size: var(--h2-font-size);
  color: var(--green-vitality);
  margin-bottom: var(--mb-1);
  font-weight: var(--font-bold);
}

.contact__description {
  color: var(--text-light);
  margin-bottom: var(--mb-2);
  line-height: 1.6;
}

.contact__info {
  display: grid;
  gap: 1.5rem;
}

.contact__info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact__info-item i {
  font-size: 1.5rem;
  color: var(--accent-green);
  background: var(--white-color);
  padding: 0.75rem;
  border-radius: 50%;
  box-shadow: 0 5px 15px var(--shadow-color);
}

.contact__info-item h4 {
  font-size: var(--normal-font-size);
  color: var(--green-vitality);
  margin-bottom: 0.25rem;
  font-weight: var(--font-bold);
}

.contact__info-item span {
  color: var(--text-light);
  font-size: var(--small-font-size);
}

.contact__form-container {
  background: var(--white-color);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px var(--shadow-color);
}

.contact__form {
  display: grid;
  gap: 1.5rem;
}

.contact__form-group {
  position: relative;
}

.contact__form-input,
.contact__form-textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid var(--soft-gray);
  border-radius: 15px;
  font-size: var(--normal-font-size);
  font-family: var(--body-font);
  outline: none;
  transition: var(--transition-fast);
  background: var(--white-color);
}

.contact__form-input:focus,
.contact__form-textarea:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.contact__form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== WHATSAPP ACTION CONTAINER ===== */
.whatsapp-action-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.whatsapp-card {
  background: var(--white-color);
  padding: 3rem 2rem;
  border-radius: 25px;
  box-shadow: 0 20px 40px var(--shadow-color);
  text-align: center;
  max-width: 450px;
  width: 100%;
  border: 2px solid rgba(39, 174, 96, 0.1);
  position: relative;
  overflow: hidden;
}

.whatsapp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.whatsapp-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 30px rgba(39, 174, 96, 0.3);
}

.whatsapp-icon i {
  font-size: 2.5rem;
  color: var(--white-color);
}

.whatsapp-title {
  font-size: var(--h2-font-size);
  color: var(--green-vitality);
  margin-bottom: 1rem;
  font-weight: var(--font-bold);
}

.whatsapp-description {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
  font-size: var(--normal-font-size);
}

.whatsapp-benefits {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(39, 174, 96, 0.05);
  border-radius: 15px;
  border-left: 4px solid var(--accent-green);
}

.benefit-item i {
  color: var(--accent-green);
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.benefit-item span {
  color: var(--green-vitality);
  font-weight: var(--font-medium);
  font-size: var(--small-font-size);
}

.whatsapp-btn {
  background: #25D366;
  color: var(--white-color);
  border: none;
  padding: 1.25rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: var(--normal-font-size);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.whatsapp-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.whatsapp-btn:hover::before {
  left: 100%;
}

.whatsapp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
  background: #22c55e;
}

.whatsapp-btn:active {
  transform: translateY(-1px);
}

.whatsapp-btn i {
  font-size: 1.5rem;
}

.whatsapp-btn span {
  font-size: var(--normal-font-size);
  font-weight: var(--font-bold);
}

.whatsapp-number {
  font-size: var(--small-font-size);
  opacity: 0.9;
  font-weight: var(--font-medium);
  letter-spacing: 1px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gradient-primary);
  color: var(--white-color);
  padding-top: 3rem;
}

.footer__container {
  row-gap: 2rem;
}

.footer__content {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--mb-1);
}

.footer__logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer__logo-text {
  font-size: var(--h3-font-size);
  font-weight: var(--font-bold);
}

.footer__description {
  margin-bottom: var(--mb-1-5);
  line-height: 1.6;
  opacity: 0.9;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition-fast);
  backdrop-filter: blur(10px);
}

.footer__social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.footer__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
  font-weight: var(--font-bold);
}

.footer__list {
  display: grid;
  gap: 0.5rem;
}

.footer__link {
  color: inherit;
  transition: var(--transition-fast);
  opacity: 0.9;
}

.footer__link:hover {
  opacity: 1;
  transform: translateX(5px);
}

.footer__contact-info {
  display: grid;
  gap: 0.75rem;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.9;
}

.footer__contact-item i {
  font-size: 1rem;
  opacity: 0.8;
}

.footer__info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
}

.footer__company {
  text-align: left;
}

.footer__company p {
  margin-bottom: 0.25rem;
  font-size: var(--smaller-font-size);
  opacity: 0.8;
}

.footer__credits {
  text-align: right;
}

.footer__credits-link {
  color: var(--white-color);
  text-decoration: underline;
  transition: var(--transition-fast);
}

.footer__credits-link:hover {
  opacity: 0.8;
}

.footer__copy {
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--smaller-font-size);
  opacity: 0.8;
}

/* ===== SCROLL UP ===== */
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background: var(--gradient-primary);
  padding: 0.5rem;
  border-radius: 50%;
  color: var(--white-color);
  font-size: 1.2rem;
  transition: var(--transition-medium);
  z-index: var(--z-tooltip);
  box-shadow: 0 8px 24px var(--shadow-color);
}

.scrollup:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--shadow-color);
}

.show-scroll {
  bottom: 3rem;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== BREAKPOINTS ===== */
/* For large devices */
@media screen and (max-width: 992px) {
  .container {
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
  }

  .home__container,
  .about__container,
  .contact__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home__data {
    text-align: center;
  }

  .home__img {
    width: 300px;
    height: 300px;
  }

  .about__img {
    width: 300px;
    height: 300px;
    justify-self: center;
  }

  .products__container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .floating-card {
    display: none;
  }
}

/* ===== MOBILE RESPONSIVE FOR CATALOG ===== */
@media screen and (max-width: 768px) {
  #hits,
  #hits.grid-view,
  #hits.list-view,
  .hits-container,
  .hits-container.grid-view,
  .hits-container.list-view {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 0 1rem !important;
  }
}

@media screen and (min-width: 769px) and (max-width: 992px) {
  #hits.grid-view,
  .hits-container.grid-view,
  .hits-container.grid-view .ais-Hits-list {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 1.5rem !important;
  }

  #hits.list-view,
  .hits-container.list-view,
  .hits-container.list-view .ais-Hits-list {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

@media screen and (max-width: 768px) {
  .hits-container.list-view .catalog-item {
    flex-direction: column;
    min-height: auto;
    max-height: none;
  }

  .hits-container.list-view .item-image {
    width: 100%;
    height: 200px;
    border-radius: 20px 20px 0 0;
  }

  .hits-container.list-view .item-content {
    padding: 1.5rem;
    justify-content: flex-start;
  }

  .hits-container.list-view .item-meta {
    flex-wrap: wrap;
    margin-bottom: 1rem;
  }

  .hits-container.list-view .price-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .hits-container.list-view .quantity-section {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    margin-top: 1rem;
  }

  .hits-container.list-view .add-btn {
    min-width: 100%;
    padding: 1rem;
    font-size: var(--small-font-size);
  }

  .view-controls {
    display: none;
  }

  .search-controls {
    justify-content: center;
  }

  .catalog-item {
    max-width: 100%;
    margin: 0;
  }

  .item-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .price-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .quantity-section {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .add-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: var(--small-font-size);
  }

  .quantity-controls {
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
  }
}

/* For medium devices */
@media screen and (max-width: 768px) {
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }

  .nav__list {
    flex-direction: column;
    row-gap: 1.5rem;
  }

  .nav__menu {
    position: fixed;
    background-color: var(--white-color);
    width: 80%;
    height: 100%;
    top: 0;
    right: -100%;
    padding: 4rem 0 0 3rem;
    border-radius: 10px 0 0 10px;
    transition: var(--transition-medium);
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
    z-index: var(--z-fixed);
  }

  .show-menu {
    right: 0;
  }

  .nav__close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 1.5rem;
    color: var(--green-vitality);
    cursor: pointer;
  }

  .nav__toggle {
    display: block;
    font-size: 1.25rem;
    color: var(--green-vitality);
    cursor: pointer;
  }

  .section {
    padding: 4rem 0 2rem;
  }

  .home {
    padding-top: 7rem;
  }

  .home__data-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .products__container {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .hits-container {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .contact__container {
    gap: 1.5rem;
    grid-template-columns: 1fr;
  }

  .whatsapp-card {
    padding: 2rem 1.5rem;
    margin: 0 auto;
  }

  .whatsapp-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }

  .whatsapp-icon i {
    font-size: 2rem;
  }

  .whatsapp-benefits {
    gap: 0.75rem;
  }

  .benefit-item {
    padding: 0.5rem;
  }

  .whatsapp-btn {
    padding: 1rem 1.5rem;
  }

  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__info {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer__company,
  .footer__credits {
    text-align: center;
  }
}

/* For small devices */
@media screen and (max-width: 350px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }

  .section {
    padding: 3rem 0 1rem;
  }

  .home__img {
    width: 250px;
    height: 250px;
  }

  .about__img {
    width: 250px;
    height: 250px;
  }

  .home__data-buttons {
    flex-direction: column;
    width: 100%;
  }

  .button,
  .button-outline {
    width: 100%;
    justify-content: center;
  }

  .contact__form-container {
    padding: 1.5rem;
  }

  .footer__content {
    gap: 1.5rem;
  }
}