/* ================================================
   SINGLE PRODUCT PAGE STYLES
   ================================================ */

/* Reset y estilos base */
* {
    box-sizing: border-box;
}

.single-product-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ================================================
   CONTENEDOR PRINCIPAL DEL PRODUCTO
   ================================================ */

.product-main-wrapper {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: start;
}

/* ================================================
   CONTENEDOR 1: GALERÍA DE IMÁGENES
   ================================================ */

.product-gallery-container {
    display: flex;
    gap: 20px;
    position: relative;
}

/* Thumbnails verticales */
.product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 90px;
    flex-shrink: 0;
}

.thumbnail-item {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.thumbnail-item:hover {
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.thumbnail-item.active {
    border-color: #ff6b35;
    box-shadow: 0 0 0 1px #ff6b35;
}

.thumbnail-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover .thumbnail-img {
    transform: scale(1.05);
}

/* Imagen principal */
.product-main-image {
    flex: 1;
    position: relative;
}

.main-image-wrapper {
    position: relative;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    background: #f9f9f9;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-product-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.main-image-wrapper:hover .main-product-image {
    transform: scale(1.02);
}

.zoom-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
}

.zoom-icon:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* ================================================
   CONTENEDOR 2: INFORMACIÓN DEL PRODUCTO
   ================================================ */

.product-info-container {
    padding: 20px 0;
}

.product-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #1a1a1a;
    line-height: 1.3;
}

/* Precio */
.product-price {
    margin-bottom: 15px;
}

.product-price .price {
    font-size: 36px;
    font-weight: 700;
    color: #ff6b35;
    margin-right: 10px;
}

.price-tax-info {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

/* Estado del stock */
.product-stock-info {
    margin-bottom: 15px;
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
}

.stock-status.in-stock {
    background: #e8f5e8;
    color: #2d6a2d;
    border: 1px solid #c3e6c3;
}

.stock-status.out-stock {
    background: #ffeaea;
    color: #d63031;
    border: 1px solid #fab1a0;
}

.stock-icon {
    font-weight: bold;
    font-size: 16px;
}

/* Información de envío */
.shipping-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    color: #0066cc;
    font-weight: 500;
}

.shipping-icon {
    font-size: 18px;
}

/* Cantidad y carrito */
.product-quantity-cart {
    margin-bottom: 20px;
}

