@import url(https://fonts.googleapis.com/css?family=Open+Sans);

@font-face {
  font-family: "wave";
  src: url("../../fonts/wave/LTWaveAlt-Light.otf") format("truetype");
}

@font-face {
  font-family: "zurichExtended";
  src: url("../../fonts/zurichExtended/zurichExtended-ultraBlack.ttf") format("truetype");
}

/* --- Estilos Generales y Reset Básico --- */
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f6f8;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease-in-out;
}

/* --- Barra Superior (Navbar 1) --- */
.top-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #d7d8da;
  padding: 0px 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 21px;
  left: 0;
  width: 100%;
  z-index: 998;
  box-sizing: border-box;
  margin-bottom: 0%;
}

.left-navbar .social-icon {
  margin-right: 15px;
  font-size: 18px;
  color: #000000db;
  transition: color 0.3s ease-in-out;
}

.left-navbar .social-icon:hover {
  color: #5171ff;
}

.center-navbar {
  flex-grow: 1;
  text-align: center;
}

.logo-img {
  max-height: 60px;
  align-items: center;
  margin-left: 15%;
}

.right-navbar {
  display: flex;
  align-items: center;
}

.right-navbar input {
  padding: 8px 12px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  margin-right: 8px;
  background-color: #e9ecef;
  color: #495057;
  transition: background-color 0.3s ease-in-out;
}

.right-navbar input:focus {
  outline: none;
  background-color: #dee2e6;
}

.right-navbar button {
  background-color: #5171ff;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

.right-navbar button:hover {
  background-color: #bdbdbd;
  color: #222;
}

/* --- Barra Inferior (Navbar 2) --- */
.bottom-navbar {
  display: flex;
  align-items: center;
  background-color: #f0f0f0;
  padding: 5px 30px;
  position: fixed;
  top: 85px;
  left: 0;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  z-index: 999;
  box-sizing: border-box;
  justify-content: space-between;
}

.links-navbar {
  display: flex;
  justify-content: center;
  flex-grow: 1;
  margin-left: 14.8%;
}

.dropdown-menu {
  position: relative;
  margin: 0 10px;
  font-family: "wave", sans-serif;
}

.dropdown-button {
  padding: 6px 15px;
  font-size: 16px;
  background-color: transparent;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  color: #343a40;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  font-family: "wave", sans-serif;
}

.dropdown-button:hover,
.dropdown-button:focus {
  background-color: #5171ff;
  color: white;
  outline: none;
}

.dropdown-list {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 110%;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.15);
  z-index: 2;
  border-radius: 5px;
  overflow: hidden;
}

.dropdown-menu:hover .dropdown-list {
  display: block;
}

.dropdown-list a {
  padding: 10px 15px;
  display: block;
  color: #343a40;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.dropdown-list a:hover {
  background-color: #f8f9fa;
  color: #5171ff;
}

/* Botón Rastrea Pedido */
.track-order-btn {
  background-color: #5171ff;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 15px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
  margin-right: 48px;
  white-space: nowrap;
  font-family: "wave", sans-serif;
}

.track-order-btn:hover {
  background-color: #bdbdbd;
  color: #222;
}

/* --- SLIDERBAR (Carrito) --- */
.shopping-cart-sidebar {
  position: fixed;
  right: 0;
  top: 0;
  width: 370px;
  height: 100%;
  background-color: #f3f3f3;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  padding: 20px;
  display: flex;
  flex-direction: column;
  z-index: 1002;
  overflow-y: auto;
  font-family: 'Segoe UI', sans-serif;
}

.shopping-cart-sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  z-index: -1;
}

/* Icono del carrito - CORREGIDO */
.shopping-cart-icon {
  position: absolute;
  right: 35px;
  bottom: 1px;
  background-color: #f3f3f3;
  padding: 5px;
  cursor: pointer;
  z-index: 1050;
  color: #242424;
  font-size: 18px;
  transition: all 0.3s ease;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shopping-cart-icon:hover {
  background-color: #f3f3f3;
  transform: scale(1.1);
}

#close-cart {
  position: absolute;
  margin-top: -8px;
  right: 32px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
}

