/* Estilos base */
:root {
    --primary-color: #a5d8ff;
    --secondary-color: #4e5f8d;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --section-padding: 4rem 0;
    --card-radius: 0.5rem;
    --transition-speed: 0.3s;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    height: 50vh;
    max-height: 600px;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: black;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Banner */
.hero-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.category-navigation-section {
    padding: 2rem 0;
    border-radius: var(--card-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.category-navigation-section h2 {
    color: var(--dark-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

.btn-store{
    background: black;
    color: white;
}

.btn-whatsapp{
    background: rgb(35, 155, 35);
    color: white;
}

.btn-store:hover{
    color: white;
}

.category-btn {
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    border: 2px solid black;
    color: black;
    transition: all var(--transition-speed) ease;
}

.category-btn:hover {
    background-color: #6c757d;
    color: white;
    transform: translateY(-2px);
    border-color: black !important;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
}

/* Product Sections */
.product-section {
    padding: var(--section-padding);
    margin-bottom: 3rem;
    position: relative;
}

.product-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: -1;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.section-description {
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 700px;
    margin: 0 auto;
}

/* Sub categorias */

.subcategory-btn {
    border-radius: 15px;
}



/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-left: 30px;
    margin-right: 30px;
}

.product-card-wrapper {
    perspective: 1000px;
}


.product-card {
    background: white;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

.product-image-container {
    display: block;
    width: 100%;
    /* altura a cambiar */
    height: 350px; 
    overflow: hidden;
    background-color: #f0f0f0; 
    display: flex;
    align-items: center;
    justify-content: center;
}


.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 1px solid #f5f5f5;
}

.product-details {
    padding: 1.25rem;
    flex-grow: 0.5;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    text-align: center;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.product-category {
    color: #777;
    background: #f9f9f9;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.product-price-wrapper {
    font-weight: 600;
    padding: 10px 10px;
}

.product-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Contenedor del botón centrado */
.product-actions {
    margin-top: auto;
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

/* Estilo minimalista para el botón */
.product-actions .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 20px;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.product-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px white;
    color: white;
}

.product-actions .btn i {
    font-size: 0.9rem;
}

/* Estilos específicos para secciones pares/impares */
.section-odd {
    background-color: #f3f4fe;
}

.section-even {
    background-color: white;
}


/* No Products */
.no-products {
    text-align: center;
    padding: 5rem 0;
}


/* Responsive */
 @media (min-width: 992px){
    .content-product {
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .lead {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .category-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 50vh;
    }

    .subcategory-title {
    padding: 10px 0 0 0;
    } 

    .product-grid {
        grid-template-columns: 1fr;
    }

    .category-navigation-section {
        padding: 1.5rem 0;
    }
}

/* ---------------------------------------- */
/* Estilos para el contenedor de paginación */
/* ---------------------------------------- */

.pagination-container .pagination {
    margin-top: 20px;
}

.pagination-container li {
    border: 2px solid black;
    margin: 0 3px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.pagination-container li:hover {
    background: #6c757d;
    color: white;
    border-color: black;
    transform: translateY(-3px);
}

.pagination-container a {
    color: black;
    text-decoration: none;
    padding: 8px 14px;
    display: flex;
}

.pagination-container li:hover a {
    color: white;
}

.pagination-container li.active {
    background-color: #6c757d;;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(76, 81, 191, 0.3);
    padding: 8px 14px;
}

/* Permite que las flechitas no se opaquen cuando el usuario este en las páginas laterales */
.pagination-container li.disabled {
    padding: 8px 14px;
}

/* Selección de las tallas */
.size-buttons button {
    padding: 0px 10px 0 0;
}

.hidden-radio {
    display: none;
}

/* Estilo para las etiquetas de las tallas */
.size-option-label {
    display: inline-block;
    padding: 8px 12px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.size-option-label:hover {
    background: #6c757d;
    color: white;
    border-color: black;
}

.hidden-radio:checked + .size-option-label {
    background: #6c757d;
    color: white;
    border-color: black;
}

.product-sizes {
    margin-top: 15px;
}

.size-label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    text-align: center;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.size-guidance {
    color: #666;
    margin-top: 10px;
    display: block;
}



/* Carrusel de la parte de inicio */

#new-products-section .swiper {
    position: relative;
    padding: 0 15px;
}

#new-products-section .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 30px;
}

#new-products-section .product-card-wrapper,
#new-products-section .product-card {
    height: 700px;
    width: 310px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
}

#new-products-section .swiper-button-next,
#new-products-section .swiper-button-prev {
    color: black;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#new-products-section .swiper-button-next::after,
#new-products-section .swiper-button-prev::after {
    font-size: 1.5rem;
    font-weight: bold;
}

#new-products-section .swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
}

#new-products-section .swiper-pagination-bullet-active {
    background: #a5d8ff;
}

#new-products-section .product-grid {
    display: block;
    margin-left: 0;
    margin-right: 0;
}

#new-products-section .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-wrapper {
    height: auto !important;
}


/*   Sección del Mosaico */

    .parent {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(6, 1fr);
        grid-column-gap: 0px;
        grid-row-gap: 0px;
        height: 100%;
    }

    .div1 { grid-area: 1 / 1 / 7 / 3; }
    .div2 { grid-area: 1 / 3 / 4 / 5; }
    .div3 { grid-area: 4 / 3 / 7 / 5; }
    .div4 { grid-area: 1 / 5 / 7 / 7; }
    .div5 { grid-area: 1 / 7 / 4 / 9; }
    .div6 { grid-area: 4 / 7 / 7 / 9; }

.card-mosaics {
    padding: 10px;
}

.product-card-mosaics {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 100% !important;
    height: 100% !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    border-radius: 5px;
    overflow: hidden;
    border: 3px solid transparent;
    color: white;
    text-shadow: 1px 1px 2px black;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.product-card-mosaics:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

.fire-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.content-card {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 2;
}

.product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
}

.product-description-mosaics {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    max-height: 4.5em;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.product-actions-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 15px;
}

.card-text-mosaics {
    color: white;
}


@media (max-width: 992px) {
    .parent {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
        height: auto;
    }

    .div1, .div2, .div3, .div4, .div5, .div6 {
        grid-area: auto;
        min-height: 400px;
    }
}

@media (max-width: 576px) {
    .parent {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, auto);
    }

    .div1, .div2, .div3, .div4, .div5, .div6 {
        min-height: 350px;
    }

    .content-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-actions-group {
        margin-top: 15px;
    }
}
