/* ==========================================
   PRODUCTO - TIENDA MATERNAL
   Diseño público del detalle del producto
   Rosa + blanco + amarillo
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #fffafc;
    color: #222;
}


/* ==========================================
   DETALLE DEL PRODUCTO
========================================== */

.detalle_producto {
    max-width: 1060px;
    margin: 28px auto 60px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    gap: 42px;
    align-items: start;
}

/* ==========================================
   IMAGEN
========================================== */

.imagen_producto {
    background: #fff8df;
    border: 2px solid #ffd83d;
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.imagen_producto img {
    width: 100%;
    height: 455px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.imagen-producto__sin-imagen {
    width: 100%;
    height: 455px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 12px;
    background: #f4ebe4;
    color: #777777;
    text-align: center;
}

.imagen-producto__sin-imagen span {
    font-size: 88px;
    line-height: 1;
}

.imagen-producto__sin-imagen small {
    font-size: 14px;
    font-weight: 700;
}

.imagen_producto .imagen-producto__oculto {
    display: none;
}

/* ==========================================
   INFORMACIÓN
========================================== */

.info_producto {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 18px;
    padding: 28px 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.encabezado-info-producto {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 10px;
}

.info_producto .encabezado-info-producto h1 {
    min-width: 0;
    margin-bottom: 0;
}

.btn-compartir-producto {
    min-height: 39px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 13px;
    border: 1px solid #f0c8d8;
    border-radius: 999px;
    background: #fff5f9;
    color: #d91562;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.btn-compartir-producto:hover:not(:disabled) {
    border-color: #e71968;
    background: #e71968;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(231, 25, 104, 0.18);
}

.btn-compartir-producto:focus-visible {
    outline: 3px solid rgba(231, 25, 104, 0.24);
    outline-offset: 3px;
}

.btn-compartir-producto:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.aviso-compartir-producto {
    display: none;
    margin: 0 0 12px;
    padding: 9px 12px;
    border-radius: 10px;
    background: #eefaf2;
    color: #198c46;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.aviso-compartir-producto.mostrar {
    display: block;
}

.aviso-compartir-producto.error {
    background: #fff0f6;
    color: #d91562;
}

.info_producto > p {
    color: #666;
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 15px;
}

.info_producto h2 {
    font-size: 17px;
    color: #333;
    margin: 18px 0 12px;
}

/* ==========================================
   PRECIO
========================================== */

.info_producto .precio,
.precio {
    color: #e71968;
    font-size: 27px;
    font-weight: 700;
    margin: 18px 0;
}

.precios-producto {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 12px;
    margin: 12px 0 18px;
}

.info_producto .precio-producto {
    margin: 0;
    color: #e71968;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 700;
}

.precio-producto-anterior {
    color: #777;
    font-size: 15px;
    text-decoration: line-through;
}

.info_producto .precio-producto-oferta {
    color: #e71968;
    font-size: 31px;
}

.descuento-producto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #e71968;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

/* ==========================================
   VARIANTES
========================================== */

.info_producto form {
    margin-top: 0;
}

.selector-tallas {
    margin-bottom: 16px;
}

.selector-opcion__titulo {
    display: block;
    margin-bottom: 9px;
    color: #333333;
    font-size: 15px;
    font-weight: 700;
}

.opciones-talla {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.opcion-talla {
    min-width: 54px;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid #dddddd;
    border-radius: 12px;
    background: #ffffff;
    color: #333333;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.opcion-talla:hover {
    border-color: #e71968;
    background: #fff5f9;
    color: #e71968;
    transform: translateY(-1px);
}

.opcion-talla.seleccionada {
    border-color: #e71968;
    background: #fff0f6;
    color: #e71968;
    box-shadow: 0 0 0 2px rgba(231, 25, 104, 0.10);
}

.opcion-talla:disabled {
    border-color: #e7e1e4;
    background: #f7f4f5;
    color: #aaa1a5;
    text-decoration: line-through;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.62;
    transform: none;
}

.opcion-talla:focus-visible {
    outline: 3px solid rgba(231, 25, 104, 0.22);
    outline-offset: 2px;
}

.selector-colores {
    margin-bottom: 16px;
}

.opciones-color {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.opcion-color {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 13px 6px 7px;
    border: 1px solid #dddddd;
    border-radius: 999px;
    background: #ffffff;
    color: #333333;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.muestra-color {
    position: relative;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 1px solid rgba(0, 0, 0, 0.13);
    border-radius: 50%;
    background: var(--muestra-color, #f3a2c0);
}

.opcion-color:hover {
    border-color: #e71968;
    background: #fff5f9;
    color: #e71968;
    transform: translateY(-1px);
}

.opcion-color.seleccionada {
    border-color: #e71968;
    background: #fff0f6;
    color: #e71968;
    box-shadow: 0 0 0 2px rgba(231, 25, 104, 0.10);
}

.opcion-color:disabled {
    border-color: #e7e1e4;
    background: #f7f4f5;
    color: #aaa1a5;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.62;
    transform: none;
}

.opcion-color:disabled .muestra-color {
    filter: grayscale(0.55);
}

.opcion-color:disabled .muestra-color::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 2px;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #81777b;
    transform: translateY(-50%) rotate(-45deg);
}

.opcion-color:focus-visible {
    outline: 3px solid rgba(231, 25, 104, 0.22);
    outline-offset: 2px;
}

.info_producto form label {
    display: block;
    padding: 13px 15px;
    margin-bottom: 10px;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    background: #fffafd;
    color: #444;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

.info_producto form label:hover {
    border-color: #f3a2c0;
    background: #fff3f8;
}

.info_producto form label input[type="radio"] {
    accent-color: #e71968;
    margin-right: 8px;
}

/* ==========================================
   CANTIDAD Y DISPONIBILIDAD
========================================== */

.bloque-cantidad-stock {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding: 14px 15px;
    border: 1px solid #f0e3e9;
    border-radius: 14px;
    background: #fffafd;
}

.selector-cantidad {
    flex: 0 0 auto;
}

.selector-cantidad .selector-opcion__titulo {
    margin-bottom: 8px;
}

.control-cantidad {
    display: grid;
    grid-template-columns: 42px 54px 42px;
    min-height: 42px;
    overflow: hidden;
    border: 1px solid #e1d9dd;
    border-radius: 12px;
    background: #ffffff;
}

.control-cantidad button,
.control-cantidad input {
    min-width: 0;
    border: none;
    background: transparent;
    color: #333333;
    font: inherit;
    font-weight: 700;
    text-align: center;
}

.control-cantidad button {
    font-size: 20px;
    cursor: pointer;
    transition:
        background-color 180ms ease,
        color 180ms ease;
}

.control-cantidad button:hover:not(:disabled) {
    background: #fff0f6;
    color: #e71968;
}

.control-cantidad button:focus-visible {
    position: relative;
    outline: 3px solid rgba(231, 25, 104, 0.22);
    outline-offset: -3px;
}

.control-cantidad button:disabled {
    color: #c9c2c5;
    cursor: not-allowed;
}

.control-cantidad input {
    width: 54px;
    border-right: 1px solid #eee6ea;
    border-left: 1px solid #eee6ea;
    appearance: textfield;
    -moz-appearance: textfield;
}

.control-cantidad input::-webkit-outer-spin-button,
.control-cantidad input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.estado-stock-producto {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 42px;
    color: #766d71;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: right;
}

.estado-stock-producto__punto {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #e0b02f;
    box-shadow: 0 0 0 4px rgba(224, 176, 47, 0.12);
}

.estado-stock-producto.disponible {
    color: #198c46;
}

.estado-stock-producto.disponible .estado-stock-producto__punto {
    background: #1fa34f;
    box-shadow: 0 0 0 4px rgba(31, 163, 79, 0.12);
}

.estado-stock-producto.pocas-unidades {
    color: #9a6a00;
}

.estado-stock-producto.no-disponible {
    color: #d91562;
}

.estado-stock-producto.no-disponible .estado-stock-producto__punto {
    background: #e71968;
    box-shadow: 0 0 0 4px rgba(231, 25, 104, 0.12);
}


/* ==========================================
   BOTÓN CARRITO
========================================== */

.button {
    width: 100%;
    border: none;
    border-radius: 13px;
    padding: 15px 22px;
    margin-top: 18px;
    background: #e71968;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(231, 25, 104, 0.2);
    transition: 0.2s ease;
}

.button:hover:not(:disabled) {
    background: #c91458;
    transform: translateY(-2px);
}

.button:disabled {
    background: #e8dfe3;
    color: #a99fa4;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ==========================================
   ACCIONES DE COMPRA Y FAVORITOS
========================================== */

.acciones-compra-producto {
    display: grid;
    grid-template-columns:
        minmax(0, 1.3fr)
        minmax(0, 1fr)
        52px;
    align-items: stretch;
    gap: 10px;
    margin-top: 18px;
}

.acciones-compra-producto .button {
    width: auto;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 0;
    padding: 13px 16px;
}

.boton-comprar-ahora {
    border: 1px solid #ffd83d;
    background: #fff8df;
    color: #765900;
    box-shadow: none;
}

.boton-comprar-ahora:hover:not(:disabled) {
    border-color: #f0c300;
    background: #ffd83d;
    color: #3d3200;
}

.btn-favorito-producto {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid #eeeeee;
    border-radius: 50%;
    background: #ffffff;
    color: #e71968;
    font-size: 21px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
    transition:
        background-color 200ms ease,
        border-color 200ms ease,
        color 200ms ease,
        transform 200ms ease,
        box-shadow 200ms ease;
}

.btn-favorito-producto:hover {
    border-color: #e71968;
    background: #fff0f6;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 25, 104, 0.16);
}

.btn-favorito-producto.es-favorito {
    border-color: #f3a2c0;
    background: #fff0f6;
    color: #e71968;
}

.btn-favorito-producto:focus-visible {
    outline: 3px solid rgba(231, 25, 104, 0.25);
    outline-offset: 3px;
}

.btn-favorito-producto:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}


/* ==========================================
   AVISOS DEL PRODUCTO
========================================== */

#mensaje-variante {
    display: none;
    margin: 10px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff0f6;
    color: #d91562;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

#mensaje-variante:not(:empty) {
    display: block;
}

.aviso-carrito-producto {
    display: none;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 14px;
    border-left: 4px solid #f3a2c0;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.10);
    color: #222;
    font-size: 14px;
    font-weight: 700;
}

.aviso-carrito-producto.mostrar {
    display: flex;
}

.aviso-carrito-producto i {
    color: #159b43;
    font-size: 20px;
}

.aviso-carrito-producto a {
    margin-left: auto;
    padding: 7px 12px;
    border: 1px solid #e71968;
    border-radius: 9px;
    color: #e71968;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.aviso-carrito-producto a:hover {
    background: #e71968;
    color: #ffffff;
}

/* ==========================================
   PRODUCTOS RELACIONADOS
========================================== */

.productos-relacionados {
    width: 100%;
    padding: 34px 24px 46px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 240, 246, 0.64),
            rgba(255, 250, 252, 0.94)
        );
    border-top: 1px solid #f7e7ee;
}

.productos-relacionados__contenido {
    width: min(100%, 1060px);
    margin: 0 auto;
}

.productos-relacionados__encabezado {
    display: grid;
    justify-items: center;
    gap: 9px;
    margin-bottom: 24px;
    text-align: center;
}

.productos-relacionados__encabezado h2 {
    margin: 0;
    color: #332b2e;
    font-size: 25px;
    line-height: 1.2;
}

.productos-relacionados__encabezado span {
    width: 50px;
    height: 3px;
    border-radius: 999px;
    background: #ffd83d;
}

.productos-relacionados .productos-relacionados__grid {
    width: min(100%, 860px);
    margin: 0 auto;
}


/* ==========================================
   FOOTER
========================================== */

footer {
    background: #ffffff;
    border-top: 1px solid #eeeeee;
    text-align: center;
    padding: 30px 20px;
    color: #777;
    font-size: 13px;
    margin-top: 20px;
}

/* ==========================================
   TAWK
========================================== */

#tawkchat-container {
    z-index: 9999 !important;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 900px) {

    
    .detalle_producto {
        grid-template-columns: 1fr;
        max-width: 700px;
        gap: 30px;
        margin-top: 30px;
    }

    .imagen_producto img {
        height: 520px;
    }
}

/* ==========================================
   CELULAR
========================================== */

@media (max-width: 600px) {

    
    .detalle_producto {
        margin: 25px auto 45px;
        padding: 0 15px;
    }

    .imagen_producto {
        padding: 8px;
        border-radius: 17px;
    }

    .imagen_producto img {
        height: 420px;
        border-radius: 11px;
    }

    .info_producto {
        padding: 25px 20px;
        border-radius: 18px;
    }

    .info_producto h1 {
        font-size: 27px;
    }

    .encabezado-info-producto {
        align-items: center;
        gap: 12px;
    }

    .btn-compartir-producto {
        width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
        border-radius: 50%;
    }

    .btn-compartir-producto span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .acciones-producto {
        flex-direction: column;
    }

    .acciones-producto a {
        width: 100%;
    }
}


 @media(max-width:768px){

    .categories{
        flex-wrap:nowrap;
        overflow-x:auto;
        justify-content:flex-start;
        padding:10px;
    }


    .category_btn{

        flex-shrink:0;
        font-size:16px;
        padding:12px 25px;

    }


    .section_title h2{

        font-size:35px;
        text-align:center;
        line-height:1.2;

    }


}