/* Variables de colores según lo solicitado */
:root {
  --color-white: #ffffff;
  --color-light: rgb(238, 200, 163);
  --color-dark: rgb(148, 90, 66);
  --color-black: #000000;
  --font-primary: "Bogart", sans-serif;
  --transition: all 0.3s ease;
}

/* Reset y estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--color-black);
  background-color: var(--color-white);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-dark);
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--color-light);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--color-dark);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--color-black);
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* Estilos para productos en promoción */
.product-card.on-sale {
  border: 2px solid #e91e63;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9em;
  margin-right: 8px;
}

.sale-price {
  color: #e91e63;
  font-weight: bold;
}

.sale-badge {
  background-color: #e91e63;
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
  display: inline-block;
  margin-top: 5px;
}

/* Header */
header {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 15px;
}

.logo h1 {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-dark);
  letter-spacing: 2px;
}

.menu {
  display: flex;
}

.menu li {
  margin: 0 15px;
}

.menu a {
  color: var(--color-black);
  font-weight: 500;
  transition: var(--transition);
}

.menu a:hover {
  color: var(--color-dark);
}

.icons {
  display: flex;
  align-items: center;
}

.icon {
  margin-left: 20px;
  font-size: 1.2rem;
  color: var(--color-black);
  transition: var(--transition);
  position: relative;
}

.icon:hover {
  color: var(--color-dark);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--color-dark);
  color: var(--color-white);
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-black);
}

/* Sección de novedades/slider - ACTUALIZADA para la estructura original */
.news-slider {
  padding: 20px 0;
  background-color: var(--color-white);
}

.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.slider {
  position: relative;
  width: 100%;
  /* Aumentar la altura para escritorio */
  height: 0;
  padding-bottom: 40%; /* Aumentado para mostrar más contenido vertical */
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Cambiado a contain para asegurar que se vea la imagen completa */
  display: block;
}

.slider-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active {
  background-color: var(--color-white);
  transform: scale(1.2);
}

/* Ajustes específicos para pantallas grandes */
@media (min-width: 1200px) {
  .slider {
    padding-bottom: 35%; /* Proporción ajustada para pantallas grandes */
  }

  .slide img {
    object-fit: contain; /* Asegurar que se vea la imagen completa */
    max-height: 100%;
  }
}

/* Ajustes para diferentes tamaños de pantalla */
@media (max-width: 992px) {
  .slider {
    padding-bottom: 35%; /* Más altura para tablets */
  }
}

@media (max-width: 768px) {
  .slider {
    padding-bottom: 45%; /* Más altura para móviles */
  }
}

@media (max-width: 576px) {
  .slider {
    padding-bottom: 60%; /* Aún más altura para móviles pequeños */
  }

  .indicator {
    width: 8px;
    height: 8px;
  }
}

/* Hero Section */
.hero {
  background-color: var(--color-light);
  padding: 30px 0;
  text-align: center;
  height: 400px;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero-content .logo {
  max-width: 250px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--color-dark);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--color-black);
}

/* Buscador de productos */
.search-container {
  display: flex;
  max-width: 500px;
  margin: 0 auto 30px;
}

.search-container input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid var(--color-dark);
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
  font-family: var(--font-primary);
}

.search-container button {
  background-color: var(--color-dark);
  color: var(--color-white);
  border: none;
  padding: 0 20px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: var(--transition);
}

.search-container button:hover {
  background-color: var(--color-black);
}

