/* style.detalle.css - Versión mejorada con estilo unificado */


/* Importación de fuentes */

@import url('https://fonts.googleapis.com/css2?family=Pirata+One&display=swap');

/* Estructura principal */

.product-detail-container {
    padding: 1rem;
    background: linear-gradient(135deg, #f5f7fa, #dcc6a2);
    border-radius: 25px;
    margin: 20px auto;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}


/* Sección de imágenes - Estilo mejorado */

.product-image-card {
    background: linear-gradient(135deg, #f5f7fa, #dcc6a2);
    border: 3px solid #2c130d;
    border-radius: 25px;
    padding: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s;
}

.product-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.main-product-img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 20px;
    border: 5px solid #2c130d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s;
}

.main-product-img:hover {
    transform: scale(1.03);
}

.thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 1.5rem;
    justify-content: center;
}

.thumbnail-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid #2c130d;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.thumbnail-img:hover {
    transform: scale(1.1);
    border-color: #8B0000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}


/* Sección de información - Estilo pirata */

.product-info-card {
    background: linear-gradient(135deg, #f5f7fa, #dcc6a2);
    border: 3px solid #2c130d;
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #2c130d;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Pirata One', cursive;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid #8B0000;
    padding-bottom: 10px;
}

.price-container {
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 2rem;
    font-weight: bold;
    color: #8B0000;
    font-family: 'Pirata One', cursive;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.original-price {
    font-size: 1.5rem;
    color: #555;
    text-decoration: line-through;
    font-family: 'Pirata One', cursive;
}

.discount-badge {
    background-color: #8B0000;
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-family: 'Pirata One', cursive;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.product-description {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    border-left: 5px solid #8B0000;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.product-description h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c130d;
    font-family: 'Pirata One', cursive;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


/* Formulario - Estilo pirata */

.add-to-cart-form {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    border: 2px solid #2c130d;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.variant-selector label {
    font-family: 'Pirata One', cursive;
    font-size: 1.2rem;
    color: #2c130d;
    margin-bottom: 0.5rem;
    display: block;
}

.variant-selector select {
    background-color: #ffffff;
    border: 2px solid #2c130d;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 1rem;
    color: #2c130d;
    font-family: 'Pirata One', cursive;
    width: 100%;
    height: 100%;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.variant-selector select:hover {
    background-color: #dcc6a2;
    border-color: #8B0000;
}

.stock-info p {
    font-size: 1.1rem;
    font-family: 'Pirata One', cursive;
    color: #2c130d;
    margin-bottom: 1.5rem;
}

.in-stock {
    color: #28a745;
    font-weight: bold;
}

.out-of-stock {
    color: #dc3545;
    font-weight: bold;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.quantity-selector label {
    font-family: 'Pirata One', cursive;
    font-size: 1.2rem;
    color: #2c130d;
}

.quantity-input {
    width: 80px;
    border: 2px solid #2c130d;
    border-radius: 10px;
    padding: 8px;
    text-align: center;
    font-family: 'Pirata One', cursive;
    font-size: 1.1rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.add-to-cart-btn {
    background-color: #2c130d;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    font-family: 'Pirata One', cursive;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.add-to-cart-btn:hover {
    background-color: #8B0000;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}


/* Categoría - Estilo pirata */

.product-category {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2rem;
}

.product-category span {
    font-family: 'Pirata One', cursive;
    font-size: 1.2rem;
    color: #2c130d;
}

.category-badge {
    background-color: #8B0000;
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Pirata One', cursive;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.category-badge:hover {
    background-color: #2c130d;
    transform: scale(1.05);
}


/* Productos relacionados - Estilo pirata */

.related-products {
    margin-top: 4rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa, #dcc6a2);
    border-radius: 25px;
    border: 3px solid #2c130d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.related-products h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2c130d;
    text-align: center;
    font-family: 'Pirata One', cursive;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid #8B0000;
    padding-bottom: 10px;
}

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

.related-product-card {
    background: white;
    border: 2px solid #2c130d;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: #8B0000;
}

.related-product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #2c130d;
}

.related-product-info {
    padding: 15px;
}

.related-product-link {
    color: #2c130d;
    text-decoration: none;
    font-family: 'Pirata One', cursive;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.related-product-link:hover {
    color: #8B0000;
}

.related-product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0.8rem;
}

.related-product-price .current-price {
    font-size: 1.3rem;
    color: #8B0000;
    font-family: 'Pirata One', cursive;
    font-weight: bold;
}

.related-product-price .original-price {
    font-size: 1rem;
    color: #555;
    text-decoration: line-through;
    font-family: 'Pirata One', cursive;
}

.related-product-footer {
    padding: 15px;
    background-color: #f8f9fa;
    border-top: 2px solid #2c130d;
}

.view-details-btn {
    display: block;
    text-align: center;
    padding: 8px 15px;
    background-color: transparent;
    border: 2px solid #2c130d;
    color: #2c130d;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Pirata One', cursive;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.view-details-btn:hover {
    background-color: #2c130d;
    color: white;
    transform: scale(1.05);
}


/* Responsive Design */


/* ============================= */


/*  RESPONSIVE OPTIMIZADO MÓVIL */


/* ============================= */

@media (max-width: 768px) {
    .product-detail-container {
        padding: 1rem;
        margin: 10px;
        border-radius: 15px;
    }
    .product-image-card,
    .product-info-card {
        border-radius: 15px;
        padding: 10px;
    }
    .product-title {
        font-size: 1.5rem;
    }
    .current-price {
        font-size: 1.5rem;
    }
    .original-price {
        font-size: 1.2rem;
    }
    .product-description {
        padding: 1rem;
    }
    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    .related-product-img {
        height: 150px;
    }
}


/* ============================= */


/*  DISEÑO PARA MÓVILES PEQUEÑOS */


/* ============================= */

@media (max-width: 576px) {
    /* Columnas completas */
    .col-md-6 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    /* Contenedor general */
    .product-detail-container {
        padding: 0.5rem;
        margin: 10px;
    }
    .product-image-card,
    .product-info-card,
    .related-products {
        padding: 10px;
        margin-bottom: 1rem;
        border-radius: 15px;
    }
    /* Imagen principal simplificada */
    .main-product-img {
        max-height: 280px;
        border: 2px solid #8B0000;
        border-radius: 15px;
        box-shadow: none;
    }
    .thumbnail-img {
        width: 60px;
        height: 60px;
    }
    .product-title {
        font-size: 1.4rem;
        text-align: center;
    }
    .product-description {
        padding: 1rem;
        font-size: 1rem;
    }
    .quantity-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .quantity-input {
        width: 100%;
    }
    /* Botón flotante izquierdo */
    .add-to-cart-btn {
        position: fixed;
        bottom: 20px;
        left: 20px;
        width: auto;
        border-radius: 50px;
        font-size: 0.95rem;
        padding: 12px 20px;
        z-index: 1000;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    .add-to-cart-form {
        padding-bottom: 5rem;
    }
    /* Productos relacionados - 2 columnas bonitas */
    .related-products h3 {
        font-size: 1.4rem;
        text-align: center;
    }
    .related-products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }
    .related-product-card {
        padding: 10px;
        border-radius: 12px;
    }
    .related-product-img {
        height: 100px;
        object-fit: contain;
    }
    .related-product-info h5 {
        font-size: 0.9rem;
        margin: 5px 0;
        text-align: center;
    }
    .related-product-price {
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }
    .related-product-footer {
        padding: 8px 0;
    }
    .view-details-btn {
        font-size: 0.75rem;
        padding: 5px 10px;
        width: 90%;
        margin: auto;
    }
    .related-product-link {
        font-size: 0.9rem;
    }
    .related-product-price .current-price {
        font-size: 1.1rem;
    }
    .related-product-price .original-price {
        font-size: 0.9rem;
    }
}