/* ===== BREADCRUMB PEGADO A LA FICHA ===== */
.product-breadcrumb-container {
    background: white;
    padding: 20px 0 0 0;
    margin: 0;
    margin-top:30px;
}

.product-breadcrumb {
    background: transparent !important;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 400;
}

.breadcrumb{
    justify-content:center;
}

.product-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: '>' !important;
    color: #666;
    margin: 0 10px;
    font-weight: bold;
}

.product-breadcrumb .breadcrumb-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-breadcrumb .breadcrumb-item a:hover {
    color: #000;
    text-decoration: underline;
}

.product-breadcrumb .breadcrumb-item.active {
    color: #000;
    font-weight: 500;
}

/* ===== GALERÍA PROFESIONAL CON THUMBNAILS ===== */
.product-gallery-container {
    padding: 20px 40px 40px 40px;
    background: white;
}

.product-main-gallery {
    display: flex;
    gap: 20px;
}

.product-thumbnails {
    flex: 0 0 120px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-thumbnail {
    width: 120px;
    height: 120px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.product-thumbnail:hover {
    border-color: #ddd;
    transform: scale(1.05);
}

.product-thumbnail.active {
    border-color: #000;
    transform: scale(1.05);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-main-image-container {
    flex: 1;
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    min-height: 600px;
}

.product-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: all 0.6s ease;
}

.product-main-image:hover {
    transform: scale(1.05);
}

.product-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-main-image-container:hover .product-zoom-overlay {
    background: rgba(0,0,0,0.1);
    opacity: 1;
}

.product-zoom-icon {
    color: white;
    font-size: 1.5rem;
    background: rgba(0,0,0,0.6);
    padding: 15px 20px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

/* ===== INFO DEL PRODUCTO ===== */
.product-info-container {
    padding: 20px 40px 40px 40px;
    background: white;
    position: relative;
}

.product-main-title {
    font-size: 2rem !important;
    color: #000;
    margin-bottom: 8px;
    letter-spacing: 1px;
    font-family: 'Raleway Dots' !important;
}

.product-reference {
    font-size: 0.85rem !important;
    color: #999 !important;
    margin-bottom: 20px !important;
    letter-spacing: 0.5px;
}

.product-main-price {
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    color: #000 !important;
    margin-bottom: 30px !important;
}

/* Botón de favoritos */
.product-heart {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(255,255,255,0.9) !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    color: #666;
    z-index: 1;
    backdrop-filter: blur(10px);
}


.product-heart i{
    height:25px;
}

.product-heart:hover,
.product-heart.active {
    background: #000 !important;
    color: white !important;
    border-color: #000 !important;
    transform: scale(1.1);
}

/* Selección de color */
.product-color-selection {
    margin-bottom: 30px;
}

.product-color-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.product-color-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    margin-right: 12px;
    vertical-align: middle;
}

.product-color-circle::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.product-color-circle:hover::after,
.product-color-circle.selected::after {
    border-color: #000;
    border-width: 2px;
}

.product-color-circle.selected {
    transform: scale(1.1);
}

/* Selección de talla */
.product-size-selection {
    margin-bottom: 40px;
}

.product-size-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.product-size-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    border: 1px solid #e0e0e0;
    background: white;
    margin-right: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #333;
    border-radius: 4px;
}

.product-size-option:hover {
    border-color: #000;
    background: #f8f8f8;
}

.product-size-option.selected {
    background: #000;
    color: white;
    border-color: #000;
}

/* ===== CONTENEDOR DE AÑADIR AL CARRITO CON CANTIDAD ===== */
.product-add-to-cart-container {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 30px 0;
}

.product-quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    min-width: 120px;
}

.quantity-btn {
    background: transparent;
    border: none;
    padding: 12px 15px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #f8f9fa;
    color: #000;
}

.quantity-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.quantity-input {
    border: none !important;
    text-align: center;
    width: 50px;
    padding: 12px 5px;
    font-size: 1rem;
    font-weight: 500;
    background: transparent;
    outline: none;
}

