:root {
    --ib-forest: #123b31;
    --ib-forest-hover: #0b2d25;
    --ib-leaf: #3d8b00;
    --ib-fresh: #789839;
    --ib-fig: #8e3654;
    --ib-jam: #c44932;
    --ib-harvest: #d8a12d;
    --ib-canvas: #fbfaf6;
    --ib-paper: #f7f5ee;
    --ib-sand: #f1e8d8;
    --ib-white: #fff;
    --ib-ink: #18231f;
    --ib-muted: #66726c;
    --ib-line: #dde2dc;
    --ib-display: Georgia, "Times New Roman", serif;
    --ib-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ib-section-space: clamp(3rem, 5vw, 5rem);
    --ib-surface-end-space: clamp(2.5rem, 4vw, 4rem);
    --ib-surface-separator: clamp(2rem, 3.5vw, 3.5rem);
}

#wrapwrap > main:has(.ib-home) {
    padding-top: 0 !important;
}

.ib-home {
    overflow: hidden;
    background: var(--ib-canvas);
    color: var(--ib-ink);
    font-family: var(--ib-body);
}

.ib-home ::selection {
    background: var(--ib-harvest);
    color: var(--ib-ink);
}

.ib-home :focus-visible {
    outline: 3px solid var(--ib-harvest);
    outline-offset: 3px;
}

.ib-home a {
    text-underline-offset: 0.25em;
}

.ib-home img {
    display: block;
    max-width: 100%;
}

