/* Kryddhyllan kategoriinspiration v1.0.1: a full-width item in Flatsome's .products.row */
.woocommerce .products.row > .khci-slot,
.products.row > .khci-slot {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    padding: 8px 10px 15px !important;
    margin: 0 !important;
    clear: both;
    box-sizing: border-box;
}
.khci-banner, .khci-banner * { box-sizing: border-box; }
.khci-banner {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 276px;
    max-height: 300px; /* Hårt tak för desktop */
    min-height: 230px;
    border-radius: 12px;
    overflow: hidden;
    background: #25231e;
    color: #fff;
    box-shadow: 0 9px 24px rgba(25,20,15,.13);
}
.khci-banner__photo,
.khci-banner__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.khci-banner__photo { object-fit: cover; object-position: right center; z-index: -2; }
.khci-banner__shade { z-index: -1; background: linear-gradient(90deg, rgba(21,25,20,.96) 0%, rgba(24,26,19,.91) 31%, rgba(24,26,19,.54) 53%, rgba(24,26,19,.07) 84%); }
.khci-banner__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: min(55%, 650px);
    min-height: 100%;
    padding: 30px clamp(25px, 4vw, 56px);
    position: relative;
    z-index: 1;
    text-align: left;
}
.khci-banner__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: .18em;
    color: #e4c996;
    margin: 0 0 11px;
}
/* Overrides theme-wide h2 font-size (Kryddhyllan uses h2 { font-size:48px!important; }). */
.khci-banner h2.khci-banner__title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(27px, 2.5vw, 40px) !important;
    font-weight: 700 !important;
    line-height: 1.07 !important;
    letter-spacing: -.023em;
    margin: 0 0 12px !important;
    color: #fff !important;
    max-width: 480px;
    text-transform: none !important;
}
.khci-banner__body {
    font-size: clamp(13px, 1.05vw, 16px);
    line-height: 1.5;
    font-weight: 400;
    max-width: 460px;
    margin: 0 0 18px;
    color: #f3efe8;
}
.khci-banner__button,
.khci-banner__button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 37px;
    padding: 9px 17px;
    border-radius: 22px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none !important;
    background: #336947;
    transition: background-color .16s ease, transform .16s ease;
}
.khci-banner__button:hover,
.khci-banner__button:focus-visible { color:#fff !important; background:#477d55; transform:translateY(-1px); }
.khci-banner__button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* 1.0.1: The supplied food photo is 970x320 (3:1), while the banner is
   roughly 4.5–5:1 on desktop. "cover" used to crop away almost 40% of the
   photo's height, making the sauce bowls appear unnaturally close. Display the
   whole photo to the right, retaining a dark canvas behind the text. */
@media (min-width: 850px) {
    .khci-banner__photo {
        object-fit: contain;
        object-position: right center;
        -webkit-mask-image: linear-gradient(90deg, transparent 23%, #000 47%);
        mask-image: linear-gradient(90deg, transparent 23%, #000 47%);
    }
    .khci-banner__shade {
        background: linear-gradient(90deg,
            rgba(21,25,20,.97) 0%,
            rgba(21,25,20,.92) 29%,
            rgba(21,25,20,.67) 44%,
            rgba(21,25,20,.10) 70%,
            rgba(21,25,20,0) 90%);
    }
}
@media (max-width: 849px) {
    .khci-banner { height: 255px; min-height: 0; max-height: none; }
    .khci-banner__content { width: min(76%, 580px); padding: 24px 25px; }
    .khci-banner__shade { background: linear-gradient(90deg, rgba(20,23,19,.96), rgba(20,23,19,.78) 51%, rgba(20,23,19,.13) 100%); }
    .khci-banner h2.khci-banner__title { font-size: clamp(25px, 4.2vw, 34px) !important; }
    .khci-banner__body { font-size: 13px; }
}
@media (max-width: 549px) {
    .woocommerce .products.row > .khci-slot,
    .products.row > .khci-slot { padding: 7px 8px 18px !important; }
    .khci-banner { height: auto; min-height: 270px; }
    .khci-banner__content { width: 100%; min-height: 270px; padding: 25px 20px; justify-content: center; }
    .khci-banner__shade { background: linear-gradient(90deg, rgba(20,23,19,.96), rgba(20,23,19,.85) 63%, rgba(20,23,19,.58) 100%); }
    .khci-banner__photo { object-position: 73% center; }
    .khci-banner h2.khci-banner__title { font-size: 29px !important; }
    .khci-banner__body { font-size: 13px; line-height: 1.45; max-width: 300px; }
    .khci-banner__eyebrow { font-size: 10px; letter-spacing: .14em; }
    .khci-banner__button { min-height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
    .khci-banner__button { transition: none; }
}
