/**
 * Estilos Página de Producto - Estilo Chopo
 * Theme Santé
 */

/* ============================================
   OCULTAR GALERÍA
   ============================================ */
.single-product .woocommerce-product-gallery {
    display: none !important;
}

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */
.single-product .site-main {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 20px !important;
}

.single-product-sante {
    width: 100%;
}

.product-chopo-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    width: 100%;
    margin-top: 20px;
}

/* Asegurar que WooCommerce no interfiera */
.single-product div.product {
    display: block !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* ============================================
   COLUMNA IZQUIERDA - INFORMACIÓN
   ============================================ */
.product-main-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
}

/* Header Simple */
.product-header-simple {
    margin-bottom: 30px;
}

.product-category-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0f0f0;
    color: #666;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.product-category-label i {
    color: #C41E3A;
}

.product-title-clean {
    color: #666;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Descripción */
.product-description-clean {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.product-description-clean p {
    margin-bottom: 15px;
}

/* Acordeón de Detalles */
.study-details-accordion {
    margin-top: 30px;
}

.study-detail-item {
    border-top: 1px solid #E6E7E8;
    padding: 20px 0;
}

.study-detail-item h3 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.study-detail-item h3 i {
    color: #C41E3A;
    font-size: 1rem;
}

.study-detail-item p {
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding-left: 30px;
    font-size: 0.95rem;
}

/* ============================================
   SIDEBAR DERECHA - ACCIONES
   ============================================ */
.product-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Caja de Precio */
.price-box-clean {
    background: white;
    border: 2px solid #C41E3A;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.price-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.price-old {
    color: #999;
    text-decoration: line-through;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.price-current {
    color: #C41E3A;
    font-size: 2.5rem;
    font-weight: 700;
}

.price-current .woocommerce-Price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #C41E3A;
}

/* Botones de Acción */
.action-buttons {
    background: white;
    border: 2px solid #E6E7E8;
    border-radius: 10px;
    padding: 20px;
}

.action-buttons form.cart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-selector label {
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
}

.quantity-selector input {
    width: 70px;
    padding: 8px;
    border: 2px solid #E6E7E8;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}

.single_add_to_cart_button {
    background: linear-gradient(135deg, #C41E3A, #9a1729) !important;
    color: white !important;
    border: none !important;
    padding: 15px 20px !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
}

.single_add_to_cart_button:hover {
    background: linear-gradient(135deg, #9a1729, #7a1220) !important;
    transform: translateY(-2px) !important;
}

.btn-comprar-ahora {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.btn-comprar-ahora:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Horarios */
.service-hours {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
}

.hours-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.hours-item i {
    font-size: 1.5rem;
    color: #C41E3A;
    margin-top: 3px;
}

.hours-item strong {
    display: block;
    color: #666;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.hours-item p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* Disponibilidad */
.availability-box {
    background: #e8f5e9;
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 20px;
}

.availability-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #28a745;
    font-weight: 600;
    margin-bottom: 10px;
}

.availability-item i {
    font-size: 1.3rem;
}

.price-domicilio {
    color: #28a745;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.domicilio-note {
    background: #fff9e6;
    border-left: 3px solid #ffc107;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #666;
    border-radius: 5px;
}

.domicilio-note i {
    color: #ffc107;
    margin-right: 5px;
}

.age-restriction {
    background: #fff3e0;
    border-left: 3px solid #ff9800;
    padding: 10px;
    font-size: 0.85rem;
    color: #666;
    border-radius: 5px;
}

.age-restriction i {
    color: #ff9800;
    margin-right: 5px;
}

/* Sucursal */
.branch-selector {
    background: white;
    border: 2px solid #E6E7E8;
    border-radius: 10px;
    padding: 20px;
}

.branch-selector h4 {
    color: #666;
    font-size: 1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.branch-selector h4 i {
    color: #C41E3A;
}

.branch-info {
    padding-top: 10px;
    border-top: 1px solid #E6E7E8;
}

.branch-info strong {
    display: block;
    color: #C41E3A;
    font-size: 1rem;
    margin-bottom: 5px;
}

.branch-info p {
    color: #666;
    margin: 0 0 3px 0;
    font-size: 0.9rem;
}

.branch-address {
    color: #999;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.product-breadcrumb {
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 0;
}

.woocommerce-breadcrumb {
    color: #999;
    font-size: 0.85rem;
    margin: 0;
}

.woocommerce-breadcrumb a {
    color: #C41E3A;
    text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .product-chopo-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-title-clean {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    /* Reorganizar orden en móvil */
    .product-chopo-layout {
        display: flex;
        flex-direction: column;
        padding: 15px;
    }
    
    /* 1. Información del producto (título, descripción, detalles) */
    .product-main-content {
        order: 1;
        padding: 20px;
    }

    .product-sidebar-actions{
        order: 2;
    }
    
    /* 2. Precio y botón de agregar al carrito */
    .price-box-clean,
    .action-buttons {
        order: 2;
    }
    
    /* 3. Horarios */
    .service-hours {
        order: 3;
    }
    
    /* 4. Disponibilidad */
    .availability-box {
        order: 4;
    }
    
    /* 5. Ubicación al final */
    .branch-selector {
        order: 5;
    }
    
    /* El sidebar se convierte en columna */
    .product-sidebar-actions {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .product-title-clean {
        font-size: 1.4rem;
    }
    
    .price-current {
        font-size: 2rem;
    }
    
    .study-detail-item p {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .product-title-clean {
        font-size: 1.2rem;
    }
    
    .price-current {
        font-size: 1.8rem;
    }
}

/* ============================================
   AJUSTES PARA WOOCOMMERCE
   ============================================ */

/* Resetear estilos de WooCommerce que interfieren */
.single-product .summary {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.single-product .woocommerce-product-gallery {
    float: none !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ocultar elementos no necesarios */
.single-product .product_meta,
.single-product .woocommerce-product-rating {
    display: none;
}

/* Ajustar formulario */
.single-product form.cart .quantity {
    display: inline-block;
}

/* Ocultar tabs si están vacíos */
.single-product .woocommerce-tabs {
    display: none;
}

/* Forzar ancho completo */
.single-product .woocommerce,
.single-product .woocommerce-page {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ocultar productos relacionados en mobile */
@media (max-width: 768px) {
    .single-product .related.products {
        display: none;
    }
}