.ib-section-title,
.ib-fig-feature h2,
.ib-category strong {
    color: var(--ib-forest);
    font-family: var(--ib-display);
    font-weight: 700;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.ib-btn-primary,
.ib-btn-light,
.ib-product-card__add {
    min-height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border: 0;
    border-radius: 0.25rem;
    font-weight: 700;
    transition: background-color 180ms ease-out, color 180ms ease-out, transform 180ms ease-out;
}

.ib-btn-primary {
    padding-inline: 1.75rem;
    background: var(--ib-forest);
    color: var(--ib-white);
}

.ib-btn-primary:hover,
.ib-btn-primary:focus {
    background: var(--ib-forest-hover);
    color: var(--ib-white);
}

.ib-btn-primary:active,
.ib-btn-light:active,
.ib-product-card__add:active {
    transform: translateY(1px);
}

.ib-text-link {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.5rem;
    color: var(--ib-forest);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.ib-text-link:hover {
    color: var(--ib-forest-hover);
    text-decoration-thickness: 2px;
}

.ib-section {
    padding: var(--ib-section-space) 0 0;
}

.ib-section-title {
    margin: 0;
    font-size: clamp(1.85rem, 3vw, 2.35rem);
    line-height: 1.12;
}

.ib-section-head {
    margin-bottom: clamp(1.35rem, 3vw, 2rem);
}

.ib-section-head p,
.ib-jam__intro > p {
    max-width: 55ch;
    margin: 0.45rem 0 0;
    color: var(--ib-muted);
    line-height: 1.55;
}

.ib-categories {
    scroll-margin-top: 8rem;
}

.ib-categories > .container > .ib-section-title {
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.ib-shelf--fig {
    margin-top: var(--ib-surface-separator);
    padding-bottom: var(--ib-surface-end-space);
    background: #f6eff1;
}

/*
 * Odoo keeps the oe_empty marker on some saved editable structures. Hide the
 * slot only while it is actually empty; otherwise published snippets such as
 * the advanced slider would be collapsed even though their markup is present.
 */
body:not(.editor_enable) .ib-section-slot.oe_empty:empty {
    display: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.editor_enable .ib-section-slot.oe_empty {
    display: block;
    min-height: 3rem;
}

/*
 * Keep the saved slider placeholder from flashing its backend-only empty-state
 * copy. Its 16:9 footprint matches the delivered slider, preventing a layout
 * jump while the dynamic content is requested.
 */
.ib-section-slot .advanced-slider-wrapper > .alert.alert-info:has(> .o_default_snippet_text) {
    width: 100%;
    min-height: 10rem;
    aspect-ratio: 16 / 9;
    margin: 0 !important;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 0.9rem;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: var(--ib-paper);
    color: var(--ib-forest);
}

.ib-section-slot .advanced-slider-wrapper > .alert.alert-info:has(> .o_default_snippet_text) > .o_default_snippet_text {
    display: none;
}

.ib-section-slot .advanced-slider-wrapper > .alert.alert-info:has(> .o_default_snippet_text)::before {
    width: 2.25rem;
    height: 2.25rem;
    content: "";
    border: 3px solid rgb(18 59 49 / 16%);
    border-top-color: var(--ib-forest);
    border-radius: 50%;
    animation: ib-slider-loader-spin 800ms linear infinite;
}

.ib-section-slot .advanced-slider-wrapper > .alert.alert-info:has(> .o_default_snippet_text)::after {
    content: "Lezzetler hazırlanıyor…";
    color: var(--ib-forest);
    font-family: var(--ib-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

@keyframes ib-slider-loader-spin {
    to { transform: rotate(1turn); }
}

.ib-category {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    color: var(--ib-ink);
    text-decoration: none;
}

.ib-category__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 0.25rem;
    background: var(--ib-sand);
}

.ib-category__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ib-category__media img.ib-category__icon {
    padding: 18%;
    object-fit: contain;
}

.ib-category:hover .ib-category__media img {
    transform: scale(1.035);
}

.ib-category__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ib-category strong {
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.18;
}

.ib-category small {
    margin-top: 0.35rem;
    color: var(--ib-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.ib-category__link {
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.3rem;
    color: var(--ib-forest);
    font-size: 0.95rem;
    font-weight: 700;
}

.ib-product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2.5rem 1.5rem;
}

.ib-product-grid--featured {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ib-product-grid--jam {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ib-product-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ib-product-card__media {
    position: relative;
    aspect-ratio: 1;
    display: block;
    overflow: hidden;
    border-radius: 0.25rem;
    background: var(--ib-white);
}

.ib-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ib-product-card:hover .ib-product-card__media img {
    transform: scale(1.035);
}

.ib-product-card__badge {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    z-index: 1;
    max-width: calc(100% - 3.5rem);
    padding: 0.32rem 0.5rem;
    border-radius: 0.15rem;
    background: var(--ib-forest);
    color: var(--ib-white);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.15;
}

.ib-product-card__badge.yb-badge-warning { background: var(--ib-harvest); color: var(--ib-ink); }
.ib-product-card__badge.yb-badge-sale { background: var(--ib-jam); }
.ib-product-card__badge.yb-badge-popular { background: var(--ib-fig); }
.ib-product-card__badge.yb-badge-muted { background: #48504c; }

.ib-product-card__wishlist {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ib-forest);
}

.ib-product-card__wishlist:hover {
    color: var(--ib-fig);
}

.ib-product-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 0.85rem;
}

.ib-product-card__meta,
.ib-product-card__options {
    color: var(--ib-muted);
    font-size: 0.75rem;
    line-height: 1.4;
}

.ib-product-card__name {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 0.25rem;
    color: var(--ib-ink);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.32;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ib-product-card__name:hover {
    color: var(--ib-forest);
    text-decoration: underline;
}

.ib-product-card__options {
    margin-top: 0.25rem;
}

.ib-product-card__price {
    min-height: 3.3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: auto;
    padding: 0.65rem 0 0.75rem;
    font-variant-numeric: tabular-nums;
}

.ib-product-card__price del {
    color: var(--ib-muted);
    font-size: 0.78rem;
}

.ib-product-card__price strong {
    color: var(--ib-ink);
    font-size: 1.08rem;
}

.ib-product-card__form {
    margin-top: auto;
}

.btn.ib-product-card__add {
    width: 100%;
    min-height: 2.8rem;
    padding: 0.5rem 0.75rem;
    background: var(--ib-forest);
    color: var(--ib-white);
    font-size: 0.88rem;
}

.btn.ib-product-card__add:hover,
.btn.ib-product-card__add:focus {
    background: var(--ib-forest-hover);
    color: var(--ib-white);
}

.ib-product-card__add--secondary {
    border: 1px solid var(--ib-forest);
    background: transparent;
    color: var(--ib-forest);
}

.ib-product-card__add--secondary:hover,
.ib-product-card__add--secondary:focus {
    background: var(--ib-paper);
    color: var(--ib-forest-hover);
}

.ib-fig-feature {
    padding: var(--ib-section-space) 0 var(--ib-surface-end-space);
    background: var(--ib-forest);
    color: #f0ece2;
}

.ib-fig-feature__media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 0.25rem;
    background: #2b4c42;
}

.ib-fig-feature__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ib-fig-feature__media img.ib-fig-feature__fallback {
    padding: 22%;
    object-fit: contain;
}

.ib-fig-feature h2 {
    max-width: 15ch;
    margin: 0;
    color: var(--ib-white);
    font-size: clamp(2.1rem, 4vw, 3.25rem);
    line-height: 1.08;
}

.ib-fig-feature__copy > p {
    max-width: 55ch;
    margin: 1.1rem 0 0;
    color: #d7e0dc;
    font-size: 1.05rem;
    line-height: 1.65;
}

.ib-fig-tips {
    margin: 1.5rem 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    list-style: none;
}

.ib-fig-tips li {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.65rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.ib-fig-tips li > span {
    color: #f1bd62;
    font-family: var(--ib-display);
    font-weight: 700;
}

.ib-fig-tips strong {
    color: var(--ib-white);
}

.ib-fig-tips p {
    margin: 0.2rem 0 0;
    color: #d7e0dc;
    font-size: 0.92rem;
    line-height: 1.5;
}

.ib-btn-light {
    padding-inline: 1.5rem;
    background: var(--ib-paper);
    color: var(--ib-forest);
}

.ib-btn-light:hover,
.ib-btn-light:focus {
    background: var(--ib-white);
    color: var(--ib-forest-hover);
}

.ib-shelf--sand {
    margin-top: var(--ib-surface-separator);
    padding-bottom: var(--ib-surface-end-space);
    background: var(--ib-sand);
}

.ib-jam__visual {
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-bottom: 1.25rem;
    border-radius: 0.25rem;
    background: #efd6d0;
}

.ib-jam__visual img {
    width: min(62%, 9rem);
    height: auto;
}

.ib-stories {
    padding-bottom: var(--ib-surface-end-space);
}

.ib-story {
    min-height: 7rem;
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding-block: 1rem;
    border-top: 1px solid var(--ib-line);
    color: var(--ib-ink);
    text-decoration: none;
}

.ib-story__mark {
    width: 4.5rem;
    height: 4.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #edf3e8;
    color: var(--ib-fresh);
    font-size: 1.35rem;
}

.ib-story strong,
.ib-story small {
    display: block;
}

.ib-story strong {
    font-family: var(--ib-display);
    font-size: 1.08rem;
    line-height: 1.35;
}

.ib-story small {
    margin-top: 0.45rem;
    color: var(--ib-forest);
    font-weight: 700;
}

.ib-story:hover strong {
    text-decoration: underline;
}

.ib-trust {
    padding: var(--ib-section-space) 0 var(--ib-surface-end-space);
    background: var(--ib-sand);
}

.ib-trust > .container > .ib-section-title {
    margin-bottom: 2rem;
}

.ib-trust-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ib-trust-item > i {
    margin-bottom: 0.75rem;
    color: var(--ib-forest);
    font-size: 1.55rem;
}

.ib-trust-item strong {
    color: var(--ib-ink);
    font-size: 1.04rem;
}

.ib-trust-item p {
    margin: 0.35rem 0 0;
    color: #515d57;
    font-size: 0.92rem;
    line-height: 1.55;
}

.ib-trust-item a {
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
    margin-top: 0.35rem;
    color: var(--ib-forest);
    font-weight: 700;
}

@media (min-width: 992px) {
    .ib-category {
        gap: 0.7rem;
    }

    .ib-category strong {
        font-size: clamp(1rem, 1.25vw, 1.2rem);
    }

    .ib-category small {
        font-size: 0.82rem;
    }

    .ib-category__link {
        font-size: 0.85rem;
    }
}

@media (max-width: 1199.98px) {
    .ib-product-grid,
    .ib-product-grid--featured {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ib-product-grid--jam {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .ib-category__media {
        aspect-ratio: 4 / 5;
    }

    .ib-category small {
        display: none;
    }

    .ib-section-head {
        align-items: flex-start !important;
    }

    .ib-section-head .ib-text-link {
        min-height: 2.25rem;
        font-size: 0.88rem;
    }

    .ib-product-grid--featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 0.75rem;
    }

    .ib-product-grid--shelf,
    .ib-product-grid--jam {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: calc((100% - 0.75rem) / 2.12);
        gap: 0.75rem;
        overflow-x: auto;
        margin-inline: calc(var(--bs-gutter-x) * -0.5);
        padding: 0 calc(var(--bs-gutter-x) * 0.5) 0.75rem;
        scroll-padding-inline: calc(var(--bs-gutter-x) * 0.5);
        scroll-snap-type: x mandatory;
        scrollbar-color: var(--ib-fresh) transparent;
        scrollbar-width: thin;
    }

    .ib-product-grid--shelf > *,
    .ib-product-grid--jam > * {
        scroll-snap-align: start;
    }

    .ib-product-card__name {
        font-size: 0.9rem;
    }

    .ib-product-card__add {
        min-height: 2.75rem;
        font-size: 0.8rem;
    }

    .ib-fig-feature__media {
        aspect-ratio: 4 / 3;
    }

    .ib-fig-feature h2 {
        font-size: 2.25rem;
    }

    .ib-jam__visual {
        aspect-ratio: 16 / 7;
    }

}

@media (max-width: 374.98px) {
    .ib-product-grid--shelf,
    .ib-product-grid--jam {
        grid-auto-columns: calc((100% - 0.75rem) / 1.85);
    }

    .ib-category strong {
        font-size: 1.02rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ib-home *,
    .ib-home *::before,
    .ib-home *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}

/* Keep image-only hero slides in one stable stage. A lazy next image must not
   collapse to a 1px percentage height or change the page's LCP footprint. */
.ib-home .s_advanced_slider {
    --ib-hero-height: min(41.666667vw, 50rem);
}
.ib-home .s_advanced_slider .advanced-slider-wrapper,
.ib-home .s_advanced_slider .advanced-slider-container,
.ib-home .s_advanced_slider .advanced-slider,
.ib-home .s_advanced_slider .carousel-inner,
.ib-home .s_advanced_slider .carousel-item.display-mode--full {
    height: var(--ib-hero-height);
    min-height: var(--ib-hero-height);
}
.ib-home .s_advanced_slider .display-mode--full .advanced-slider__universal-wrapper,
.ib-home .s_advanced_slider .display-mode--full .advanced-slider__visual-area,
.ib-home .s_advanced_slider .display-mode--full picture,
.ib-home .s_advanced_slider .display-mode--full picture img {
    height: 100%;
    min-height: 0;
}
@media (max-width: 767.98px) {
    .ib-home .s_advanced_slider {
        --ib-hero-height: auto;
    }
    .ib-home .s_advanced_slider .display-mode--full picture img {
        /* Mixed portrait/landscape campaigns retain all their text. */
        object-fit: contain !important;
    }
}
