* {
  font-family: 'Reddit Sans', sans-serif;
}

/* Size Selector Styling */
.size-option {
  border: 2px solid #d1d5db;
  background: white;
  border-radius: 12px;
  padding: 12px 24px;
  transition: all 0.2s ease;
  cursor: pointer;
  font-weight: 500;
}

.size-option:hover:not(.size-disabled):not(.size-selected) {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.size-selected {
  border-color: #fdd701;
  background-color: #fffbe6;
  color: #374151;
}

.size-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  color: #9ca3af;
}

/* Wishlist Button Styling */
.wishlist-btn {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.wishlist-btn:hover {
  background-color: rgba(239, 68, 68, 0.1);
}

.wishlist-btn.wishlist-active {
  color: #ef4444;
}

.wishlist-btn.wishlist-active:hover {
  background-color: rgba(239, 68, 68, 0.2);
}

/* FAQ Section Styling */
.faq-toggle {
  border: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s ease;
}

.faq-toggle:hover {
  background-color: #f9fafb;
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-content {
  background: white;
  padding: 0 32px 24px;
}

.faq-content p {
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .faq-toggle {
    padding: 20px 24px;
  }

  .faq-content {
    padding: 0 24px 20px;
  }
}

/* CTA Button Styling */
.bg-yellow-custom {
  background-color: #ffcc00;
}

.bg-yellow-custom:hover {
  background-color: #e6b800;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
  cursor: pointer;
}

.quantity-btn:hover {
  background-color: #184195;
  color: white;
}

.quantity-display {
  padding: 4px 12px;
  color: #184195;
  font-weight: 500;
  min-width: 2rem;
  text-align: center;
  border: none;
  background: transparent;
  outline: none;
  user-select: none;
}

/* Product Detail Page */
.product-detail {
  background: #ffffff;
}

html {
  scroll-behavior: smooth;
}

/* CTA Section Styles */
.cta-section {
  background: #184195;
}

.cta-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* CTA Grid Responsive Behavior */
.cta-grid {
  display: grid;
  gap: 2rem;
}

/* Desktop: 3-column grid */
@media (min-width: 1024px) {
  .cta-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet: 2-column grid */
@media (min-width: 768px) and (max-width: 1023px) {
  .cta-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
  }

  /* Make cards slightly more compact on tablet */
  .cta-card {
    padding: 1.5rem 1rem;
  }

  .cta-card h3 {
    font-size: 1.25rem;
  }
}

/* Mobile: Single column */
@media (max-width: 767px) {
  .cta-section {
    padding: 3rem 0;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .cta-card {
    padding: 1.5rem 1rem;
    margin-bottom: 0;
  }

  .cta-card h3 {
    font-size: 1.125rem;
  }

  .cta-card p {
    font-size: 14px;
  }
}

/* CTA Buttons */
.cta-card button {
  background: #fdd701;
  border: none;
  color: #1f2937;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  font-size: 0.875rem;
}

/* CTA Card Description Text */
.cta-card p {
  font-size: 14px;
  line-height: 1.5;
}

/* Section Header Responsive Typography */
@media (max-width: 767px) {
  .cta-section h2 {
    font-size: 1.75rem !important;
    line-height: 1.2;
  }
  .cta-section .mb-12 {
    margin-bottom: 2rem;
  }
}

/* Related Products Section */
.related-products {
  background: #ffffff;
}

/* Hide scrollbar but keep functionality */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Product Cards */
.product-card {
  background: rgba(220, 229, 249, 0.4);
  border-radius: 12px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
}

.product-card img {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

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

/* Product Navigation Arrows */
.related-products button:first-child {
  background: #fdd701;
  color: #1f2937;
  transition: background-color 0.2s ease;
  border: 2px solid #fdd701;
}

.related-products button:first-child:disabled {
  background: #ffffff;
  color: #fdd701;
  border: 2px solid #fdd701;
  cursor: not-allowed;
}

.related-products button:last-child {
  background: #fdd701;
  color: #1f2937;
  border: 2px solid #fdd701;
}

.related-products button:last-child:disabled {
  background: #ffffff;
  color: #fdd701;
  border: 2px solid #fdd701;
  cursor: not-allowed;
}

/* Responsive Navigation */
@media (max-width: 767px) {
  .related-products .flex.items-center.space-x-2 {
    display: none;
  }

  .related-products {
    padding: 3rem 0;
  }
}

/* Products Carousel Responsive Layout */
.products-carousel {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  border-radius: 12px;
}

@media (min-width: 1024px) {
  .products-carousel {
    margin: 0 auto;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .products-carousel {
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .products-carousel {
    gap: 0.5rem;
    padding: 0;
  }
}

/* Product Tags */
.product-card span.tag {
  font-size: 0.75rem;
  font-weight: 600;
}

/* Discount tags (pink/red background) */
.product-card span[class*='bg-pink'] {
  background: #ffcdcc !important;
  color: #000000;
}

/* Blue tags ("Nuevo" badges) */
.product-card span[class*='bg-blue-900'] {
  background: #184195 !important;
}

/* Product Color Swatches */
.product-card div[class*='w-6 h-6'] {
  width: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.product-card div[class*='w-6 h-6']:hover {
  border-color: #3b82f6;
}

/* Product Titles */
.product-card h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}

/* Product Prices */
.product-card .line-through {
  font-size: 0.875rem;
}

/* Product Detail Page Styles */
.product-detail {
  background: #ffffff;
}

/* Breadcrumbs */
.product-detail nav a {
  transition: color 0.2s ease;
}

/* Main Image Container */
.product-detail .h-96 {
  background: #f8f9fa;
}

/* Thumbnail Gallery */
.product-detail .grid.grid-cols-3 div {
  background: rgba(220, 229, 249, 0.2);
  border-radius: 12px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.product-detail .grid.grid-cols-3 div:hover {
  background: rgba(220, 229, 249, 0.3);
  transform: translateY(-1px);
}

.product-detail .grid.grid-cols-3 div.active {
  border: 1px solid #184195;
  background: rgba(220, 229, 249, 0.3);
}

.product-detail .grid.grid-cols-3 img {
  transition: transform 0.2s ease;
  border-radius: 8px;
}

/* Product Details */
.product-detail h1 {
  color: #1f2937;
  font-weight: 700;
  line-height: 1.2;
}

.product-detail .text-3xl {
  color: #1f2937;
  font-weight: 700;
}

.product-detail .line-through {
  color: #9ca3af;
  font-weight: 400;
}

/* Color Swatches */
.product-detail .w-8.h-8 {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  cursor: pointer;
}

.product-detail .w-8.h-8:hover {
  transform: scale(1.1);
}

.product-detail .w-8.h-8.border-3 {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* Size Buttons */
.product-detail button[class*='px-4 py-2'] {
  transition: all 0.2s ease;
  font-weight: 500;
}

.product-detail button[class*='px-4 py-2']:hover {
  background: #fef3c7;
  border-color: #f59e0b;
}

/* Delivery Info */
.product-detail .border-gray-200 {
  background: #f9fafb;
}

.product-detail .text-blue-600 {
  color: #2563eb;
  transition: color 0.2s ease;
}

.product-detail .text-blue-600:hover {
  color: #1d4ed8;
}

/* Quantity Selector */
.product-detail .border-gray-300 {
  background: #ffffff;
}

.product-detail button[class*='px-3 py-2'] {
  transition: all 0.2s ease;
  font-weight: 600;
}

.product-detail button[class*='px-3 py-2']:hover {
  background: #f3f4f6;
  color: #1f2937;
}

/* CTA Button */
.product-detail .bg-yellow-400 {
  background: #fcd34d;
  color: #1f2937;
  font-weight: 700;
  transition: all 0.2s ease;
}

.product-detail .bg-yellow-400:hover {
  background: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

#zoom-result {
  background-repeat: no-repeat;
  width: calc(100% + 5px);
  margin-left: -2px;
}

@media (max-width: 912px) {
  #zoom-result {
    display: none !important;
  }
}

/* Hide scrollbar on mobile */
.flex.overflow-x-auto::-webkit-scrollbar {
  display: none;
}
.flex.overflow-x-auto {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@media (max-width: 767px) {
  .category-card {
    flex: 0 0 auto;
    width: 280px;
    margin-right: 16px;
  }
  .category-card:last-child {
    margin-right: 0;
  }

  /* Mobile CTA Bar - Fixed at bottom */
  .product-detail .space-y-4:last-child {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 49;
    border-top: 1px solid #e5e7eb;
  }

  /* Add bottom padding to main content to account for fixed CTA */
  .product-detail .grid {
    padding-bottom: 1rem;
  }

  /* Hide size selector on mobile as per spec */
  /* .product-detail .mb-6:nth-child(6) {
    display: none;
  } */

  /* Adjust delivery info layout for mobile */
  .product-detail .flex.items-center.justify-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .product-detail .flex.items-center.justify-between > div:last-child {
    align-self: stretch;
    display: flex;
    justify-content: flex-end;
  }

  /* Make heart icon smaller on mobile */
  .product-detail .w-6.h-6 {
    width: 1.25rem;
    height: 1.25rem;
  }

  /* Adjust thumbnail sizes for mobile */
  .product-detail .w-16.h-16 {
    width: 3.5rem;
    height: 3.5rem;
  }

  /* Stack elements vertically on mobile */
  .product-detail .flex.items-center.space-x-4 {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .product-detail .flex.items-center.space-x-4 > span:first-child {
    align-self: flex-start;
  }
}

@media (min-width: 768px) {
  /* Two-column layout for desktop - 50/50 split */
  .product-detail .grid-cols-1.lg\\:grid-cols-2 {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  /* Heart icon positioning */
  .product-detail .flex.justify-end {
    position: absolute;
    top: 0;
    right: 0;
  }

  /* Enhanced hover effects for desktop */
  .product-detail .w-8.h-8:not(.border-3):hover {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
  }
}

/* ==============================================
   MOBILE NAVIGATION DRAWER STYLES
   ============================================== */

.mobile-menu-level {
  /* position: absolute; */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease-in-out;
  background: white;
}

.mobile-menu-level.hidden {
  transform: translateX(100%);
}

/* Active menu level (visible) */
.mobile-menu-level:not(.hidden) {
  transform: translateX(0);
}

/* Mobile Navigation Drawer */
#mobile-menu-overlay {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Menu Items */
.mobile-submenu-toggle,
.mobile-back-btn {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.mobile-submenu-toggle:hover,
.mobile-back-btn:hover {
  background-color: #f9fafb;
}

/* Menu Level Transitions */
#mobile-menu-content {
  position: relative;
  height: calc(100vh - 140px);
  /* overflow: hidden; */
}

/* Animation for menu transitions */
.mobile-menu-level.entering {
  animation: slideInFromRight 0.3s ease-in-out;
}

.mobile-menu-level.exiting {
  animation: slideOutToLeft 0.3s ease-in-out;
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideOutToLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Bottom Utility Bar */
#mobile-menu-drawer .fixed.bottom-0 {
  background: #0d47a1;
  z-index: 10;
}

/* Package icon in bottom bar */
#mobile-menu-drawer .fixed.bottom-0 svg path {
  fill: white;
}

/* Custom Radio Button Styling */
.custom-radio {
  position: relative;
  display: flex;
  align-items: center;
}

.custom-radio input[type='radio'] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-label {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.radio-label::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #184195;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease;
}

.custom-radio input[type='radio']:checked + .radio-label {
  border-color: #184195;
  background: #f8f9ff;
}

.custom-radio input[type='radio']:checked + .radio-label::after {
  transform: translate(-50%, -50%) scale(1);
}

.custom-radio input[type='radio']:focus + .radio-label {
  box-shadow: 0 0 0 3px rgba(24, 65, 149, 0.2);
}

/* ==============================================
   GRILLA DETALLE DEL PRODUCTO
   ============================================== */

/* --- Contenedor Principal de la Imagen --- */
.product-main-view {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border-radius: 0.5rem;
  border: 1px solid #f3f4f6;
  padding: 1rem;
  overflow: hidden;
  margin: 0 auto;
}

/* Medidas Responsivas - Vista Principal */
@media (max-width: 767px) {
  .product-main-view {
    width: 100%;
    height: 394px; /* Medida Mobile */
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .product-main-view {
    width: 42.125rem; /* 674px Tablet */
    height: 34.375rem; /* 550px Tablet */
  }
}

@media (min-width: 1024px) {
  .product-main-view {
    width: 29rem; /* 464px Desktop */
    height: 29rem; /* 464px Desktop - cuadrado perfecto 1:1 */
  }
}

/* Imagen dentro del contenedor */
#main-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Llena el cuadrado perfectamente */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

/* --- Miniaturas (Thumbnail List) --- */
.thumbnail-list {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Orientación de la lista */
@media (max-width: 767px) {
  .thumbnail-list {
    flex-direction: row;
    justify-content: center;
    width: 100%;
  }
}

@media (min-width: 768px) {
  .thumbnail-list {
    flex-direction: column;
  }
}

/* Item de Miniatura Individual */
.thumbnail-item {
  width: 5.25rem; /* 84px */
  height: 4.5625rem; /* 73px */
  background-color: #dce5f933;
  border-radius: 0.75rem;
  padding: 0.5rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.thumbnail-item:hover {
  border-color: #bfdbfe;
}

.thumbnail-item.active-thumbnail {
  border-color: #184195;
  background-color: #dce5f933;
}

/* ==============================================
   FOOTER
   ============================================== */

@media (min-width: 768px) and (max-width: 1280px) {
  footer .secure-pay {
    margin-left: 16px;
    margin-right: 16px;
    width: auto;
  }
}

/* ==============================================
    Partnerships Section
   ============================================== */

/* Limpieza básica y scrollbar */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* El contenedor (Corta y Difumina) */
.brand-carousel-window {
  position: relative;
  width: 100%;
  max-width: 1536px;
  margin: 0 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);

  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* El contenedor que hace Scroll */
#brand-container {
  display: flex;
  overflow-x: auto;
  cursor: grab;
  /* Esto evita rebotes elásticos en móviles */
  overscroll-behavior-x: none;
}

#brand-container:active {
  cursor: grabbing;
}

/* Estilos de las Tarjetas de Marca (Ajustados para Desktop) */
.brand-card {
  flex-shrink: 0;
  width: 15rem;
  height: 10rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .brand-card {
    width: 18rem;
  }
}

/* ==============================================
    Términos y Condiciones
   ============================================== */
.text-justify-custom {
  text-align: justify;
  text-justify: inter-word;
}

.shadow-terms {
  box-shadow: 0 4px 25px -5px rgba(0, 0, 0, 0.05);
}

.terms-title {
  color: #000000;
  font-weight: 700;
  font-size: 28px;
  text-align: center;
}

.terms-heading {
  color: #000000;
  font-weight: 600;
  font-size: 18px;
}

.terms-text-title {
  color: #000000;
  font-weight: 700;
  font-size: 14px;
}

.terms-text {
  color: #000000;
  font-weight: 400;
  font-size: 14px;
}

/* ==============================================
    Interna Favoritos
   ============================================== */

/* Título de la página */
.favoritos-title {
  color: #184195;
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Tarjeta de estado vacío */
.favoritos-empty-card {
  border: 1px solid #1919194d;
  border-radius: 20px;
  padding: 40px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Círculo del ícono */
.favoritos-icon-circle {
  background-color: #eff6ff;
  border-radius: 9999px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* El ícono SVG */
.favoritos-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: #1d4ed8;
}

/* Mensaje principal */
.favoritos-empty-message {
  color: #000000;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-align: center;
}

/* Descripción secundaria */
.favoritos-empty-description {
  color: #474747;
  font-size: 1.125rem;
  text-align: center;
}


body.mobile-menu-open {
    overflow: hidden !important;
}

/* Filtro precio */

/* Apaga el destello azul automático de Mobile/Tablet al tocar la zona */
input[type='range'] {
  -webkit-tap-highlight-color: transparent;
}

/* Asegura que los inputs no tengan fondos raros en iOS/Android */
input[type='range']::-webkit-slider-runnable-track {
  background: transparent;
  background-color: transparent !important;
}
input[type='range']::-moz-range-track {
  background: transparent;
  background-color: transparent !important;
}
.slider-azul::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  border: 2px solid #184195 !important;
}
.slider-azul::-moz-range-thumb {
  box-sizing: border-box;
  border: 2px solid #184195 !important;
}