/* Filtros de búsqueda */
.filter-results {
  background-color: var(--color-light);
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-results h3 {
  margin: 0;
  color: var(--color-dark);
}

/* Products Section */
.products {
  padding: 80px 0;
  background-color: var(--color-white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.product-image {
  position: relative;
  overflow: hidden;
  height: 300px;
  cursor: pointer;
}

.product-image::after {
  content: "Ver detalles";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(148, 90, 66, 0.7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-image:hover::after {
  opacity: 1;
}

.product-card {
  background-color: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-info {
  padding: 20px;
  text-align: center;
}

.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-dark);
  height: 3.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.price {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-black);
  margin-bottom: 15px;
}

.add-to-cart {
  background-color: var(--color-light);
  color: var(--color-dark);
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.add-to-cart:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.view-more {
  text-align: center;
  margin-top: 30px;
}

/* Categories Section */
.categories {
  padding: 80px 0;
  background-color: var(--color-light);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

/* Hacer que las tarjetas de categoría sean clickeables */
.category-card {
  text-align: center;
  background-color: var(--color-white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-10px);
  background-color: var(--color-light);
}

.category-card:hover h3 {
  color: var(--color-white);
}

.category-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.category-card h3 {
  font-size: 1.5rem;
  color: var(--color-dark);
}

/* Cart Section */
.cart-section {
  padding: 80px 0;
  background-color: var(--color-white);
}

.cart-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.cart-items {
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.empty-cart {
  text-align: center;
  padding: 50px 0;
  color: #999;
}

.empty-cart i {
  margin-bottom: 20px;
  color: var(--color-light);
}

.empty-cart p {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  align-items: center;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  border-radius: 4px;
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--color-dark);
}

.cart-item-price {
  font-weight: bold;
  margin-bottom: 10px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
}

.quantity-control {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

.quantity-btn {
  background-color: var(--color-light);
  color: var(--color-dark);
  border: none;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 4px;
}

.quantity-input {
  width: 40px;
  height: 30px;
  text-align: center;
  margin: 0 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.remove-item {
  background: none;
  border: none;
  color: #ff3860;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Modificar el estilo del cart-summary para evitar que se estire demasiado */
.cart-summary {
  background-color: var(--color-light);
  border-radius: 8px;
  padding: 20px;
  position: sticky;
  top: 100px;
  max-height: 500px;
  overflow-y: auto;
}

.cart-summary h3 {
  font-size: 1.5rem;
  color: var(--color-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.summary-item.total {
  font-weight: bold;
  font-size: 1.3rem;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.payment-methods {
  margin: 25px 0;
}

.payment-methods h4 {
  margin-bottom: 15px;
  color: var(--color-dark);
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-options label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.payment-options input {
  margin-right: 10px;
}

#checkout-btn {
  width: 100%;
  margin-top: 20px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
}

.modal-content {
  background-color: var(--color-white);
  margin: 10% auto;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  position: relative;
  width: 90%;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1200; /* Asegurar que esté por encima de otros elementos */
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-light);
  color: var(--color-dark);
  border-radius: 50%;
}

.close:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.modal h2 {
  color: var(--color-dark);
  margin-bottom: 20px;
  text-align: center;
}

/* Estilos para el modal de detalles de producto */
.product-detail-modal {
  max-width: 900px;
  padding: 0;
  overflow: hidden;
  width: 95%;
}

.product-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.product-detail-image {
  height: 500px;
  background-color: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; /* Para posicionar el botón de cierre */
}

.product-detail-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.product-detail-info {
  padding: 30px;
  max-height: 600px;
  overflow-y: auto;
}

.product-detail-info h2 {
  font-size: 1.8rem;
  text-align: left;
  margin-bottom: 10px;
}

.modal-product-price {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--color-dark);
}

/* Estilos responsivos para el modal */
@media (max-width: 992px) {
  .product-detail-content {
    grid-template-columns: 1fr;
  }

  .product-detail-image {
    height: 350px;
  }

  .product-detail-info {
    padding: 25px;
    max-height: none; /* Eliminar altura máxima en tablets/móviles */
  }
}

@media (max-width: 768px) {
  .modal-content {
    margin: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 100%;
  }

  .product-detail-modal {
    padding: 0;
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
  }

  .product-detail-content {
    height: 100%;
    overflow-y: auto;
    width: 100%;
  }

  .product-detail-image {
    height: 300px;
    min-height: 300px; /* Asegurar altura mínima */
    width: 100%;
  }
}

@media (max-width: 576px) {
  .product-detail-image {
    height: 250px;
    min-height: 250px;
  }

  .product-detail-info {
    padding: 20px;
  }

  .modal-product-price {
    font-size: 1.2rem;
  }

  .product-detail-info h2 {
    font-size: 1.5rem;
    padding-right: 40px; /* Espacio para el botón de cierre */
  }
}

.product-rating {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.product-rating .stars {
  margin-right: 10px;
}

.rating-count {
  color: #666;
  font-size: 0.9rem;
}

.product-description,
.product-features,
.product-usage {
  margin-bottom: 20px;
}

.product-description h3,
.product-features h3,
.product-usage h3,
.product-quantity h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-dark);
}

.product-features ul {
  padding-left: 20px;
}

.product-features li {
  margin-bottom: 5px;
  list-style-type: disc;
}

.product-quantity {
  margin-bottom: 20px;
}

.add-to-cart-modal {
  width: 100%;
  margin-top: 20px;
}

/* Footer */
footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Estilos para las imágenes de medios de pago y envíos */
.payment-shipping-methods {
  margin-top: 20px;
}

.payment-methods-img,
.shipping-methods-img {
  margin-bottom: 15px;
}

.payment-methods-img h4,
.shipping-methods-img h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--color-light);
}

.payment-methods-img img,
.shipping-methods-img img {
  max-width: 200px;
  height: auto;
  background-color: var(--color-white);
  padding: 10px;
  border-radius: 8px;
}

/* Control de visibilidad para imágenes de pago responsive */
.mobile-payment {
  display: none; /* Ocultar en desktop */
}

.desktop-payment {
  display: inline-block; /* Mostrar en desktop */
}

/* Ajustes responsive para las imágenes de pago */
@media (max-width: 768px) {
  .mobile-payment {
    display: inline-block; /* Mostrar en móvil */
    max-width: 150px;
  }

  .desktop-payment {
    display: none; /* Ocultar en móvil */
  }

  /* Ajustar imágenes de pago y envío */
  .payment-methods-img img,
  .shipping-methods-img img {
    max-width: 150px;
  }
}

@media (max-width: 576px) {
  /* Cambiar disposición: elementos en columna en lugar de fila */
  .payment-methods-img,
  .shipping-methods-img {
    display: block;
    width: 100%;
    margin-bottom: 15px;
  }

  .payment-shipping-methods {
    display: block; /* Cambiar a bloque en lugar de flex */
  }

  /* Asegurar que las imágenes tengan suficiente espacio */
  .payment-methods-img img,
  .shipping-methods-img img {
    max-width: 180px;
  }
}

.footer-links h3,
.footer-newsletter h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after,
.footer-newsletter h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--color-light);
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--color-light);
  padding-left: 5px;
}

.footer-newsletter form {
  display: flex;
}

.footer-newsletter input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 4px 0 0 4px;
}

.footer-newsletter button {
  background-color: var(--color-light);
  color: var(--color-dark);
  border: none;
  padding: 10px 15px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: var(--transition);
}

.footer-newsletter button:hover {
  background-color: var(--color-white);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Notification */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--color-dark);
  color: white;
  padding: 15px 25px;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  animation: slideIn 0.5s ease;
}

.notification.fade-out {
  animation: fadeOut 0.5s ease forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Ocultar flechas de los inputs numéricos */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: none;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .cart-content {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
    margin-top: 30px;
  }

  .product-detail-content {
    grid-template-columns: 1fr;
  }

  .product-detail-image {
    height: 350px;
  }

  .product-detail-info {
    padding: 25px;
    max-height: none; /* Eliminar altura máxima en tablets/móviles */
  }

  /* Mejorar el botón de cierre en tablets */
  .product-detail-modal .close {
    top: 10px;
    right: 10px;
    background-color: var(--color-dark);
    color: var(--color-white);
  }

  #product-search {
    width: 120px;
    margin: 0;
  }
}

@media (max-width: 768px) {
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .menu.active {
    display: flex;
  }

  .menu li {
    margin: 10px 0;
    text-align: center;
  }

  .menu-toggle {
    display: block;
    margin-left: 20px;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
  }

  .cart-item-actions {
    grid-column: span 2;
    justify-content: space-between;
    margin-top: 15px;
  }

  .modal-content {
    margin: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .product-detail-modal {
    padding: 0;
    overflow-y: auto;
  }

  .product-detail-content {
    height: 100%;
    overflow-y: auto;
  }

  .product-detail-image {
    height: 300px;
    min-height: 300px; /* Asegurar altura mínima */
  }

  /* Hacer el botón de cierre más grande y visible en móviles */
  .product-detail-modal .close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
    background-color: var(--color-dark);
    color: var(--color-white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  /* Añadir un botón flotante para cerrar en la parte inferior */
  .mobile-close-btn {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--color-dark);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 1200;
  }

  /* Ajustar imágenes de pago y envío */
  .payment-methods-img img,
  .shipping-methods-img img {
    max-width: 150px;
  }

  .modal-content {
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
  }

  .checkout-payment-img {
    max-width: 200px;
    margin: 0 auto 15px;
  }

  .product-list {
    max-height: 150px;
    margin-top: 15px;
    margin-bottom: 15px;
  }

  #checkout-form {
    margin-top: 15px;
  }
}

@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .product-info h3 {
    font-size: 1rem;
    height: 4.2em;
  }

  .price {
    font-size: 0.9rem;
  }

  .add-to-cart {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero-content .logo {
    max-width: 180px;
  }

  .footer-newsletter form {
    flex-direction: column;
  }

  .footer-newsletter input,
  .footer-newsletter button {
    width: 100%;
    border-radius: 4px;
  }

  .footer-newsletter button {
    margin-top: 10px;
  }

  .product-detail-image {
    height: 250px;
    min-height: 250px;
  }

  .product-detail-info {
    padding: 20px;
  }

  .modal-product-price {
    font-size: 1.2rem;
  }

  .product-detail-info h2 {
    font-size: 1.5rem;
    padding-right: 40px; /* Espacio para el botón de cierre */
  }

  /* Ajustar espaciado en el modal para móviles pequeños */
  .product-description,
  .product-features,
  .product-usage {
    margin-bottom: 15px;
  }

  .product-description h3,
  .product-features h3,
  .product-usage h3,
  .product-quantity h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .product-features ul {
    padding-left: 15px;
  }

  .product-features li {
    margin-bottom: 3px;
  }

  /* Ajustar indicadores del slider */
  .indicator {
    width: 8px;
    height: 8px;
  }

  .checkout-payment-img {
    max-width: 180px;
    margin: 0 auto 10px;
  }

  .product-list {
    max-height: 120px;
    font-size: 0.8rem;
  }

  .modal-content {
    padding: 15px;
    margin: 5% auto;
  }

  .form-group {
    margin-bottom: 10px;
  }

  .form-group input {
    padding: 8px;
  }
}

/* Estilos para el modal de checkout */
.checkout-payment-img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 20px;
  display: block;
}

