
/* ==========================================
   INSPIRACIÓN — THE IT GIRL EDIT
   IT GIRL USA
========================================== */

/* SECCIÓN PRINCIPAL */
.girl-edit {
    width: 100%;
    padding: 35px 16px 70px;
    background-color: #f8f4ef;
    box-sizing: border-box;
}

/* ==========================================
   ENCABEZADO
========================================== */

.girl-edit .section-heading {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 45px;
    text-align: center;
}

.girl-edit .eyebrow {
    margin: 0 0 12px;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    color: #948174;
}

.girl-edit .section-heading h2 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 7vw, 3rem);
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.2;
    color: #29231f;
}

.girl-edit .section-heading > p:last-child {
    max-width: 300px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.8;
    color: #766a60;
}

/* ==========================================
   CONTENEDOR DE LOS CUATRO LOOKS
========================================== */

.edit-looks {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 65px;
    width: 100%;
    margin: 0 auto;
}

/* CADA LOOK */
.edit-look {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}
/* FRANJA DIVISORIA DE CADA COLECCIÓN */
.edit-look-heading {
    width: 100%;
    box-sizing: border-box;
    background: #E6D6C7;
    padding: 14px 10px;
    text-align: center;
    margin-bottom: 18px;
}



/* TÍTULO DE CADA LOOK */
.look-title {
    width: 100%;
    margin: 0;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2.5px;
    line-height: 1.6;
    color: #352A24;
}

/* ==========================================
   IMAGEN EDITORIAL
========================================== */

.girl-edit-image {
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #eee6dd;
}

.girl-edit-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ==========================================
   HOTSPOTS
========================================== */

.girl-edit .hotspot {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;
    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;

    background-color: rgba(255, 255, 255, 0.3);

    cursor: pointer;
    transform: translate(-50%, -50%);
    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease;

    z-index: 2;
}

/* PUNTO INTERIOR */
.girl-edit .hotspot span {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #fff;
}

/* POSICIÓN DE LOS TRES HOTSPOTS
   LOOK 1 */
/* HOTSPOT 1:*/
.edit-look[data-look="look-01"] .hotspot[data-hotspot="perfume"] {
    top: 42%;
    left: 28%;
}

/* HOTSPOT 2:  */
.edit-look[data-look="look-01"] .hotspot[data-hotspot="polvo"] {
    top: 42%;
    left: 85%;
}
/* HOTSPOT 1: */
.edit-look[data-look="look-01"] .hotspot[data-hotspot="serum"] {
    top: 62%;
    left: 28%;
}

/* LOOK 2 
.edit-look[data-look="look-02"] .hotspot[data-product="producto-04"] {
    top: 42%;
    left: 28%;
}

.edit-look[data-look="look-02"] .hotspot[data-product="producto-05"] {
    top: 53%;
    left: 67%;
}

.edit-look[data-look="look-02"] .hotspot[data-product="producto-06"] {
    top: 70%;
    left: 42%;
}

 LOOK 3 
.edit-look[data-look="look-03"] .hotspot[data-product="producto-07"] {
    top: 42%;
    left: 28%;
}

.edit-look[data-look="look-03"] .hotspot[data-product="producto-08"] {
    top: 53%;
    left: 67%;
}

.edit-look[data-look="look-03"] .hotspot[data-product="producto-09"] {
    top: 70%;
    left: 42%;
}

/* LOOK 4 
.edit-look[data-look="look-04"] .hotspot[data-product="producto-10"] {
    top: 42%;
    left: 28%;
}

.edit-look[data-look="look-04"] .hotspot[data-product="producto-11"] {
    top: 53%;
    left: 67%;
}

.edit-look[data-look="look-04"] .hotspot[data-product="producto-12"] {
    top: 70%;
    left: 42%;
}*/

/* EFECTO HOVER */
.girl-edit .hotspot:hover,
.girl-edit .hotspot:focus-visible {
    transform: translate(-50%, -50%) scale(1.15);
    background-color: rgba(255, 255, 255, 0.65);
    outline: none;
}

/* HOTSPOT SELECCIONADO */
.girl-edit .hotspot.is-active {
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(1.12);
}

/* ==========================================
   TARJETA DEL PRODUCTO
========================================== */

/* MINIATURA DEL PRODUCTO */
.girl-edit .product-card-image {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    margin: 0;
    overflow: hidden;
    background-color: #fff;
}

.girl-edit .product-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.girl-edit .product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;

    width: 100%;
    max-width: 650px;
    margin: 12px auto 0;
    padding: 22px 16px;

    box-sizing: border-box;

    background-color: #f8f4ef;
    border: 1px solid #e2d8cd;

    text-align: center;
}

/* INFORMACIÓN DEL PRODUCTO */
.girl-edit .product-card-details {
    width: 100%;
    text-align: center;
}

