.ifp-customizable-catalog {
    max-width: 1240px;
    margin: 0 auto;
    padding: 54px 24px 72px;
    box-sizing: border-box;
}

.ifp-customizable-catalog__header {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.ifp-customizable-catalog__eyebrow {
    display: block;
    margin-bottom: 10px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;

    color: #6b7280;
}

.ifp-customizable-catalog__header h1 {
    margin: 0 0 12px;

    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    font-weight: 700;

    color: #111827;
}

.ifp-customizable-catalog__header p {
    max-width: 620px;
    margin: 0 auto;

    color: #6b7280;

    font-size: 15px;
    line-height: 1.55;
}

.ifp-transfer-summary {
    margin: 20px auto 0;
    padding: 12px 16px;

    max-width: 620px;

    border: 1px solid #e5e7eb;
    border-radius: 9px;

    background: #f9fafb;
    color: #374151;

    font-size: 13px;
    line-height: 1.4;
}

.ifp-customizable-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}

.ifp-customizable-card {
    min-width: 0;

    overflow: hidden;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 5px 20px rgba(17, 24, 39, .055);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.ifp-customizable-card:not(.is-disabled):hover {
    transform: translateY(-3px);

    border-color: #d1d5db;

    box-shadow:
        0 10px 30px rgba(17, 24, 39, .10);
}

.ifp-customizable-card__image {
    position: relative;

    display: flex;

    width: 100%;
    aspect-ratio: 1 / 1;

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

    padding: 20px;

    box-sizing: border-box;

    background:
        linear-gradient(
            180deg,
            #fafafa 0%,
            #f4f5f7 100%
        );

    overflow: hidden;
}

.ifp-customizable-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.ifp-customizable-card__placeholder {
    color: #9ca3af;
    font-size: 13px;
}

.ifp-customizable-card__body {
    padding: 20px;
}

.ifp-customizable-card__type {
    min-height: 17px;

    margin-bottom: 7px;

    color: #6b7280;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .075em;
    text-transform: uppercase;
}

.ifp-customizable-card h2 {
    margin: 0 0 13px;

    color: #111827;

    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.ifp-customizable-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin-bottom: 15px;
}

.ifp-customizable-card__meta span {
    padding: 5px 8px;

    border: 1px solid #e5e7eb;
    border-radius: 999px;

    background: #f9fafb;

    color: #4b5563;

    font-size: 10px;
    font-weight: 600;
}

.ifp-customizable-card__status {
    display: none;

    margin-bottom: 11px;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.ifp-customizable-card__status.is-visible {
    display: block;
}

.ifp-customizable-card__status.is-ok {
    color: #166534;
}

.ifp-customizable-card__status.is-warning {
    color: #9a3412;
}

.ifp-customizable-card__status.is-current {
    color: #6b7280;
}

.ifp-customizable-card__button {
    display: flex;

    width: 100%;
    min-height: 46px;

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

    padding: 11px 16px;

    box-sizing: border-box;

    border: 1px solid #111827;
    border-radius: 7px;

    background: #111827;
    color: #ffffff !important;

    text-decoration: none !important;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .065em;
    text-transform: uppercase;

    transition:
        background-color .18s ease,
        border-color .18s ease,
        opacity .18s ease;
}

.ifp-customizable-card__button:hover {
    background: #1f2937;
    border-color: #1f2937;
}

/* IFP TRANSFER DISABLED PRIMARY ONLY V1
 *
 * Una tarjeta puede no admitir la acción principal
 * y aun así permitir consultar VER PRENDA.
 */
.ifp-customizable-card.is-disabled {
    opacity: 1;
}

/* Evitar saltarse PRENDA ACTUAL / NO COMPATIBLE
 * haciendo clic en la imagen o en la acción principal.
 */
.ifp-customizable-card.is-disabled
.ifp-customizable-card__image,

.ifp-customizable-card.is-disabled
[data-ifp-product-action] {
    pointer-events: none;
}

.ifp-customizable-card.is-disabled
.ifp-customizable-card__image {
    opacity: .54;
    cursor: default;
}

/* Solo la acción principal conserva aspecto deshabilitado. */
.ifp-customizable-card.is-disabled
[data-ifp-product-action] {
    background: #e5e7eb;
    border-color: #e5e7eb;

    color: #6b7280 !important;
}

/* VER PRENDA sigue siendo una acción informativa disponible. */
.ifp-customizable-card.is-disabled
.ifp-customizable-card__button--secondary {
    pointer-events: auto;
    opacity: 1;
    cursor: pointer;
}

.ifp-customizable-empty {
    padding: 42px;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    text-align: center;

    color: #6b7280;
    background: #ffffff;
}

@media (max-width: 980px) {
    .ifp-customizable-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .ifp-customizable-catalog {
        padding:
            34px 16px
            52px;
    }

    .ifp-customizable-grid {
        grid-template-columns:
            1fr;
    }
}

/* ==========================================================
   IFP catálogo compacto — desktop
   ========================================================== */

@media (min-width: 901px) {

    .ifp-customizable-catalog {
        max-width: 1440px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .ifp-customizable-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 18px;
    }

    .ifp-customizable-card__image {
        aspect-ratio: 4 / 3;
        padding: 12px;
    }

    .ifp-customizable-card__body {
        padding: 15px;
    }

    .ifp-customizable-card h2 {
        margin-bottom: 10px;

        font-size: 15px;
        line-height: 1.25;
    }

    .ifp-customizable-card__type {
        margin-bottom: 5px;
        font-size: 10px;
    }

    .ifp-customizable-card__meta {
        margin-bottom: 11px;
    }

    .ifp-customizable-card__button {
        min-height: 42px;
        padding: 9px 12px;

        font-size: 11px;
    }
}

/*
 * En modo transferencia la imagen es informativa.
 * La acción debe pasar siempre por "Aplicar mi diseño",
 * porque ese botón prepara target_product en la sesión.
 */
.ifp-customizable-catalog[data-mode="transfer"]
.ifp-customizable-card__image {
    pointer-events: none;
}

@media (max-width: 900px) and (min-width: 701px) {
    .ifp-customizable-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 16px;
    }

    .ifp-customizable-card__image {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 700px) and (min-width: 481px) {
    .ifp-customizable-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .ifp-customizable-grid {
        grid-template-columns: 1fr;
    }
}


/* ==================================================
   IFP CUSTOMIZABLE HYBRID V1
   Catálogo comercial + shell Gelato
   ================================================== */

body.page-id-39354
#ifpCatalogProductsSection
> .ifp-gelato__sectionHead {
    display: none;
}

body.page-id-39354
#ifpCatalogProductsSection {
    padding-top: 0;
    margin-top: 0;
}

body.page-id-39354
#ifpCatalogProducts {
    width: 100%;
}