#close-cart:hover {
  color: #e74c3c;
}

.shopping-cart-sidebar h1 {
  font-size: 1.2rem;           /* Cambia el tamaño del texto */
  font-weight: bold;          /* Negrita */
  color: #2c3e50;             /* Color del texto */
  margin: 0 0 -1rem 0;         /* Espaciado inferior */
  text-align: left;           /* Alineación */
  font-family: "zurichExtended", sans-serif; /* O la fuente que uses */
  letter-spacing: 5px;        /* Espaciado entre letras (opcional) */
  text-transform: uppercase;  /* Todo en mayúsculas (opcional) */
  margin-top: -8px;
  margin-left: 13px;
}

.shopping-cart-sidebar.show {
  transform: translateX(0);
}

/* --- ESTILOS PRODUCTOS EN CARRITO (versión compacta) --- */
.cart-item {
  display: flex;
  gap: 10px;
  background-color: #f3f3f3;
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 6px;
  margin-top: 16px;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease;
}

.cart-item:hover {
  transform: translateY(-1.5px);
}

.cart-img {
  width: 80px;
  height: 115px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  margin-right: 10px;
}

.cart-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
  line-height: 1.1;
  color: #333;
  user-select: none;
}

.cart-info span {
  font-weight: 600;
  margin: 0;
  padding: 0;
}

.cart-info h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: #252525;
  margin-bottom: 0.3rem;
  margin-top: 5px;
  text-transform: capitalize;
}

.cart-info p {
  font-size: 0.6rem;
  font-weight: 500;
  color: #4b4b4b;
  margin: 0;
  margin-bottom: 20px;
  font-family: "zurichExtended", sans-serif;
}

.remove-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease;
  margin-top: 85px !important;
  margin-right: 5px;
}

.remove-btn:hover {
  transform: scale(1.1);
}

.remove-btn i {
  font-size: 20px;
  color: #ff4d4dcf;
  transition: color 0.2s ease;
}

.remove-btn:hover i {
  color: #b30000;
}

/* Total del carrito */
#cart-total {
  padding: 12px;
  border-top: 1px solid #ddd;
  text-align: center;
  font-size: 10px;
  background-color: #f3f3f3;
  margin-top: auto;
  color: #222;
  font-family: "zurichExtended", sans-serif;
  letter-spacing: 2px;
}

/* Botón Checkout */
.checkout-btn {
  background-color: #5171ff;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 10px;
  letter-spacing: 3px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 10px;
  margin-bottom: 40px;
  font-family: "zurichExtended", sans-serif;
}

.checkout-btn:hover {
  background-color: #929292;
  transform: scale(1.04);
}

/* Contador del carrito */
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: red;
  color: white;
  font-size: 12px;
  width: 18px;
  height: 18px;
  text-align: center;
  line-height: 18px;
  border-radius: 50%;
  font-weight: bold;
  display: none;
}

/* Animación shake */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-3px); }
  40%, 80% { transform: translateX(3px); }
}

.shake {
  animation: shake 0.4s;
}

/* Contenedor de control de cantidad */
.quantity-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

/* Botones + y - */
.quantity-control button {
  background-color: #41414163;
  border: none;
  color: white;
  font-size: 14px;
  font-weight: bold;
  padding: 4px 12px;
  cursor: pointer;
  border-radius: 4px;
  user-select: none;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-width: 24px;
  height: 24px;
  margin-bottom: 10px;
}

/* Efecto hover */
.quantity-control button:hover {
  background-color: #5171ff;
}

/* Texto de cantidad */
.quantity-control .quantity {
  min-width: 24px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  user-select: none;
  margin-bottom: 10px;
}

/* El botón de hamburguesa se oculta por defecto para escritorio */
.hamburger {
  display: none;
}

/* Oculta el menú lateral en escritorio */
.hamburger-sidebar {
  display: none;
}

/* Oculta el slider del carrito en escritorio (si no está activo) */
.shopping-cart-sidebar:not(.show) {
  display: block;
}