.product-list {
  margin-top: 20px;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--color-light);
  border-radius: 4px;
  padding: 10px;
  font-size: 0.9rem;
}

.product-list-item {
  margin-bottom: 5px;
  padding-bottom: 5px;
  border-bottom: 1px solid #eee;
}

.product-list-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Añadir estos estilos para el formulario de checkout */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--color-dark);
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-primary);
}

.form-group input:focus {
  border-color: var(--color-dark);
  outline: none;
}

#checkout-form .btn {
  width: 100%;
  margin-top: 10px;
}

/* Estilos para el carrusel de imágenes de producto */
.product-image-carousel {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.carousel-main {
  position: relative;
  width: 100%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.carousel-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.carousel-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 5px 0;
  justify-content: center;
  max-height: 20%;
}

.thumbnail {
  width: 60px;
  height: 60px;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.thumbnail.active {
  border-color: var(--color-dark);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Estilos responsivos para el carrusel */
@media (max-width: 768px) {
  .carousel-thumbnails {
    gap: 5px;
  }

  .thumbnail {
    width: 50px;
    height: 50px;
  }

  .carousel-prev,
  .carousel-next {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 576px) {
  .carousel-thumbnails {
    gap: 3px;
  }

  .thumbnail {
    width: 40px;
    height: 40px;
  }
}

/* Añadir estos estilos para el hover en las imágenes de productos */

/* Ocultar el botón "Ver detalles" ya que ahora se hace clic en la imagen */
.btn-small.view-product {
  display: none;
}

/* Ajustar el botón de agregar para que ocupe todo el ancho */
.product-actions {
  display: flex;
  justify-content: center;
}

.btn-small.add-to-cart {
  width: 100%;
}

/* Modificar la sección de productos en móvil */
@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-card {
    margin-bottom: 15px;
  }

  .product-image {
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }

  .product-info {
    padding: 10px;
  }

  .product-info h3 {
    font-size: 0.9rem;
    height: 2.8em;
    margin-bottom: 5px;
  }

  .price {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }

  .product-actions {
    flex-direction: column;
    gap: 5px;
  }

  .btn-small {
    padding: 6px 8px;
    font-size: 0.8rem;
  }

  .discount-label {
    font-size: 0.7em;
  }

  .original-price {
    font-size: 0.8em;
  }
}

