/* =========================================
   CATEGORÍAS DE PRODUCTOS
   ========================================= */
.categories-section {
    padding: 60px 0;
    background-color: var(--white);
}

.categories-title {
    font-size: 28px;
    font-weight: 300;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    color: var(--text-color);
}

.categories-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.categories-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.category-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 280px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.category-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--white);
    height: 350px;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    padding: 20px;
}

.category-inner:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.category-image-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
    position: relative;
}

.category-image {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

.category-inner:hover .category-image {
    transform: scale(1.15);
}

.category-name {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    margin-top: 15px;
    text-align: center;
    transition: var(--transition);
}

.category-inner:hover .category-name {
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .category-card {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .category-card {
        flex: 0 0 100%;
    }
    
    .category-inner {
        height: 300px;
    }
    
    .category-image-wrapper {
        height: 200px;
    }
}

/* =========================================
   PÁGINA DE CATEGORÍAS DE PRODUCTOS
   ========================================= */

/* Breadcrumb */
.breadcrumb-container {
    background: #EEEEEE;
    height: 35px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #EEEEEE 0%, #F8F8F8 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.breadcrumb-text {
    padding-right: 15px;
    margin-left: 15px;
}

/* Layout de la página */
.product-page-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 2rem;
    width: 100%;
}

/* Sidebar de categorías */
.sidebar-container {
    width: 33.333%;
    min-width: 290px;
    padding-right: 15px;
    flex: 0 0 33.333%;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background-color: #fff;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
}

.productos-categoria-lista {
    display: flex;
    flex-direction: column;
    justify-content: center;

    width: 100%;
}

/* Estilos del acordeón */
.accordion-button {
    padding: 0;
    font-size: 16px;
    font-weight: bold;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: unset;
    box-shadow: unset;
}

.accordion-button:focus {
    border-color: unset;
    box-shadow: unset;
}

.accordion-button::after {
    transform: rotate(270deg);
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(0deg);
    background-image: url('../img/row_menu.svg');
}

.accordion-header-text {
    margin: 0;
    padding: 0.5rem;
    font-size: 18px;
    text-transform: capitalize;
    transition: color 0.3s ease;
}

.accordion-button:hover .accordion-header-text {
    color: var(--primary-color);
}

.accordion-item {
    border: none;
    border-top: 1px solid rgb(202, 202, 202);
    border-bottom: 1px solid rgb(202, 202, 202);
}

.accordion-item:first-of-type,
.accordion-item:first-of-type .accordion-button {
    border-top-left-radius: unset;
    border-top-right-radius: unset;
}

.accordion-body {
    padding: 0;
    background-color: #EEEEEE;
}

.accordion-body-link {
    border-top: 1px solid rgb(202, 202, 202);
    border-bottom: 1px solid rgb(202, 202, 202);
    display: block;
    padding: 15px;
    font-size: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.accordion-body-link:hover {
    background-color: #e0e0e0;
    color: var(--primary-color);
}

.accordion-body-link.active-link {
    position: relative;
    font-weight: 600;
    padding-left: 20px;
}

.accordion-body-link.active-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--primary-color);
}

/* Listado de productos */
.product-grid {
    width: 66.666%;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    min-width: 278px;
    align-content: baseline;
    flex: 0 0 66.666%;
}

.product-card {
    width: 50%;
    padding: 1rem;
    min-width: 267px;
}

.product-card-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #FFF;
    height: 368px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.09), 0 6px 20px rgba(0, 0, 0, 0.09);
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
}

.product-image-container {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    position: relative;
}

.product-image {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.5s ease;
}

.product-card-inner:hover .product-image {
    transform: scale(1.2);
}

.product-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: #FFF;
    cursor: pointer;
    padding-top: 1.25rem;
    padding: 1.25rem;
    flex-grow: 1;
    padding: 25px;
    border-radius: 15px;
    background: #fff;
 
}

.product-title {
    font-size: 19px;
    font-weight: bold;
    padding-left: 10px;
    text-align: center;
}

.product-desc {
    font-size: 14px;
    font-weight: 300;
    margin-top: 5px;
    color: #595959;
    text-align: center;
}

/* Paginación */
.page-link {
    border: unset;
    color: #707070;
    padding: 0px 10px;
}

.page-item.active .page-link {
    color: #707070;
    border: 1px solid #707070;
    border-radius: 15px;
    background: unset;
}

