/* =========================
   CONFIGURACIÓN GENERAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f8f4ef;
}


/* =========================
   HEADER
========================= */

.header {
    width: 100%;
    height: 72px;

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

    padding: 0 18px;

    background-color: #f8f4ef;

    position: relative;
    z-index: 100;
}


/* =========================
   BOTONES
========================= */

.header-icon {
    width: 32px;
    height: 32px;

    border: none;
    background: transparent;

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

    cursor: pointer;
}

/* ========================================
   BUSCADOR — IT GIRL USA
======================================== */

.search-container {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    z-index: 1000;

    background: #fffdf9;
    border: 1px solid #e8dfd4;
    border-radius: 5px;
    box-shadow: 0 8px 25px rgba(70, 50, 35, 0.10);

    overflow: hidden;
    box-sizing: border-box;
}

.search-container[hidden] {
    display: none !important;
}

#searchInput {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 14px 17px;

    border: none;
    outline: none;
    border-radius: 5px;

    background: #fffdf9;
    color: #40352f;

    font-family: inherit;
    font-size: 14px;

    box-sizing: border-box;
}

#searchInput::placeholder {
    color: #a79a8e;
}

#searchInput:focus {
    box-shadow: inset 0 -1px 0 #bba38d;
}

/* RESULTADOS DEL BUSCADOR */

.search-results {
display: block;
max-height: 420px;
overflow-y: auto;
border-top: 1px solid #eee5db;
}
 /* si el buscador no encurntra nada , pues no muestra nada*/
/*.search-results:empty {
    display: none;
}*/



/* Cada producto encontrado */
.search-result-item {
 display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fffdf9;
    border-bottom: 1px solid #f0e8df;
    box-sizing: border-box;
    transition: background 0.2s ease;
}
.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f9f4ed;
}

/* Imagen del producto */
.search-result-image {
    display: block;
    flex: 0 0 64px;
    width: 64px;
    height: 76px;
    object-fit: contain;
    background: #f7f2ec;
    border-radius: 4px;
}

/* Espacio para la información */
.search-result-info {
    flex: 1;
    min-width: 0;
}

