/* =========================================================
   PRODUSE IFL – CATALOG DIN FEED
   Sidebar categorii + 3 produse pe rând
   ========================================================= */

.ifl-products-page {
    width: 100%;
    color: var(--ifl-text);
    background: #f5f7f9;
    overflow: clip;
}

.ifl-products-page *,
.ifl-products-page *::before,
.ifl-products-page *::after {
    box-sizing: border-box;
}

.ifl-products-container {
    width: min(calc(100% - 2 * var(--site-gutter)), var(--site-max-width));
    margin-inline: auto;
}

/* HERO */

.ifl-products-hero {
    position: relative;
    padding: clamp(68px, 7vw, 125px) 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 90% 12%, rgba(102, 189, 90, 0.2), transparent 27%),
        linear-gradient(125deg, var(--ifl-navy-dark), var(--ifl-navy) 62%, #29466c);
}

.ifl-products-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -220px;
    width: 520px;
    aspect-ratio: 1;
    border: 70px solid rgba(255, 255, 255, 0.035);
    border-radius: 50%;
}

.ifl-products-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
    align-items: end;
    gap: clamp(40px, 8vw, 130px);
}

.ifl-products-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ifl-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.ifl-products-kicker::before {
    content: "";
    width: 32px;
    height: 2px;
    background: currentColor;
}

