/* ============================================
   ESCAPARATE RETAIL - DISEÑO PRINCIPAL
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: #f5f5f7;
  color: #1a1a1a;
  line-height: 1.4;
}

/************* GOOGLE TRANSLATE - OCULTAR TODO *************/

/* Bloquear completamente el banner y la barra superior */
.skiptranslate,
.goog-te-banner-frame,
.goog-te-balloon-frame,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf-ti6hGc,
.VIpgJd-ZVi9od-l4eHX,
.VIpgJd-ZVi9od-xl07Ob-OEVmcd,
.VIpgJd-ZVi9od-ORHb-OEVmcd {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
}

/* Ocultar spinners de carga */
.goog-te-spinner,
.goog-te-spinner-pos,
.goog-te-spinner-icon,
.goog-te-spinner-pos div,
.goog-te-spinner-pos span,
.goog-te-spinner-icon div,
.goog-te-spinner-icon span {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
}

/* Ocultar gadgets y iframes */
.goog-te-gadget,
.goog-te-gadget-simple,
.goog-te-menu-frame,
.goog-te-menu2-frame,
iframe.goog-te-banner-frame,
iframe.goog-te-menu-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
}

/* Eliminar margen superior */
body {
  top: 0px !important;
  position: relative !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* El selector de idioma: oculto siempre */
#google_translate_element {
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* OCULTAR EN MÓVIL */
@media (max-width: 768px) {
  #google_translate_element {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

/* ============================================
   HEADER
   ============================================ */
.logo {
  max-width: 150px;
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto 15px;
  display: block;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: #ffffff;
  padding: 4px;
}

@media (max-width: 768px) {
  .logo {
    max-width: 120px;
    max-height: 120px;
  }
}

@media (max-width: 480px) {
  .logo {
    max-width: 100px;
    max-height: 100px;
  }
}

.header {
  background: black;
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
}

.brand {
  font-size: 1.3rem;
  font-weight: 500;
  color: white;
}

.subtitulo {
  font-size: 0.85rem;
  color: #cccccc;
  margin-top: 5px;
}

/* ============================================
   BOTÓN FLOTANTE INFORMACIÓN TIENDA
   ============================================ */
.btn-flotante-info {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(255, 68, 68, 0.4);
  transition: all 0.3s ease;
  animation: pulse-btn-info 3s ease-in-out infinite;
}

.btn-flotante-info:hover {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #ff6666, #ff3333);
  box-shadow: 0 6px 25px rgba(255, 68, 68, 0.6);
}

.btn-flotante-info:active {
  transform: scale(0.95);
}

@keyframes pulse-btn-info {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(255, 68, 68, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(255, 68, 68, 0.7);
  }
}

/* Responsive - para móviles */
@media (max-width: 480px) {
  .btn-flotante-info {
    width: 50px;
    height: 50px;
    font-size: 18px;
    bottom: 15px;
    right: 15px;
  }
}

/* ============================================
   IDIOMAS
   ============================================ */
.lang-switch {
  text-align: center;
  margin-top: 10px;
  display: inline-flex;
  background: #f0f0f0;
  border-radius: 20px;
  padding: 3px;
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  cursor: pointer;
  color: #666;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: #000;
  color: #fff;
}

.lang-btn:hover:not(.active) {
  background: #ddd;
}

/* ============================================
   BUSCADOR
   ============================================ */
.search-container {
  background: #ffffff;
  padding: 15px 20px 8px 20px;
  border-bottom: 1px solid #e5e5e5;
}

.search-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.search-input-wrapper {
  position: relative;
}

.search-input-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.search-input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  border: 1px solid #ddd;
  border-radius: 30px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  border-color: #000;
}

/* ============================================
   FILTROS (TIPO ZARA/MANGO)
   ============================================ */
.filters-container {
  background: #ffffff;
  padding: 0 20px 12px 20px;
  border-bottom: 1px solid #e5e5e5;
}

.filters-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filters-toggle {
  display: none;
  background: #f0f0f0;
  border: none;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  cursor: pointer;
  color: #333;
  transition: all 0.2s ease;
  align-items: center;
  gap: 6px;
}

.filters-toggle:hover {
  background: #e0e0e0;
}

.filters-toggle i {
  font-size: 0.9rem;
}

.filters-badge {
  background: #000;
  color: white;
  border-radius: 50%;
  padding: 0px 6px;
  font-size: 0.6rem;
  min-width: 18px;
  text-align: center;
  display: none;
}

.filters-content {
  display: flex;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  flex: 1;
}

.filter-group-modern {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== CHIPS ===== */
.chip-btn {
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 30px;
  background: white;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #666;
  white-space: nowrap;
}

.chip-btn:hover {
  border-color: #999;
  background: #f5f5f5;
}

.chip-btn.active {
  background: #000;
  color: white;
  border-color: #000;
}

/* ===== BOTÓN LIMPIAR ===== */
.filter-btn-clear-modern {
  padding: 6px 14px;
  background: transparent;
  color: #999;
  border: 1px solid #eee;
  border-radius: 30px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-btn-clear-modern:hover {
  background: #f5f5f5;
  border-color: #ddd;
  color: #333;
}

/* ============================================
   RESPONSIVE FILTROS
   ============================================ */
@media (max-width: 768px) {
  .filters-toggle {
    display: flex;
  }

  .filters-content {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid #eee;
  }

  .filters-content.open {
    display: flex;
  }

  .filter-group-modern {
    flex-wrap: wrap;
    justify-content: center;
  }

  .filter-label {
    width: 100%;
    text-align: center;
  }

  .chip-btn {
    padding: 5px 12px;
    font-size: 0.7rem;
  }

  .filter-btn-clear-modern {
    text-align: center;
    width: 100%;
  }
}

/* ============================================
   CATEGORÍAS (SCROLL HORIZONTAL)
   ============================================ */

/* ============================================
   CATEGORÍAS (SCROLL HORIZONTAL)
   ============================================ */
.categories {
  background: #ffffff;
  padding: 12px 20px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: flex-start;
  /* ← Alineado a la izquierda para scroll */
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  /* ← Scroll suave en iOS */
}

.categories::-webkit-scrollbar {
  height: 3px;
}

.categories::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.cat-btn {
  background: #f0f0f0;
  border: none;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  cursor: pointer;
  color: #333;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
  /* ← Evita que se encojan */
}

.cat-btn.active {
  background: #000;
  color: #fff;
}

.cat-btn:hover:not(.active) {
  background: #ddd;
}

/* ============================================
   RESPONSIVE CATEGORÍAS
   ============================================ */
@media (max-width: 768px) {
  .categories {
    padding: 10px 16px;
    gap: 6px;
  }

  .cat-btn {
    padding: 5px 14px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .categories {
    padding: 8px 12px;
    gap: 5px;
  }

  .cat-btn {
    padding: 4px 12px;
    font-size: 0.7rem;
  }
}

/* ============================================
   LISTA DE PRODUCTOS
   ============================================ */
.product-list {
  max-width: 1300px;
  margin: 0 auto;
  padding: 30px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

@media (max-width: 768px) {
  .product-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 20px 16px;
    scrollbar-width: thin;
  }

  .product-list::-webkit-scrollbar {
    height: 4px;
  }

  .product-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
  }

  .product-card {
    flex: 0 0 75%;
    scroll-snap-align: start;
    min-width: 250px;
  }
}

/* ============================================
   TARJETA DE PRODUCTO
   ============================================ */
.product-card {
  background: #141414;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #2a2a2a;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #444;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.product-card.hidden {
  display: none;
}

/* ============================================
   CONTENEDOR DE IMAGEN
   ============================================ */
.product-image-container {
  width: 100%;
  height: 240px;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border-bottom: 1px solid #2a2a2a;
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-image-container .image-overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.product-image-container:hover .image-overlay {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.8);
}

/* ============================================
   BADGE MÁS VENDIDO
   ============================================ */
.badge-destacado {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 15px rgba(255, 68, 68, 0.5);
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* ============================================
   TEXTO DE LA TARJETA
   ============================================ */
.product-name {
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  padding: 16px 16px 4px;
  text-align: center;
  margin: 0;
}

.product-category {
  font-size: 0.7rem;
  color: #cccccc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 16px 8px;
  text-align: center;
  margin: 0;
}

.product-desc {
  font-size: 0.8rem;
  color: #aaaaaa;
  padding: 0 16px 8px;
  line-height: 1.4;
  text-align: center;
  margin: 0;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  padding: 4px 16px 8px;
  text-align: center;
  margin: 0;
}

.price-old {
  text-decoration: line-through;
  color: #999;
  font-size: 0.85rem;
  font-weight: 400;
  margin-right: 8px;
}

.price-new {
  color: #ff4444;
  font-weight: 700;
  font-size: 1.2rem;
}

.product-tallas {
  padding: 4px 16px 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.talla-badge {
  background: #1a1a1a;
  color: #dddddd;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  border: 1px solid #2a2a2a;
}

/* ============================================
   MODAL DE IMAGEN
   ============================================ */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.modal-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: -50px;
  right: -10px;
  background: none;
  border: none;
  color: white;
  font-size: 36px;
  cursor: pointer;
  transition: transform 0.3s ease;
  padding: 10px;
}

.modal-close:hover {
  transform: rotate(90deg);
}

/* ============================================
   BOTÓN SUBIR
   ============================================ */
.scroll-top-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  background: #ffc451;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: #222;
  transform: scale(1.1);
}

/* ============================================
   RESPONSIVE EXTRA
   ============================================ */
@media (max-width: 480px) {
  .product-card {
    flex: 0 0 85%;
    min-width: 200px;
  }

  .brand {
    font-size: 1.1rem;
  }

  .product-image-container {
    height: 180px;
  }

  .modal {
    padding: 20px;
  }

  .modal-content img {
    max-height: 70vh;
  }

  .modal-close {
    top: -40px;
    right: 0;
    font-size: 28px;
  }
}

@media (max-width: 380px) {
  .product-card {
    flex: 0 0 90%;
    min-width: 160px;
  }

  .product-image-container {
    height: 150px;
  }

  .categories {
    padding: 10px 12px;
    gap: 6px;
  }

  .cat-btn {
    padding: 4px 12px;
    font-size: 0.7rem;
  }
}

/***************************/
/********************************/

/*** container imagenes miniatura****/

/* ============================================
           ✅ MODAL DE IMÁGENES (GALERÍA)
           ============================================ */
#imageModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  flex-direction: column;
}

#imageModal.active {
  display: flex;
}

#imageModal .modal-content {
  max-width: 90%;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.main-image-container {
  width: 100%;
  max-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#modalImage {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
}

.thumbnails-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px;
  max-width: 90vw;
  scrollbar-width: thin;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.thumbnails-strip.single-image {
  display: none;
}

.thumb-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.2s ease;
  opacity: 0.6;
  flex-shrink: 0;
}