/* Marca */
.search-result-brand {
    margin: 0 0 4px;
    color: #9a806c;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Nombre del producto */
.search-result-name {
    display: -webkit-box;
    margin: 0 0 7px;
    overflow: hidden;
    color: #40352f;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
/* Contenedor de precios */
.search-result-prices {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;
}

/* Precio regular tachado */
.search-result-old-price {
    color: #a99c91;
    font-size: 11px;
    text-decoration: line-through;
}

/* Precio final */
.search-result-price {
    color: #49382e;
    font-size: 13px;
    font-weight: 600;
}

/* Etiqueta de descuento */
.search-result-discount {
    flex-shrink: 0;
    align-self: flex-start;
    padding: 4px 6px;
    background: #ead9cc;
    color: #694a39;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}


/* ADAPTACIÓN PARA CELULARES */

@media (max-width: 600px) {
    .search-container {
    position: absolute;
    top: calc(100% + 5px);
    left: 10px;
    right: 10px;

        width: auto;
        max-width: none;
        z-index: 1000;
    }

    #searchInput {
        min-height: 42px;
        padding: 11px 13px;
        font-size: 16px;
        scroll-margin-block: 10px;
    }

    .search-results {
            max-height: 50vh;
            overflow-y: auto;
    }

    .search-result-item {
            gap: 10px;
            padding: 10px;
    }

    .search-result-image {
        flex-basis: 56px;
        width: 56px;
        height: 68px;
    }

    .search-result-brand {
        font-size: 9px;
        letter-spacing: 0.8px;
    }
    .search-result-name {
        font-size: 12px;
    }

    .search-result-price {
        font-size: 12px;
    }

}


/* =========================
   MENÚ HAMBURGUESA
========================= */

.menu-button {
    flex-direction: column;
    gap: 4px;
}

.menu-button span {
    display: block;

    width: 19px;
    height: 1.5px;

    background-color: #171717;
}


/* =========================
   LOGO
========================= */

.logo {
    position: absolute;

    left: 50%;
    transform: translateX(-50%);

    text-decoration: none;

    display: flex;
    flex-direction: column;
    align-items: center;

    color: #171717;

    white-space: nowrap;
}

.logo-name {
    font-family: Georgia, "Times New Roman", serif;
    color: #701C24;
    font-size: 21px;
    letter-spacing: 1px;
    font-weight:540;
    line-height: 1;
}

.logo-subtitle {
    margin-top: 5px;

    font-size: 6px;
    letter-spacing: 1.8px;

    line-height: 1;
}


/* =========================
   ACCIONES
========================= */

.header-actions {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 4px;
}


/* =========================
   ICONOS SVG
========================= */

.header-icon svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: #171717;

    stroke-width: 1.5;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================
   CONTADOR DEL CARRITO
========================= */

.cart-button {
    position: relative;
}

.cart-count {
    position: absolute;

    top: 1px;
    right: 0;

    min-width: 13px;
    height: 13px;

    padding: 0 3px;

    border-radius: 50%;

    background-color: #171717;
    color: white;

    font-size: 8px;

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


/* Ocultar el contador cuando no hay productos */

.cart-count:empty {
    display: none;
}

/* =========================
   MENÚ MÓVIL
========================= */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;

    width: 80%;
    height: 100vh;

    background-color: #f8f4ef;

    padding: 80px 30px 30px;

    display: flex;
    flex-direction: column;
    gap: 28px;

    transform: translateX(-100%);
    transition: transform 0.3s ease;

    z-index: 200;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu a {
    text-decoration: none;
    color: #171717;

    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;

    border: none;
    background: transparent;

    font-size: 28px;
    cursor: pointer;
}

/* =========================
   SUBMENÚ DE MARCAS
========================= */

.menu-dropdown {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Botón MARCAS */

.menu-dropdown-button {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: fit-content;
    padding: 0;

    border: none;
    background: transparent;

    font-family: inherit;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: #171717;
    cursor: pointer;
}

.menu-dropdown-button span {
    margin-left: 10px;
    font-size: 13px;
    transition: transform 0.3s ease;
}

/* Lista de marcas */

.submenu {
    display: none;
    flex-direction: column;
    gap: 12px;

    padding-left: 0;
}

/* Cuando se abre */

.submenu.active {
    display: flex;
}

/* Enlaces del submenú */

.submenu a {
    font-size: 9px;
    letter-spacing: 1.2px;
    line-height: 1.4;
}

/* Signo del botón */

.menu-dropdown-button span {
    margin-left: 8px;
    font-size: 15px;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;
    min-height: 100%;
  /*  width: 100%;*/
    height: calc(100vh - 72px);
    overflow: hidden;
}



.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-button {
   display: inline-flex;
    align-items: center;
    justify-content: center;

    position: absolute;
    top: calc(100% + 25px);
    left: -5px;
    transform: none;
    z-index: 10;

    min-width: 170px;
    padding: 13px 22px;
    box-sizing: border-box;

    background-color: #49372f;
    color: #fffaf5;
    border: 1px solid #49372f;

    text-decoration: none;
    text-align: center;

    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.8px;
    line-height: 1.4;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .hero-button {
        bottom: 335px;
    }

    .hero {
        height: 100svh;
        position: relative;
    }
}

/* Texto por encima de la imagen */
.hero-content {
    position: absolute;
    top: 20%;
    left: 6%;
    width: 62%;
    max-width: 270px;
    z-index: 2;
    color: #211c19;
  }


/* Texto superior: MÁS QUE PRODUCTOS */
.hero-eyebrow {
    font-family: "Cormorant Garamond", serif;
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    line-height: 1.4;
    margin: 0 0 5px;
    color: #30251f;
}

/* Título principal: UN ESTILO DE VIDA */
.hero-title {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.9rem, 7vw, 2.6rem);
    font-weight: 250;
    line-height: 0.88;
    letter-spacing: -0.045em;
    margin: 0;
    color: #30251f;
}

/* Texto inferior: IT GIRL - TU MOMENTO */
.hero-subtitle {
    font-family: "Cormorant Garamond", serif;
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    line-height: 1.5;
    margin: 7px 0 0;
    max-width: 230px;
    color: #30251f;
}




/* ================================
   THE IT GIRL EDIT
================================ */

.it-girl-edit {
    padding: 30px 20px;
    background: #f8f5f1;
    color: #2d2723;
  }
  
  /* Encabezado */
  
  .edit-header {
    max-width: 500px;
    margin: 0 auto 20px;
    text-align: center;
  }
  
  .edit-label {
    display: block;
    margin-bottom: 10px;
    color: #9a806b;
    font-size: 0.5rem;
    font-weight: 200;
    letter-spacing: 0.2em;
  }
  

.edit-header h2 {
    margin: 0 0 10px;
    font-family: Georgia, serif;
    font-size: clamp(1.2rem, 4.5vw, 1.7rem);
    font-weight: 400;
    line-height: 1.2;
}

  
  .edit-header p {
    max-width: 300px;
    margin: 0 auto;
    color: #746b64;
    font-size: 0.9rem;
    line-height: 1.7;
  }
  
  /* Imagen y hotspots */
  
  .look-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 4px;
  }
  
  .look-image {
    display: block;
    width: 100%;
    height: auto;
  }
  
 

/* Círculos interactivos con icono de carrito */

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

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

    border: 1.5px solid #ffffff;
    border-radius: 50%;

    background: #302923;
    color: #ffffff;

    font-size: 1rem;
    line-height: 1;

    cursor: pointer;
    transform: translate(-50%, -50%);

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);

    transition:
        transform 0.2s ease,
        background 0.2s ease;

    z-index: 6;
}