.ifl-products-hero h1 {
    max-width: 930px;
    margin: 18px 0 0;
    color: #ffffff;
    font-size: clamp(44px, 5vw, 84px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -3px;
}

.ifl-products-hero h1 span {
    color: var(--ifl-green);
}

.ifl-products-hero__content > p {
    max-width: 760px;
    margin: 25px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(15px, 1vw, 18px);
    line-height: 1.8;
}

.ifl-products-hero__summary {
    padding: 30px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 20px;
    backdrop-filter: blur(12px);
}

.ifl-products-hero__summary span,
.ifl-products-hero__summary strong,
.ifl-products-hero__summary p {
    display: block;
}

.ifl-products-hero__summary span {
    color: var(--ifl-green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ifl-products-hero__summary strong {
    margin-top: 8px;
    color: #ffffff;
    font-size: clamp(46px, 5vw, 72px);
    line-height: 1;
}

.ifl-products-hero__summary p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}

/* LAYOUT */

.ifl-products-content {
    padding: clamp(45px, 5vw, 82px) 0 clamp(80px, 8vw, 140px);
}

.ifl-products-layout {
    display: grid;
    grid-template-columns: minmax(255px, 310px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(24px, 3vw, 48px);
}

.ifl-products-sidebar {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 18px;
    min-width: 0;
}

/* SEARCH SIDEBAR */

.ifl-products-search-panel,
.ifl-products-categories {
    background: #ffffff;
    border: 1px solid rgba(34, 51, 81, 0.09);
    border-radius: 18px;
    box-shadow: 0 14px 35px rgba(34, 51, 81, 0.06);
}

.ifl-products-search-panel {
    padding: 20px;
}

.ifl-products-search-panel > label {
    display: block;
    margin-bottom: 10px;
    color: var(--ifl-navy);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.65px;
    text-transform: uppercase;
}

.ifl-products-search-control {
    display: grid;
    gap: 9px;
}

.ifl-products-search-control input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 14px;
    color: var(--ifl-text);
    background: #f7f9fb;
    border: 1px solid rgba(34, 51, 81, 0.13);
    border-radius: 10px;
    outline: none;
    transition: 0.2s ease;
}

.ifl-products-search-control input:focus {
    background: #ffffff;
    border-color: var(--ifl-green);
    box-shadow: 0 0 0 4px rgba(102, 189, 90, 0.12);
}

.ifl-products-search-control button {
    min-height: 46px;
    padding: 0 16px;
    color: #ffffff;
    background: var(--ifl-navy);
    border: 1px solid var(--ifl-navy);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s ease;
}

.ifl-products-search-control button:hover {
    background: var(--ifl-green-dark);
    border-color: var(--ifl-green-dark);
}

/* CATEGORY TREE */

.ifl-products-categories {
    max-height: calc(100vh - 275px);
    padding: 22px 18px 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(34, 51, 81, 0.25) transparent;
}

.ifl-products-categories::-webkit-scrollbar {
    width: 6px;
}

.ifl-products-categories::-webkit-scrollbar-thumb {
    background: rgba(34, 51, 81, 0.22);
    border-radius: 999px;
}

.ifl-products-sidebar__heading {
    display: flex;
    margin-bottom: 15px;
    padding: 0 3px 16px;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(34, 51, 81, 0.09);
}

.ifl-products-sidebar__heading span {
    display: block;
    margin-bottom: 3px;
    color: var(--ifl-green-dark);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ifl-products-sidebar__heading h2 {
    margin: 0;
    color: var(--ifl-navy);
    font-size: 22px;
    line-height: 1.1;
}

.ifl-products-sidebar__heading > a {
    flex: 0 0 auto;
    color: rgba(38, 50, 71, 0.55);
    font-size: 9px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-transform: uppercase;
}

.ifl-category-root,
.ifl-category-link,
.ifl-category-group > summary {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--ifl-navy);
}

.ifl-category-root {
    min-height: 45px;
    margin-bottom: 8px;
    padding: 0 12px;
    background: #f4f7f9;
    border: 1px solid rgba(34, 51, 81, 0.07);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
}

.ifl-category-root em,
.ifl-category-link em,
.ifl-category-group > summary em {
    flex: 0 0 auto;
    min-width: 25px;
    padding: 4px 6px;
    color: rgba(34, 51, 81, 0.58);
    background: rgba(34, 51, 81, 0.065);
    border-radius: 999px;
    font-size: 8px;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.ifl-category-root:hover,
.ifl-category-root.is-active,
.ifl-category-link:hover,
.ifl-category-link.is-active,
.ifl-category-all:hover,
.ifl-category-all.is-active {
    color: #ffffff;
    background: var(--ifl-navy);
}

.ifl-category-root:hover em,
.ifl-category-root.is-active em,
.ifl-category-link:hover em,
.ifl-category-link.is-active em {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.ifl-category-tree {
    display: grid;
    gap: 3px;
}

.ifl-category-group {
    min-width: 0;
    border-bottom: 1px solid rgba(34, 51, 81, 0.065);
}

.ifl-category-group:last-child {
    border-bottom: 0;
}

.ifl-category-group > summary {
    position: relative;
    min-height: 44px;
    padding: 8px 31px 8px 10px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.35;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.ifl-category-group > summary::-webkit-details-marker {
    display: none;
}

.ifl-category-group > summary::after {
    content: "+";
    position: absolute;
    right: 7px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    color: var(--ifl-green-dark);
    background: rgba(102, 189, 90, 0.12);
    border-radius: 50%;
    font-size: 13px;
    line-height: 1;
}

.ifl-category-group[open] > summary::after {
    content: "−";
}

.ifl-category-group > summary:hover {
    color: var(--ifl-green-dark);
    background: rgba(102, 189, 90, 0.055);
    border-radius: 8px;
}

.ifl-category-group > summary > span,
.ifl-category-link > span,
.ifl-category-root > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ifl-category-children {
    display: grid;
    gap: 3px;
    margin: 0 0 8px 10px;
    padding: 5px 0 4px 11px;
    border-left: 2px solid rgba(102, 189, 90, 0.22);
}

.ifl-category-all {
    display: block;
    padding: 8px 9px;
    color: var(--ifl-green-dark);
    background: rgba(102, 189, 90, 0.075);
    border-radius: 8px;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.35;
}

.ifl-category-link {
    min-height: 36px;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
}

.ifl-category-group--level-1 > summary,
.ifl-category-group--level-2 > summary,
.ifl-category-group--level-3 > summary {
    min-height: 38px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 9px;
    text-transform: none;
}

/* CATALOG HEADER */

.ifl-products-catalog {
    min-width: 0;
}

.ifl-products-toolbar {
    display: flex;
    min-height: 76px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(34, 51, 81, 0.1);
}

.ifl-products-toolbar__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--ifl-green-dark);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ifl-products-toolbar h2 {
    max-width: 760px;
    margin: 0;
    color: var(--ifl-navy);
    font-size: clamp(25px, 2.1vw, 36px);
    line-height: 1.15;
}

.ifl-products-toolbar p {
    flex: 0 0 auto;
    margin: 0;
    color: rgba(38, 50, 71, 0.58);
    font-size: 11px;
}

.ifl-products-toolbar p strong {
    color: var(--ifl-navy);
    font-size: 15px;
}

.ifl-products-active-search {
    margin: -5px 0 20px;
    padding: 11px 14px;
    color: rgba(38, 50, 71, 0.68);
    background: #ffffff;
    border: 1px solid rgba(34, 51, 81, 0.08);
    border-radius: 10px;
    font-size: 11px;
}

.ifl-products-active-search strong {
    color: var(--ifl-navy);
}

/* PRODUCT GRID – 3 PER ROW */

.ifl-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 1.5vw, 24px);
}

.ifl-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(34, 51, 81, 0.08);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(34, 51, 81, 0.055);
    transition: 0.25s ease;
}

.ifl-product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 189, 90, 0.45);
    box-shadow: 0 22px 42px rgba(34, 51, 81, 0.11);
}

.ifl-product-card__media {
    position: relative;
    display: grid;
    aspect-ratio: 1.18 / 1;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(145deg, #f7f8fa, #eef1f4);
}

.ifl-product-card__media img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.35s ease;
}

.ifl-product-card:hover .ifl-product-card__media img {
    transform: scale(1.045);
}

.ifl-product-card__placeholder {
    position: absolute;
    color: rgba(34, 51, 81, 0.12);
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -4px;
}

