/* Estilos para la página de detalle de producto */
.product-container {
    display: flex;
    gap: 40px;
    padding: 40px 0;
    flex-wrap: wrap;
}

/* Galería */
.product-gallery {
    flex: 0 0 60%;
    max-width: 60%;
}

.image-main {
    position: relative;
    border: 1px solid #eee;
    background: #fff;
    overflow: hidden;
    cursor: zoom-in;
    margin-bottom: 15px;
    border-radius: 4px;
}

.image-main img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.image-main:hover img {
    transform: scale(1.2);
}

.zoom-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 10;
}

.image-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumb {
    width: 80px;
    height: 80px;
    border: 1px solid #eee;
    cursor: pointer;
    object-fit: contain;
    background: #fff;
    transition: border-color 0.3s;
}

.thumb.active, .thumb:hover {
    border-color: var(--primary-color);
}

/* Detalles */
.product-details {
    flex: 1;
    min-width: 350px;
}

.product-details h1 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #333;
}

.product-details .price {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 20px;
}

.product-details .description-short {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.specs {
    width: 100%;
    margin-bottom: 30px;
    border-collapse: collapse;
}

.specs td {
    padding: 8px 0;
    font-size: 14px;
}

.specs td:first-child {
    font-weight: bold;
    color: #333;
    width: 140px;
}

/* Selector cantidad */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 25px;
}

.quantity-selector button {
    width: 40px;
    height: 45px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    cursor: pointer;
    font-size: 18px;
}

.quantity-selector input {
    width: 60px;
    height: 45px;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 16px;
}

/* Botones Acción */
.actions-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-add-cart {
    background: var(--primary-color);
    color: #fff;
    border: none;
    height: 50px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.btn-add-cart:hover {
    background: #b51920;
}

.wishlist-whatsapp {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-wishlist {
    background: #fff;
    border: 1px solid #ddd;
    height: 50px;
    padding: 0 15px;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.btn-wishlist.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-whatsapp {
    flex: 1;
    background: #25D366;
    color: #fff;
    border: none;
    height: 50px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
}

/* Descripción completa */
.product-full-description {
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.product-full-description h2 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.product-full-description h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

.description-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

/* Relacionados */
.product-related {
    margin-top: 80px;
    margin-bottom: 60px;
}

.product-related h2 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.related-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

/* Modal Zoom */
.modal-zoom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: grab;
}

.modal-zoom:active {
    cursor: grabbing;
}

.modal-zoom img {
    max-width: none;
    transition: transform 0.1s;
}

.modal-zoom .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 35px;
    background: none;
    border: none;
    cursor: pointer;
}

.zoom-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.zoom-controls button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #fff;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
    .product-gallery, .product-details {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .image-thumbnails {
        margin-bottom: 30px;
    }
}