.product-quantity-cart .cart {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.product-quantity-cart .quantity {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.product-quantity-cart .qty {
    width: 60px;
    height: 45px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 500;
}

.product-quantity-cart .single_add_to_cart_button {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-quantity-cart .single_add_to_cart_button:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Información promocional */
.promotional-info {
    margin-top: 20px;
}

.promo-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #dc3545;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-icon {
    font-size: 16px;
}

/* ================================================
   CONTENEDOR 3: CARACTERÍSTICAS DESTACADAS
   ================================================ */

.product-highlights-container {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.highlights-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.highlights-list {
    margin-bottom: 25px;
}

.highlight-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
}

.highlight-item::before {
    content: "▶";
    color: #87CEEB; /* Azul claro */
    margin-right: 10px;
    font-size: 12px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.promotions-included {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.promotions-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #ff6b35;
}

/* ================================================
   SECCIÓN DE ICONOS DE CONFIANZA
   ================================================ */

.trust-icons-section {
    margin-bottom: 60px;
    background: #f8f9fa;
    padding: 40px 0;
    border-radius: 12px;
}

.trust-icons-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.trust-icon-item {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.trust-icon-item.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.trust-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: #ff6b35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.trust-icon:hover {
    transform: scale(1.1);
}

.trust-icon-img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.trust-text {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.4;
}

/* ================================================
   CONTENIDO DEL PRODUCTO
   ================================================ */

.product-content-section {
    margin-bottom: 60px;
}

.content-wrapper {
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4 {
    color: #1a1a1a;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-wrapper p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.7;
}

/* ================================================
   CARACTERÍSTICAS DETALLADAS
   ================================================ */

.product-characteristics-section {
    margin-bottom: 60px;
}

.characteristics-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.characteristics-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 25px 0;
    color: #1a1a1a;
}

.characteristics-description {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

.characteristics-description p {
    margin-bottom: 20px;
}

.characteristics-description strong {
    color: #ff6b35;
    font-weight: 600;
}

.characteristics-reviews {
    display: none;
}

.reviews-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #1a1a1a;
}

.reviews-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-label {
    font-size: 14px;
    color: #666;
}

.rating-value {
    font-size: 16px;
}

.no-reviews {
    color: #999;
    font-style: italic;
}

/* ================================================
   PRODUCTOS RELACIONADOS - CARRUSEL
   ================================================ */

.related-products-section {
    margin-bottom: 60px;
}

.related-products-wrapper {
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.related-products-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 30px 0;
    color: #1a1a1a;
    text-align: center;
}

.related-products-carousel-container {
    overflow: hidden;
    position: relative;
    padding: 0 60px; /* Espacio para las flechas */
}

.related-products-carousel {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

/* Flechas de navegación del carrusel */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ff6b35;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: #e55a2b;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.related-product-slide {
    flex: 0 0 250px;
    width: 250px;
}

.related-product-item {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.related-product-image {
    position: relative;
    background: white;
    padding: 20px;
    text-align: center;
    flex-shrink: 0;
}

.related-product-image img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.related-product-item:hover .related-product-image img {
    transform: scale(1.05);
}

.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #0066cc;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.related-product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.related-product-title {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    flex-grow: 1;
}

.related-product-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    overflow: hidden;
}

.related-product-title a:hover {
    color: #ff6b35;
}

.related-product-rating {
    margin-bottom: 10px;
    font-size: 12px;
}

.related-product-price {
    margin-bottom: 15px;
}

.related-product-price .price {
    font-size: 16px;
    font-weight: 700;
    color: #ff6b35;
}

.related-product-cart {
    text-align: center;
    margin-top: auto;
}

.add-to-cart-btn {
    background: #ff6b35;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.add-to-cart-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* ================================================
   MODAL DE ZOOM
   ================================================ */

.zoom-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.zoom-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.zoom-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.zoom-close:hover {
    color: #ff6b35;
}

#zoomedImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.modal-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
}

.modal-nav-left {
    left: -80px;
}

.modal-nav-right {
    right: -80px;
}

.modal-nav-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 1200px) {
    .product-main-wrapper {
        grid-template-columns: 1.5fr 1fr;
        gap: 30px;
    }
    
    .product-highlights-container {
        grid-column: 1 / -1;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .single-product-container {
        padding: 15px;
    }
    
    .product-main-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-gallery-container {
        flex-direction: column-reverse;
        gap: 15px;
    }
    
    .product-thumbnails {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        gap: 10px;
        overflow-x: auto;
        padding: 10px 0;
    }
    
    .thumbnail-item {
        width: 80px;
        flex-shrink: 0;
    }
    
    .main-image-wrapper {
        min-height: 300px;
    }
    
    .trust-icons-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .characteristics-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .related-products-carousel-container {
        padding: 0 50px;
    }
    
    .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .related-product-slide {
        flex: 0 0 200px;
        width: 200px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .product-price .price {
        font-size: 28px;
    }
    
    .modal-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .modal-nav-left {
        left: -60px;
    }
    
    .modal-nav-right {
        right: -60px;
    }
}

@media (max-width: 480px) {
    .trust-icons-wrapper {
        grid-template-columns: 1fr;
    }
    
    .product-quantity-cart .cart {
        flex-direction: column;
        align-items: stretch;
    }
    
    .product-quantity-cart .single_add_to_cart_button {
        width: 100%;
        text-align: center;
    }
    
    .related-products-carousel-container {
        padding: 0 40px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .related-product-slide {
        flex: 0 0 180px;
        width: 180px;
    }
}