/* === Main Slider Swiper Styles === */

.main-slider {
    height: auto; /* Altura automática para respetar el aspect-ratio */
    width: 100%;
    max-width: 1200px; /* Ancho máximo para centrar */
    margin: 0 auto 2rem auto; /* Centrado horizontal y margen inferior */
    position: relative;
    aspect-ratio: 16 / 7; /* Proporción para que no sea tan bajo */
    padding: 0 15px; /* Padding lateral igual al contenedor */
    box-sizing: border-box; /* Para que el padding no afecte el ancho total */
}

#main-swiper {
    height: 100%;
    width: 100%;
}

#main-swiper .swiper-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end; /* Alinea el contenido en la parte inferior */
    justify-content: flex-start; /* Alinea el contenido a la izquierda */
    padding: 50px;
    box-sizing: border-box;
}

#main-swiper .slide-content {
    color: #fff;
    text-align: left;
    max-width: 600px; /* Ancho máximo del contenido */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

#main-swiper .slide-content h1 {
    font-size: 3.5em;
    font-weight: 900;
    margin: 0 0 15px 0;
    line-height: 1.1;
    text-transform: uppercase;
}

#main-swiper .slide-content .btn-comprar {
    background-color: #fff;
    color: #1a1a1a;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    border: 2px solid #fff;
    text-transform: uppercase;
}

#main-swiper .slide-content .btn-comprar:hover {
    background-color: transparent;
    color: #fff;
}

/* --- Main Slider Navigation & Pagination --- */

#main-swiper .swiper-button-prev,
#main-swiper .swiper-button-next {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    transition: background-color 0.3s;
}

#main-swiper .swiper-button-prev:hover,
#main-swiper .swiper-button-next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

#main-swiper .swiper-button-prev::after,
#main-swiper .swiper-button-next::after {
    font-size: 20px;
    font-weight: bold;
}

#main-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.7);
    width: 12px;
    height: 12px;
    opacity: 1;
}

#main-swiper .swiper-pagination-bullet-active {
    background: #fff;
}

/* --- Main Slider Responsive Adjustments --- */

@media (max-width: 768px) {
    .main-slider {
        height: 60vh;
    }

    #main-swiper .slide-content {
        padding: 30px;
        max-width: 90%;
    }

    #main-swiper .slide-content h1 {
        font-size: 2.5em;
    }

    #main-swiper .slide-content .btn-comprar {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    #main-swiper .swiper-button-prev,
    #main-swiper .swiper-button-next {
        width: 40px;
        height: 40px;
    }

    #main-swiper .swiper-button-prev::after,
    #main-swiper .swiper-button-next::after {
        font-size: 16px;
    }
}

/* === Product Sliders Swiper Styles === */

.productos-section .swiper-container {
  padding: 10px 0;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.productos-section .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: stretch; /* Estira los items para que tengan la misma altura */
  box-sizing: border-box;
  padding: 15px 10px; /* Añade padding vertical para que la sombra no se corte */
  height: auto;
}

.productos-section .product-card {
    width: 100%;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.productos-section .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.productos-section .product-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.productos-section .product-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.productos-section .product-card:hover img {
    transform: scale(1.1);
}

.productos-section .product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.productos-section .product-card:hover .product-overlay {
    opacity: 1;
}

.productos-section .btn-ver-producto {
    color: #fff;
    background-color: rgba(26, 26, 26, 0.8);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: none;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.productos-section .product-card:hover .btn-ver-producto {
    transform: translateY(0);
}

.productos-section .product-info {
    padding: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.productos-section .product-info .marca {
    font-size: 0.8em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 2px; /* Reducido */
    font-weight: bold;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.productos-section .stock-label {
    font-size: 0.75em;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 8px;
    background-color: #e9f5ec;
    color: #28a745;
    border: 1px solid #b8e0c2;
}

.productos-section .stock-label.out-of-stock {
    background-color: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
}

.productos-section .product-info .nombre {
    font-size: 0.95em;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 10px;
    flex-grow: 1;
}

.productos-section .product-info .precio {
    font-size: 1.1em;
    font-weight: 700;
    color: #d90429; /* Color rojo */
    margin-bottom: 15px;
}

.productos-section .btn-add-to-cart {
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.productos-section .btn-add-to-cart:hover {
    background-color: #333;
}

.productos-section .swiper-pagination-progressbar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
}

.productos-section .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
  background: #007aff;
  height: 100%;
  transform-origin: left;
  transition: transform 0.3s ease;
}

.productos-section .swiper-pagination-bullets {
  display: none;
}

.productos-section .custom-pagination-container {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.productos-section .custom-pagination-indicator {
  background-color: #007aff;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.productos-section .custom-pagination-indicator::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #007aff;
}

.productos-section .swiper-button-next,
.productos-section .swiper-button-prev {
    font-size: 20px;
    padding: 10px;
    position: absolute;
    top: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.2s;
    opacity: 0; /* Oculto por defecto */
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    width: 45px;
    height: 45px;
}

.productos-section:hover .swiper-button-next,
.productos-section:hover .swiper-button-prev {
    opacity: 1; /* Visible en hover */
}

.productos-section .swiper-button-prev {
    left: 10px;
    transform: translateY(-50%) translateX(-150%); /* Empieza fuera de la pantalla */
}

.productos-section:hover .swiper-button-prev {
    transform: translateY(-50%) translateX(0); /* Se desliza hacia adentro */
}

.productos-section .swiper-button-next {
    right: 10px;
    transform: translateY(-50%) translateX(150%); /* Empieza fuera de la pantalla */
}

.productos-section:hover .swiper-button-next {
    transform: translateY(-50%) translateX(0); /* Se desliza hacia adentro */
}

.productos-section .swiper-button-next:hover,
.productos-section .swiper-button-prev:hover {
    background-color: #333;
}

.productos-section .swiper-button-disabled {
    opacity: 0 !important;
    pointer-events: none;
}

.productos-section .swiper-button-next::after,
.productos-section .swiper-button-prev::after {
    font-size: 18px;
}

/* === Product Card Actions & Size Selector (v5) === */

.product-card .product-card__actions {
    display: flex;
    flex-direction: column; /* Stack vertically */
    gap: 10px; /* Vertical space between items */
    padding: 15px; /* Consistent padding */
    margin-top: auto;
}

.product-card .product-card__sizes,
.product-card .product-card__add-to-cart-btn {
   /*    width: 100%; /* Make both elements full-width */
    margin-top: -100px;
}

.product-card .product-card__select-talla {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-size: 0.9em;
    font-weight: 500;
    text-align: center;
    text-align-last: center; /* For centering the selected option */
    -moz-text-align-last: center; /* Firefox */
}

.product-card .product-card__add-to-cart-btn {
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.product-card .product-card__add-to-cart-btn:hover {
    background-color: #333;
}