@media (max-width: 992px) {
    .sidebar-container,
    .product-grid {
        width: 100%;
        flex: 0 0 100%;
    }
    
    .sidebar-container {
        margin-bottom: 30px;
        padding-right: 0;
    }
    
    .product-card {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .product-page-container {
        padding: 0 3vh;
    }
    
    .breadcrumb-container {
        padding-left: 3vh;
    }
    
    .product-card {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .product-page-container {
        padding: 0 2vh;
    }
    
    .breadcrumb-container {
        padding-left: 2vh;
    }
    
    .product-image-container {
        width: 100%;
        max-width: 250px;
    }
}

/* =========================================
   PÁGINA DE DETALLE DE PRODUCTO - REFINAMIENTO
   ========================================= */

/* Mejora del breadcrumb */
.breadcrumb-container {
    background: linear-gradient(90deg, #EEEEEE 0%, #F8F8F8 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

/* Mejora del sidebar */
.sidebar-container {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background-color: #fff;
}

.accordion-header-text {
    transition: color 0.3s ease;
}

.accordion-button:hover .accordion-header-text {
    color: var(--primary-color);
}

.accordion-body-link.active-link {
    position: relative;
    font-weight: 600;
    padding-left: 20px;
}

.accordion-body-link.active-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--primary-color);
}

/* Mejora de la galería de productos */
.product-gallery {
    border-radius: 15px;
    overflow: hidden;
  
}

.product-gallery-item {
    border-radius: 15px;
    border: none;
    background: #fff;
}

.product-gallery-item::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-gallery-item:hover::after {
    opacity: 1;
}

.product-gallery-item::before {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-gallery-item:hover::before {
    opacity: 1;
}

/* Mejora de la información del producto */
.product-info {
    padding: 25px;
    border-radius: 15px;
    background: #fff;
 
}

.product-name {
    position: relative;
    font-size: 24px;
    font-weight: 700;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: #F8F8F8;
    text-transform: uppercase;
    border-left: 5px solid var(--primary-color);
}

.product-code {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    background-color: #F8F8F8;
    font-weight: 600;
    color: #555;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.product-description {
    line-height: 1.8;
    color: #555;
}

.product-description ul {
    padding-left: 20px;
}

.product-description li {
    margin-bottom: 10px;
}

/* Mejora de los botones */
.product-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.product-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
}

.product-button:hover::before {
    left: 100%;
}

.product-button-outline {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.product-button-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.product-button-filled {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.product-button-filled:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Mejora de las especificaciones */
.product-specs {
    border-radius: 15px;
    background: #fff;

    padding: 25px;
    margin-top: 30px;
}

.product-sizes-title {
    position: relative;
    text-align: center;
    padding: 15px;
    background: #F8F8F8;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
}

.product-sizes-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.product-sizes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    max-height: none;
}

.product-size-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.product-size-item:hover {
    background-color: #f9f9f9;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}

.product-size-dot {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    box-shadow: 0 0 0 rgba(9, 152, 13, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(9, 152, 13, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(9, 152, 13, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(9, 152, 13, 0);
    }
}

.product-size-text {
    font-weight: 500;
    color: #444;
}

.product-image-specs {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-specs img {
    max-width: 80%;
    height: auto;
    transition: all 0.5s ease;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-image-specs:hover img {
    transform: scale(1.05);
}

/* Mejora de productos relacionados */
.related-products-title {
    position: relative;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin: 40px 0 30px;
    padding: 15px;
    color: #444;
    background: #F8F8F8;
    border-radius: 10px;
}

.related-products-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.related-product-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
}

.related-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.related-product-image-container {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.related-product-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.6s ease;
}

.related-product-card:hover .related-product-image {
    transform: scale(1.15);
}

.related-product-info {
    padding: 20px;
    text-align: center;
}

.related-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.related-product-card:hover .related-product-name {
    color: var(--primary-color);
}

.related-product-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Mejoras responsive */
@media (max-width: 992px) {
    .product-sizes-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .product-buttons {
        justify-content: center;
    }
    
    .related-product-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .product-name {
        font-size: 20px;
        padding: 10px;
    }
    
    .product-button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .product-buttons {
        flex-direction: column;
    }
    
    .product-gallery-item {
        border-radius: 10px;
    }
    
    .product-size-item {
        margin-bottom: 10px;
    }
    
    .product-specs {
        padding: 15px;
    }
    
    .related-products-title {
        font-size: 18px;
        padding: 10px;
    }
}

