:root {
  --pink-primary: #ff66c2;
  --pink-light: #ffb6d9;
  --pink-dark: #ff009d;
  --red-promo: #ff3333;
  --yellow-promo: #ffd700;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: white;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  padding-bottom: 80px;
}

/* Header */

header {
  padding: 15px 20px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.header-pink {
  background-color: var(--pink-primary);
  color: white;
}

.logo-circle {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.brand-text {
  line-height: 1.2;
}

.home-icon {
  font-size: 32px;
  color: white;
}

/* Search Bar */
.search-container {
  width: 100%;
  max-width: 455px;
}

.search-bar {
  background-color: #ffa6dc;
  border-radius: 25px;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  gap: 10px;

  input {
    background-color: #ffa6dc;
    color: white;
    border: none;
    outline: none;
    width: 100%;
  }

  input::placeholder {
    color: white;
  }
}

.search-bar i {
  color: white;
  font-size: 20px;
}

/* Promo Banner */
.promo-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 200px;
  object-fit: fill;
  display: block;
}

.banner-edit {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 60px;
  height: auto;
  text-decoration: none;
}

/* Delivery Banner */
.delivery-banner {
  background-color: var(--red-promo);
  color: white;
  padding: 6px 0;
  margin: 20px 12px;
  font-weight: 500;
  font-size: 13px;
  border-radius: 12px;
}

.delivery-banner i {
  font-size: 20px;
}

/* Product Cards */
.product-card {
  background-color: #2d2d2d;
  border-radius: 33px;
  overflow: hidden;
  border: 4px solid white;
  padding: 10px;
  /* Nuevos ajustes */
  display: flex;
  flex-direction: column;
  height: 100%; /* Hace que todas midan lo mismo en la misma fila */
}

.product-image {
  width: 100%;
  height: 150px; /* Reducido un poco para móviles */
  background-color: #3d3d3d;
  overflow: hidden;
  border-radius: 20px;
  flex-shrink: 0; /* Evita que la imagen se aplaste */
}

@media (min-width: 768px) {
  .product-image {
    height: 180px; /* Altura original para pantallas grandes */
  }
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 10px 5px; /* Reducido para ahorrar espacio */
  color: white;
  flex-grow: 1; /* Esto hace que la sección de info ocupe el espacio disponible */
}

.product-title {
  font-size: 14px; /* Un poco más pequeño para móvil */
  font-weight: bold;
  margin-bottom: 5px;
  /* Truco para truncar texto a 2 líneas si es muy largo */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .product-title {
    font-size: 16px;
  }
}

.shipping-badge {
  font-size: 12px;
  color: white;
  margin-bottom: 5px;
}

.price-container {
  background-color: #efefef;
  border-radius: 50px;
  padding: 5px 10px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: auto; /* Empuja el precio al fondo de la tarjeta */
  .price-container {
    background-color: unset !important;
  }
}

.price-old {
  color: #ff3131;
  text-decoration: line-through;
  font-size: 10px;
}

.price-new {
  color: #000000;
  font-size: 16px; /* Ajustado para móvil */
  font-weight: bold;
}

@media (max-width: 480px) {
  .container-product {
    padding: 0;
  }
}

@media (min-width: 768px) {
  .price-new {
    font-size: 20px;
  }
  .price-old {
    font-size: 12px;
  }
}

.price-single {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.fire-icon {
  font-size: 28px;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #f677b0;
  padding: 15px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.nav-item {
  color: white;
  font-size: 28px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.nav-item:hover {
  transform: scale(1.1);
}

.nav-item.active {
  color: white;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.nav-item .small {
  font-size: 10px;
  margin-top: -5px;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .container {
    max-width: 500px;
  }

  #search_container_1 {
    display: none;
  }

  #search_container_2 {
    display: block;
  }

  body {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* Responsive adjustments */
@media (min-width: 1024px) {
  .container {
    max-width: 800px;
  }

  #search_container_2 {
    display: none;
  }

  #search_container_1 {
    display: block;
  }

  body {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* Si la pantalla es mas pequeña que 768 */
@media (max-width: 767px) {
  #search_container_1 {
    display: none;
  }

  #search_container_2 {
    display: block;
  }
}