.thumb-img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.thumb-img.active {
  border-color: #ff4444;
  opacity: 1;
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.6);
}

#imageModal .modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

#imageModal .modal-close:hover {
  background: #ff4444;
  transform: rotate(90deg);
}

@media (max-width: 480px) {
  .main-image-container,
  #modalImage {
    max-height: 50vh;
  }

  .thumb-img {
    width: 50px;
    height: 50px;
  }
}




/* ============================================
   ✅ MODAL AUTOMÁTICO AVISO ESPECIAL
   ============================================ */
.modal-aviso-auto {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.modal-aviso-auto.active {
    opacity: 1;
    visibility: visible;
}

.modal-aviso-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 30px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    position: relative;
    border: 2px solid #000;
    animation: slideInBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
}

@keyframes slideInBounce {
    0% {
        transform: translateY(-100px) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-aviso-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #000;
    cursor: pointer;
    transition: all 0.2s;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-aviso-close:hover {
    background: #000;
    color: #fff;
    transform: rotate(90deg);
}

.aviso-icon {
    width: 70px;
    height: 70px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: pulseAviso 2s ease-in-out infinite;
}

@keyframes pulseAviso {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.aviso-icon i {
    font-size: 32px;
    color: #fff;
}

.aviso-titulo {
    color: #000;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.aviso-texto {
    color: #1a1a1a;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 10px;
    border-left: 4px solid #000;
    text-align: left;
}

.aviso-progress {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
}

.aviso-progress-bar {
    height: 100%;
    background: #000;
    width: 100%;
    border-radius: 10px;
    transition: width linear;
}

@media (max-width: 480px) {
    .modal-aviso-content {
        padding: 25px 20px;
        max-width: 95%;
    }
    .aviso-titulo {
        font-size: 1.2rem;
    }
    .aviso-icon {
        width: 60px;
        height: 60px;
    }
    .aviso-icon i {
        font-size: 26px;
    }
}
