/* =========================================================
   MANZANOS MODA - CSS DEFINITIVO v5.0
   ========================================================= */

/* ---------------------------------------------------------
   1. TALLAS EN LISTADO
   --------------------------------------------------------- */
.iqitsizeguide-avaiable-sizes span {
    color: #000000 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    margin-right: 8px !important;
}
.iqitsizeguide-avaiable-sizes span.unavailable-size {
    display: none !important;
}
.iqitsizeguide-avaiable-sizes span:hover {
    color: #000000 !important;
    cursor: default;
}
.iqitsizeguide-avaiable-sizes a,
.iqitsizeguide-avaiable-sizes a span {
    color: #000000 !important;
    text-decoration: none !important;
}

/* ---------------------------------------------------------
   2. TÍTULOS EN LISTADO (1 SOLA LÍNEA)
   --------------------------------------------------------- */
#js-product-list .product-title,
#js-product-list .product-title a,
.product-miniature .product-title,
.product-miniature .product-title a {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    max-width: 100% !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    margin-bottom: 5px !important;
}
.product-description {
    overflow: hidden !important;
}

/* ---------------------------------------------------------
   3. PRECIOS EN LISTADO
   --------------------------------------------------------- */
.product-miniature .regular-price,
.product-miniature .old-price,
.product-miniature .price-old,
#js-product-list .regular-price {
    color: #999999 !important;
    text-decoration: line-through !important;
    font-weight: 400 !important;
}
.product-miniature .price {
    color: #000000 !important;
}

/* ---------------------------------------------------------
   4. FICHA DE PRODUCTO (PDP) - ESCRITORIO Y BASE
   --------------------------------------------------------- */
.product-detail-name {
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-weight: 700 !important;
    font-size: 22px !important;
    color: #000000 !important;
}
.current-price span {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #000000 !important;
}
.product-variants-item .control-label {
    color: #000000 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}
#add-to-cart-or-refresh .add-to-cart {
    background-color: #000000 !important;
    border: none !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    padding: 15px !important;
    transition: all 0.3s ease !important;
}
#add-to-cart-or-refresh .add-to-cart:hover {
    background-color: #333333 !important;
    transform: translateY(-2px) !important;
}

/* ---------------------------------------------------------
   5. MÓVIL - TODO EN UN SOLO BLOQUE (max-width: 767px)
   --------------------------------------------------------- */
@media (max-width: 767px) {

    /* BASE: evitar scroll horizontal */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    /* Contenedores principales */
    #wrapper, .container, .container-fluid,
    #content-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* Filas Bootstrap sin márgenes negativos */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Imágenes adaptables */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Header móvil */
    #mobile-header {
        padding: 10px 0 !important;
    }

    /* -------------------------------------------------------
       HOME: SECCIONES ELEMENTOR
       ------------------------------------------------------- */
    .elementor-section,
    .elementor-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Iconos de servicios (2 columnas) */
    .elementor-column[data-col="25"],
    .elementor-column[data-col="50"] {
        width: 50% !important;
        float: left !important;
        padding: 10px !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    /* Botones Elementor */
    .elementor-button {
        width: 100% !important;
        margin-bottom: 10px !important;
        display: block !important;
    }

    /* -------------------------------------------------------
       HOME: GRID DE PRODUCTOS (2 COLUMNAS)
       ------------------------------------------------------- */
    .elementor-widget-iqit-products-grid .products,
    .elementor-widget-iqit-products-grid .row,
    .elementor-widget-iqit-products-grid .products-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        padding: 0 5px !important;
        margin: 0 !important;
    }

    .elementor-widget-iqit-products-grid article.product-miniature,
    .elementor-widget-iqit-products-grid .product-miniature,
    .elementor-widget-iqit-products-grid div[class*="col-"] {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 5px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .elementor-widget-iqit-products-grid .product-thumbnail img,
    .elementor-widget-iqit-products-grid .product-miniature img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 3 / 4 !important;
        object-fit: cover !important;
        display: block !important;
    }

    .elementor-widget-iqit-products-grid .product-title,
    .elementor-widget-iqit-products-grid .product-title a {
        font-size: 10px !important;
        text-transform: uppercase !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
        margin-top: 5px !important;
    }

    .elementor-widget-iqit-products-grid .price {
        font-size: 13px !important;
        font-weight: 700 !important;
    }

    /* -------------------------------------------------------
       FICHA DE PRODUCTO (PDP) MÓVIL
       ------------------------------------------------------- */

    /* Título del producto */
    .product-detail-name {
        font-size: 20px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
        text-align: left !important;
    }

    /* Precio */
    .current-price span {
        font-size: 24px !important;
        display: block !important;
    }

    /* Tallas: grid centrado y botones grandes */
    .product-variants-item ul {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 8px !important;
    }

    .product-variants-item ul li {
        margin: 0 !important;
    }

    .product-variants-item .input-container label {
        min-width: 55px !important;
        height: 48px !important;
        line-height: 48px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        text-align: center !important;
        border: 1.5px solid #000 !important;
        display: block !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    /* Botón Añadir al Carrito */
    #add-to-cart-or-refresh .add-to-cart {
        width: 100% !important;
        height: 56px !important;
        font-size: 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Descripción */
    #product-description-short-container,
    .product-description {
        font-size: 14px !important;
        line-height: 1.6 !important;
        text-align: left !important;
    }

    /* Bloque de confianza (Envío, Devolución...) */
    .iqit-product-additional-info {
        width: 100% !important;
        border-top: 1px solid #eeeeee !important;
        padding-top: 15px !important;
        margin-top: 15px !important;
    }
}
/* =========================================================
   PDP MÓVIL - OPTIMIZACIÓN REAL FINAL
   Solo ficha de producto en móvil
   ========================================================= */