/* MARCA */
.girl-edit .product-brand {
    margin: 0 0 8px;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #948174;
}

/* NOMBRE */
.girl-edit .product-name {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.4;
    color: #29231f;
}

/* PRECIO */
.girl-edit .product-price {
    margin: 9px 0 0;
    font-family: Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 0.7px;
    color: #50453e;
}

/* DESCRIPCIÓN */
.girl-edit .product-description {
    max-width: 400px;
    margin: 10px auto 0;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.2px;
    color: #766a60;
}

/* ==========================================
   BOTÓN AGREGAR A MI SELECCIÓN
========================================== */

.girl-edit .add-to-cart-button {
    width: 100%;
    padding: 15px 18px;

    border: 1px solid #29231f;
    background-color: #29231f;
    color: #fff;

    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        opacity 0.3s ease;
}

/* HOVER */
.girl-edit .add-to-cart-button:hover:not(:disabled) {
    background-color: transparent;
    color: #29231f;
}

/* FOCO */
.girl-edit .add-to-cart-button:focus-visible {
    outline: 2px solid #948174;
    outline-offset: 3px;
}

/* DESHABILITADO */
.girl-edit .add-to-cart-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ==========================================
   CARRITO GENERAL
========================================== */

.cart-button {
    position: fixed;
    right: 20px;
    bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    width: 52px;
    height: 52px;

    border: none;
    border-radius: 50%;

    background-color: #29231f;
    color: #fff;

    cursor: pointer;
    z-index: 100;
    text-decoration: none;
}

.cart-icon {
    font-size: 18px;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    border-radius: 50%;
    background-color: #c7a58a;
    color: #fff;

    font-family: Arial, sans-serif;
    font-size: 9px;
}

/* ==========================================
   TABLET Y ESCRITORIO
========================================== */

@media (min-width: 768px) {

    .girl-edit {
        padding: 70px 30px 90px;
    }

    .girl-edit .section-heading {
        margin-bottom: 55px;
    }

    .girl-edit .section-heading > p:last-child {
        max-width: 420px;
        font-size: 12px;
    }

    .edit-looks {
        gap: 85px;
    }

    .look-title {
        margin-bottom: 22px;
        font-size: 11px;
    }

    .girl-edit-image {
        max-width: 800px;
    }

    .girl-edit .product-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 25px;

        max-width: 800px;
        padding: 24px 28px;
    }

    .girl-edit .product-card-details {
        flex: 1;
        text-align: left;
    }

    .girl-edit .product-description {
        margin-left: 0;
        margin-right: 0;
    }

    .girl-edit .add-to-cart-button {
        width: auto;
        min-width: 220px;
        white-space: nowrap;
    }
}

/* ==========================================
   PANTALLAS GRANDES
========================================== */

@media (min-width: 1200px) {

    .edit-looks {
        gap: 100px;
    }

    .girl-edit .product-card {
        padding: 26px 32px;
    }
}

/* ==========================================
   REDUCCIÓN DE MOVIMIENTO
========================================== */

@media (prefers-reduced-motion: reduce) {

    .girl-edit .hotspot,
    .girl-edit .add-to-cart-button {
        transition: none;
    }
}

/* MINI FICHA EDITORIAL: MÓVIL */
.girl-edit .product-card {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    align-items: center;
    gap: 12px;

    width: 100%;
    max-width: 420px;
    margin: 12px auto 0;
    padding: 12px;

    box-sizing: border-box;
    text-align: left;
}

.girl-edit .product-card-image {
    grid-column: 1;
    grid-row: 1 / 3;
}

.girl-edit .product-card-details {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    text-align: left;
}

.girl-edit .product-brand,
.girl-edit .product-description {
    display: none;
}

.girl-edit .product-name {
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.girl-edit .product-price {
    margin-top: 6px;
    font-size: 12px;
}

.girl-edit .add-to-cart-button {
    grid-column: 2;
    grid-row: 2;

    width: 100%;
    padding: 10px 6px;

    font-size: 9px;
    letter-spacing: 0.8px;
}

/* ESCRITORIO */
@media (min-width: 768px) {
    .girl-edit .product-card {
        max-width: 650px;
        grid-template-columns: 120px minmax(0, 1fr) auto;
        gap: 20px;
        padding: 16px 20px;
    }

    .girl-edit .product-card-image {
        width: 120px;
        height: 120px;
    }

    .girl-edit .product-card-details {
        grid-column: 2;
        grid-row: 1;
    }

    .girl-edit .product-name {
        font-size: 17px;
    }

    .girl-edit .add-to-cart-button {
        grid-column: 3;
        grid-row: 1;
        width: auto;
        min-width: 150px;
        white-space: normal;
    }
}


