* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #000000;
  color: white;
  min-height: 100vh;
}

.container {
  max-width: 100px;
  /* más ancho */
  margin: 0 auto;
  padding: 20px;
}

.summer-banner {
  background: url("imagenes/Summer_Store.webp") no-repeat center center;
  background-size: cover;
  /* Que la imagen cubra todo el área */
  border-radius: 15px;
  padding: 50px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  /* texto arriba */
  min-height: 250px;
  /* más alto */
  width: 53%;
  /* que ocupe todo el ancho disponible */
  max-width: 1400px;
  /* puedes cambiar a 100% si quieres pantalla completa */
  margin-left: auto;
  margin-right: auto;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.banner-content h1 {
  font-size: 3rem;
  font-weight: bold;
  color: #fbfcfc;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 10px;
}

.discount {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fcf6c2;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.banner-character {
  flex-shrink: 0;
}

.banner-character img {
  height: 120px;
  width: auto;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

/* Rank Info Section */
.rank-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  color: #a5aeb3;
  font-size: 1.1rem;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-items: center;
  align-items: stretch;
}

/* Product Cards */
.product-card {
  background: linear-gradient(145deg, #f1ddca 0%, #f1ddca 100%);
  border-radius: 12px;
  padding: 0 0 40px 0;
  /* Increased bottom padding to elongate the card further */
  /* Removing top/side padding to let image stretch, add padding-bottom */
  width: 100%;
  max-width: 320px;
  position: relative;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: auto;
  /* Allow auto height now that we removed the fixed gap */
  overflow: hidden;
  /* Prevent image spilling */
}

.bonus-badge {
  background-color: #E53935;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: none;
  /* User requested removal */
  margin-bottom: 8px;
}

.bonus-25 {
  background-color: #E53935;
}

.product-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  width: 100%;
  height: 420px;
  overflow: hidden;
  position: relative;
  /* Needed for the gradient overlay */
}

/* Gradient overlay to seamlessly blend the bottom of the image into the card background */
.product-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  /* Height of the fade effect */
  background: linear-gradient(to top, #f1ddca 0%, rgba(241, 221, 202, 0) 100%);
  pointer-events: none;
  /* Make sure it doesn't block clicks if any */
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Important to fill the container edge-to-edge perfectly */
  object-position: center top;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}



.product-info {
  text-align: center;
  margin-top: 25px;
  /* Reduced spacing because the image is now huge */
  margin-bottom: 25px;
  padding: 0 15px;
}

.amount {
  display: none;
  /* In case any were left */
}

.currency {
  font-size: 1.25rem;
  /* Make the edition text smaller as per user instructions */
  color: #2a2a2a;
  font-weight: 700;
  line-height: 1.3;
}

.purchase-link {
  text-decoration: none;
  /* sin subrayado */
  color: inherit;
  /* hereda el color del botón */
}

.product-card .purchase-link {
  margin-top: auto;
  padding: 0 20px;
  /* Bring the padding in for the button wrapper */
}

.purchase-btn {
  width: 100%;
  background-color: #000000;
  color: white;
  text-decoration: none;
  /* quitar subrayado */
  outline: none;
  /* quitar borde azul al hacer click */
  border: none;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.purchase-btn:hover {
  background-color: #1A1A1A;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.purchase-btn:active {
  transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .summer-banner {
    padding: 20px;
    min-height: 150px;
    width: 95%;
    /* Para que casi toque los bordes del móvil */
    max-width: 95%;
    /* Evita que se limite a 1200px */
    margin: 0 auto;
    /* Centrado */
    border-radius: 12px;
    /* Mantiene bordes redondeados */
  }

  .summer-banner .banner-content h1 {
    font-size: 1.4rem;
    /* texto más pequeño */
    line-height: 1.2;
    /* más compacto */
  }

  .summer-banner .discount {
    font-size: 1rem;
    /* más pequeño aún */
  }

  .banner-content h1 {
    font-size: 2.2rem;
  }

  .discount {
    font-size: 1.2rem;
  }

  .banner-character img {
    height: 80px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 8px;
  }

  .product-card {
    max-width: none;
    margin: 0 auto;
    padding: 0 0 16px 0;
  }

  .product-image {
    height: 300px;
  }

  .product-info {
    margin-top: 12px;
    margin-bottom: 12px;
    padding: 0 8px;
  }

  .currency {
    font-size: 0.9rem;
  }

  .purchase-btn {
    font-size: 0.82rem;
    padding: 10px 8px;
    gap: 4px;
  }

  .cart-icon {
    width: 18px;
    height: 18px;
  }

  .product-card .purchase-link {
    padding: 0 10px;
  }

  .rank-info {
    font-size: 1rem;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .banner-content h1 {
    font-size: 1.8rem;
  }

  .discount {
    font-size: 1rem;
  }

  .product-card {
    padding: 0 0 24px 0;
  }

  .amount {
    font-size: 1.8rem;
  }

  .currency {
    font-size: 1rem;
  }

  .purchase-btn {
    font-size: 1rem;
    padding: 12px 15px;
  }
}

/* Desktop centering */
@media (min-width: 1024px) {
  .products-grid {
    justify-content: center;
    grid-template-columns: repeat(3, 320px);
  }
}

.info-text {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 15px;
  color: #b3b7bc;
  /* gris claro del texto */
}

.info-icon {
  width: 54px;
  /* tamaño del texto aprox */
  height: 54px;
  /* mantiene proporción pequeña */
}

/* Animación sutil de escala y brillo para el texto/icono */
@keyframes pulse-attention {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(59, 130, 246, 0));
  }

  50% {
    transform: scale(1.02);
    filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.3));
  }

  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(59, 130, 246, 0));
  }
}