body.page-id-39354
.ifp-customizable-catalog {
    max-width: none;
    padding-top: 12px;
}

body.page-id-39354
.ifp-customizable-grid {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}


/* ---------- navegación móvil ---------- */

.ifp-customizable-mobile-nav {
    display: none;
}


/* ---------- swatches ---------- */

.ifp-customizable-card__swatches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 10px 0 9px;
    min-height: 20px;
}

.ifp-customizable-card__swatch {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 50%;
    background:
        var(--ifp-swatch-color);
    border: 1px solid
        rgba(15, 23, 42, .18);
    box-shadow:
        0 0 0 2px #fff,
        0 0 0 3px rgba(15, 23, 42, .07);
}

.ifp-customizable-card__swatch-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 10px;
    font-weight: 700;
}


/* ---------- FRONT + BACK destacado ---------- */

.ifp-customizable-card__meta
span:last-child {
    background: #111827;
    border-color: #111827;
    color: #fff;
    font-weight: 800;
    letter-spacing: .035em;
}


/* ---------- precio ---------- */

.ifp-customizable-card__price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 11px;
    color: #101828;
}

.ifp-customizable-card__price span {
    font-size: 12px;
    color: #667085;
}

.ifp-customizable-card__price strong {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
}


/* ---------- acciones ---------- */

.ifp-customizable-card__button--secondary {
    margin-top: 8px;
    background: #fff;
    color: #111827;
    border: 1px solid #d0d5dd;
}

.ifp-customizable-card__button--secondary:hover,
.ifp-customizable-card__button--secondary:focus {
    background: #f8fafc;
    color: #111827;
    border-color: #98a2b3;
}


/* ---------- tablet ---------- */

@media (max-width: 1200px) {

    body.page-id-39354
    .ifp-customizable-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* ---------- móvil / tablet estrecha ---------- */

@media (max-width: 980px) {

    body.page-id-39354
    .ifp-gelato__sidebar {
        display: none;
    }

    body.page-id-39354
    .ifp-gelato__wrap {
        grid-template-columns: 1fr;
    }

    body.page-id-39354
    .ifp-gelato__main {
        width: 100%;
        min-width: 0;
    }

    .ifp-customizable-mobile-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        margin: 0 0 24px;
    }

    .ifp-customizable-mobile-nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        padding: 7px 12px;
        border: 1px solid #e4e7ec;
        border-radius: 999px;
        background: #fff;
        color: #101828;
        text-decoration: none;
        font-size: 13px;
        font-weight: 700;
    }
}


/* ---------- móvil ---------- */