@media (max-width: 767px) {

  /* 1. Más aire lateral útil y mejor lectura general */
  body.page-product #wrapper,
  body.page-product .container,
  body.page-product .container-fluid,
  body.page-product #content-wrapper,
  body.page-product .product-page-container,
  body.page-product .product-information,
  body.page-product .product-actions,
  body.page-product .product-prices,
  body.page-product .product-variants,
  body.page-product .product-add-to-cart {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.page-product .product-information,
  body.page-product .product-actions,
  body.page-product .product-prices,
  body.page-product .product-variants {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* 2. Título más equilibrado */
  body.page-product .product-detail-name {
    font-size: 18px !important;
    line-height: 1.22 !important;
    letter-spacing: 1.2px !important;
    margin: 14px 0 8px !important;
    text-align: left !important;
  }

  /* 3. Precio más visible */
  body.page-product .current-price span,
  body.page-product .product-prices .price {
    font-size: 18px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
  }

  body.page-product .tax-shipping-delivery-label,
  body.page-product .product-prices .tax-shipping-delivery-label,
  body.page-product .current-price .tax-shipping-delivery-label {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  /* 4. Etiquetas TALLA / COLOR con más presencia */
  body.page-product .product-variants-item .control-label {
    font-size: 12px !important;
    letter-spacing: 1px !important;
    margin-bottom: 8px !important;
    display: block !important;
    text-align: left !important;
  }

  /* 5. Tallas: grandes, limpias y más premium */
  body.page-product .product-variants-item ul {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 0 14px 0 !important;
    justify-content: flex-start !important;
  }

  body.page-product .product-variants-item ul li {
    margin: 0 !important;
  }

  body.page-product .product-variants-item .input-container label,
  body.page-product .product-variants-item .radio-label,
  body.page-product .product-variants-item .js-variant {
    min-width: 52px !important;
    height: 42px !important;
    line-height: 42px !important;
    padding: 0 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    border: 1px solid #d9d9d9 !important;
    box-sizing: border-box !important;
    background: #fff !important;
  }

  /* estado activo talla */
  body.page-product .product-variants-item .input-container input:checked + span,
  body.page-product .product-variants-item .input-container input:checked + label,
  body.page-product .product-variants-item .selected,
  body.page-product .product-variants-item .active {
    border-color: #000000 !important;
    color: #000000 !important;
  }

  /* 6. Color más visible */
  body.page-product .input-color,
  body.page-product .color,
  body.page-product .product-variants-item .color {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    border: 1px solid #cfcfcf !important;
  }

  /* 7. Bloque de beneficios / confianza más legible */
  body.page-product .iqit-product-additional-info,
  body.page-product .product-additional-info {
    padding: 10px 12px !important;
    margin: 14px 12px !important;
    border: 1px solid #efefef !important;
    box-sizing: border-box !important;
  }

  body.page-product .iqit-product-additional-info *,
  body.page-product .product-additional-info * {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  /* 8. Acordeones descripción / composición / comentarios */
  body.page-product .tabs,
  body.page-product .product-tabs-content,
  body.page-product .tab-content,
  body.page-product .collapse,
  body.page-product .card,
  body.page-product .card-block {
    font-size: 14px !important;
    line-height: 1.65 !important;
  }

  body.page-product .nav-tabs .nav-link,
  body.page-product .tabs .nav-link,
  body.page-product .product-tab-title,
  body.page-product .card-header {
    font-size: 13px !important;
    font-weight: 600 !important;
  }

  body.page-product .product-description,
  body.page-product .product-description p,
  body.page-product .product-description li,
  body.page-product #description,
  body.page-product #description p,
  body.page-product #description li {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }

  /* 9. Botón fijo abajo: correcto, pero con espacio para que no tape contenido */
  body.page-product {
    padding-bottom: 92px !important;
  }

  body.page-product #add-to-cart-or-refresh .add-to-cart {
    height: 52px !important;
    font-size: 15px !important;
    letter-spacing: 1px !important;
  }

  /* 10. Iconos wishlist/compare alineados */
  body.page-product .product-add-to-cart .btn,
  body.page-product .product-add-to-cart button,
  body.page-product .wishlist-button-add,
  body.page-product .iqitcompare-product {
    min-height: 52px !important;
  }

  /* 11. Migas y textos secundarios más discretos pero legibles */
  body.page-product .breadcrumb,
  body.page-product .breadcrumb li,
  body.page-product .breadcrumb a {
    font-size: 11px !important;
    line-height: 1.4 !important;
  }
}
/* =========================================================
   DESBLOQUEO DE DESCRIPCIÓN Y ATRIBUTOS (PDP MÓVIL)
   ========================================================= */

@media (max-width: 767px) {

    /* 1. Liberar el contenedor de texto (RTE) */
    .rte-content, 
    .product-description, 
    #product-description-short-container,
    .product-tabs-content {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 5px !important;  /* Eliminamos el margen excesivo */
        padding-right: 5px !important;
        margin: 0 !important;
        text-align: left !important; /* Alineación tipo marca de lujo */
    }

    /* 2. Optimizar listas (puntos de la descripción) */
    .rte-content ul, 
    .product-description ul {
        padding-left: 20px !important; /* Espacio justo para los puntos */
        margin: 15px 0 !important;
        list-style-type: disc !important;
    }

    .rte-content li, 
    .product-description li {
        font-size: 15px !important; /* Texto más legible */
        line-height: 1.6 !important;
        margin-bottom: 10px !important;
        color: #333 !important;
    }

    /* 3. Composición y Cuidados (Hacerlos destacar) */
    .rte-content p, 
    .product-description p {
        font-size: 15px !important;
        line-height: 1.6 !important;
        margin-bottom: 15px !important;
    }

    /* 4. Arreglar la tabla de Composición (si existe) */
    .rte-content table {
        width: 100% !important;
        height: auto !important;
        margin: 10px 0 !important;
    }

    /* 5. Tallas y Atributos: Forzar que no se encojan */
    .product-variants {
        width: 100% !important;
        padding: 0 !important;
        margin: 20px 0 !important;
    }

    .product-variants-item {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
}
/* =========================================================
   REFINAMIENTO PREMIUM FINAL (PDP MÓVIL)
   ========================================================= */

@media (max-width: 767px) {

    /* 1. Títulos de descripción y acordeones más limpios */
    .product-tabs-content b, 
    .product-tabs-content strong,
    .rte-content strong {
        display: block !important;
        margin-top: 20px !important;
        margin-bottom: 10px !important;
        font-size: 16px !important;
        letter-spacing: 0.5px !important;
        color: #000 !important;
    }

    /* 2. Separación elegante entre párrafos */
    .rte-content p {
        margin-bottom: 15px !important;
        color: #444 !important;
        line-height: 1.7 !important;
    }

    /* 3. Ajuste fino de las tallas (para que no peguen al borde) */
    .product-variants-item ul {
        gap: 12px !important;
        padding: 0 5px !important;
    }

    .product-variants-item .input-container label {
        border-radius: 2px !important; /* Un toque sutil de suavizado */
        box-shadow: none !important;
        transition: all 0.2s ease !important;
    }

    /* 4. El botón de "Añadir al carrito" con más aire arriba */
    .product-add-to-cart {
        margin-top: 30px !important;
        border-top: 1px solid #f5f5f5 !important;
        padding-top: 20px !important;
    }

    /* 5. Limpiar el bloque de "Envío gratis / Devolución" */
    .iqit-product-additional-info {
        background-color: #f9f9f9 !important; /* Un fondo muy suave para dar orden */
        border: none !important;
        border-radius: 4px !important;
        padding: 15px !important;
    }

    .iqit-product-additional-info li {
        margin-bottom: 8px !important;
        list-style: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 11px !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
    }
}