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

body {
  font-family: 'Inter', 'Segoe UI', Arial, Helvetica, sans-serif;
  background-color: #f5f7f6;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
}

/* =========================
   TOP BAR
========================= */
.top-bar {
  background-color: #1e8f4f;
  padding: 8px 20px;
  width: 100%;
}

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

.top-bar-social {
  display: flex;
  gap: 15px;
}

.top-bar-social a {
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.top-bar-social a:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.top-bar-text {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

/* =========================
   NAVBAR (igual que home y contact)
========================= */
.navbar {
  display: flex;
  width: 100%;
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-left {
  flex: 1;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  padding-left: 20px;
}

.logo {
  height: 65px;
  width: auto;
  border-radius: 50%;
}

.navbar-right {
  flex: 3;
  background-color: #1e8f4f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 35px;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: #ffffff;
  left: 0;
  bottom: -5px;
  transition: width 0.3s ease;
}

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

/* =========================
   HERO CAROUSEL
========================= */
.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  height: 400px;
}

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

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

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

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 143, 79, 0.85) 0%, rgba(20, 90, 50, 0.9) 100%);
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  width: 90%;
  max-width: 800px;
}

.slide-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  animation: fadeInUp 0.6s ease;
}

.slide-content p {
  font-size: 20px;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  animation: fadeInUp 0.6s ease 0.2s both;
}

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

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(5px);
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.4);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-dots {
  position: absolute;
  bottom: 130px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot:hover {
  background: rgba(255,255,255,0.5);
}

.carousel-dot.active {
  background: white;
  transform: scale(1.2);
}

.hero-carousel .hero-search {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  z-index: 20;
}

.hero-carousel .hero-search input {
  width: 100%;
  padding: 18px 25px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  outline: none;
  transition: box-shadow 0.3s ease;
}

.hero-carousel .hero-search input:focus {
  box-shadow: 0 10px 50px rgba(30, 143, 79, 0.3);
}

.hero-search {
  max-width: 500px;
  margin: 0 auto;
}

.hero-search input {
  width: 100%;
  padding: 16px 25px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: box-shadow 0.3s ease;
}

.hero-search input:focus {
  outline: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.hero-search input::placeholder {
  color: #999;
}

/* =========================
   LAYOUT PRINCIPAL
========================= */
.products-section {
  padding: 40px 20px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.products-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

/* =========================
   SIDEBAR FILTROS
========================= */
.filters-sidebar {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
  position: sticky;
  top: 100px;
}

.filter-group {
  margin-bottom: 30px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group h4 {
  font-size: 14px;
  color: #1e8f4f;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8f5e9;
}

.filter-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-btn {
  padding: 12px 18px;
  border: 2px solid #e0e0e0;
  background: #ffffff;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  color: #555;
  text-align: left;
}

.filter-btn:hover {
  border-color: #1e8f4f;
  color: #1e8f4f;
  background: #f8fff9;
}

.filter-btn.active {
  background: #1e8f4f;
  border-color: #1e8f4f;
  color: white;
}

.type-btn.active {
  background: #2c5aa0;
  border-color: #2c5aa0;
}

.type-btn:hover {
  border-color: #2c5aa0;
  color: #2c5aa0;
  background: #f5f8fc;
}

.type-btn.active:hover {
  color: white;
  background: #2c5aa0;
}

.category-btn.active:hover {
  color: white;
  background: #1e8f4f;
}

/* =========================
   PRODUCTOS MAIN
========================= */
.products-main {
  min-height: 500px;
}

/* =========================
   PRODUCTS TOOLBAR
========================= */
.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.products-count {
  color: #666;
  font-size: 14px;
  margin: 0;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sort-select {
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  background: white;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.sort-select:focus {
  border-color: #1e8f4f;
}

.view-toggle {
  display: flex;
  gap: 5px;
}

.view-btn {
  padding: 8px;
  border: 1px solid #e0e0e0;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.view-btn:hover {
  border-color: #1e8f4f;
  color: #1e8f4f;
}

.view-btn.active {
  background: #1e8f4f;
  border-color: #1e8f4f;
  color: white;
}

/* =========================
   PAGINATION
========================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  color: #333;
  font-size: 14px;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  border-color: #1e8f4f;
  color: #1e8f4f;
}

.pagination-btn.active {
  background: #1e8f4f;
  border-color: #1e8f4f;
  color: white;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =========================
   LIST VIEW
========================= */
.products-grid.list-view {
  grid-template-columns: 1fr;
  gap: 15px;
}

.products-grid.list-view .product-card {
  display: flex;
  flex-direction: row;
}

.products-grid.list-view .product-image {
  width: 200px;
  min-width: 200px;
  height: 150px;
}

.products-grid.list-view .product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.products-grid.list-view .product-description {
  display: block;
  -webkit-line-clamp: unset;
}

/* =========================
   PRODUCTOS GRID
========================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.product-card {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-image {
  height: 180px;
  overflow: hidden;
  background: #f8f8f8;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 15px;
  transition: transform 0.3s ease;
}

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

.product-info {
  padding: 20px;
}

.product-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.product-category {
  background: #e8f5e9;
  color: #1e8f4f;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.product-type {
  background: #e3f2fd;
  color: #2c5aa0;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.product-description {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.5;
}

.product-view-more {
  display: inline-block;
  color: #1e8f4f;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.product-view-more:hover {
  text-decoration: underline;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 15px;
}

.no-results h3 {
  color: #333;
  margin-bottom: 10px;
}

.no-results p {
  color: #666;
}

/* =========================
   MODAL DE PRODUCTO
========================= */
.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.product-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #ffffff;
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.product-modal.active .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #666;
  z-index: 10;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #333;
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.modal-product-image {
  background: #f8f8f8;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-product-image img {
  max-width: 100%;
  max-height: 350px;
  object-fit: contain;
}

.modal-product-details {
  padding: 40px;
}

.modal-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.modal-category {
  background: #e8f5e9;
  color: #1e8f4f;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.modal-type {
  background: #e3f2fd;
  color: #2c5aa0;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.modal-product-details h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 10px;
}

.modal-description {
  font-size: 15px;
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}

.modal-instructions {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.modal-instructions h4 {
  font-size: 16px;
  color: #1e8f4f;
  margin-bottom: 10px;
}

.modal-instructions p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.modal-feeding-plan {
  margin-bottom: 25px;
}

.modal-feeding-plan h4 {
  font-size: 16px;
  color: #1e8f4f;
  margin-bottom: 15px;
}

.feeding-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.feeding-table th {
  background: #1e8f4f;
  color: white;
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
}

.feeding-table th:first-child {
  border-radius: 8px 0 0 0;
}

.feeding-table th:last-child {
  border-radius: 0 8px 0 0;
}

.feeding-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  color: #555;
}

.feeding-table tr:last-child td {
  border-bottom: none;
}

.feeding-table tr:nth-child(even) {
  background: #f8f9fa;
}

.modal-whatsapp-btn {
  display: inline-block;
  background: #25D366;
  color: white;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
}

.modal-whatsapp-btn:hover {
  background: #1da851;
  transform: translateY(-2px);
}

/* =========================
   FOOTER (igual que home y contact)
========================= */
.footer {
  background: #1a1a2e;
  color: #ffffff;
  padding-top: 60px;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-brand {
  padding-right: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 45px;
  object-fit: contain;
}

.footer-logo span {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.footer-brand p {
  font-size: 14px;
  color: #a0a0a0;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #1e8f4f;
  transform: translateY(-3px);
}

.footer-column h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #ffffff;
  position: relative;
  padding-bottom: 12px;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: #1e8f4f;
}

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

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul a {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-column ul a:hover {
  color: #1e8f4f;
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.contact-icon {
  width: 36px;
  height: 36px;
  background: rgba(30, 143, 79, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e8f4f;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

.contact-info p {
  font-size: 12px;
  color: #666;
  margin-bottom: 2px;
}

.contact-info a {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #1e8f4f;
}

.footer-whatsapp-btn {
  display: inline-block;
  background: #25D366;
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.footer-whatsapp-btn:hover {
  background: #1da851;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 25px 20px;
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #666;
}

.footer-bottom-links {
  display: flex;
  gap: 25px;
}

.footer-bottom-links a {
  color: #666;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #1e8f4f;
}

/* =========================
   FLOATING WHATSAPP BUTTON
========================= */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 9999;
}

.whatsapp-float:hover {
  background: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  fill: white;
}

/* =========================
   SVG ICONS
========================= */
.social-link svg {
  color: white;
}

.contact-icon svg {
  color: #1e8f4f;
}

/* =========================
   HAMBURGER MENU
========================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* =========================
   FILTERS TOGGLE (MOBILE)
========================= */
.filters-toggle {
  display: none;
  width: 100%;
  padding: 15px 20px;
  background: #1e8f4f;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.filters-toggle:hover {
  background: #176d3d;
}

.filters-toggle-icon {
  transition: transform 0.3s ease;
}

.filters-toggle.active .filters-toggle-icon {
  transform: rotate(180deg);
}

.filters-content {
  display: block;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .products-layout { grid-template-columns: 1fr; }
  .filters-sidebar { 
    position: static;
    margin-bottom: 20px;
    padding: 15px;
  }
  .filters-toggle {
    display: flex;
    margin-bottom: 0;
  }
  .filters-toggle.active {
    margin-bottom: 15px;
    border-radius: 12px 12px 0 0;
  }
  .filters-content {
    display: none;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
  }
  .filters-content.active {
    display: block;
  }
  .filter-group {
    margin-bottom: 20px;
  }
  .filter-group h4 {
    font-size: 13px;
    margin-bottom: 10px;
  }
  .filter-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .filter-btn {
    flex: 0 0 auto;
    min-width: auto;
    padding: 8px 14px;
    font-size: 13px;
    text-align: center;
  }
  .modal-content { grid-template-columns: 1fr; }
  .modal-product-image { padding: 30px; }
  .modal-product-details { padding: 30px; }
}

@media (max-width: 768px) {
  .top-bar {
    padding: 6px 15px;
  }
  .top-bar-text {
    font-size: 12px;
  }
  .top-bar-social a {
    width: 28px;
    height: 28px;
  }
  .top-bar-social a svg {
    width: 14px;
    height: 14px;
  }
  .logo {
    height: 55px;
  }
  .navbar {
    flex-wrap: nowrap;
    height: 70px;
    position: relative;
  }
  .navbar-left { 
    order: 1; 
    flex: 1;
    background-color: #ffffff;
  }
  .navbar-right { 
    order: 2; 
    flex: 3;
    background-color: #1e8f4f;
    position: relative;
  }
  .hamburger {
    display: flex;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1e8f4f;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 1000;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a {
    text-align: center;
    padding: 10px;
    font-size: 16px;
  }
  .carousel-container { height: 320px; }
  .slide-content h1 { font-size: 32px; }
  .slide-content p { font-size: 16px; }
  .carousel-btn { width: 40px; height: 40px; }
  .carousel-prev { left: 10px; }
  .carousel-next { right: 10px; }
  .carousel-dots { bottom: 110px; }
  .hero-carousel .hero-search { bottom: 50px; }
  .hero-carousel .hero-search input { padding: 14px 20px; font-size: 15px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .products-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .toolbar-controls { width: 100%; justify-content: space-between; }
  .sort-select { flex: 1; }
  .products-grid.list-view { grid-template-columns: 1fr; }
  .products-grid.list-view .product-card { flex-direction: column; }
  .products-grid.list-view .product-image { width: 100%; min-width: unset; height: 150px; }
  .footer-main { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .footer-brand { padding-right: 0; }
  .footer-logo { justify-content: center; }
  .footer-social { justify-content: center; }
  .footer-column { text-align: center; }
  .footer-column h4::after { left: 50%; transform: translateX(-50%); }
  .footer-contact-item { justify-content: center; }
  .footer-bottom-content { flex-direction: column; text-align: center; gap: 15px; }
  .footer-column:nth-child(2),
  .footer-column:nth-child(3) { display: none; }
}

@media (max-width: 480px) {
  .top-bar {
    padding: 5px 10px;
  }
  .top-bar-text {
    font-size: 11px;
  }
  .top-bar-social {
    gap: 10px;
  }
  .top-bar-social a {
    width: 26px;
    height: 26px;
  }
  .top-bar-social a svg {
    width: 12px;
    height: 12px;
  }
  .logo {
    height: 50px;
  }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .filter-btn { min-width: 80px; padding: 10px 12px; font-size: 13px; }
  .modal-product-details h2 { font-size: 22px; }
  .feeding-table { font-size: 12px; }
  .feeding-table th, .feeding-table td { padding: 8px 10px; }
  .carousel-container { height: 320px; }
  .slide-content h1 { font-size: 24px; }
  .slide-content p { font-size: 14px; margin-bottom: 30px; }
  .carousel-btn { width: 35px; height: 35px; }
  .carousel-dot { width: 10px; height: 10px; }
  .carousel-dots { bottom: 115px; }
  .hero-carousel .hero-search { bottom: 50px; }
  .hero-carousel .hero-search input { padding: 12px 18px; font-size: 14px; }
  .product-card .product-info { padding: 12px; }
  .product-card .product-name { font-size: 13px; }
  .product-card .product-description { font-size: 11px; margin-bottom: 8px; }
  .product-card .product-image { height: 120px; }
  .product-tags { gap: 4px; margin-bottom: 8px; }
  .product-category, .product-type { padding: 3px 8px; font-size: 9px; }
}

/* =========================
   CARRITO DE COMPRAS
========================= */
.cart-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  position: relative;
  padding: 8px;
  margin-right: 15px;
  transition: transform 0.2s ease;
}

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

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: #ff6b35;
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-count.hidden {
  display: none;
}

.cart-modal {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  max-width: 100%;
  height: 100%;
  background: #ffffff;
  box-shadow: -5px 0 30px rgba(0,0,0,0.2);
  z-index: 1001;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-modal.active {
  right: 0;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  background: #1e8f4f;
  color: white;
}

.cart-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.cart-close {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

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

.cart-empty {
  text-align: center;
  color: #888;
  padding: 40px 20px;
  font-size: 15px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 12px;
}

.cart-item-image {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-category {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.cart-qty-btn:hover {
  background: #1e8f4f;
  color: white;
  border-color: #1e8f4f;
}

.cart-item-qty {
  font-size: 14px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.cart-item-remove:hover {
  color: #a71d2a;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-footer.hidden {
  display: none;
}

.cart-clear-btn {
  padding: 12px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  transition: all 0.2s ease;
}

.cart-clear-btn:hover {
  background: #e9ecef;
  color: #333;
}

.cart-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: #25D366;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.cart-whatsapp-btn:hover {
  background: #1da851;
  transform: translateY(-2px);
}

/* =========================
   PRODUCT ACTIONS (FAVORITES + ADD TO CART)
========================= */
.product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.favorite-btn {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #666;
}

.favorite-btn:hover {
  border-color: #ff6b35;
  color: #ff6b35;
}

.favorite-btn.active {
  background: #fff5f2;
  border-color: #ff6b35;
  color: #ff6b35;
}

.add-to-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  padding: 10px 15px;
  background: #1e8f4f;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.add-to-cart-btn:hover {
  background: #176d3d;
}

.add-to-cart-btn:active {
  transform: scale(0.95);
}

@keyframes cartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.cart-btn.pulse {
  animation: cartPulse 0.3s ease;
}

@keyframes addedFeedback {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); background: #28a745; }
  100% { transform: scale(1); background: #28a745; }
}

.add-to-cart-btn.added {
  animation: addedFeedback 0.3s ease;
  background: #28a745;
}

.add-to-cart-btn.added {
  background: #28a745;
}

.modal-add-to-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  background: #1e8f4f;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-right: 10px;
}

.modal-add-to-cart:hover {
  background: #176d3d;
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .cart-modal {
    width: 100%;
    right: -100%;
  }
  .cart-btn {
    margin-right: 10px;
  }
}
