/* ==========================================================================
   LARA CAMPOS - REDISEÑO DETALLE DE PRODUCTO (SINGLE PRODUCT 2)
   ========================================================================== */

.t2-p-hero {
    position: relative;
    width: 100%;
    padding: 80px 0;
    background-color: #fff;
    overflow: hidden;
}

/* Reutilizamos fondo de la Tienda para paridad visual total */
.t2-p-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff0f5; /* Tono rosa base */
    background-image: 
        linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 15%, rgba(255, 255, 255, 0) 85%, #fff 100%), 
        linear-gradient(to bottom, #fff 0%, rgba(255, 255, 255, 0) 15%, rgba(255, 255, 255, 0) 85%, #fff 100%), 
        url('../img/template2/fondo_tienda.jpg');
    background-size: 100% 100%, 100% 100%, cover;
    background-position: center;
    background-blend-mode: normal, normal, multiply;
    z-index: 0;
}

.t2-p-hero .h2-container {
    position: relative;
    z-index: 2;
}

/* Grid Principal del Hero */
.t2-p-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    min-height: 500px;
}

/* --- Columna Galería (Izquierda) --- */
.t2-p-gallery-col {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.t2-p-main-img-wrap {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 30px;
}

.t2-p-main-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Thumbnails */
.t2-p-thumb-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
}

.t2-p-thumb-item {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f9f9f9;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.t2-p-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t2-p-thumb-item:hover {
    transform: translateY(-3px);
}

.t2-p-thumb-item.active {
    border-color: #ed71a3;
    box-shadow: 0 4px 12px rgba(237, 113, 163, 0.2);
}

/* --- Columna Detalles (Derecha) --- */
.t2-p-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
}

/* Header Area */
.t2-p-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.t2-p-title {
    font-family: var(--font-title);
    font-size: 52px;
    color: var(--color-primary); /* Rosa lara */
    line-height: 1.1;
    margin: 0;
    flex: 1;
    text-transform: none;
}

/* Disponibilidad lateral */
.t2-p-availability {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.t2-p-availability img {
    width: 24px;
    height: 24px;
}

.t2-p-availability span {
    font-family: var(--font-text);
    font-weight: bold;
    font-size: 14px;
    color: #5ab866; /* Verde stock */
    line-height: 1.2;
}

.t2-p-availability.out-of-stock span {
    color: #e74c3c;
}

/* Subtitle y Descripción */
.t2-p-subtitle {
    font-family: var(--font-text);
    font-weight: bold;
    font-size: 16px;
    color: #000;
    margin-bottom: 15px;
}

.t2-p-desc {
    font-family: var(--font-text);
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 520px;
}

/* Precio */
.t2-p-price {
    font-family: var(--font-text);
    font-weight: bold;
    font-size: 42px;
    color: #000;
    margin-bottom: 35px;
}

/* Selectores de Variación estilo Premium */
.t2-p-variations {
    margin-bottom: 30px;
    max-width: 400px;
}

.t2-p-variations label {
    display: block;
    font-family: var(--font-text);
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 8px;
    color: #000;
}

.t2-p-variations select {
    width: 100%;
    padding: 12px 20px;
    border: 2px dashed #ed71a3;
    border-radius: 25px;
    font-family: var(--font-text);
    font-size: 14px;
    color: #333;
    background-color: #fff;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ed71a3' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    transition: border-color 0.2s;
}

.t2-p-variations select:focus {
    border-style: solid;
}

/* Botón LLEVATELA YA */
.t2-p-btn-buy {
    display: inline-block;
    font-size: 20px;
    padding: 20px 70px;
    margin-top: 10px;
    box-shadow: 0 15px 35px rgba(237, 113, 163, 0.5); /* Sombra premium */
    cursor: pointer;
    border: none;
    align-self: flex-start;
}

.t2-p-btn-buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(237, 113, 163, 0.65);
}

/* ==========================================================================
   BANNER DE INFORMACIÓN
   ========================================================================== */
.t2-info-banner-section {
    padding: 30px 0;
    background-color: #fff;
}

.t2-info-banner {
    background-color: #fdfdfd;
    border: 1px solid #f2edf0;
    border-radius: 15px;
    padding: 25px 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
}

.t2-info-banner p {
    font-family: var(--font-text);
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.t2-info-banner strong {
    color: var(--color-primary);
}

/* ==========================================================================
   PRODUCTOS RELACIONADOS REDISEÑO SLIDER
   ========================================================================== */
.t2-related-section {
    padding: 80px 0;
    background-color: #fff;
    position: relative;
}

.t2-related-section .h2-container {
    position: relative;
}

.t2-related-title {
    font-family: var(--font-title);
    font-size: 40px;
    text-align: center;
    color: #000;
    margin-bottom: 50px;
}

/* Track y Vista del Slider */
.t2-related-carousel {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 60px; /* Espacio para flechas laterales */
}

.t2-related-track-container {
    width: 100%;
    overflow: hidden;
}

.t2-related-track {
    display: flex;
    gap: 30px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Cada item es igual a las tarjetas de la tienda */
.t2-related-track .h2-product-card {
    flex: 0 0 calc(25% - 22.5px); /* 4 items por vista */
    max-width: calc(25% - 22.5px);
    min-width: calc(25% - 22.5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.t2-related-track .h2-prod-img-box {
    width: 100% !important;
    aspect-ratio: 1.25;
    background-color: #f4f4f4 !important;
    border-radius: 30px !important;
}

.t2-related-track .h2-product-title {
    font-family: var(--font-text);
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #000;
}

.t2-related-track .h2-product-price {
    font-weight: bold;
    color: #ed71a3;
    font-size: 15px;
}

/* Flechas Laterales Circulares Pink */
.t2-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.t2-carousel-arrow img {
    width: 100%;
    height: 100%;
}

.t2-carousel-arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

.t2-carousel-arrow.prev-arrow {
    left: 0;
}

.t2-carousel-arrow.next-arrow {
    right: 0;
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 1024px) {
    .t2-p-grid {
        flex-direction: column;
        gap: 40px;
    }

    .t2-p-gallery-col {
        flex: 1 1 100%;
        width: 100%;
    }

    .t2-p-info-col {
        flex: 1 1 100%;
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .t2-p-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .t2-p-btn-buy {
        align-self: center;
    }

    .t2-related-track .h2-product-card {
        flex: 0 0 calc(50% - 15px); /* 2 items en tablet */
        max-width: calc(50% - 15px);
        min-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .t2-p-title {
        font-size: 40px;
    }

    .t2-p-header-flex {
        flex-direction: column;
    }

    .t2-related-track .h2-product-card {
        flex: 0 0 100%; /* 1 item en móvil */
        max-width: 100%;
        min-width: 100%;
    }

    .t2-carousel-arrow {
        width: 35px;
        height: 35px;
    }
}