.ifl-product-card__discount {
    position: absolute;
    z-index: 4;
    top: 14px;
    left: 14px;
    padding: 7px 10px;
    color: #ffffff;
    background: var(--ifl-green-dark);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.ifl-product-card__body {
    display: flex;
    height: 100%;
    padding: 20px;
    flex-direction: column;
}

.ifl-product-card__topline {
    display: flex;
    min-height: 22px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ifl-product-card__topline > span {
    overflow: hidden;
    color: var(--ifl-green-dark);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.ifl-product-card__topline em {
    flex: 0 0 auto;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
}

.ifl-product-card__topline .is-in-stock {
    color: var(--ifl-green-dark);
}

.ifl-product-card__topline .is-out-of-stock {
    color: #a24343;
}

.ifl-product-card h2 {
    margin: 12px 0 0;
    color: var(--ifl-navy);
    font-size: clamp(16px, 1.05vw, 19px);
    line-height: 1.38;
}

.ifl-product-card h2 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ifl-product-card h2 a:hover {
    color: var(--ifl-green-dark);
}

.ifl-product-card__sku {
    margin: 9px 0 0;
    color: rgba(38, 50, 71, 0.48);
    font-size: 9px;
}

.ifl-product-card__footer {
    display: flex;
    margin-top: auto;
    padding-top: 22px;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
}

.ifl-product-card__price strong,
.ifl-product-card__price del {
    display: block;
}

.ifl-product-card__price strong {
    color: var(--ifl-navy);
    font-size: 18px;
    line-height: 1.2;
}

.ifl-product-card__price del {
    margin-top: 3px;
    color: rgba(38, 50, 71, 0.42);
    font-size: 10px;
}

.ifl-product-card__button {
    display: inline-flex;
    min-height: 40px;
    padding: 0 13px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--ifl-navy);
    border-radius: 9px;
    font-size: 9px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.ifl-product-card__button:hover {
    background: var(--ifl-green-dark);
}

/* PAGINATION & STATES */

.ifl-products-pagination {
    display: flex;
    margin-top: 45px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.ifl-products-pagination a {
    display: grid;
    min-width: 42px;
    min-height: 42px;
    padding: 0 13px;
    place-items: center;
    color: var(--ifl-navy);
    background: #ffffff;
    border: 1px solid rgba(34, 51, 81, 0.1);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
}

.ifl-products-pagination a:hover,
.ifl-products-pagination a.is-active {
    color: #ffffff;
    background: var(--ifl-navy);
    border-color: var(--ifl-navy);
}

.ifl-products-state {
    max-width: 850px;
    margin-inline: auto;
    padding: clamp(50px, 7vw, 95px);
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(34, 51, 81, 0.08);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(34, 51, 81, 0.07);
}

.ifl-products-state--compact {
    margin-top: 20px;
    padding: 55px 25px;
}

.ifl-products-state__icon {
    display: grid;
    width: 86px;
    aspect-ratio: 1;
    margin: 0 auto 22px;
    place-items: center;
    color: #ffffff;
    background: var(--ifl-navy);
    clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%);
    font-size: 20px;
    font-weight: 800;
}

.ifl-products-state > span {
    color: var(--ifl-green-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ifl-products-state h2 {
    margin: 10px 0 0;
    color: var(--ifl-navy);
    font-size: clamp(27px, 3vw, 46px);
    line-height: 1.15;
}

.ifl-products-state p {
    max-width: 650px;
    margin: 18px auto 0;
    color: rgba(38, 50, 71, 0.68);
    line-height: 1.8;
}

.ifl-products-state a {
    display: inline-flex;
    min-height: 50px;
    margin-top: 24px;
    padding: 0 19px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--ifl-green-dark);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

/* RESPONSIVE */

@media (max-width: 1180px) {
    .ifl-products-layout {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 26px;
    }

    .ifl-products-grid {
        gap: 16px;
    }
}

@media (max-width: 1080px) {
    .ifl-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .ifl-products-hero__grid {
        grid-template-columns: 1fr;
    }

    .ifl-products-hero__summary {
        max-width: 360px;
    }

    .ifl-products-layout {
        grid-template-columns: 1fr;
    }

    .ifl-products-sidebar {
        position: static;
        grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    }

    .ifl-products-categories {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 650px) {
    .ifl-products-container {
        width: calc(100% - 30px);
    }

    .ifl-products-hero h1 {
        letter-spacing: -1.8px;
    }

    .ifl-products-sidebar {
        grid-template-columns: 1fr;
    }

    .ifl-products-toolbar {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .ifl-products-grid {
        grid-template-columns: 1fr;
    }

    .ifl-product-card__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .ifl-product-card__button {
        width: 100%;
    }
}

/* =========================================================
   DROPDOWN CATEGORII DESCHIS LATERAL – DESKTOP
   ========================================================= */

@media (min-width: 901px) {
    .ifl-products-sidebar {
        position: sticky;
        z-index: 60;
    }

    /* Flyout-urile nu trebuie tăiate de containerul cu categorii. */
    .ifl-products-categories {
        max-height: none;
        overflow: visible;
    }

    .ifl-category-tree,
    .ifl-category-group {
        position: relative;
    }

    /* Săgeata indică faptul că subcategoriile se deschid în dreapta. */
    .ifl-category-group > summary::after,
    .ifl-category-group[open] > summary::after {
        content: "›";
        font-size: 18px;
        font-weight: 700;
    }

    .ifl-category-group[open] > summary {
        color: #ffffff;
        background: var(--ifl-navy);
        border-radius: 8px;
    }

    .ifl-category-group[open] > summary em {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.16);
    }

    .ifl-category-group[open] > summary::after {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.16);
    }

    /* Panoul cu subcategorii apare în exteriorul sidebarului. */
    .ifl-category-group > .ifl-category-children {
        position: absolute;
        z-index: 100;
        top: -8px;
        left: calc(100% + 12px);
        display: grid;
        width: clamp(270px, 22vw, 340px);
        max-height: min(70vh, 620px);
        margin: 0;
        padding: 14px;
        overflow-x: hidden;
        overflow-y: auto;
        background: #ffffff;
        border: 1px solid rgba(34, 51, 81, 0.12);
        border-left: 4px solid var(--ifl-green);
        border-radius: 14px;
        box-shadow: 0 22px 55px rgba(34, 51, 81, 0.18);
        scrollbar-width: thin;
        scrollbar-color: rgba(34, 51, 81, 0.25) transparent;
    }

    .ifl-category-group > .ifl-category-children::-webkit-scrollbar {
        width: 6px;
    }

    .ifl-category-group > .ifl-category-children::-webkit-scrollbar-thumb {
        background: rgba(34, 51, 81, 0.22);
        border-radius: 999px;
    }

    .ifl-category-group > .ifl-category-children::before {
        content: "";
        position: absolute;
        top: 20px;
        left: -10px;
        width: 18px;
        height: 18px;
        background: #ffffff;
        border-bottom: 1px solid rgba(34, 51, 81, 0.12);
        border-left: 1px solid rgba(34, 51, 81, 0.12);
        transform: rotate(45deg);
    }

    /* Nivelurile următoare se deschid tot spre dreapta. */
    .ifl-category-children .ifl-category-group > .ifl-category-children {
        top: -10px;
        left: calc(100% + 14px);
    }

    .ifl-category-group--level-1 > summary,
    .ifl-category-group--level-2 > summary,
    .ifl-category-group--level-3 > summary {
        padding-right: 31px;
    }
}

/* =========================================================
   AJUSTARI CATALOG V4
   4 produse/rand, imagini albe, categorii scurte si mega-menu
   ========================================================= */

/* Patru carduri pe rand pe ecranele desktop. */
.ifl-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 1.25vw, 20px);
}

.ifl-product-card {
    background: #ffffff;
    border-radius: 15px;
}

/* Fundal complet alb si produsul incadrat integral in fotografie. */
.ifl-product-card__media {
    aspect-ratio: 1.15 / 1;
    background: #ffffff;
}

.ifl-product-card__media img {
    width: 100%;
    height: 100%;
    padding: 12px;
    object-fit: contain !important;
    object-position: center !important;
    background: #ffffff;
}

.ifl-product-card__body {
    height: auto;
    padding: 16px;
}

/* Afisam doar ultimele doua niveluri, pe maximum doua randuri. */
.ifl-product-card__topline {
    min-height: 30px;
    align-items: flex-start;
}

.ifl-product-card__topline > span {
    display: -webkit-box;
    overflow: hidden;
    font-size: 8px;
    line-height: 1.45;
    text-overflow: clip;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ifl-product-card h2 {
    margin-top: 9px;
    font-size: clamp(14px, 0.95vw, 17px);
    line-height: 1.35;
}

.ifl-product-card__sku {
    margin-top: 10px;
    color: var(--ifl-navy);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1px;
}

/* Butonul de acces către pagina individuală a produsului rămâne vizibil. */
.ifl-product-card__button {
    display: inline-flex !important;
}

.ifl-product-card__body {
    flex: 1 1 auto;
    height: 100%;
}

.ifl-product-card__footer {
    margin-top: auto;
    padding-top: 16px;
}

@media (min-width: 901px) {
    /* Primul nivel devine un mega-menu mare, pe mai multe coloane. */
    .ifl-category-group--level-0 > .ifl-category-children {
        top: -12px;
        left: calc(100% + 14px);
        width: clamp(620px, 54vw, 860px);
        max-height: min(78vh, 720px);
        padding: 18px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px 14px;
        align-items: start;
        overflow-x: hidden;
        overflow-y: auto;
        border-left-width: 5px;
        border-radius: 16px;
    }

    .ifl-category-group--level-0 > .ifl-category-children > .ifl-category-all {
        grid-column: 1 / -1;
        min-height: 38px;
        padding: 11px 12px;
    }

    .ifl-category-group--level-0 > .ifl-category-children > .ifl-category-link,
    .ifl-category-group--level-0 > .ifl-category-children > .ifl-category-group {
        min-width: 0;
        margin: 0;
        border: 1px solid rgba(34, 51, 81, 0.08);
        border-radius: 10px;
        background: #ffffff;
    }

    .ifl-category-group--level-0 > .ifl-category-children > .ifl-category-link {
        min-height: 42px;
        padding: 9px 10px;
    }

    .ifl-category-group--level-0 > .ifl-category-children > .ifl-category-group > summary {
        min-height: 42px;
        padding: 8px 34px 8px 10px;
        border-radius: 9px;
        text-transform: none;
    }

    /* Nivelurile interioare se deschid in acelasi card, nu intr-un al treilea flyout. */
    .ifl-category-group--level-1 > .ifl-category-children,
    .ifl-category-group--level-2 > .ifl-category-children,
    .ifl-category-group--level-3 > .ifl-category-children {
        position: static;
        width: auto;
        max-height: 255px;
        margin: 0 7px 8px;
        padding: 6px;
        grid-template-columns: 1fr;
        gap: 3px;
        overflow-x: hidden;
        overflow-y: auto;
        background: #f8fafb;
        border: 0;
        border-left: 2px solid rgba(102, 189, 90, 0.35);
        border-radius: 8px;
        box-shadow: none;
    }

    .ifl-category-group--level-1 > .ifl-category-children::before,
    .ifl-category-group--level-2 > .ifl-category-children::before,
    .ifl-category-group--level-3 > .ifl-category-children::before {
        display: none;
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    .ifl-category-group--level-0 > .ifl-category-children {
        width: min(640px, calc(100vw - 320px));
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .ifl-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .ifl-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .ifl-products-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   BUTON DETALII ÎN CARDUL PRODUSULUI
   ========================================================= */

.ifl-product-card__footer--button-only {
    justify-content: stretch;
}

.ifl-product-card__footer--button-only .ifl-product-card__button {
    width: 100%;
}

.ifl-product-card__button {
    display: inline-flex !important;
    gap: 8px;
    min-height: 42px;
    padding-inline: 16px;
    white-space: nowrap;
}

.ifl-product-card__button::after {
    content: "→";
    font-size: 14px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.ifl-product-card__button:hover::after {
    transform: translateX(3px);
}

/* =========================================================
   PAGINĂ INDIVIDUALĂ PRODUS
   ========================================================= */

.ifl-product-detail-page {
    min-height: 70vh;
    padding: clamp(34px, 4vw, 64px) 0 clamp(80px, 8vw, 135px);
    color: var(--ifl-text);
    background: #f5f7f9;
}

.ifl-product-detail-page *,
.ifl-product-detail-page *::before,
.ifl-product-detail-page *::after {
    box-sizing: border-box;
}

.ifl-product-detail-container {
    width: min(calc(100% - 2 * var(--site-gutter)), var(--site-max-width));
    margin-inline: auto;
}

.ifl-product-breadcrumbs {
    display: flex;
    margin-bottom: 28px;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: rgba(38, 50, 71, 0.56);
    font-size: 11px;
    line-height: 1.5;
}

.ifl-product-breadcrumbs a {
    color: inherit;
    transition: color 0.2s ease;
}

.ifl-product-breadcrumbs a:hover {
    color: var(--ifl-green-dark);
}

.ifl-product-breadcrumbs span {
    color: rgba(38, 50, 71, 0.25);
}

.ifl-product-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(34, 51, 81, 0.08);
    border-radius: 26px;
    box-shadow: 0 24px 65px rgba(34, 51, 81, 0.09);
}

.ifl-product-detail-media {
    position: relative;
    display: grid;
    min-height: clamp(470px, 48vw, 670px);
    padding: clamp(32px, 5vw, 70px);
    place-items: center;
    background: #ffffff;
    border-right: 1px solid rgba(34, 51, 81, 0.08);
}

.ifl-product-detail-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 560px;
    object-fit: contain;
    object-position: center;
}

.ifl-product-detail-media > span {
    display: none;
    width: 150px;
    aspect-ratio: 1;
    place-items: center;
    color: rgba(34, 51, 81, 0.2);
    border: 2px solid rgba(34, 51, 81, 0.12);
    clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%);
    font-size: 27px;
    font-weight: 800;
}

.ifl-product-detail-media.is-image-missing > span {
    display: grid;
}

.ifl-product-detail-content {
    display: flex;
    padding: clamp(38px, 5vw, 72px);
    flex-direction: column;
    justify-content: center;
}

.ifl-product-detail-category {
    color: var(--ifl-green-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    line-height: 1.5;
    text-transform: uppercase;
}

.ifl-product-detail-content h1 {
    margin: 15px 0 0;
    color: var(--ifl-navy);
    font-size: clamp(30px, 3.2vw, 52px);
    font-weight: 800;
    letter-spacing: -1.8px;
    line-height: 1.12;
}

.ifl-product-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 32px;
    overflow: hidden;
    border: 1px solid rgba(34, 51, 81, 0.1);
    border-radius: 14px;
}

.ifl-product-detail-meta > div {
    min-width: 0;
    padding: 17px 19px;
    background: #f8fafb;
    border-right: 1px solid rgba(34, 51, 81, 0.08);
    border-bottom: 1px solid rgba(34, 51, 81, 0.08);
}

.ifl-product-detail-meta > div:nth-child(2n) {
    border-right: 0;
}

.ifl-product-detail-meta > div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.ifl-product-detail-meta span,
.ifl-product-detail-meta strong {
    display: block;
}

.ifl-product-detail-meta span {
    color: rgba(38, 50, 71, 0.52);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ifl-product-detail-meta strong {
    margin-top: 6px;
    overflow-wrap: anywhere;
    color: var(--ifl-navy);
    font-size: 13px;
}

.ifl-product-detail-meta .is-in-stock {
    color: var(--ifl-green-dark);
}

.ifl-product-detail-meta .is-out-of-stock {
    color: #a24343;
}

.ifl-product-detail-price {
    display: flex;
    margin-top: 28px;
    align-items: baseline;
    gap: 12px;
}

.ifl-product-detail-price strong {
    color: var(--ifl-navy);
    font-size: clamp(25px, 2.5vw, 36px);
}

.ifl-product-detail-price del {
    color: rgba(38, 50, 71, 0.42);
    font-size: 14px;
}

.ifl-product-detail-actions {
    display: flex;
    margin-top: 31px;
    flex-wrap: wrap;
    gap: 10px;
}

.ifl-product-detail-actions a,
.ifl-product-detail-actions button {
    display: inline-flex;
    min-height: 50px;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    transition: 0.2s ease;
}

.ifl-product-detail-primary {
    color: #ffffff;
    background: var(--ifl-green-dark);
}

.ifl-product-detail-primary:hover {
    background: var(--ifl-navy);
}

.ifl-product-detail-secondary {
    color: var(--ifl-navy);
    background: #ffffff;
    border-color: rgba(34, 51, 81, 0.15) !important;
}

.ifl-product-detail-secondary:hover {
    border-color: var(--ifl-navy) !important;
}

.ifl-product-detail-store {
    color: #ffffff;
    background: var(--ifl-navy);
}

.ifl-product-detail-store:hover {
    background: var(--ifl-green-dark);
}

.ifl-product-detail-information {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
    align-items: start;
    gap: 24px;
    margin-top: 28px;
}

.ifl-product-description-panel,
.ifl-product-facts-panel {
    padding: clamp(30px, 4vw, 52px);
    background: #ffffff;
    border: 1px solid rgba(34, 51, 81, 0.08);
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(34, 51, 81, 0.06);
}

.ifl-product-facts-panel {
    position: sticky;
    top: 110px;
}

.ifl-product-section-kicker {
    color: var(--ifl-green-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ifl-product-description-panel h2,
.ifl-product-facts-panel h2,
.ifl-related-products-heading h2 {
    margin: 8px 0 0;
    color: var(--ifl-navy);
    font-size: clamp(25px, 2.4vw, 36px);
    line-height: 1.15;
}

.ifl-product-description-panel p {
    margin: 24px 0 0;
    color: rgba(38, 50, 71, 0.76);
    font-size: 15px;
    line-height: 1.95;
}

.ifl-product-facts-panel dl {
    margin: 24px 0 0;
}

.ifl-product-facts-panel dl > div {
    display: grid;
    grid-template-columns: minmax(100px, 0.7fr) minmax(0, 1.3fr);
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(34, 51, 81, 0.09);
}

.ifl-product-facts-panel dl > div:first-child {
    padding-top: 0;
}

.ifl-product-facts-panel dl > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.ifl-product-facts-panel dt {
    color: rgba(38, 50, 71, 0.52);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.ifl-product-facts-panel dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--ifl-navy);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    text-align: right;
}

.ifl-related-products {
    margin-top: clamp(55px, 7vw, 95px);
}

.ifl-related-products-heading {
    display: flex;
    margin-bottom: 25px;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.ifl-related-products-heading > a {
    color: var(--ifl-navy);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.ifl-related-products-heading > a:hover {
    color: var(--ifl-green-dark);
}

.ifl-related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.ifl-related-product-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(34, 51, 81, 0.08);
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(34, 51, 81, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ifl-related-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(34, 51, 81, 0.1);
}

.ifl-related-product-card__media {
    display: grid;
    height: 235px;
    padding: 18px;
    place-items: center;
    background: #ffffff;
    border-bottom: 1px solid rgba(34, 51, 81, 0.07);
}

.ifl-related-product-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ifl-related-product-card > div {
    display: flex;
    height: 100%;
    padding: 18px;
    flex-direction: column;
}

.ifl-related-product-card > div > span {
    color: var(--ifl-green-dark);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.45px;
    text-transform: uppercase;
}

.ifl-related-product-card h3 {
    margin: 9px 0 0;
    color: var(--ifl-navy);
    font-size: 15px;
    line-height: 1.45;
}

.ifl-related-product-card h3 a:hover {
    color: var(--ifl-green-dark);
}

.ifl-related-product-card p {
    margin: 9px 0 0;
    color: rgba(38, 50, 71, 0.65);
    font-size: 10px;
    font-weight: 700;
}

.ifl-related-product-card__button {
    display: inline-flex;
    min-height: 39px;
    margin-top: auto;
    padding: 14px 14px 0;
    align-items: center;
    color: var(--ifl-navy);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.ifl-related-product-card__button:hover {
    color: var(--ifl-green-dark);
}

@media (max-width: 1120px) {
    .ifl-product-detail-hero {
        grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    }

    .ifl-related-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .ifl-product-detail-hero,
    .ifl-product-detail-information {
        grid-template-columns: 1fr;
    }

    .ifl-product-detail-media {
        min-height: 480px;
        border-right: 0;
        border-bottom: 1px solid rgba(34, 51, 81, 0.08);
    }

    .ifl-product-facts-panel {
        position: static;
    }

    .ifl-related-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .ifl-product-detail-container {
        width: calc(100% - 30px);
    }

    .ifl-product-detail-media {
        min-height: 330px;
        padding: 25px;
    }

    .ifl-product-detail-content {
        padding: 30px 22px 34px;
    }

    .ifl-product-detail-content h1 {
        letter-spacing: -1px;
    }

    .ifl-product-detail-meta {
        grid-template-columns: 1fr;
    }

    .ifl-product-detail-meta > div,
    .ifl-product-detail-meta > div:nth-child(2n),
    .ifl-product-detail-meta > div:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid rgba(34, 51, 81, 0.08);
    }

    .ifl-product-detail-meta > div:last-child {
        border-bottom: 0;
    }

    .ifl-product-detail-actions,
    .ifl-product-detail-actions a,
    .ifl-product-detail-actions button {
        width: 100%;
    }

    .ifl-product-description-panel,
    .ifl-product-facts-panel {
        padding: 28px 22px;
    }

    .ifl-product-facts-panel dl > div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .ifl-product-facts-panel dd {
        text-align: left;
    }

    .ifl-related-products-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .ifl-related-products-grid {
        grid-template-columns: 1fr;
    }

    .ifl-related-product-card__media {
        height: 270px;
    }
}


/* =========================================================
   POPUP SOLICITARE INFORMAȚII PRODUS
   ========================================================= */

body.ifl-product-inquiry-is-open {
    overflow: hidden;
}

.ifl-product-detail-actions button {
    font-family: inherit;
    cursor: pointer;
}

.ifl-product-inquiry-modal {
    position: fixed;
    z-index: 10050;
    inset: 0;
    display: grid;
    padding: 24px;
    place-items: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: visibility 0.25s ease, opacity 0.25s ease;
}

.ifl-product-inquiry-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.ifl-product-inquiry-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(12, 28, 49, 0.74);
    border: 0;
    backdrop-filter: blur(7px);
    cursor: pointer;
}

.ifl-product-inquiry-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    max-height: calc(100vh - 48px);
    padding: clamp(28px, 4vw, 46px);
    overflow-y: auto;
    color: var(--ifl-text);
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 24px;
    box-shadow: 0 35px 90px rgba(7, 24, 45, 0.32);
    transform: translateY(18px) scale(0.98);
    transition: transform 0.25s ease;
    scrollbar-width: thin;
}

.ifl-product-inquiry-modal.is-open .ifl-product-inquiry-modal__dialog {
    transform: translateY(0) scale(1);
}

.ifl-product-inquiry-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    color: var(--ifl-navy);
    background: #f1f4f7;
    border: 0;
    border-radius: 50%;
    font-family: inherit;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s ease;
}

.ifl-product-inquiry-modal__close:hover {
    color: #ffffff;
    background: var(--ifl-navy);
}

.ifl-product-inquiry-modal__heading {
    padding-right: 50px;
}

.ifl-product-inquiry-modal__heading h2 {
    margin: 8px 0 0;
    color: var(--ifl-navy);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -1px;
}

.ifl-product-inquiry-modal__heading p {
    max-width: 590px;
    margin: 14px 0 0;
    color: rgba(38, 50, 71, 0.68);
    font-size: 13px;
    line-height: 1.7;
}

.ifl-product-inquiry-product {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    margin-top: 24px;
    padding: 13px;
    align-items: center;
    gap: 16px;
    background: #f5f8f5;
    border: 1px solid rgba(102, 189, 90, 0.19);
    border-radius: 14px;
}

.ifl-product-inquiry-product img {
    display: block;
    width: 80px;
    height: 80px;
    padding: 5px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 10px;
}

.ifl-product-inquiry-product span,
.ifl-product-inquiry-product strong,
.ifl-product-inquiry-product small {
    display: block;
}

.ifl-product-inquiry-product span {
    color: var(--ifl-green-dark);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.65px;
    text-transform: uppercase;
}

.ifl-product-inquiry-product strong {
    margin-top: 5px;
    color: var(--ifl-navy);
    font-size: 14px;
    line-height: 1.45;
}

.ifl-product-inquiry-product small {
    margin-top: 5px;
    color: rgba(38, 50, 71, 0.58);
    font-size: 10px;
    font-weight: 700;
}

.ifl-product-inquiry-form {
    margin-top: 25px;
}

.ifl-product-inquiry-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ifl-product-inquiry-form label {
    display: block;
    min-width: 0;
}

.ifl-product-inquiry-form label > span {
    display: block;
    margin-bottom: 8px;
    color: var(--ifl-navy);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.ifl-product-inquiry-form .is-full-width {
    grid-column: 1 / -1;
}

.ifl-product-inquiry-form input[type="text"],
.ifl-product-inquiry-form input[type="email"],
.ifl-product-inquiry-form input[type="tel"],
.ifl-product-inquiry-form textarea {
    width: 100%;
    min-width: 0;
    padding: 0 15px;
    color: var(--ifl-navy);
    background: #f7f9fb;
    border: 1px solid rgba(34, 51, 81, 0.14);
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    outline: none;
    transition: 0.2s ease;
}

.ifl-product-inquiry-form input[type="text"],
.ifl-product-inquiry-form input[type="email"],
.ifl-product-inquiry-form input[type="tel"] {
    min-height: 50px;
}

.ifl-product-inquiry-form textarea {
    min-height: 128px;
    padding-top: 14px;
    padding-bottom: 14px;
    resize: vertical;
}

.ifl-product-inquiry-form input:focus,
.ifl-product-inquiry-form textarea:focus {
    background: #ffffff;
    border-color: var(--ifl-green-dark);
    box-shadow: 0 0 0 4px rgba(102, 189, 90, 0.13);
}

.ifl-product-inquiry-consent {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr);
    margin-top: 18px;
    align-items: start;
    gap: 10px;
    color: rgba(38, 50, 71, 0.66);
    font-size: 10px;
    line-height: 1.6;
    text-transform: none;
}

.ifl-product-inquiry-consent input {
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: var(--ifl-green-dark);
}

.ifl-product-inquiry-consent span {
    margin: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: inherit;
    text-transform: none !important;
}

.ifl-product-inquiry-consent a {
    color: var(--ifl-navy);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ifl-product-inquiry-submit,
.ifl-product-inquiry-status button {
    display: inline-flex;
    min-height: 50px;
    margin-top: 22px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--ifl-green-dark);
    border: 0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s ease;
}

.ifl-product-inquiry-submit:hover,
.ifl-product-inquiry-status button:hover {
    background: var(--ifl-navy);
}

.ifl-product-inquiry-status {
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.65;
}

.ifl-product-inquiry-status strong,
.ifl-product-inquiry-status p {
    display: block;
}

.ifl-product-inquiry-status p,
.ifl-product-inquiry-status ul {
    margin: 7px 0 0;
}

.ifl-product-inquiry-status ul {
    padding-left: 18px;
}

.ifl-product-inquiry-status.is-error {
    color: #7f2c2c;
    background: #fff1f1;
    border: 1px solid #f2caca;
}

.ifl-product-inquiry-status.is-success {
    color: #235f2e;
    background: #edf8ee;
    border: 1px solid #c9e8cc;
}

.ifl-product-inquiry-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 650px) {
    .ifl-product-inquiry-modal {
        padding: 10px;
        align-items: end;
    }

    .ifl-product-inquiry-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
        padding: 28px 20px 24px;
        border-radius: 20px 20px 12px 12px;
    }

    .ifl-product-inquiry-modal__heading {
        padding-right: 40px;
    }

    .ifl-product-inquiry-form__grid {
        grid-template-columns: 1fr;
    }

    .ifl-product-inquiry-form .is-full-width {
        grid-column: auto;
    }

    .ifl-product-inquiry-submit,
    .ifl-product-inquiry-status button {
        width: 100%;
    }
}


/* =========================================================
   FIX FINAL IMAGINI CATALOG
   Afisare integrala, centrare reala si fara zoom/crop
   ========================================================= */

.ifl-product-card__media {
    position: relative;
    display: block;
    min-height: clamp(220px, 15vw, 270px);
    aspect-ratio: auto;
    padding: 0;
    overflow: hidden;
    background: #ffffff !important;
}

.ifl-product-card__media img {
    position: absolute !important;
    z-index: 2;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    max-width: calc(100% - 44px) !important;
    max-height: calc(100% - 44px) !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: scale-down !important;
    object-position: center !important;
    background: transparent !important;
    transform: translate(-50%, -50%) !important;
}

.ifl-product-card:hover .ifl-product-card__media img {
    transform: translate(-50%, -50%) !important;
}

@media (max-width: 1280px) {
    .ifl-product-card__media {
        min-height: 220px;
    }
}

@media (max-width: 900px) {
    .ifl-product-card__media {
        min-height: 250px;
    }
}

@media (max-width: 560px) {
    .ifl-product-card__media {
        min-height: 280px;
    }

    .ifl-product-card__media img {
        max-width: calc(100% - 36px) !important;
        max-height: calc(100% - 36px) !important;
    }
}
