/*
 * "Market Fresh" theme — Mini Market business type.
 * Loaded site-wide (storefront/layouts/app.blade.php) whenever this layout
 * is active, with <body class="sf-theme-market_fresh">. Same two layers as
 * coffee-house.css:
 *   1. body-level overrides of style.css's --sf-* variables, so header,
 *      navbar, footer and every other page pick up the soft mint/sand look.
 *   2. .mf-* classes, homepage-only, scoped under .mf-page.
 *
 * --sf-green / --sf-gold (admin "Primary/Secondary color", Theme color tab)
 * are deliberately left alone: they drive the accents here too (links,
 * tags, hero bar), so the admin's picker keeps colouring this theme.
 */
body.sf-theme-market_fresh{
    --sf-text: #1f2d27;
    --sf-text-muted: #6b7a73;
    --sf-border: #e3ece8;
    --sf-topbar-bg: #e6f4ef;
    --sf-body-bg: #ffffff;
    --sf-radius: 10px;
}

.mf-page{
    --mf-ink: #1f2d27;
    --mf-body: #56655e;
    --mf-muted: #8a9892;
    --mf-mint: #dff1ea;
    --mf-mint-soft: #eef8f4;
    --mf-mint-deep: #bfe3d6;
    --mf-sand: #f4ede1;
    --mf-sand-deep: #ebe0cc;
    --mf-dark: #26372f;
    --mf-dark-hover: #142019;
    --mf-accent: var(--sf-green, #3f9b6e);
    --mf-sale: #e5533d;
    --mf-line: #e7eeeb;
    --mf-radius: 14px;
    --mf-shadow: 0 1px 2px rgba(31,45,39,.04), 0 6px 20px rgba(31,45,39,.06);
    --mf-shadow-hover: 0 2px 4px rgba(31,45,39,.06), 0 14px 32px rgba(31,45,39,.12);
    color: var(--mf-ink);
    background: #fff;
    font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.mf-page *{ box-sizing: border-box; }
.mf-page img{ max-width: 100%; }

/* ---------- Primitives ---------- */
.mf-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px; font-weight: 600; line-height: 1;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.mf-btn svg{ width: 16px; height: 16px; transition: transform .18s ease; }
.mf-btn:hover svg{ transform: translateX(3px); }
.mf-btn--dark{ background: var(--mf-dark); color: #fff; }
.mf-btn--dark:hover{ background: var(--mf-dark-hover); color: #fff; }
.mf-btn--ghost{ background: transparent; color: var(--mf-ink); border-color: rgba(31,45,39,.25); }
.mf-btn--ghost:hover{ border-color: var(--mf-ink); color: var(--mf-ink); }
.mf-btn--light{ background: #fff; color: var(--mf-ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.mf-btn--light:hover{ background: var(--mf-dark); color: #fff; }
.mf-btn--sm{ padding: 9px 16px; font-size: 12.5px; }
.mf-btn:disabled{ opacity: .45; cursor: not-allowed; }

.mf-pill{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.75);
    color: var(--mf-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
}
.mf-pill svg{ width: 14px; height: 14px; }
.mf-pill--light{ background: #fff3e0; color: #b4651d; }

.mf-tag{
    position: absolute;
    top: 10px; left: 10px;
    z-index: 2;
    padding: 4px 9px;
    border-radius: 6px;
    background: var(--mf-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2px;
}
.mf-tag--sale{ background: var(--mf-sale); }

.mf-link{
    font-size: 14px;
    font-weight: 600;
    color: var(--mf-ink);
    text-decoration: none;
    white-space: nowrap;
}
.mf-link span{ display: inline-block; transition: transform .18s ease; color: var(--mf-accent); }
.mf-link:hover{ color: var(--mf-accent); }
.mf-link:hover span{ transform: translateX(3px); }

/* ---------- Sections ---------- */
.mf-section{ padding: 64px 0; }
.mf-section--tight{ padding: 40px 0; }
.mf-section--mint{ background: var(--mf-mint-soft); }
.mf-section--sand{ background: var(--mf-sand); }
.mf-head{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    margin-bottom: 32px;
    min-height: 32px;
}
.mf-head h2{
    margin: 0;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    letter-spacing: -.4px;
    color: var(--mf-ink);
    text-align: left;
}
.mf-head .mf-link{ position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.mf-head--center h2::after{
    content: "";
    display: block;
    width: 44px; height: 3px;
    margin: 10px 0 0;
    border-radius: 3px;
    background: var(--mf-mint-deep);
}

/* ---------- Hero ---------- */
.mf-hero{
    position: relative;
    overflow: hidden;
    background: var(--mf-mint);
    padding: 64px 0 56px;
}
.mf-hero__shape{
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 44%;
    background: var(--mf-sand);
    border-top-left-radius: 50% 100%;
    border-bottom-left-radius: 0;
}
.mf-hero .sf-container{ position: relative; }
.mf-hero__slide{
    display: none;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 48px;
    animation: mf-fade .5s ease;
}
.mf-hero__slide.is-active{ display: grid; }
@keyframes mf-fade{ from{ opacity: 0; transform: translateY(8px); } to{ opacity: 1; transform: none; } }

.mf-hero__text h1{
    margin: 18px 0 16px;
    font-size: clamp(34px, 4.6vw, 56px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1.2px;
    color: var(--mf-ink);
}
.mf-hero__text p{
    margin: 0 0 28px;
    max-width: 440px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--mf-body);
}
.mf-hero__actions{ display: flex; flex-wrap: wrap; gap: 12px; }
.mf-hero__perks{
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
}
.mf-hero__perks li{ display: flex; flex-direction: column; gap: 2px; }
.mf-hero__perks strong{ font-size: 20px; font-weight: 800; color: var(--mf-ink); }
.mf-hero__perks span{ font-size: 12px; color: var(--mf-body); }
.mf-hero__perks li + li{ padding-left: 32px; border-left: 1px solid rgba(31,45,39,.12); }

.mf-hero__media{ position: relative; padding: 10px 10px 40px 0; }
.mf-hero__frame{
    aspect-ratio: 5 / 4;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 60px -20px rgba(31,45,39,.25);
    display: grid;
    place-items: center;
}
.mf-hero__frame{
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237cc49c' fill-opacity='.55'%3E%3Cpath d='M17 8C8 10 5.9 16.2 3.8 21.3l1.9.7.9-2.3c.5.2 1 .3 1.4.3C19 20 22 3 22 3c-1 2-8 2.3-13 3.3S2 11.5 2 13.5s1.8 3.8 1.8 3.8C7 8 17 8 17 8Z'/%3E%3C/svg%3E") center / 38% no-repeat,
        radial-gradient(circle at 20% 15%, rgba(255,255,255,.7), transparent 45%),
        linear-gradient(150deg, #eef8f4, #cfeadf);
}
.mf-hero__frame img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.mf-hero__placeholder{ font-size: 72px; letter-spacing: 8px; }
.mf-hero__heart{
    position: absolute;
    top: -6px; right: -6px;
    width: 52px; height: 52px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--mf-accent);
    box-shadow: var(--mf-shadow);
}
.mf-hero__heart svg{ width: 22px; height: 22px; }
.mf-hero__card{
    position: absolute;
    left: -28px; bottom: 0;
    width: 230px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--mf-shadow-hover);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mf-hero__card small{ font-size: 11px; color: var(--mf-muted); }
.mf-hero__card strong{ font-size: 15px; color: var(--mf-ink); }
.mf-hero__bar{ display: block; height: 4px; border-radius: 4px; background: var(--mf-mint); overflow: hidden; }
.mf-hero__bar i{ display: block; width: 72%; height: 100%; background: var(--mf-accent); border-radius: 4px; }

.mf-hero__dots{ display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.mf-hero__dots button{
    width: 8px; height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(31,45,39,.2);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}
.mf-hero__dots button.is-active{ width: 26px; background: var(--mf-dark); }

/* ---------- Categories ---------- */
.mf-head--left{ justify-content: flex-start; }
.mf-head--left h2{ text-align: left; }

.mf-scroller{ position: relative; }
.mf-cats{
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 26px 34px;
    overflow-x: auto;
    padding: 6px 4px 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}
.mf-cats::-webkit-scrollbar{ display: none; }
.mf-cats.is-dragging{ cursor: grabbing; scroll-snap-type: none; user-select: none; }
.mf-cat{ flex: 0 0 116px; scroll-snap-align: start; }
.mf-scroller__btn{
    position: absolute;
    top: 52px;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    padding: 0;
    border: 1px solid var(--mf-line);
    border-radius: 50%;
    background: #fff;
    color: var(--mf-ink);
    box-shadow: var(--mf-shadow);
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}
.mf-scroller__btn[hidden]{ display: none; }
.mf-scroller__btn svg{ width: 18px; height: 18px; }
.mf-scroller__btn:hover{ background: var(--mf-dark); color: #fff; }
.mf-scroller__btn--prev{ left: -8px; }
.mf-scroller__btn--next{ right: -8px; }
.mf-cat{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--mf-ink);
}
.mf-cat__bubble{
    width: 104px; height: 104px;
    border-radius: 50%;
    display: grid; place-items: center;
    overflow: hidden;
    background: var(--mf-mint);
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px var(--mf-line);
    transition: transform .22s ease, box-shadow .22s ease;
}
.mf-cat:nth-child(even) .mf-cat__bubble{ background: var(--mf-sand); }
.mf-cat__bubble{ position: relative; }
.mf-cat__bubble img{ position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; }
.mf-cat__bubble b{ font-size: 32px; color: var(--mf-accent); }
.mf-cat__name{ font-size: 14px; font-weight: 600; text-align: center; line-height: 1.3; }
.mf-cat:hover .mf-cat__bubble{ transform: translateY(-4px); box-shadow: 0 0 0 2px var(--mf-accent), var(--mf-shadow); }
.mf-cat:hover .mf-cat__name{ color: var(--mf-accent); }

/* ---------- Product grids ---------- */
.mf-grid{ display: grid; gap: 20px; }
.mf-grid--4{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mf-grid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mf-grid--5{ grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }

/* ---------- Product card ---------- */
.mf-card{
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--mf-radius);
    overflow: hidden;
    box-shadow: var(--mf-shadow);
    transition: transform .22s ease, box-shadow .22s ease;
}
.mf-card:hover{ transform: translateY(-4px); box-shadow: var(--mf-shadow-hover); }
.mf-card__media{
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    background: #fff;
    border-bottom: 1px solid var(--mf-line);
    overflow: hidden;
}
.mf-card__media img{
    width: 78%; height: 78%;
    object-fit: contain;
    transition: transform .3s ease;
}
.mf-card:hover .mf-card__media img{ transform: scale(1.06); }
.mf-card__quick{
    position: absolute;
    top: 10px; right: 10px;
    z-index: 2;
    width: 34px; height: 34px;
    border: 0;
    border-radius: 50%;
    display: grid; place-items: center;
    background: #fff;
    color: var(--mf-ink);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
    transition: background .18s ease, color .18s ease;
}
.mf-card__quick svg{ width: 17px; height: 17px; }
.mf-card__quick:hover{ background: var(--mf-dark); color: #fff; }
.mf-card__body{ display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; flex: 1; }
.mf-card__name{
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--mf-ink);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.mf-card__name:hover{ color: var(--mf-accent); }
.mf-card__row{ display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.mf-card__price{ display: flex; flex-direction: column; line-height: 1.2; }
.mf-card__price strong{ font-size: 17px; font-weight: 800; color: var(--mf-ink); }
.mf-card__price del{ font-size: 12.5px; color: var(--mf-muted); }
.mf-card__price--center{ flex-direction: row; justify-content: center; align-items: baseline; gap: 6px; }
.mf-card__price--center strong{ font-size: 15px; color: var(--mf-accent); }
.mf-card.is-out .mf-card__media img{ opacity: .45; filter: grayscale(.6); }

/* five-up rows: slightly tighter full cards */
.mf-grid--5 > .mf-card--full .mf-card__body{ padding: 12px 12px 14px; }
.mf-grid--5 > .mf-card--full .mf-card__name{ font-size: 13px; }
.mf-grid--5 > .mf-card--full .mf-card__price strong{ font-size: 15px; }
.mf-grid--5 > .mf-card--full .mf-btn--sm{ padding: 8px 12px; font-size: 12px; }

/* compact variant (Best Selling grid) */
.mf-card--compact{ box-shadow: none; border: 1px solid var(--mf-line); text-align: center; }
.mf-card--compact:hover{ border-color: var(--mf-mint-deep); }
.mf-card--compact .mf-card__media,
.mf-card--compact:nth-child(even) .mf-card__media{ background: #fff; }
.mf-card--compact .mf-card__media{ border-bottom: 0; }
.mf-card--compact .mf-card__media img{ width: 72%; height: 72%; }
.mf-card--compact .mf-card__body{ padding: 4px 12px 14px; gap: 6px; }
.mf-card--compact .mf-card__name{ font-size: 13px; font-weight: 500; }
.mf-card__add{
    margin-top: 4px;
    padding: 8px 0;
    border: 1px solid var(--mf-line);
    border-radius: 999px;
    background: #fff;
    color: var(--mf-ink);
    font-size: 12px; font-weight: 600; line-height: 1;
    font-family: inherit;
    cursor: pointer;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s ease, transform .2s ease, background .18s ease, color .18s ease;
}
.mf-card--compact:hover .mf-card__add,
.mf-card__add:focus-visible{ opacity: 1; transform: none; }
.mf-card__add:hover{ background: var(--mf-dark); color: #fff; border-color: var(--mf-dark); }
.mf-card__add:disabled{ display: none; }

/* ---------- Daily best sells ---------- */
.mf-daily{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}
.mf-feature{
    display: flex;
    flex-direction: column;
    border-radius: var(--mf-radius);
    overflow: hidden;
    background: var(--mf-mint);
    min-height: 100%;
}
.mf-feature__media{ flex: 1 1 auto; min-height: 240px; position: relative; }
.mf-feature__media img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mf-feature__leaves,
.mf-faq__media .mf-feature__leaves{
    position: absolute; inset: 0;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237cc49c' fill-opacity='.55'%3E%3Cpath d='M17 8C8 10 5.9 16.2 3.8 21.3l1.9.7.9-2.3c.5.2 1 .3 1.4.3C19 20 22 3 22 3c-1 2-8 2.3-13 3.3S2 11.5 2 13.5s1.8 3.8 1.8 3.8C7 8 17 8 17 8Z'/%3E%3C/svg%3E") center / 38% no-repeat,
        radial-gradient(circle at 20% 15%, rgba(255,255,255,.7), transparent 45%),
        linear-gradient(150deg, #eef8f4, #cfeadf);
}
.mf-feature__text{ padding: 28px 28px 30px; }
.mf-feature__text h3{ margin: 0 0 10px; font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.4px; }
.mf-feature__text p{ margin: 0 0 20px; font-size: 14px; line-height: 1.6; color: var(--mf-body); }

/* ---------- Deals of the day ---------- */
.mf-deals{
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
}
.mf-deals--single{ grid-template-columns: 1fr; }
.mf-deal{
    position: relative;
    display: block;
    min-height: 260px;
    border-radius: var(--mf-radius);
    overflow: hidden;
    background: var(--mf-sand);
    color: #fff;
    text-decoration: none;
}
.mf-deal img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mf-deal:hover img{ transform: scale(1.05); }
.mf-deal__overlay{
    position: absolute; inset: auto 0 0 0;
    padding: 22px;
    background: linear-gradient(0deg, rgba(20,32,25,.78), rgba(20,32,25,0));
}
.mf-deal__overlay .mf-tag{ position: static; display: inline-block; margin-bottom: 8px; }
.mf-deal__overlay h3{ margin: 0 0 6px; font-size: 20px; font-weight: 700; color: #fff; }
.mf-deal__cta{ font-size: 13px; font-weight: 600; opacity: .9; }
.mf-timer{ display: flex; gap: 8px; margin-top: 10px; }
.mf-timer div{
    min-width: 54px;
    padding: 7px 6px;
    border-radius: 10px;
    background: rgba(255,255,255,.95);
    color: var(--mf-ink);
    text-align: center;
}
.mf-timer strong{ display: block; font-size: 17px; font-weight: 800; }
.mf-timer span{ font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--mf-muted); }

/* ---------- Promo banner ---------- */
.mf-promo{
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 24px;
    min-height: 220px;
    padding: 36px 48px;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--mf-ink);
    background:
        radial-gradient(circle at 92% 10%, rgba(255,255,255,.35) 0 90px, transparent 91px),
        linear-gradient(120deg, #f6d6e4 0%, #efc3d8 55%, #e9b6cf 100%);
}
.mf-promo__text h2{ margin: 14px 0 8px; font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; line-height: 1.15; letter-spacing: -.6px; }
.mf-promo__text p{ margin: 0 0 20px; font-size: 14px; color: #6d4b5a; }
.mf-promo__media{ display: flex; justify-content: flex-end; align-items: flex-end; gap: 0; height: 100%; }
.mf-promo__media > img:only-child{ max-height: 220px; width: auto; border-radius: 14px; object-fit: cover; }
.mf-promo__pack{
    width: 34%;
    aspect-ratio: 3/4;
    object-fit: contain;
    background: #fff;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 16px 30px -10px rgba(110,40,80,.35);
    transform: rotate(-6deg) translateY(6px);
}
.mf-promo__pack + .mf-promo__pack{ margin-left: -18px; transform: rotate(3deg) translateY(-8px); }
.mf-promo__pack + .mf-promo__pack + .mf-promo__pack{ transform: rotate(8deg) translateY(4px); }
.mf-promo:hover .mf-btn--light{ background: var(--mf-dark); color: #fff; }

/* ---------- Healthy choices / FAQ ---------- */
.mf-faq{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
}
.mf-faq__media{
    position: relative;
    min-height: 340px;
    border-radius: var(--mf-radius);
    overflow: hidden;
    background: var(--mf-mint);
}
.mf-faq__media img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mf-faq__badge{
    position: absolute;
    left: 18px; bottom: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,.95);
    box-shadow: var(--mf-shadow);
    display: flex; flex-direction: column; gap: 2px;
}
.mf-faq__badge strong{ font-size: 14px; }
.mf-faq__badge span{ font-size: 12px; color: var(--mf-body); }
.mf-faq__list{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border-radius: var(--mf-radius);
    background: var(--mf-mint-soft);
}
.mf-faq__item{
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--mf-line);
    transition: box-shadow .2s ease;
}
.mf-faq__item[open]{ box-shadow: var(--mf-shadow); }
.mf-faq__item summary{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.mf-faq__item summary::-webkit-details-marker{ display: none; }
.mf-faq__item summary i{
    position: relative;
    flex: 0 0 22px; height: 22px;
    border-radius: 50%;
    background: var(--mf-mint);
}
.mf-faq__item summary i::before,
.mf-faq__item summary i::after{
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 10px; height: 2px;
    margin: -1px 0 0 -5px;
    border-radius: 2px;
    background: var(--mf-ink);
    transition: transform .2s ease;
}
.mf-faq__item summary i::after{ transform: rotate(90deg); }
.mf-faq__item[open] summary i::after{ transform: rotate(0); }
.mf-faq__item p{ margin: 0; padding: 0 18px 16px; font-size: 13.5px; line-height: 1.65; color: var(--mf-body); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px){
    .mf-grid--5{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 992px){
    .mf-section{ padding: 48px 0; }
    .mf-hero{ padding: 40px 0 36px; }
    .mf-hero__shape{ width: 100%; top: auto; height: 45%; border-radius: 50% 50% 0 0 / 30% 30% 0 0; }
    .mf-hero__slide.is-active{ grid-template-columns: 1fr; gap: 32px; }
    .mf-hero__media{ max-width: 560px; width: 100%; margin: 0 auto; padding-left: 20px; }
    .mf-hero__card{ left: 0; }
    .mf-grid--4{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mf-grid--5{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mf-daily, .mf-faq{ grid-template-columns: 1fr; }
    .mf-deals{ grid-template-columns: 1fr 1fr; }
    .mf-deal--main{ grid-column: 1 / -1; }
    .mf-card__add{ opacity: 1; transform: none; }
}
@media (max-width: 640px){
    .mf-section{ padding: 40px 0; }
    .mf-head{ justify-content: space-between; }
    .mf-head h2{ text-align: left; }
    .mf-head .mf-link{ position: static; transform: none; }
    .mf-head--center h2::after{ margin-left: 0; }
    .mf-hero__perks{ gap: 18px; }
    .mf-hero__perks li + li{ padding-left: 18px; }
    .mf-hero__card{ width: 190px; padding: 12px 14px; }
    .mf-scroller__btn{ width: 34px; height: 34px; top: 40px; }
    .mf-scroller__btn--prev{ left: -4px; }
    .mf-scroller__btn--next{ right: -4px; }
    .mf-cat{ flex: 0 0 84px; scroll-snap-align: start; }
    .mf-cat__bubble{ width: 80px; height: 80px; }
    .mf-cat__name{ font-size: 12.5px; }
    .mf-grid{ gap: 12px; }
    .mf-grid--4, .mf-grid--5, .mf-grid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mf-card__row{ flex-direction: column; align-items: stretch; }
    .mf-card__row .mf-btn{ width: 100%; }
    .mf-deals{ grid-template-columns: 1fr; }
    .mf-deal{ min-height: 200px; }
    .mf-promo{ grid-template-columns: 1fr; padding: 28px 24px; }
    .mf-promo__media{ justify-content: center; }
    .mf-faq__media{ min-height: 240px; }
}

/* =====================================================================
   Footer + newsletter band (Market Fresh only: footer.blade.php adds
   .mf-news and .sf-footer--mf only for this layout)
   ===================================================================== */
body.sf-theme-market_fresh .sf-footer--mf{
    --mf-accent: var(--sf-green, #3f9b6e);
    background: #14201a;
    color: #b4c2b9;
    margin-top: 0;
    font-size: 14px;
    position: relative;
    padding-top: 90px; /* room for the overlapping newsletter card */
}
body.sf-theme-market_fresh .mf-news + .sf-feature-strip{ padding-top: 100px; margin-top: -90px; position: relative; z-index: 1; }
body.sf-theme-market_fresh .mf-news + .sf-footer--mf{ margin-top: -90px; }

/* ---------- Newsletter band ---------- */
.mf-news{
    position: relative;
    z-index: 3;
    padding: 64px 0 0;
    background: transparent;
}
.mf-news__card{
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 32px;
    padding: 40px 48px;
    border-radius: 22px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 92% -20%, rgba(255,255,255,.18) 0 160px, transparent 161px),
        radial-gradient(circle at 70% 130%, rgba(255,255,255,.10) 0 130px, transparent 131px),
        linear-gradient(120deg, var(--sf-green-dark, #2f7a57) 0%, var(--sf-green, #3f9b6e) 100%);
    box-shadow: 0 24px 48px -18px rgba(20,32,26,.55);
}
.mf-news__text{ display: flex; align-items: center; gap: 18px; }
.mf-news__icon{
    flex: 0 0 56px; height: 56px;
    display: grid; place-items: center;
    border-radius: 16px;
    background: rgba(255,255,255,.16);
}
.mf-news__icon svg{ width: 28px; height: 28px; }
.mf-news__text h3{ margin: 0 0 6px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -.4px; color: #fff; line-height: 1.2; }
.mf-news__text p{ margin: 0; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.86); }
.mf-news__form form{
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 24px -10px rgba(0,0,0,.35);
}
.mf-news__form input[type=email]{
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #1f2d27;
    font-size: 14px;
    outline: none;
}
.mf-news__form input::placeholder{ color: #8a9892; }
.mf-news__form button{
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0 24px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: #1c2b24;
    color: #fff;
    font-size: 14px; font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s ease;
}
.mf-news__form button svg{ width: 16px; height: 16px; transition: transform .18s ease; }
.mf-news__form button:hover{ background: #0f1a15; }
.mf-news__form button:hover svg{ transform: translateX(3px); }
.mf-news__form small{ display: block; margin: 10px 0 0 18px; font-size: 12px; color: rgba(255,255,255,.75); }
.mf-news__msg{ margin: 10px 0 0 18px; font-size: 13px; font-weight: 600; color: #fff; }
.mf-news__msg--error{ color: #ffd9d2; }

/* ---------- Footer columns ---------- */
.sf-footer--mf .sf-footer-top{ padding: 56px 0 36px; }
.sf-footer--mf .sf-footer-grid{
    grid-template-columns: 1.7fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
}
.sf-footer--mf .sf-footer-brand{ order: -1; }
.sf-footer--mf .sf-footer-col--contact{ order: 5; }
.sf-footer--mf .sf-footer-logo{ display: inline-block; margin-bottom: 16px; text-decoration: none; }
.sf-footer--mf .sf-footer-logo img{ max-height: 44px; width: auto; }
.sf-footer--mf .sf-footer-logo span{ font-size: 24px; font-weight: 800; letter-spacing: -.5px; color: #fff; }
.sf-footer--mf .sf-footer-brand p{ max-width: 320px; margin: 0 0 20px; color: #93a49a; line-height: 1.7; }
.sf-footer-social{ display: flex; flex-wrap: wrap; gap: 10px; }
.sf-footer-social a{
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    color: #d6e0da;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.sf-footer-social a:hover{ background: var(--mf-accent); color: #fff; transform: translateY(-3px); }

.sf-footer--mf .sf-footer-grid h5{
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
}
.sf-footer--mf .sf-footer-grid h5::after{
    content: "";
    position: absolute; left: 0; bottom: 0;
    width: 28px; height: 3px;
    border-radius: 3px;
    background: var(--mf-accent);
}
.sf-footer--mf .sf-footer-grid ul{ list-style: none; margin: 0; padding: 0; }
.sf-footer--mf .sf-footer-grid ul li{ margin-bottom: 11px; }
.sf-footer--mf .sf-footer-grid ul li a{
    display: inline-block;
    color: #a9b9af;
    text-decoration: none;
    transition: color .15s ease, transform .15s ease;
}
.sf-footer--mf .sf-footer-grid ul li a:hover{ color: #fff; transform: translateX(4px); }

.sf-footer--mf .sf-footer-contact{
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 14px;
    color: #a9b9af;
    line-height: 1.55;
}
.sf-footer--mf .sf-fc-ico{
    flex: 0 0 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--mf-accent);
    color: #fff;
    font-style: normal;
}
.sf-footer--mf .sf-fc-ico svg{ width: 17px; height: 17px; }
.sf-footer--mf .sf-footer-contact span,
.sf-footer--mf .sf-footer-contact a{ align-self: center; color: #a9b9af; text-decoration: none; word-break: break-word; }
.sf-footer--mf .sf-footer-contact a:hover{ color: #fff; text-decoration: none; }

/* ---------- Bottom bar ---------- */
.sf-footer--mf .sf-footer-bottom{
    padding: 22px 15px;
    border-top: 1px solid rgba(255,255,255,.09);
    gap: 14px 24px;
    color: #7f9086;
}
.sf-footer--mf .sf-footer-payments--bar{ margin: 0; max-width: 230px; max-height: 34px; width: auto; opacity: .9; }
.sf-footer--mf .sf-powered-by a{ color: #a9b9af; border-bottom-color: rgba(255,255,255,.2); }

/* ---------- Footer responsive ---------- */
@media (max-width: 1100px){
    .sf-footer--mf .sf-footer-grid{ grid-template-columns: 1.4fr 1fr 1fr; }
    .sf-footer--mf .sf-footer-brand{ grid-column: 1 / -1; }
    .sf-footer--mf .sf-footer-col--contact{ order: 0; grid-column: 1 / -1; }
}
@media (max-width: 992px){
    .mf-news__card{ grid-template-columns: 1fr; padding: 32px 28px; gap: 24px; }
}
@media (max-width: 640px){
    body.sf-theme-market_fresh .sf-footer--mf{ padding-top: 70px; }
    body.sf-theme-market_fresh .mf-news + .sf-footer--mf{ margin-top: -70px; }
    .mf-news{ padding-top: 40px; }
    .mf-news__card{ padding: 26px 20px; border-radius: 18px; }
    .mf-news__text{ align-items: flex-start; gap: 14px; }
    .mf-news__icon{ flex-basis: 46px; height: 46px; border-radius: 13px; }
    .mf-news__form form{ flex-direction: column; border-radius: 18px; padding: 8px; }
    .mf-news__form button{ justify-content: center; }
    .mf-news__form small, .mf-news__msg{ margin-left: 4px; }
    .sf-footer--mf .sf-footer-grid{ grid-template-columns: 1fr 1fr; gap: 28px 20px; }
    .sf-footer--mf .sf-footer-brand,
    .sf-footer--mf .sf-footer-col--contact{ grid-column: 1 / -1; }
    .sf-footer--mf .sf-footer-bottom{ flex-direction: column; align-items: flex-start; }
}

/* Phone app shell (mobile-app.css hides the link columns: they live in the menu). Keep brand + contacts readable. */
@media (max-width: 820px){
    .sf-footer--mf .sf-footer-grid{ display: block; }
    .sf-footer--mf .sf-footer-grid > .sf-footer-brand,
    .sf-footer--mf .sf-footer-grid > .sf-footer-col--contact{ display: block; }
    .sf-footer--mf .sf-footer-grid > .sf-footer-brand p{ margin: 0 0 16px; font-size: 13.5px; line-height: 1.65; }
    .sf-footer--mf .sf-footer-grid > .sf-footer-col--contact{ margin-top: 26px; }
    .sf-footer--mf .sf-footer-grid > .sf-footer-col--contact .sf-footer-contact{ font-size: 13px; }
    .sf-footer--mf .sf-footer-top{ padding: 26px 18px 12px; }
    .sf-footer--mf .sf-footer-bottom{ padding: 16px 18px 20px; flex-direction: column; align-items: flex-start; gap: 12px; }
    .sf-footer--mf .sf-footer-contact a{ padding: 0 !important; display: inline !important; }
}

/* =====================================================================
   Inner pages (products, category, brand, specials, flash sale, product
   detail, cart, checkout, account, auth, contact...) in the Market Fresh
   look. These restyle the SHARED storefront components, scoped to
   body.sf-theme-market_fresh, so no other layout is affected and no
   markup or behaviour changes.
   ===================================================================== */
body.sf-theme-market_fresh{
    --mf-ink: #1f2d27;
    --mf-body: #56655e;
    --mf-muted: #8a9892;
    --mf-mint: #dff1ea;
    --mf-mint-soft: #eef8f4;
    --mf-mint-deep: #bfe3d6;
    --mf-sand: #f4ede1;
    --mf-dark: #26372f;
    --mf-dark-hover: #142019;
    --mf-accent: var(--sf-green, #3f9b6e);
    --mf-sale: #e5533d;
    --mf-line: #e7eeeb;
    --mf-radius: 14px;
    --mf-shadow: 0 1px 2px rgba(31,45,39,.04), 0 6px 20px rgba(31,45,39,.06);
    --mf-shadow-hover: 0 2px 4px rgba(31,45,39,.06), 0 14px 32px rgba(31,45,39,.12);
    font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #fff;
}

/* ---------- Breadcrumb + page title bar ---------- */
body.sf-theme-market_fresh .sf-breadcrumb{
    background: var(--mf-mint-soft);
    border-bottom: 0;
    padding: 16px 0;
    font-size: 13px;
}
body.sf-theme-market_fresh .sf-breadcrumb a{ color: var(--mf-body); text-decoration: none; }
body.sf-theme-market_fresh .sf-breadcrumb a:hover{ color: var(--mf-accent); }
body.sf-theme-market_fresh .sf-breadcrumb .sf-crumb-sep{ color: var(--mf-mint-deep); }
body.sf-theme-market_fresh .sf-breadcrumb strong{ color: var(--mf-ink); font-weight: 700; }
body.sf-theme-market_fresh .sf-page-title-bar{
    background: var(--mf-mint);
    border-bottom: 0;
    padding: 38px 0;
}
body.sf-theme-market_fresh .sf-page-title-bar h1{ color: var(--mf-ink); font-size: clamp(24px, 3vw, 32px); letter-spacing: -.5px; }

/* ---------- Section headings ---------- */
body.sf-theme-market_fresh .sf-section-head{ border-bottom: 1px solid var(--mf-line); padding-bottom: 16px; margin-bottom: 22px; }
body.sf-theme-market_fresh .sf-section-title{
    text-transform: none;
    letter-spacing: -.4px;
    font-size: clamp(21px, 2.3vw, 26px);
    font-weight: 700;
    color: var(--mf-ink);
}
body.sf-theme-market_fresh .sf-section-title::before{
    width: 5px; height: 24px;
    border-radius: 4px;
    background: var(--mf-accent);
}
body.sf-theme-market_fresh .sf-section-link{ color: var(--mf-ink); }
body.sf-theme-market_fresh .sf-section-link:hover{ color: var(--mf-accent); }

/* Sort box (inline-styled in the view, hence !important) */
body.sf-theme-market_fresh #sf-sort,
body.sf-theme-market_fresh .sf-toolbar select{
    border: 1px solid var(--mf-line) !important;
    border-radius: 999px !important;
    padding: 9px 16px !important;
    background-color: #fff;
    color: var(--mf-ink);
    font-weight: 600;
    cursor: pointer;
}
body.sf-theme-market_fresh #sf-sort:focus{ outline: none; border-color: var(--mf-accent) !important; }

/* ---------- Sidebar ---------- */
body.sf-theme-market_fresh .sf-sidebar{
    border: 0;
    border-radius: 18px;
    background: var(--mf-mint-soft);
    padding: 22px 16px 16px;
}
body.sf-theme-market_fresh .sf-sidebar h4{
    margin: 0 0 14px 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--mf-ink);
}
body.sf-theme-market_fresh .sf-sidebar ul{ list-style: none; margin: 0; padding: 0; }
body.sf-theme-market_fresh .sf-sidebar ul li a{
    padding: 10px 12px;
    margin-bottom: 2px;
    border: 0;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--mf-body);
    transition: background .15s ease, color .15s ease, padding-left .15s ease;
}
body.sf-theme-market_fresh .sf-sidebar ul li a:hover{ background: #fff; color: var(--mf-ink); padding-left: 16px; }
body.sf-theme-market_fresh .sf-sidebar ul li a.active{ background: var(--mf-dark); color: #fff; font-weight: 700; }
body.sf-theme-market_fresh .sf-sidebar ul li a span{ color: var(--mf-muted); }
body.sf-theme-market_fresh .sf-sidebar ul li a.active span{ color: rgba(255,255,255,.7); }
body.sf-theme-market_fresh .sf-cat-head{ border: 0; border-radius: 18px; background: var(--mf-mint-soft); padding: 22px 26px; }
body.sf-theme-market_fresh .sf-cat-head h1{ color: var(--mf-ink); font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.5px; }
body.sf-theme-market_fresh .sf-cat-head p{ color: var(--mf-body); }

/* ---------- Product cards (listings, rails, brand, specials, flash sale) ---------- */
body.sf-theme-market_fresh .sf-grid{ gap: 20px; }
body.sf-theme-market_fresh .sf-product-card{
    border: 0;
    border-radius: var(--mf-radius);
    background: #fff;
    text-align: left;
    box-shadow: var(--mf-shadow);
    transition: transform .22s ease, box-shadow .22s ease;
}
body.sf-theme-market_fresh .sf-product-card:hover{ transform: translateY(-4px); box-shadow: var(--mf-shadow-hover); }
body.sf-theme-market_fresh .sf-product-thumb{
    background: #fff;
    border-bottom: 1px solid var(--mf-line);
}
body.sf-theme-market_fresh .sf-product-thumb img{
    inset: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
    border-radius: 10px;
    transition: transform .3s ease;
}
body.sf-theme-market_fresh .sf-product-card:hover .sf-product-thumb img{ transform: scale(1.05); }
body.sf-theme-market_fresh .sf-badge{
    top: 10px; left: 10px; right: auto;
    padding: 4px 9px;
    border-radius: 6px;
    background: var(--mf-sale);
    color: #fff;
    font-size: 11px;
    letter-spacing: .2px;
}
body.sf-theme-market_fresh .sf-badge.sf-badge-new{ background: var(--mf-accent); color: #fff; }
body.sf-theme-market_fresh .sf-product-body{ padding: 14px 16px 16px; align-items: stretch; gap: 10px; }
body.sf-theme-market_fresh .sf-product-name{
    color: var(--mf-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    min-height: 2.7em;
    text-transform: none;
}
body.sf-theme-market_fresh .sf-product-name:hover{ color: var(--mf-accent); }
body.sf-theme-market_fresh .sf-product-price{ justify-content: flex-start; align-items: baseline; }
body.sf-theme-market_fresh .sf-price-now{ font-size: 18px; font-weight: 800; color: var(--mf-ink); }
body.sf-theme-market_fresh .sf-price-old{ color: var(--mf-muted); }

/* qty + cart row: small pill field and a dark pill button */
body.sf-theme-market_fresh .sf-product-actions{ gap: 8px; padding-top: 4px; justify-content: stretch; }
body.sf-theme-market_fresh .sf-product-actions .sf-qty-label{
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
body.sf-theme-market_fresh .sf-product-actions .sf-qty-input{
    width: 58px; height: 40px;
    border: 1px solid var(--mf-line);
    border-radius: 999px;
    text-align: center;
    padding: 0 4px;
    color: var(--mf-ink);
    font-weight: 600;
    background: #fff;
}
body.sf-theme-market_fresh .sf-product-actions .sf-qty-input:focus{ border-color: var(--mf-accent); }
body.sf-theme-market_fresh .sf-cart-btn{
    flex: 1 1 auto;
    width: auto; height: 40px;
    border: 0;
    border-radius: 999px;
    background: var(--mf-dark);
    color: #fff;
    transition: background .18s ease, transform .18s ease;
}
body.sf-theme-market_fresh .sf-cart-btn:hover{ background: var(--mf-accent); border-color: transparent; color: #fff; }
body.sf-theme-market_fresh .sf-cart-btn:active{ transform: scale(.97); }

/* ---------- Buttons ---------- */
body.sf-theme-market_fresh .sf-btn{
    border-radius: 999px;
    padding: 13px 28px;
    font-weight: 700;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
body.sf-theme-market_fresh .sf-btn:not(.sf-btn-outline):not(.sf-btn-gold){ background: var(--mf-dark); color: #fff; }
body.sf-theme-market_fresh .sf-btn:not(.sf-btn-outline):not(.sf-btn-gold):hover{ background: var(--mf-accent); color: #fff; }
body.sf-theme-market_fresh .sf-btn-outline{ border: 1.5px solid var(--mf-dark); color: var(--mf-dark); }
body.sf-theme-market_fresh .sf-btn-outline:hover{ background: var(--mf-dark); color: #fff; }

/* ---------- Pagination ---------- */
body.sf-theme-market_fresh .sf-pagination .page-item .page-link{
    min-width: 40px; height: 40px;
    border: 0;
    border-radius: 999px;
    background: var(--mf-mint-soft);
    color: var(--mf-ink);
    font-weight: 600;
}
body.sf-theme-market_fresh .sf-pagination .page-item .page-link:hover{ background: var(--mf-mint); color: var(--mf-ink); }
body.sf-theme-market_fresh .sf-pagination .page-item.active .page-link{ background: var(--mf-dark); color: #fff; }
body.sf-theme-market_fresh .sf-pagination .page-item.disabled .page-link{ background: #f4f7f6; color: #c2cbc7; }

/* ---------- Product detail ---------- */
body.sf-theme-market_fresh .sf-detail-price .sf-price-now{ color: var(--mf-ink); font-weight: 800; }
body.sf-theme-market_fresh .sf-qty-box{ border-color: var(--mf-line); border-radius: 999px; overflow: hidden; background: #fff; }
body.sf-theme-market_fresh .sf-qty-box button{ color: var(--mf-ink); }
body.sf-theme-market_fresh .sf-qty-box button:hover{ background: var(--mf-mint-soft); }
body.sf-theme-market_fresh .sf-tabs-nav button.active,
body.sf-theme-market_fresh .sf-tabs-nav button:hover,
body.sf-theme-market_fresh .sf-tabs-head button.active,
body.sf-theme-market_fresh .sf-tabs-head button:hover{ color: var(--mf-accent); }

/* ---------- Cards, forms, cart, checkout, account, auth ---------- */
body.sf-theme-market_fresh .sf-card,
body.sf-theme-market_fresh .sf-cart-summary{
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--mf-shadow);
}
body.sf-theme-market_fresh .sf-cart-summary{ background: var(--mf-mint-soft); box-shadow: none; padding: 24px; }
body.sf-theme-market_fresh .sf-summary-row.sf-total{ border-top-color: var(--mf-mint-deep); }
body.sf-theme-market_fresh .sf-cart-table{ border-radius: 14px; overflow: hidden; }
body.sf-theme-market_fresh .sf-cart-table th{ border-bottom: 2px solid var(--mf-mint); color: var(--mf-muted); letter-spacing: .6px; }
body.sf-theme-market_fresh .sf-cart-table td{ border-bottom-color: var(--mf-line); }
body.sf-theme-market_fresh .sf-cart-product img{ border: 0; border-radius: 12px; background: var(--mf-sand); }
body.sf-theme-market_fresh .sf-form-group label{ color: var(--mf-ink); }
body.sf-theme-market_fresh .sf-form-group input,
body.sf-theme-market_fresh .sf-form-group textarea,
body.sf-theme-market_fresh .sf-form-group select{
    border: 1px solid var(--mf-line);
    border-radius: 12px;
    padding: 12px 14px;
    background-color: #fbfdfc;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
body.sf-theme-market_fresh .sf-form-group input:focus,
body.sf-theme-market_fresh .sf-form-group select:focus,
body.sf-theme-market_fresh .sf-form-group textarea:focus{
    background-color: #fff;
    border-color: var(--mf-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--mf-accent) 16%, transparent);
}
body.sf-theme-market_fresh .sf-alert{ border-radius: 12px; }
body.sf-theme-market_fresh .sf-empty svg{ color: var(--mf-mint-deep); }
body.sf-theme-market_fresh .sf-checkout-login-hint{ border-radius: 12px; background: var(--mf-mint-soft); border-color: var(--mf-mint); }

/* Phones: keep the card actions tidy in the 2-up grid */
@media (max-width: 640px){
    body.sf-theme-market_fresh .sf-grid{ gap: 12px; }
    body.sf-theme-market_fresh .sf-product-body{ padding: 12px 12px 14px; }
    body.sf-theme-market_fresh .sf-price-now{ font-size: 16px; }
    body.sf-theme-market_fresh .sf-product-actions .sf-qty-input{ width: 50px; }
}

/* ---------- Product detail polish ---------- */
body.sf-theme-market_fresh .sf-gallery-main{
    border: 0;
    border-radius: 20px;
    background: var(--mf-sand);
    box-shadow: var(--mf-shadow);
    overflow: hidden;
    padding: 18px;
}
body.sf-theme-market_fresh .sf-gallery-main img{ border-radius: 12px; }
body.sf-theme-market_fresh .sf-gallery-thumbs button{ border: 2px solid transparent; border-radius: 12px; background: var(--mf-mint-soft); overflow: hidden; }
body.sf-theme-market_fresh .sf-gallery-thumbs button.active,
body.sf-theme-market_fresh .sf-gallery-thumbs button:hover{ border-color: var(--mf-accent); }
body.sf-theme-market_fresh .sf-product-summary h1{
    text-transform: none;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -.6px;
    color: var(--mf-ink);
    line-height: 1.15;
}
body.sf-theme-market_fresh .sf-detail-price .sf-price-now{ font-size: 30px; }
body.sf-theme-market_fresh .sf-short-desc{ color: var(--mf-body); }
body.sf-theme-market_fresh .sf-product-meta dd a{ color: var(--mf-accent); }
body.sf-theme-market_fresh .sf-in-stock{ color: var(--mf-accent); }
body.sf-theme-market_fresh .sf-tag-pill{ border-radius: 999px; background: var(--mf-mint-soft); border-color: transparent; color: var(--mf-ink); }
body.sf-theme-market_fresh .sf-tag-pill:hover{ background: var(--mf-dark); color: #fff; }
body.sf-theme-market_fresh .sf-detail-tabs{ border-radius: 18px; border: 0; box-shadow: var(--mf-shadow); overflow: hidden; }
body.sf-theme-market_fresh .sf-tabs-head{ background: var(--mf-mint-soft); border-bottom: 0; }

/* ---------- Footer bottom bar: legal text left, payment logos right ---------- */
.sf-footer--mf .sf-footer-bottom{ justify-content: space-between; }
.sf-footer-legal{ display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.sf-footer-legal--plain{ display: contents; } /* other layouts: children behave as before */
.sf-footer--mf .sf-powered-by a,
.sf-footer--mf .sf-powered-by a:hover,
.sf-footer--mf .sf-powered-by a:focus{
    color: inherit;
    border-bottom: 0;
    text-decoration: none;
}
.sf-footer--mf .sf-footer-payments--bar{ margin-left: auto; }
@media (max-width: 820px){
    .sf-footer--mf .sf-footer-legal{ flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 4px 8px; font-size: 12px; white-space: nowrap; }
    .sf-footer--mf .sf-footer-payments--bar{ margin-left: 0; }
}

/* ---------- Header search: larger pill (Market Fresh) ---------- */
body.sf-theme-market_fresh .sf-header .sf-container{ gap: 32px; }
body.sf-theme-market_fresh .sf-search{
    max-width: 820px;
    align-items: center;
    padding: 5px;
    background: #fff;
    border: 1.5px solid var(--mf-line);
    border-radius: 999px;
    box-shadow: var(--mf-shadow);
    transition: border-color .18s ease, box-shadow .18s ease;
}
body.sf-theme-market_fresh .sf-search:focus-within{
    border-color: var(--mf-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--mf-accent) 16%, transparent);
}
body.sf-theme-market_fresh .sf-search select{
    height: 44px;
    max-width: 190px;
    margin-right: 6px;
    padding: 0 34px 0 18px;
    border: 0;
    border-radius: 999px;
    background-color: var(--mf-mint-soft);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%2356655e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: var(--mf-ink);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-overflow: ellipsis;
}
body.sf-theme-market_fresh .sf-search select:hover{ background-color: var(--mf-mint); }
body.sf-theme-market_fresh .sf-search input[type="text"]{
    height: 44px;
    padding: 0 16px;
    border: 0;
    background: transparent;
    color: var(--mf-ink);
    font-size: 15px;
}
body.sf-theme-market_fresh .sf-search input[type="text"]::placeholder{ color: var(--mf-muted); }
body.sf-theme-market_fresh .sf-search button{
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--mf-dark);
    color: #fff;
    transition: background .18s ease, transform .18s ease;
}
body.sf-theme-market_fresh .sf-search button:hover{ background: var(--mf-accent); }
body.sf-theme-market_fresh .sf-search button:active{ transform: scale(.94); }
body.sf-theme-market_fresh .sf-search button svg{ width: 20px; height: 20px; }
@media (max-width: 992px){
    body.sf-theme-market_fresh .sf-search{ max-width: none; }
}

/* ---------- Topbar contacts: phone + email on the left (Market Fresh) ---------- */
.sf-topbar-left{ display: flex; align-items: center; gap: 22px; min-width: 0; }
.sf-topbar-contact{ display: flex; align-items: center; gap: 22px; }
.sf-topbar-contact a{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--sf-text-muted);
    font-size: 12.5px;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease;
}
.sf-topbar-contact a svg{ width: 14px; height: 14px; flex: 0 0 auto; color: var(--mf-accent, var(--sf-green)); }
.sf-topbar-contact a:hover{ color: var(--mf-ink, var(--sf-text)); }
.sf-topbar-contact a:hover svg{ color: inherit; }
@media (max-width: 992px){
    .sf-topbar-left{ flex-direction: column; gap: 6px; }
    .sf-topbar-contact{ gap: 16px; flex-wrap: wrap; justify-content: center; }
}

/* ---------- Product images: one consistent size/fit in every card ---------- */
.mf-card__media{ padding: 14px; box-sizing: border-box; }
.mf-card__media img,
.mf-card--full .mf-card__media img{
    width: 100%; height: 100%;
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply;   /* photos with a light-grey backdrop blend into the white panel */
}
.mf-daily .mf-card__media{ aspect-ratio: 5 / 4; }

/* Sort / Show selects: fixed height so the text isn't clipped */
body.sf-theme-market_fresh #sf-sort,
body.sf-theme-market_fresh .sf-toolbar select{
    height: 40px !important;
    min-height: 40px;
    padding: 0 34px 0 16px !important;
    line-height: 1.2 !important;
    font-size: 13.5px;
    box-sizing: border-box;
}

/* ---------- Hero image slider (images from Admin > Slider) ---------- */
.mf-hero__frame{ position: relative; }
.mf-hero__frame .mf-hero__img{ position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.mf-hero__frame .mf-hero__img.is-active{ opacity: 1; z-index: 1; }
.mf-hero__nav{ position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--mf-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.18); opacity: 0; transition: opacity .2s; }
.mf-hero__nav svg{ width: 18px; height: 18px; }
.mf-hero__nav--prev{ left: 12px; }
.mf-hero__nav--next{ right: 12px; }
.mf-hero__frame:hover .mf-hero__nav, .mf-hero__nav:focus-visible{ opacity: 1; }
.mf-hero__dots--on-image{ position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; margin: 0; }
.mf-hero__dots--on-image button{ background: rgba(255,255,255,.7); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.mf-hero__dots--on-image button.is-active{ background: #fff; }
@media (hover: none){ .mf-hero__nav{ display: none; } }

/* Keep slider images (z-index) inside the frame, below the heart and info card */
.mf-hero__frame{ isolation: isolate; z-index: 0; }
.mf-hero__heart, .mf-hero__card{ z-index: 5; }

/* Product page photo panels: always white with a border */
body.sf-theme-market_fresh .sf-gallery-main,
body.sf-theme-market_fresh .sf-gallery-thumbs button{
    background: #fff !important;
    border: 1px solid var(--mf-line, #e7e7e7) !important;
}
body.sf-theme-market_fresh .sf-gallery-thumbs button.active,
body.sf-theme-market_fresh .sf-gallery-thumbs button:hover{ border-color: var(--mf-accent) !important; }

/* Hero badge: Halal mark in place of the heart */
.mf-hero__halal{ width: 64px; height: 64px; top: -10px; right: -10px; }
.mf-hero__halal svg{ width: 52px; height: 52px; }
