/* Single Product Page Styles */

/* Prevenir overflow horizontal */
body.single-product {
    overflow-x: hidden;
}

.woocommerce-page {
    overflow-x: hidden;
}

/* Override Bootstrap classes if present */
.single-product-content.row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    margin: 0;
}

.product-left-column,
.product-right-column {
    padding: 0 !important;
    max-width: 100% !important;
    flex: none !important;
}

.single-product-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}


/* Header con nombre restaurante y título */
.single-product-header {
    margin-bottom: 30px;
}

.product-restaurant-name {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 10px;
}

.product-main-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #343434;
    margin: 0;
}

.product-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    color: #343434;
    text-decoration: none;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

/* Layout de dos columnas */
.single-product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
    max-width: 100%;
    overflow-x: hidden;
}

/* Columna izquierda - Imagen y galería */
.product-left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    min-width: 0;
}

/* Columna derecha - Info y compra */
.product-right-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    min-width: 0;
}

/* Galería */
.product-gallery {
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

/* Video iframe */
.product-gallery .ratio {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
}

.product-gallery .ratio iframe {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
}

/* Botones de acción */
.product-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-comprar {
    display: block;
    border-radius: 9999px;
    width: 100%;
    background: #C41212;
    text-decoration: none;
    text-align: center;
    padding: 15px 20px;
    color: white;
    border: transparent;
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-comprar:hover {
    background: #9C0F0F;
    color: white;
}

.btn-ver-menu {
    display: block;
    border-radius: 9999px;
    width: 100%;
    border: 2px solid #9C927F;
    background: transparent;
    text-align: center;
    padding: 15px 20px;
    color: #9C927F;
    text-decoration: none;
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.btn-ver-menu:hover {
    background: #9C927F;
    color: white;
}

/* Precio */
.product-price-section {
    padding: 20px 0;
}

.product-price-section .price {
    font-family: 'Barlow', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #343434;
}

/* Descripción corta */
.product-short-description {
    padding: 20px 0;
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

.product-short-description p {
    margin-bottom: 0;
}

/* Detalles del producto */
.product-details-list {
    padding: 20px 0;
}

.product-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.product-detail-item:last-child {
    margin-bottom: 0;
}

.product-detail-icon {
    font-size: 20px;
    color: #9C927F;
    flex-shrink: 0;
}

.product-detail-text {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    flex: 1;
}

/* Experiencia incluye */
.incluye {
    padding: 20px 0;
}

.incluye h3 {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #343434;
}

/* Acordeón */
.product-accordion {
    margin-top: 20px;
}

.product-accordion .accordion-item {
    border: 1px solid #e0e0e0 !important;
    border-radius: 0;
    margin-bottom: 10px;
}

.product-accordion .accordion-button {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    color: #343434;
    padding: 20px 20px;
    border-radius: 0;
}

.product-accordion .accordion-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #343434;
    background-image: none;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.product-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
    border-top-color: #C41212;
}

.product-accordion .accordion-button:not(.collapsed) {
    background: transparent;
    color: #C41212;
    box-shadow: none;
    border-radius: 0;
}

.product-accordion .accordion-button:focus {
    box-shadow: none;
}

.product-accordion .accordion-body {
    padding: 20px 20px;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Imagen principal */
.product-main-image-container {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
}

.product-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

/* Swiper de thumbnails */
/* Swiper de thumbnails */
.swiperGaleriaThumbs {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-top: 15px;
}

.swiperGaleriaThumbs .swiper-wrapper {
    display: flex;
    gap: 10px;
}

.swiperGaleriaThumbs .swiper-slide {
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    width: auto !important;
    max-width: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
}

.swiperGaleriaThumbs .swiper-slide:hover,
.swiperGaleriaThumbs .swiper-slide.active-thumb {
    opacity: 1;
    border-color: #C41212;
}

.swiperGaleriaThumbs img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

/* Botones de navegación del swiper */
.swiper-button-next,
.swiper-button-prev {
    color: #343434 !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 24px !important;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .product-main-title {
        font-size: 2rem;
    }
    
    .single-product-content {
        gap: 30px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .single-product-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-main-title {
        font-size: 1.75rem;
        letter-spacing: 1px;
    }
    
    .product-restaurant-name {
        font-size: 12px;
    }
    
    .btn-comprar,
    .btn-ver-menu {
        padding: 12px 16px;
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .product-price-section .price {
        font-size: 1.25rem;
    }
}

/* Mobile pequeño */
@media (max-width: 480px) {
    .single-product-container {
        padding: 0 15px;
    }
    
    .product-main-title {
        font-size: 1.5rem;
    }
    
    .single-product-content {
        gap: 20px;
    }
}