/* Botón añadir carrito mejorado */
.product-btn-add {
    flex: 1;
    background: #1f1f1f !important;
    color: white !important;
    border: 1px solid #1f1f1f !important;
    border-radius: 6px;
    padding: 20px 25px !important;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.product-btn-add:hover {
    background: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.product-price        { line-height:1 }
.product-price .original-price {
    text-decoration: line-through;
    color:#999;
    font-size:.9rem;
    margin-left:.25rem;
}

/* Información adicional */
.product-availability {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.product-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

/* ===== ACORDEÓN MEJORADO ===== */
.accordion {
    border: none !important;
    margin-top: 30px;
}

.accordion-item {
    border: none !important;
    border-bottom: 1px solid #e9ecef !important;
    background: transparent !important;
    margin-bottom: 0 !important;
}

.accordion-button {
    background: transparent !important;
    border: none !important;
    padding: 20px 0 !important;
    color: rgba(var(--bs-secondary-rgb), 1) !important;
    font-size: 1rem !important;
    letter-spacing: 0.5px;
    box-shadow: none !important;
    font-family: 'Raleway Dots' !important;
}

.accordion-button:not(.collapsed) {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23666'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

.accordion-body {
    padding: 0 0 25px 0 !important;
    color: rgba(var(--bs-secondary-rgb), 1) !important;
    font-size: 0.9rem;
    line-height: 1.6;
    font-family: 'Raleway Dots' !important;
}

.accordion-body p {
    color: rgba(var(--bs-secondary-rgb), 1) !important;
    font-size: 0.9rem !important;
    margin-bottom: 15px !important;
    font-family: 'Raleway Dots' !important;
}

.accordion-body strong {
    color: #000 !important;
    font-weight: 600;
}

.accordion-body ul {
    padding-left: 0 !important;
    margin: 0 !important;
    list-style: none;
}

.accordion-body li {
    color: rgba(var(--bs-secondary-rgb), 1) !important;
    font-size: 0.85rem !important;
    margin-bottom: 8px !important;
    padding-left: 15px !important;
    position: relative;
    font-family: 'Raleway Dots' !important;
}

.accordion-body li::before {
    content: '•';
    color: #000;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ===== SECCIÓN DE DESCRIPCIÓN DETALLADA ===== */
.product-detailed-description {
    background: #f8f9fa;
    padding: 80px 0;
}

.description-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.description-title {
    font-size: 2rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 30px;
    letter-spacing: 1px;
    font-family: 'Raleway Dots' !important;
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 40px;
    text-align:left;
}

.description-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Toast */
.product-toast-success {
    position: fixed;
    top: 30px;
    right: 30px;
    background: #000;
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s ease;
}

.product-toast-success.show {
    opacity: 1;
    transform: translateX(0);
}

/* ===== COMPATIBILIDAD CON CLASES EXISTENTES ===== */
.img-zoom-container {
    position: relative;
}

.product-gallery {
    display: none;
}

.sizes span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    border: 1px solid #e0e0e0;
    background: white;
    margin-right: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #333;
    border-radius: 4px;
}

.sizes span:hover {
    border-color: #000;
    background: #f8f8f8;
}

.sizes span.selected {
    background: #000;
    color: white;
    border-color: #000;
}

.circle-color {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-circle::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.color-circle:hover::after,
.color-circle.selected::after {
    border-color: #000;
    border-width: 2px;
}

.color-circle.selected {
    transform: scale(1.1);
}

.btn-add {
    flex: 1;
    background: #1f1f1f !important;
    color: white !important;
    border: 1px solid #1f1f1f !important;
    border-radius: 6px;
    padding: 20px 25px !important;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add:hover {
    background: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .product-main-gallery {
        flex-direction: column;
    }
    
    .product-thumbnails {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        flex: 0 0 auto;
    }
    
    .product-thumbnail {
        flex: 0 0 80px;
        width: 80px;
        height: 80px;
    }
    
    .product-thumbnail.active, .product-thumbnail:hover{
        transform: scale(1) !important;
    }
    
    .product-main-image-container {
        min-height: 400px;
    }
    
    .product-gallery-container,
    .product-info-container {
        padding: 15px 20px 20px 20px;
    }
    
    .product-main-title {
        font-size: 1.8rem !important;
    }
    
    .description-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-breadcrumb-container {
        padding: 15px 0 0 0;
    }
    
    .product-breadcrumb {
        font-size: 0.8rem;
    }
    
    .product-add-to-cart-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-quantity-selector {
        width: 100% !important;
        height:66px !important;
        justify-content: center;
    }
    
    .product-btn-add{
        width:100%;
    }
    
    .quantity-input{
        width:90%;
    }
    
    .sizes span{
        margin-top:12px;
    }
}