/* Tamaño del icono del carrito */
.hotspot i {
    font-size: 12px;
    line-height: 1;
}

.hotspot:hover {
    background: #9a806b;
    transform: translate(-50%, -50%) scale(1.12);
}

.hotspot:focus-visible {
    outline: 2px solid #b49a83;
    outline-offset: 2px;
}

  
.edit-button {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;

    display: block;
    width: fit-content;
    max-width: 90%;
    box-sizing: border-box;

    padding: 12px 20px;

    background:#49372f;
    color: #fffaf5;

    font-family: inherit;
    font-size: 11px;
   
    font-weight: 600;
    letter-spacing: 1.8px;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;

    border: 1px solid #49372f;
    border-radius: 0;

    transition: background 0.3s ease;
}

.edit-button:hover {
    background: #9a806b;
}

  /* Adaptación para pantallas grandes */
  
  @media (min-width: 768px) {
  
    .it-girl-edit {
      padding: 80px 40px;
    }
  
    .edit-header {
      margin-bottom: 40px;
    }
  
    .edit-header h2 {
      font-size: 2.5rem;
    }
  
    .hotspot {
      width: 36px;
      height: 36px;
    }
  
  }

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

.product-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: max-content;
    max-width: 58%;
    box-sizing: border-box;
    padding: 5px 12px;

    background: rgba(243, 229, 229, 0.97);
    color: #2d2723;

    text-align: center;
    white-space: normal;

    border: 1px solid rgba(180, 154, 131, 0.55);
    box-shadow: 0 4px 14px rgba(45, 39, 35, 0.12);
   
    box-sizing: border-box;

    z-index: 10;
    display: none;

    /* Longitud de la línea hacia el hotspot */
    --line-height: 35px;
}

/* Mostrar cuando se selecciona un producto */
.product-info.active {
    display: block;
}

.product-info h3 {
    margin: 0 0 3px;
    font-family: Georgia, serif;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.1;
}
/* Texto dentro de la tarjeta */
.product-info p {
    margin: 0;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Línea vertical */
.product-info::after {
    content: "";
    position: absolute;

    top: 100%;
    left: 50%;

    width: 1px;
    height: var(--line-height);

    background: #f3e5e5;
    transform: translateX(-50%);
}

/* Punto al final de la línea */
.product-info::before {
    content: "";
    position: absolute;

    top: calc(100% + var(--line-height) - 4px);
    left: 50%;

    width: 8px;
    height: 8px;

    background: #b49a83;
    border: 1px solid #000000;
    border-radius: 50%;

    transform: translateX(-50%);
}   







  /* ==================================================
CARRUSEL PRINCIPAL — IT GIRL USA
Navegación táctil sin flechas ni indicadores
================================================== */

/* Contenedor general del carrusel */
.hero-carousel {
position: relative;
width: 100%;
overflow: hidden;
}

/* Fila horizontal que contiene las diapositivas */
.hero-carousel .carousel-viewport {
display: flex;
width: 100%;
align-items: flex-start;

/* Transición entre diapositivas */
transition: transform 0.45s ease-in-out;

/* Permite deslizar la página verticalmente */
touch-action: pan-y;

/* Optimización del desplazamiento */
will-change: transform;

}

/* Cada diapositiva ocupa todo el ancho disponible */
.hero-carousel .carousel-slide {
flex: 0 0 100%;
width: 100%;
min-width: 0;
box-sizing: border-box;

/* Evita desplazamientos laterales inesperados */
margin-left: 0;
margin-right: 0;

}

/* Respeta la preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
.hero-carousel .carousel-viewport {
transition: none;
}
}