/* ==== RESET ==== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", Arial, sans-serif;
}

body {
  background: #f4f4f4;
  color: #222;
}

/* ==== HEADER ==== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111;
  color: white;
  padding: 12px 24px;
}

.hamburger {
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

input[type="search"] {
  background: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  width: 200px;
}

.perfill {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff7b00;
}

/* ==== SECONDARY BAR ==== */
.secondary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 10px 24px;
  border-bottom: 1px solid #e5e5e5;
}

.login-btn {
  background: #ff7b00;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 123, 0, 0.25);
  transition: all 0.25s ease;
}

.login-btn:hover {
  background: #e96f00;
  transform: translateY(-2px);
}

/* ==== NAV SUPERIOR DERECHA ==== */
.nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav button {
  background: #ffffff;
  color: #222;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

.nav button:hover {
  background: #ff7b00;
  color: white;
  border-color: #ff7b00;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(255, 123, 0, 0.25);
}

.nav button:active {
  transform: scale(0.97);
}

#navCart {
  background: #111;
  color: white;
  border: 1px solid #111;
}

#navCart:hover {
  background: #ff7b00;
  border-color: #ff7b00;
}

#navWishlist {
  background: #fff7f0;
  color: #ff7b00;
  border: 1px solid #ffd2ad;
}

#navWishlist:hover {
  background: #ff7b00;
  color: white;
  border-color: #ff7b00;
}

#navProfile {
  background: #f5f5f5;
  color: #333;
}

#navProfile:hover {
  background: #222;
  color: white;
  border-color: #222;
}

/* ==== MAIN ==== */
main {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 16px;
}

.page-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 20px;
}

.top-section {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.col {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
}

.col.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.col.center img {
  max-width: 250px;
  height: auto;
}

/* ==== CATEGORÍAS ==== */
.categories {
  text-align: center;
  margin: 40px 0 20px;
}

.cat-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cat-buttons button {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  cursor: pointer;
  transition: 0.25s ease;
}

.cat-buttons button:hover {
  background: #005fd1;
  transform: translateY(-2px);
}

/* ==== CARRUSEL ==== */
.carousel-section {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.panel {
  flex: 1 1 45%;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  overflow: hidden;
}

.panel img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.panel img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* ==== MENÚ MÓVIL ==== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  justify-content: flex-start;
  align-items: stretch;
  z-index: 3000;
}
.panel-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active .panel-menu {
  transform: translateX(0);
}
.panel-menu {
  width: 280px;
  max-width: 85%;
  height: 100%;
  background: #ffffff;
  padding: 20px 16px;
  box-shadow: 4px 0 18px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-menu button {
  width: 100%;
  text-align: left;
  background: #ffffff;
  color: #222;
  border: 1px solid #e2e2e2;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

.panel-menu button:hover {
  background: #ff7b00;
  color: white;
  border-color: #ff7b00;
  transform: translateX(3px);
  box-shadow: 0 6px 14px rgba(255, 123, 0, 0.22);
}

.panel-menu button:active {
  transform: scale(0.98);
}

#m-close {
  background: #111;
  color: white;
  border: 1px solid #111;
  text-align: center;
  margin-bottom: 8px;
}

#m-close:hover {
  background: #333;
  border-color: #333;
  transform: none;
}

#mWishlist {
  background: #fff7f0;
  color: #ff7b00;
  border: 1px solid #ffd2ad;
}

#mWishlist:hover {
  background: #ff7b00;
  color: white;
  border-color: #ff7b00;
}

#mCart {
  background: #111;
  color: white;
  border: 1px solid #111;
}

#mCart:hover {
  background: #ff7b00;
  border-color: #ff7b00;
}

#mProfile {
  background: #f5f5f5;
  color: #333;
}

#mProfile:hover {
  background: #222;
  color: white;
  border-color: #222;
}

#openLoginBtnMobile {
  background: #ff7b00;
  color: white;
  border: none;
  font-weight: 700;
}

#openLoginBtnMobile:hover {
  background: #e96f00;
  color: white;
}

#mobileLogoutBtn {
  background: #ffeaea;
  color: #d62828;
  border: 1px solid #ffc9c9;
  font-weight: 700;
}

#mobileLogoutBtn:hover {
  background: #d62828;
  color: white;
  border-color: #d62828;
}

/* ==== RESPONSIVE GENERAL ==== */
@media (max-width: 900px) {
  .top-section {
    flex-direction: column;
  }

  .page-title {
    font-size: 28px;
  }

  .secondary-bar {
    flex-direction: column;
    gap: 10px;
  }
}

/* ==== RESPONSIVE CELULAR ==== */
@media (max-width: 600px) {
  .page-title {
    font-size: 22px;
    margin-top: 10px;
  }



  /* Reordenar contenido */
  .top-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .carousel-section {
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 14px;
  }

  .panel {
    flex: 0 0 calc(50% - 6px);
    height: 140px;
  }

  .cat-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .cat-buttons button {
    width: 160px;
  }

  header {
    padding: 10px 14px;
  }

  input[type="search"] {
    width: 140px;
    font-size: 13px;
  }

  .perfill {
    width: 44px;
    height: 44px;
  }

  .hamburger {
    font-size: 26px;
  }

  main {
    padding: 0 10px;
  }

  .col {
    padding: 16px;
  }

  .col.center img {
    max-width: 180px;
  }
}
@media screen and (max-width: 600px) {
  .secondary-bar {
    display: none !important;
  }
}
@media screen and (max-width: 600px) {
  .secondary-bar {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 14px 10px;
    background: #ffffff;
  }

  .secondary-bar > div:first-child {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .nav button {
    background: #ffffff;
    color: #222;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
  }

  .nav button:hover,
  .nav button:active {
    background: #ff7b00;
    color: white;
    border-color: #ff7b00;
  }

  #navCart {
    background: #111;
    color: white;
    border-color: #111;
  }

  #navWishlist {
    background: #fff7f0;
    color: #ff7b00;
    border-color: #ffd2ad;
  }

  #navProfile {
    background: #f5f5f5;
    color: #333;
  }
}
/* ===== FOOTER ===== */
.footer {
  margin-top: 40px;
  background: #111;
  color: white;
  text-align: center;
  padding: 18px 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.footer p {
  margin: 0;
}
@media (max-width: 600px) {
  .footer {
    font-size: 13px;
    padding: 16px 8px;
  }
}