/**
 * Estilos para página de producto individual
 * Tipografía: Arimo
 */

/* Aplicar fuente Arimo a toda la página de producto */
.single-product-page,
.single-product-page * {
    font-family: 'Arimo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Asegurar que el main tenga el ancho correcto */
main.site-main.woocommerce-page.single-product-page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Contenedor principal */
.yeshua-single-product-container {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 2rem 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (min-width: 1024px) {
    .yeshua-single-product-container {
        padding: 3rem 2rem;
    }
}

/* Breadcrumb alineado con la imagen */
.yeshua-product-breadcrumb-wrapper {
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .yeshua-product-breadcrumb-wrapper {
        max-width: 50%;
        margin-bottom: 1.5rem;
    }
}

.yeshua-product-breadcrumb-wrapper .woocommerce-breadcrumb {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0;
    padding: 0;
}

.yeshua-product-breadcrumb-wrapper .woocommerce-breadcrumb a {
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.yeshua-product-breadcrumb-wrapper .woocommerce-breadcrumb a:hover {
    color: #F97316;
}

/* Grid principal - Dos columnas horizontales */
.yeshua-product-main-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    margin-bottom: 3rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    align-items: start !important;
    position: relative;
}

@media (min-width: 768px) {
    .yeshua-product-main-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 3rem !important;
        align-items: start !important;
    }
}

/* Columna de imagen */
.yeshua-product-image-column {
    width: 100% !important;
    box-sizing: border-box !important;
    align-self: start;
}

@media (min-width: 768px) {
    .yeshua-product-image-column {
        position: sticky;
        top: 2rem;
        align-self: start;
        height: fit-content;
        /* El sticky se mantendrá hasta el final del grid padre */
    }
}

.yeshua-product-image-card {
    background: #FFFBEB;
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .yeshua-product-image-card {
        padding: 3rem;
    }
}

.yeshua-product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.yeshua-product-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2rem;
}

/* Badges en la imagen - Esquina superior izquierda */
.yeshua-product-badges-left {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

/* Badges en la imagen - Esquina superior derecha */
.yeshua-product-badges-right {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.yeshua-badge {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.yeshua-badge-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.yeshua-badge-discount {
    background: linear-gradient(135deg, #F97316 0%, #DC2626 100%);
    color: #fff;
    padding: 0.5rem 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.yeshua-badge-new {
    background: #10B981;
    color: #fff;
}

.yeshua-badge-bestseller {
    background: #9333EA;
    color: #fff;
}

.yeshua-badge-flash {
    background: #DC2626;
    color: #fff;
}

.yeshua-badge-icon {
    width: 16px;
    height: 16px;
}

.yeshua-badge-stock {
    background: #DC2626;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Contador de oferta flash */
.yeshua-flash-countdown {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000;
    color: #fff;
    padding: 1rem;
    border-radius: 0 0 1rem 1rem;
    text-align: center;
}

.yeshua-countdown-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.yeshua-countdown-timer {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.yeshua-countdown-timer span {
    font-variant-numeric: tabular-nums;
}

/* Columna de información */
.yeshua-product-info-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
}

/* Marca */
.yeshua-product-brand {
    font-size: 0.875rem;
    font-weight: 500;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: -0.5rem;
}

/* Título */
.yeshua-product-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin: 0;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .yeshua-product-title {
        font-size: 2.25rem;
    }
}

/* Rating */
.yeshua-product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.yeshua-rating-stars {
    display: flex;
    gap: 0.125rem;
    align-items: center;
}

.yeshua-rating-text {
    color: #6B7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.yeshua-star {
    color: #FBBF24;
    font-size: 1.25rem;
}

.yeshua-star-full {
    color: #FBBF24;
}

.yeshua-star-half {
    opacity: 0.5;
}

.yeshua-rating-value {
    font-weight: 600;
    color: #111827;
    font-size: 1rem;
}

.yeshua-reviews-count {
    color: #6B7280;
    font-size: 0.875rem;
}

/* Sección de precio */
.yeshua-product-price-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.yeshua-price-regular {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.yeshua-price-strikethrough {
    font-size: 1.125rem;
    color: #9CA3AF;
    text-decoration: line-through;
}

.yeshua-price-hot-deal {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: #F97316;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.yeshua-hot-deal-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.yeshua-price-current {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.yeshua-price-current .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
}

.yeshua-price-savings {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #059669;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.yeshua-price-savings svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #059669;
}

.yeshua-price-lowest {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #F3F4F6;
    color: #374151;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    width: fit-content;
    margin-top: 0.25rem;
}

.yeshua-price-lowest svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #6B7280;
}

/* Servicios/Beneficios */
.yeshua-product-services {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.yeshua-service-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    flex: 1;
    min-width: 140px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.yeshua-service-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-color: #D1D5DB;
}

.yeshua-service-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #6B7280;
}

/* Características principales */
.yeshua-product-features {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E7EB;
}

.yeshua-features-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.yeshua-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.yeshua-features-list li {
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #374151;
}

.yeshua-features-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #F59E0B;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Formulario de compra */
.yeshua-product-add-to-cart {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E7EB;
}

.yeshua-product-add-to-cart .quantity {
    margin-bottom: 1.25rem;
}

.yeshua-product-add-to-cart .quantity label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.yeshua-product-add-to-cart .quantity .qty {
    width: 120px;
    padding: 0.75rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    font-family: 'Arimo', sans-serif;
    background: #FFFFFF;
    transition: border-color 0.2s ease;
}

.yeshua-product-add-to-cart .quantity .qty:focus {
    outline: none;
    border-color: #1E40AF;
}

.yeshua-product-add-to-cart form.cart {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.yeshua-product-add-to-cart form.cart .quantity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.yeshua-product-add-to-cart form.cart .quantity label {
    font-weight: 600;
    color: #374151;
    margin: 0;
    font-size: 0.9375rem;
}

.yeshua-product-add-to-cart form.cart .quantity .qty {
    width: 100px;
    padding: 0.75rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    font-family: 'Arimo', sans-serif;
    background: #FFFFFF;
    transition: all 0.2s ease;
}

.yeshua-product-add-to-cart form.cart .quantity .qty:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.yeshua-product-add-to-cart button.single_add_to_cart_button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Arimo', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
    position: relative;
    overflow: hidden;
    min-height: 52px;
    letter-spacing: 0.025em;
}

.yeshua-product-add-to-cart button.single_add_to_cart_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: left 0.5s ease;
}

.yeshua-product-add-to-cart button.single_add_to_cart_button:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.yeshua-product-add-to-cart button.single_add_to_cart_button:hover::before {
    left: 100%;
}

.yeshua-product-add-to-cart button.single_add_to_cart_button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.yeshua-product-add-to-cart button.single_add_to_cart_button:disabled,
.yeshua-product-add-to-cart button.single_add_to_cart_button.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.yeshua-product-add-to-cart button.single_add_to_cart_button.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: yeshua-spin 0.8s linear infinite;
    margin-left: 0.5rem;
}

@keyframes yeshua-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Tabs */
.yeshua-product-tabs {
    margin: 1.5rem 0;
}

.yeshua-tabs-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #E5E7EB;
}

.yeshua-tab-button {
    padding: 0.75rem 0;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    font-family: 'Arimo', sans-serif;
    position: relative;
    transition: color 0.2s ease;
    padding-bottom: 0.75rem;
}

.yeshua-tab-button:hover {
    color: #111827;
}

.yeshua-tab-button.yeshua-tab-active {
    color: #111827;
}

.yeshua-tab-button.yeshua-tab-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #111827;
}

