/* =============================================================================
   BEST SELLING ITEMS + CHECKOUT RECOMMENDATIONS (assets/js/fs-shortcuts.js)
   Theme tokens only (fs-theme.css), so light and dark follow the site.
   ============================================================================= */

/* ---------- BEST SELLING ITEMS: one row of shortcuts above Offers ---------- */
.menu-best { margin-bottom: 52px; scroll-margin-top: calc(var(--fs-menu-nav-top, 0px) + 92px); }
.menu-best__list {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px;
}
.menu-best__item { margin: 0; min-width: 0; }
.menu-best__card {
    position: relative; height: 100%;
    display: flex; flex-direction: column;
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xs);
    overflow: hidden;
    color: var(--ink); text-decoration: none;
    transition: transform var(--t-fast, .15s) var(--ease, ease), box-shadow var(--t-fast, .15s) var(--ease, ease), border-color var(--t-fast, .15s) var(--ease, ease);
}
.menu-best__card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--line-brand, var(--brand-300)); color: var(--ink); }
.menu-best__card:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 3px; }
.menu-best__media {
    position: relative; display: flex; align-items: center; justify-content: center;
    aspect-ratio: 5 / 4; background: var(--surface-muted, var(--n-50)); overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.menu-best__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu-best__media .fa-fire { font-size: 28px; color: var(--brand-500); }
.menu-best__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.menu-best__name {
    font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; line-height: 1.15;
    text-transform: uppercase; letter-spacing: .01em; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.menu-best__price { margin-top: auto; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--brand-500); }
.menu-best__price .fs-promo { font-size: 1rem; }
.menu-best__price .menu-card__from { font-size: 12px; }
.menu-best__sold {
    position: absolute; top: 10px; left: 10px; display: none;
    padding: 4px 10px; border-radius: var(--r-pill, 999px);
    background: rgba(18, 16, 15, .82); color: #fff;
    font: 700 11px/1.2 var(--font-ui, sans-serif); letter-spacing: .08em; text-transform: uppercase;
}
.menu-best__card.is-soldout .menu-best__sold { display: inline-block; }
.menu-best__card.is-soldout .menu-best__media img { filter: grayscale(.85); opacity: .6; }

@media (max-width: 1199px) {
    .menu-best__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* phones: one swipeable strip, so all six never push Offers far down the page */
@media (max-width: 767px) {
    .menu-best { margin-bottom: 32px; scroll-margin-top: calc(var(--fs-menu-nav-top, 0px) + 80px); }
    .menu-best__list {
        display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
        margin: 0 -16px; padding: 2px 16px 10px; scroll-padding-inline: 16px;
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .menu-best__list::-webkit-scrollbar { display: none; }
    .menu-best__item { flex: 0 0 44%; scroll-snap-align: start; }
    .menu-best__body { padding: 10px 12px 12px; }
    .menu-best__name { font-size: 1rem; }
    .menu-best__price { font-size: 1.05rem; }
}

/* ---------- the product's own card, outlined after a shortcut or a recommendation ---------- */
.menu-card.is-spot {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px var(--brand-500), 0 14px 34px rgba(90, 20, 12, .22);
    animation: fs-spot-pulse 1.1s ease-out 2;
}
@keyframes fs-spot-pulse {
    0%   { box-shadow: 0 0 0 3px var(--brand-500), 0 0 0 3px rgba(238, 106, 52, .55); }
    100% { box-shadow: 0 0 0 3px var(--brand-500), 0 0 0 18px rgba(238, 106, 52, 0); }
}

/* ---------- CHECKOUT RECOMMENDATIONS: above the basket drawer (.fsb z 1250) ---------- */
.fs-up { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; padding: 16px; }
.fs-up[hidden] { display: none; }
.fs-up__backdrop { position: absolute; inset: 0; background: rgba(18, 16, 15, .62); }
.fs-up__panel {
    position: relative; width: min(100%, 760px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
    display: flex; flex-direction: column;
    background: var(--surface); color: var(--ink);
    border-radius: var(--r-xl, 20px); box-shadow: var(--sh-xl, 0 24px 60px rgba(0, 0, 0, .3));
    overflow: hidden;
    animation: fs-up-in .24s cubic-bezier(.22, .61, .36, 1) both;
}
@keyframes fs-up-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.fs-up__close {
    position: absolute; top: 10px; right: 12px; z-index: 2;
    width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: var(--surface-muted, var(--n-100)); color: var(--ink);
    font-size: 26px; line-height: 1; cursor: pointer;
}
.fs-up__close:hover { background: var(--line); }
.fs-up__title {
    margin: 0; padding: 22px 64px 4px 24px;
    font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; line-height: 1.05;
    text-transform: uppercase; color: var(--ink);
}
.fs-up__lede { margin: 0; padding: 0 24px 10px; color: var(--ink-muted, var(--text)); font-size: 15px; }
.fs-up__body { overflow-y: auto; padding: 4px 24px 12px; -webkit-overflow-scrolling: touch; }
.fs-up__row {
    margin: 12px 0 10px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; color: var(--brand-500);
}
.fs-up__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fs-up__item { margin: 0; min-width: 0; }
.fs-up__card {
    width: 100%; height: 100%; display: flex; flex-direction: column; text-align: left;
    padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
    background: var(--surface); color: var(--ink); cursor: pointer;
    transition: transform var(--t-fast, .15s) var(--ease, ease), box-shadow var(--t-fast, .15s) var(--ease, ease), border-color var(--t-fast, .15s) var(--ease, ease);
}
.fs-up__card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--brand-500); }
.fs-up__card:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 2px; }
.fs-up__media {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 5 / 4; background: #fff; border-bottom: 1px solid var(--line);
}
/* the whole photo (a can, a glass, a tub) - never cropped */
.fs-up__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fs-up__media .fa-fire { font-size: 26px; color: var(--brand-500); }
.fs-up__name {
    padding: 10px 12px 2px; font-weight: 700; font-size: 15px; line-height: 1.2; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fs-up__price { margin-top: auto; padding: 4px 12px 12px; font-weight: 700; color: var(--brand-500); font-size: 15px; }
.fs-up__price .fs-promo { font-size: .95rem; }
.fs-up__price .menu-card__from { font-size: 12px; }
.fs-up__foot { padding: 12px 24px 20px; border-top: 1px solid var(--line); background: var(--surface); }
.fs-up__go {
    width: 100%; min-height: 52px; border: 0; border-radius: var(--r-md, 10px);
    background: var(--btn-primary); color: var(--white, #fff);
    font-size: 15px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
}
.fs-up__go:hover { background: var(--header); }
.fs-up__go:focus-visible { outline: 3px solid var(--brand-300, #f0a37e); outline-offset: 2px; }

/* phones: a bottom sheet, cards side by side in a swipeable row */
@media (max-width: 575px) {
    .fs-up { align-items: flex-end; padding: 0; }
    .fs-up__panel { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: var(--r-xl, 20px) var(--r-xl, 20px) 0 0; }
    .fs-up__title { padding: 18px 60px 4px 16px; }
    .fs-up__lede { padding: 0 16px 8px; font-size: 14px; }
    .fs-up__body { padding: 0 16px 8px; }
    .fs-up__grid {
        display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
        margin: 0 -16px; padding: 0 16px 6px; scroll-padding-inline: 16px; scrollbar-width: none;
    }
    .fs-up__grid::-webkit-scrollbar { display: none; }
    .fs-up__item { flex: 0 0 40%; scroll-snap-align: start; }
    .fs-up__name { font-size: 14px; padding: 8px 10px 2px; }
    .fs-up__price { padding: 2px 10px 10px; font-size: 14px; }
    .fs-up__foot { padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
    .fs-up__panel, .menu-card.is-spot { animation: none; }
    .menu-best__card, .fs-up__card { transition: none; }
}
