body {
margin: 0;
font-family: 'Poppins', sans-serif;
}

.top-header {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #a81616;
color: white;
padding: 10px 50px;
}

.header-left, .header-right {
display: flex;
align-items: center;
}

.location-link, .whatsapp-link {
display: flex;
align-items: center;
text-decoration: none;
color: white;
font-weight: bold;
transition: color 0.3s ease;
font-family: 'Noto Serif Gurmukhi', sans-serif;
}

.location-link:hover, .whatsapp-link:hover {
color: #fcfc00;
}

.icon {
width: 42px;
height: 42px;
margin-right: 8px;
transition: transform 0.3s ease, opacity 0.3s ease;
}

.location-link:hover .icon,
.whatsapp-link:hover .icon {
transform: scale(1.2);
opacity: 0.9;
}

.bottom-header {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #ffffff;
padding: 5px 50px;
}

.logo-img {
  height: 55px;
  width: auto;
  transition: transform 0.4s ease, filter 0.4s ease; 
}

.logo-img:hover {
  transform: scale(1.1); 
}

.nav-links {
list-style: none;
display: flex;
gap: 30px;
margin: 0;
padding: 0;
}

.nav-links li {
font-weight: bold;
font-size: 18px;
}

.nav-links a, .nav-links span {
text-decoration: none;
color: #ff891b;
transition: color 0.3s ease;
cursor: pointer;
font-family: 'Young Serif', sans-serif;
}

.nav-links a:hover {
color: #8f4703;
}

.nav-links span {
cursor: default;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  margin-left: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle .bar {
  display: block;
  width: 26px;
  height: 3px;
  background-color: #ff891b;
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.menu-toggle.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
  .logo-img { height: 45px; }
}

@media (max-width: 600px) {

  .menu-toggle {
    display: block;
    z-index: 60; 
  }

  .bottom-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    gap: 12px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    margin: 0;
    padding: 12px 20px;
    background: #ffffff;
    gap: 14px;
    list-style: none;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
    border-top: 3px solid #ff891b;
    z-index: 50;
  }

  .nav-links li { text-align: center; }

  .nav-links.active {
    display: flex;
    animation: menuFade 220ms ease;
  }

  @keyframes menuFade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.top-header,
.bottom-header {
  position: relative;
  z-index: 1000; 
}

.nav-links {
  z-index: 9999 !important;
}

@media (max-width: 600px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    width: 100%;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
    border-top: 3px solid #ffffff;
    z-index: 9999 !important;
  }
}

/* 🔸 Ajuste para pantallas pequeñas <= 400px */
@media (max-width: 400px) {

  .top-header {
    flex-direction: column;       /* ✔ Se ordenan uno debajo del otro */
    align-items: center;          /* ✔ Centrado */
    gap: 6px;                     /* ✔ Espacio entre ellos */
    padding: 8px 0;               /* ✔ Más compacto */
    text-align: center;           /* ✔ Que el texto no quede alineado raro */
  }

  .header-left,
  .header-right {
    width: 100%;                  /* ✔ Ocupa todo el ancho */
    display: flex;
    justify-content: center;      /* ✔ Centrado */
  }

  .top-header .icon {
    width: 25px;                  /* ✔ Ajuste opcional para que no se vea grande */
  }

  .location-link span,
  .whatsapp-link span {
    font-size: 0.9rem;            /* ✔ Evita saltos */
  }
}

/* 🔸 Ajustes para pantallas <= 600px */
@media (max-width: 600px) {

  .top-header {
    padding: 8px 10px;
    gap: 10px;
  }

  .top-header .icon {
    width: 40px; /* más pequeño */
  }

  .location-link span,
  .whatsapp-link span {
    font-size: 1rem; 
    white-space: nowrap; /* evita que el texto se rompa */
  }

  .header-left,
  .header-right {
    display: flex;
    align-items: center;
    gap: 5px;
  }
}

.location-link {
  cursor: pointer;
}


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

/* SECCIÓN DEL CARRUSEL */
.carousel {
  width: 100%;
  overflow: hidden;
}

/* TRACK */
.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

/* SLIDE */
.slide {
  min-width: 100%;
  aspect-ratio: 2560 / 1100;   /* 🔑 NUEVA PROPORCIÓN EXACTA */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* IMAGEN */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;       /* 🔑 NO SE CORTA */
  display: block;
}


/* ===== CATÁLOGO ===== */

.catalog-section {
  padding: 80px 25px;
  background: #ffffff;
}

/* TÍTULO */
.catalog-title {
  max-width: 900px;
  margin: 0 auto 60px;
  background: #ff740a;
  color: white;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  text-align: center;
  padding: 22px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.catalog-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* desktop */
  gap: 30px;
}

/* PRODUCTO */
.product-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
}


@media (max-width: 400px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr); /* 🔥 sigue siendo 2 */
    gap: 12px;
  }
}



@media (max-width: 600px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}


@media (max-width: 900px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* IMÁGENES */
.product-card img {
  width: 100%;
  display: block;
  transition: opacity 0.4s ease;
}

.img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

/* HOVER */
.product-card:hover .img-hover {
  opacity: 1;
}

.product-card:hover .img-main {
  opacity: 0;
}

/* ===== MODAL ===== */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-content {
  background: white;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  border-radius: 16px;
  text-align: center;
  position: relative;
}

.modal-content h2 {
  margin-bottom: 15px;
  color: #f0a91b;
}

/* CERRAR */
.close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 26px;
  cursor: pointer;
}

/* ===== INFO PRODUCTO ===== */

.product-image {
  position: relative;
}

.product-info {
  background: #ffffff;
  padding: 12px 10px;
  text-align: center;
}

.product-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

/* BOTÓN OJO */
.view-btn {
  background: #ff740a;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 18px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.view-btn:hover {
  background: #ff740a;
  transform: scale(1.1);
}