.yeshua-tabs-content {
    min-height: 200px;
}

.yeshua-tab-panel {
    display: none;
}

.yeshua-tab-panel.yeshua-tab-active {
    display: block;
}

.yeshua-product-description {
    font-size: 1rem;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 1.5rem;
}

.yeshua-product-description p {
    margin-bottom: 1rem;
}

/* Especificaciones */
.yeshua-product-specifications {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.yeshua-spec-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid #E5E7EB;
}

.yeshua-spec-row:last-child {
    border-bottom: none;
}

.yeshua-spec-label {
    font-weight: 600;
    color: #111827;
    min-width: 150px;
    flex-shrink: 0;
    font-size: 0.9375rem;
}

.yeshua-spec-value {
    color: #6B7280;
    flex: 1;
    font-size: 0.9375rem;
}

/* Productos relacionados */
.yeshua-related-products {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #E5E7EB;
    width: 100%;
}

.yeshua-related-products .related.products {
    width: 100%;
}

.yeshua-related-products .related.products h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    font-family: 'Arimo', sans-serif;
}

/* Productos relacionados - Layout horizontal */
.yeshua-related-products .products {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1.5rem;
    width: 100%;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #D1D5DB transparent;
}

.yeshua-related-products .products::-webkit-scrollbar {
    height: 6px;
}

.yeshua-related-products .products::-webkit-scrollbar-track {
    background: transparent;
}

.yeshua-related-products .products::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

.yeshua-related-products .products::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

.yeshua-related-products .products li.product {
    flex: 0 0 280px;
    max-width: 280px;
    scroll-snap-align: start;
    width: 280px;
}

@media (min-width: 768px) {
    .yeshua-related-products .products li.product {
        flex: 0 0 300px;
        max-width: 300px;
        width: 300px;
    }
}

@media (min-width: 1024px) {
    .yeshua-related-products .products li.product {
        flex: 0 0 320px;
        max-width: 320px;
        width: 320px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .yeshua-product-title {
        font-size: 1.75rem;
    }
    
    .yeshua-price-current {
        font-size: 2rem;
    }
    
    .yeshua-product-services {
        flex-direction: column;
    }
    
    .yeshua-service-item {
        width: 100%;
    }
    
    .yeshua-tabs-nav {
        gap: 1rem;
    }
    
    .yeshua-tab-btn {
        font-size: 0.875rem;
    }
}