/* ALERT */
.toast-top-margin {
  margin-top: 80px;
}

/* --- Nuevos estilos para el icono del carrito en móvil --- */
.shopping-cart-icon-mobile {
    display: none; /* Oculto por defecto */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #5171ff;
    color: white;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 24px;
    z-index: 1001; /* Aumentado para estar por encima de otros elementos */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shopping-cart-icon-mobile:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.shopping-cart-icon-mobile .cart-count {
    top: 5px;
    right: 5px;
    font-size: 14px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    background-color: #ff4d4d;
    z-index: 1002; /* Para asegurar que el contador esté por encima */
}

.dropdown-menu.active .dropdown-list {
  display: block;
}



/* ------------------------------------------- */
/* ESTILOS RESPONSIVE - MÓVIL              */
/* ------------------------------------------- */
@media (max-width: 768px) {
  /* Oculta los elementos de escritorio en móvil */
  .desktop-only,
  .bottom-navbar {
    display: none !important;
  }

  /* Muestra los elementos móviles */
  .hamburger {
    display: block;
  }

  .shopping-cart-icon-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Ajustes generales de la barra superior en móvil */
  .top-navbar {
    top: 23px;
    padding: 10px 15px;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
    position: fixed;
  }

  .top-navbar .center-navbar {
    flex-grow: 1;
    text-align: center;
  }
  
  .top-navbar .logo-img {
    max-height: 50px;
    margin-left: 0;
  }

  /* Estilo del slider del carrito */
  .shopping-cart-sidebar {
    width: 100%;
    max-width: 100%;
    transform: translateX(100%);
    z-index: 1100;
  }

  #close-cart {
    margin-top: -8px;
    right: 33px;
  }

  /* SLIDERBAR (Menú de hamburguesa) */
  .hamburger-sidebar {
    display: flex;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    padding: 60px 20px 20px;
    flex-direction: column;
    z-index: 1003; /* Aumentado para estar encima del carrito de móvil */
    overflow-y: scroll;
    font-family: 'Segoe UI', sans-serif;
  }

  .hamburger-sidebar.show {
    transform: translateX(0);
  }

  #close-menu {
    position: absolute;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
  }
  
  #close-menu:hover {
    color: #e74c3c;
  }

  /* --- Nuevos estilos para el contenido del menú móvil --- */
  .mobile-search {
      margin-top: 30px;
      display: flex;
      margin-bottom: 20px;
  }

  .mobile-search input {
      flex-grow: 1;
      padding: 12px;
      border: 1px solid #ddd;
      border-right: none;
      border-radius: 5px 0 0 5px;
      font-size: 16px;
  }

  .mobile-search button {
      background-color: #5171ff;
      color: white;
      border: none;
      padding: 12px 15px;
      border-radius: 0 5px 5px 0;
      font-size: 16px;
      cursor: pointer;
  }

  .mobile-menu-links {
      display: flex;
      flex-direction: column;
      border-top: 1px solid #ddd;
      border-bottom: 1px solid #ddd;
  }

  .mobile-link {
      padding: 15px;
      font-size: 18px;
      color: #333;
      border-bottom: 1px solid #eee;
      transition: background-color 0.2s ease;
      font-family: "wave", sans-serif;
  }

  .mobile-link:hover {
      background-color: #e9ecef;
      color: #5171ff;
  }

  .mobile-link:last-child {
      border-bottom: none;
  }
  
  /* Botón de rastrear pedido para el menú móvil */
  .track-order-btn-mobile {
    background-color: #5171ff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 15px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    width: 100%;
    margin-top: 20px;
    font-family: "wave", sans-serif;
  }
  
  .track-order-btn-mobile:hover {
    background-color: #bdbdbd;
    color: #222;
  }

  .mobile-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
    margin-top: 180px;
    /* margin-top: auto; <-- ELIMINA ESTO */
}


  .mobile-socials a {
      font-size: 24px;
      color: #333;
      transition: color 0.2s ease;
  }

  .mobile-socials a:hover {
      color: #5171ff;
  }
}