.rank-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  background: transparent;
  padding: 10px;
  transition: all 0.3s ease;
  position: relative;
  /* Animación continua muy sutil */
  animation: pulse-attention 4s infinite ease-in-out;
}

/* Remover elementos de fondo del botón anterior */
.rank-link::before {
  display: none;
}

.rank-link:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.6));
  animation: none;
  /* Detener pulso y quedarse en estado hover */
  cursor: pointer;
}

.rank-link:active {
  transform: scale(0.98);
}

.info-text {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bold;
  font-size: 16px;
  color: #fff;
  /* Blanco para mejor contraste sin fondo */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  /* Sombra para legibilidad */
}



.cart-icon {
  width: 30px;
  /* mismo alto que el texto */
  height: 24px;
  object-fit: contain;
}

/* ======= PAYMENT METHODS BOTTOM SHEET ======= */

/* Link de "Ver métodos de pago" */
.payment-methods-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 30px;
  padding: 8px 0;
  transition: opacity 0.2s ease;
}

.payment-methods-link:hover {
  opacity: 0.8;
}

.payment-link-text {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: bold;
  color: #3b82f6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Overlay oscuro detrás del modal */
.payment-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.payment-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Bottom Sheet */
.payment-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #1e1e1e;
  border-radius: 20px 20px 0 0;
  padding: 16px 24px 32px;
  z-index: 2001;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  max-width: 600px;
  margin: 0 auto;
  right: 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
}

.payment-bottom-sheet.active {
  transform: translateY(0);
}

/* Handle / barra superior del sheet */
.sheet-handle {
  width: 40px;
  height: 5px;
  background: #555;
  border-radius: 3px;
  margin: 0 auto 18px;
}

.sheet-title {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
}

/* Lista de métodos de pago */
.payment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.payment-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 8px;
  border-bottom: 1px solid #2a2a2a;
  transition: background 0.2s ease;
}

.payment-item:last-child {
  border-bottom: none;
}

.payment-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

/* Icono del método de pago */
.payment-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background: #fff;
}

.payment-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Nombre del método de pago */

/* =========================================
   CART DRAWER MODAL
   ========================================= */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.cart-overlay.show {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  /* Hidden off-screen initially */
  width: 400px;
  max-width: 100%;
  height: 100vh;
  background-color: #121212;
  z-index: 100001;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.cart-drawer.show {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.close-cart-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.close-cart-btn .close-icon {
  display: inline-block;
  transition: transform 0.4s ease-in-out;
}

.close-cart-btn:hover {
  color: #ff3333;
}

.close-cart-btn:hover .close-icon {
  transform: rotate(90deg);
}

.cart-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Currency Dropdown inside Cart Header */
.cart-currency {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.cart-currency .chevron {
  transition: transform 0.2s;
}

.cart-currency.open .chevron {
  transform: rotate(180deg);
}

.currency-dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  width: 120px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.currency-dropdown.show {
  display: flex;
}

.currency-option {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.2s;
}

.currency-option:hover {
  background-color: #2a2a2a;
}

.currency-option .sym {
  color: #888;
  font-weight: normal;
  width: 20px;
  display: inline-block;
  text-align: right;
}

.cart-user-icon img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: contain;
}

.cart-body {
  padding: 30px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Restrain body height */
}

/* Custom Scrollbar for Cart Items */
.cart-items::-webkit-scrollbar {
  width: 6px;
}

.cart-items::-webkit-scrollbar-track {
  background: transparent;
}

.cart-items::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.cart-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 60px;
}

.cart-title-row h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.item-count {
  background-color: #1e1e1e;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #a0a0a0;
}

.cart-empty-message {
  text-align: center;
  color: #a0a0a0;
  font-size: 15px;
  line-height: 1.5;
  margin-top: 40px;
}

/* ======= MOBILE CART DRAWER - FULL SCREEN ======= */
@media (max-width: 600px) {

  /* Restaurar overlay para bloquear elementos fijos de la página */
  .cart-overlay {
    display: block;
    z-index: 100002;
  }

  .cart-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: auto !important;
    max-width: none !important;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    /* iOS Safari: cubre hasta el borde */
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    z-index: 100003;
    transform: translateX(100%);
    /* !important bloquea la transición de "right" del CSS base */
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .cart-drawer.show {
    transform: translateX(0);
  }

  .cart-body {
    padding: 20px 16px;
  }

  .cart-header {
    padding: 16px;
  }

  .cart-title-row {
    margin-bottom: 24px;
  }

  .cart-title-row h2 {
    font-size: 22px;
  }
}