/* =====================================================================
   Hero banner  (shortcode: [freshfoodbanner])  — Oudtarif premium hero
   Background image + dark overlay (legible text) + centered title/desc
   + a clean row of product cards at the bottom (no overlap).
   Scoped under .ffb. Per-instance: --ffb-highlight (card hover colour).
   ===================================================================== */

.ffb {
    --ffb-highlight: #c5a253;
    position: relative;
    isolation: isolate;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 72px 28px 56px;
    margin: 10px 6px;
    border-radius: 22px;
    overflow: hidden;
}

/* Dark gradient overlay — darker top (title) + bottom (cards) for legibility */
.ffb::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(13, 10, 7, 0.74) 0%, rgba(13, 10, 7, 0.50) 40%, rgba(13, 10, 7, 0.58) 78%, rgba(13, 10, 7, 0.80) 100%);
}

/* ── Heading ── */
.ffb-head {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 8px auto 0;
    text-align: center;
}

.ffb-title {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.14;
    letter-spacing: 0.5px;
    color: #fff;
    margin: 0 0 16px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.ffb-desc {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 15.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
    max-width: 560px;
    margin: 0 auto;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

/* ── Slider (cards row, anchored to bottom) ── */
.ffb-slider-wrap {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    width: 100%;
    margin: 56px auto 0;
}

.ffb-slider {
    padding: 34px 6px 8px; /* room for the circular image overflow */
    overflow: hidden;
}

.ffb-slider .swiper-wrapper { align-items: stretch; }
.ffb-slider .swiper-slide { height: auto; display: flex; }

/* ── Card ── */
.ffb-card {
    position: relative;
    width: 100%;
    margin-top: 34px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(2px);
    border-radius: 16px;
    padding: 50px 20px 20px;
    text-align: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.ffb-card:hover {
    background: var(--ffb-highlight);
    transform: translateY(-5px);
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.34);
}

/* Circular image, overlapping the card's top edge */
.ffb-card-img {
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: #f3f3f3;
    transition: transform 0.35s ease, border-color 0.3s ease;
}

.ffb-card:hover .ffb-card-img {
    border-color: #fff;
    transform: translateX(-50%) scale(1.05);
}

.ffb-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Body */
.ffb-card-name {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.3;
    color: #1f2a23;
    margin: 0 0 6px;
    transition: color 0.3s ease;
}
.ffb-card-name a { color: inherit; text-decoration: none; }

.ffb-card-meta {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 12px;
    color: #9aa09a;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.ffb-card-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ffb-card-price {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #1f2a23;
    transition: color 0.3s ease;
}

.ffb-card-add {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: var(--ffb-highlight);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.ffb-card-add:hover { transform: scale(1.08); }

.ffb-card:hover .ffb-card-name,
.ffb-card:hover .ffb-card-price { color: #2a1e08; }
.ffb-card:hover .ffb-card-meta { color: rgba(42, 30, 8, 0.7); }
.ffb-card:hover .ffb-card-add { background: #2a1e08; color: var(--ffb-highlight); }

/* ── Responsive ── */
@media (max-width: 991px) {
    .ffb { min-height: 540px; padding: 56px 18px 48px; }
    .ffb-title { font-size: 38px; }
    .ffb-slider-wrap { margin-top: 40px; }
}
@media (max-width: 767px) {
    .ffb { min-height: 0; padding: 48px 14px 44px; }
    .ffb-title { font-size: 30px; }
    .ffb-head { margin-bottom: 8px; }
    .ffb-slider-wrap { margin-top: 32px; }
}