@media (max-width: 560px) {

    body.page-id-39354
    .ifp-customizable-grid {
        grid-template-columns: 1fr;
    }

    body.page-id-39354
    .ifp-customizable-catalog {
        padding-left: 12px;
        padding-right: 12px;
    }

    .ifp-customizable-card__swatch {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }

    .ifp-customizable-card__button {
        min-height: 44px;
    }
}



/* ==================================================
   IFP CUSTOMIZABLE HYBRID V1.1
   Desktop 4 columnas + botón VER PRENDA
   ================================================== */


/* -----------------------------------------------
   DESKTOP GRANDE: 4 PRENDAS POR FILA
   ----------------------------------------------- */

@media (min-width: 1280px) {

    body.page-id-39354
    .ifp-customizable-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 14px;
    }

}


/* -----------------------------------------------
   VER PRENDA
   La regla base del botón estaba dejando
   el texto blanco sobre fondo blanco.
   ----------------------------------------------- */

body.page-id-39354
.ifp-customizable-card
.ifp-customizable-card__button--secondary {

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 100%;

    min-height: 38px;

    margin-top: 8px;

    padding: 8px 12px;

    background: #ffffff !important;

    color: #111827 !important;

    -webkit-text-fill-color:
        #111827 !important;

    border:
        1px solid #d0d5dd !important;

    border-radius: 6px;

    font-size: 11px !important;

    line-height: 1.2 !important;

    font-weight: 800 !important;

    letter-spacing: .045em;

    text-transform: uppercase;

    text-decoration: none !important;

    opacity: 1 !important;

    visibility: visible !important;
}


body.page-id-39354
.ifp-customizable-card
.ifp-customizable-card__button--secondary:hover,

body.page-id-39354
.ifp-customizable-card
.ifp-customizable-card__button--secondary:focus {

    background: #f8fafc !important;

    color: #111827 !important;

    -webkit-text-fill-color:
        #111827 !important;

    border-color:
        #98a2b3 !important;
}


/* Mantener más aire en móvil */

@media (max-width: 560px) {

    body.page-id-39354
    .ifp-customizable-card
    .ifp-customizable-card__button--secondary {

        min-height: 44px;
        font-size: 12px !important;
    }

}

/* IFP CATALOG SWATCH CONTRAST V1
 *
 * Mantiene el HEX real del producto.
 * Refuerza únicamente la separación visual del swatch
 * respecto al fondo blanco del catálogo.
 */
.ifp-customizable-card__swatch {
    border-color: rgba(15, 23, 42, .30);

    box-shadow:
        inset 0 0 0 1px rgba(15, 23, 42, .10),
        0 0 0 2px #fff,
        0 0 0 3px rgba(15, 23, 42, .10);
}

/* ================================================================
 * IFP CATALOG FILTERS V1
 * ================================================================ */

.ifp-customizable-filters {
    margin: 0 0 30px;
    padding: 20px;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 4px 18px rgba(17, 24, 39, .045);
}

.ifp-customizable-filters__intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;

    margin-bottom: 18px;
}

.ifp-customizable-filters__intro > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ifp-customizable-filters__intro strong {
    color: #111827;
    font-size: 16px;
    line-height: 1.3;
}

.ifp-customizable-filters__intro span {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

.ifp-customizable-filters__count {
    flex: 0 0 auto;

    padding: 5px 9px;

    border-radius: 999px;

    background: #f3f4f6;
    color: #374151 !important;

    font-size: 11px !important;
    font-weight: 700;
}

.ifp-customizable-filters__group + .ifp-customizable-filters__group {
    margin-top: 15px;
}

.ifp-customizable-filters__label {
    display: block;

    margin-bottom: 8px;

    color: #6b7280;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ifp-customizable-filters__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.ifp-customizable-filter {
    min-height: 34px;
    padding: 7px 12px;

    border: 1px solid #dfe3e8;
    border-radius: 999px;

    background: #ffffff;
    color: #374151;

    cursor: pointer;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    transition:
        background-color .16s ease,
        border-color .16s ease,
        color .16s ease,
        box-shadow .16s ease;
}

.ifp-customizable-filter:hover {
    border-color: #9ca3af;
}

.ifp-customizable-filter.is-active {
    border-color: #111827;
    background: #111827;
    color: #ffffff;

    box-shadow:
        0 3px 10px rgba(17, 24, 39, .14);
}

.ifp-customizable-card[hidden] {
    display: none !important;
}

.ifp-customizable-filter-empty {
    margin-top: 16px;
    padding: 13px 15px;

    border-radius: 8px;

    background: #f9fafb;
    color: #6b7280;

    font-size: 13px;
    text-align: center;
}

@media (max-width: 720px) {

    .ifp-customizable-filters {
        padding: 16px;
    }

    .ifp-customizable-filters__intro {
        align-items: center;
    }

    .ifp-customizable-filters__chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .ifp-customizable-filter {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

