/* =====================================================================
   Fresh Food Product Banner  (shortcode: [freshfoodbanner])
   Background image + centered title/description + a slider of product
   cards (circular image overlapping the top, price + add-to-cart).
   Scoped under .ffb — cached & safe site-wide.
   Per-instance: --ffb-highlight (card hover colour).
   ===================================================================== */

.ffb {
    --ffb-highlight: #f5a623;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 64px 16px 70px;
    margin: 9px 5px;
    border-radius: 23px;
}

/* ── Heading ── */
.ffb-head {
    max-width: 720px;
    margin: 0 auto 64px;
    text-align: center;
}

.ffb-title {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 800;
    font-size: 66px;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 18px;
}

.ffb-desc {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #fff;
    margin: 0;
}

/* ── Slider ── */
.ffb-slider-wrap {
    max-width: 1180px;
    margin: 0 auto;
}

.ffb-slider {
    /* room for the circular image that overflows the card top */
    padding: 0px 6px 16px;
    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: 45px;
    background: #fff;
    border-radius: 18px;
    padding: 60px 22px 22px;
    text-align: center;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
    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(-4px);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.16);
}

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

.ffb-card:hover .ffb-card-img {
    border-color: var(--ffb-highlight);
    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: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #1f2a23;
    margin: 0 0 8px;
    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: 12.5px;
    color: #9aa09a;
    margin-bottom: 18px;
    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: 20px;
    font-weight: 800;
    color: #1f2a23;
    transition: color 0.3s ease;
}

.ffb-card-add {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 11px;
    background: var(--ffb-highlight);
    color: #fff;
    font-size: 15px;
    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);
}

/* Highlighted (hover) card — flip text + button to contrast */
.ffb-card:hover .ffb-card-name,
.ffb-card:hover .ffb-card-price {
    color: #fff;
}

.ffb-card:hover .ffb-card-meta {
    color: rgba(255, 255, 255, 0.85);
}

.ffb-card:hover .ffb-card-add {
    background: #fff;
    color: var(--ffb-highlight);
}

.ffb-card:hover .ffb-card-add:disabled {
    opacity: 0.6;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .ffb {
        padding: 48px 14px 56px;
    }
    .ffb-head {
        margin-bottom: 48px;
    }
}
