/* ============================================================
   STOREFRONT — DESKTOP  (≥ 1024px)
   3-col layout: category sidebar | menu | cart panel.
   Modal product detail, hover lift effects, refined typography.
   No bottom nav, no mobile cart button.
   ============================================================ */

@media (min-width: 1024px) {

    /* ── Body / nav resets ──────────────────────────────────── */
    body.storefront.has-bottom-nav { padding-bottom: 0; }
    .sf-bottom-nav { display: none; }
    .sf-header-btn.sf-mobile-cart-btn { display: none; }

    /* ── Header ─────────────────────────────────────────────── */
    .sf-header {
        position: sticky;
        top: 0;
        z-index: 100;
        height: var(--sf-header-height);
        background: rgba(250,249,247,0.92);
        border-bottom: 1px solid var(--sf-border);
        display: flex;
        align-items: center;
        padding: 0 32px;
        gap: 14px;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .sf-header-logo {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        object-fit: cover;
        flex-shrink: 0;
        box-shadow: var(--sf-shadow-sm);
    }

    .sf-header-title {
        font-size: 17px;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        min-width: 0;
        letter-spacing: -0.15px;
    }

    .sf-header-actions {
        display: flex;
        align-items: center;
        gap: 4px;
        flex-shrink: 0;
    }

    .sf-header-btn {
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: none;
        color: var(--sf-text);
        font-size: 19px;
        border-radius: 50%;
        cursor: pointer;
        position: relative;
        transition: var(--sf-transition);
        -webkit-tap-highlight-color: transparent;
    }
    .sf-header-btn:hover  { background: var(--sf-bg-secondary); }
    .sf-header-btn:active { background: var(--sf-border); transform: scale(0.94); }

    /* ── Hero (large, refined) ──────────────────────────────── */
    .sf-hero-full {
        position: relative;
        width: 100%;
        min-height: 540px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        background-size: cover;
        background-position: center;
        color: #fff;
        overflow: hidden;
    }

    .sf-hero-full::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg,
            rgba(0,0,0,.04) 0%,
            rgba(0,0,0,.30) 40%,
            rgba(0,0,0,.78) 100%);
        z-index: 1;
    }

    .sf-hero-full-inner {
        position: relative;
        z-index: 2;
        padding: 44px 56px 60px;
        max-width: 760px;
    }

    .sf-hero-full-logo {
        width: 92px;
        height: 92px;
        border-radius: 22px;
        object-fit: cover;
        margin-bottom: 24px;
        box-shadow: 0 8px 32px rgba(0,0,0,.50);
        border: 2px solid rgba(255,255,255,.22);
        display: block;
    }

    .sf-hero-full h1 {
        font-size: 46px;
        font-weight: 800;
        margin: 0 0 12px;
        line-height: 1.08;
        letter-spacing: -0.8px;
        text-shadow: 0 2px 16px rgba(0,0,0,.35);
    }

    .sf-hero-subtitle {
        font-size: 18px;
        opacity: .9;
        margin: 0 0 28px;
        line-height: 1.5;
        text-shadow: 0 1px 6px rgba(0,0,0,.25);
        font-weight: 400;
    }

    .sf-hero-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 32px;
    }

    .sf-hero-chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 16px;
        background: rgba(255,255,255,.16);
        border: 1px solid rgba(255,255,255,.3);
        border-radius: 22px;
        font-size: 13px;
        font-weight: 600;
        color: #fff;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        letter-spacing: 0.2px;
    }
    .sf-hero-chip i { font-size: 14px; }

    .sf-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

    .sf-hero-order-btn {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 17px 36px;
        background: var(--sf-accent-gradient);
        color: #fff;
        border: none;
        border-radius: var(--sf-radius);
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        transition: var(--sf-transition);
        box-shadow: 0 6px 24px rgba(255,107,53,.40);
        font-family: inherit;
        letter-spacing: -0.1px;
        -webkit-tap-highlight-color: transparent;
    }
    .sf-hero-order-btn:hover  { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(255,107,53,.55); }
    .sf-hero-order-btn:active { transform: scale(0.97); opacity: .92; }

    /* ── Info strip ─────────────────────────────────────────── */
    .sf-info-strip {
        display: flex;
        gap: 12px;
        padding: 20px 32px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        background: var(--sf-surface);
        border-bottom: 1px solid var(--sf-border-light);
    }
    .sf-info-strip::-webkit-scrollbar { display: none; }

    .sf-info-card {
        flex-shrink: 0;
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 18px;
        background: var(--sf-bg);
        border-radius: var(--sf-radius-sm);
        min-width: 170px;
        text-decoration: none;
        color: inherit;
        border: 1px solid var(--sf-border-light);
        transition: var(--sf-transition);
    }
    .sf-info-card:hover {
        border-color: var(--sf-border);
        box-shadow: var(--sf-shadow-sm);
        transform: translateY(-1px);
    }
    .sf-info-card > i {
        font-size: 20px;
        color: var(--sf-accent);
        flex-shrink: 0;
        margin-top: 1px;
    }

    /* ── Featured carousel ──────────────────────────────────── */
    .sf-featured-section {
        padding: 32px 0 36px;
        background: var(--sf-surface);
        border-bottom: 8px solid var(--sf-bg-secondary);
    }

    .sf-featured-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 32px 20px;
    }

    .sf-featured-title {
        font-size: 22px;
        font-weight: 800;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--sf-text);
        letter-spacing: -0.4px;
    }

    .sf-featured-see-all {
        font-size: 14px;
        color: var(--sf-accent);
        background: none;
        border: none;
        cursor: pointer;
        font-weight: 600;
        padding: 0;
        font-family: inherit;
        transition: opacity .15s;
    }
    .sf-featured-see-all:hover { opacity: .75; }

    .sf-featured-row {
        display: flex;
        gap: 18px;
        padding: 4px 32px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .sf-featured-row::-webkit-scrollbar { display: none; }

    .sf-featured-card {
        flex-shrink: 0;
        width: 220px;
        background: var(--sf-surface);
        border-radius: var(--sf-radius);
        overflow: hidden;
        box-shadow: var(--sf-shadow);
        border: 1px solid var(--sf-border-light);
        cursor: pointer;
        transition: var(--sf-transition);
        -webkit-tap-highlight-color: transparent;
    }
    .sf-featured-card:hover  { transform: translateY(-4px); box-shadow: var(--sf-shadow-hover); }
    .sf-featured-card:active { transform: scale(0.98); }

    .sf-featured-img {
        width: 100%;
        height: 160px;
        object-fit: cover;
        display: block;
        background: var(--sf-bg-secondary);
    }
    .sf-featured-img-placeholder {
        width: 100%;
        height: 160px;
        background: linear-gradient(135deg, var(--sf-bg-secondary), var(--sf-border-light));
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--sf-text-muted);
        font-size: 38px;
    }

    .sf-featured-card-body  { padding: 14px 16px 16px; }
    .sf-featured-card-name {
        font-size: 14.5px;
        font-weight: 600;
        margin: 0 0 6px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: var(--sf-text);
    }
    .sf-featured-card-name-sub {
        font-size: 12.5px;
        font-weight: 500;
        margin: -4px 0 6px;
        line-height: 1.25;
        color: var(--sf-text-muted);
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .sf-featured-card-price { font-size: 16px; font-weight: 700; color: var(--sf-accent); }

    /* ── Hours / landing browse ─────────────────────────────── */
    .sf-hours-section {
        padding: 36px 40px 40px;
        background: var(--sf-surface);
        border-radius: var(--sf-radius-lg);
        border: 1px solid var(--sf-border-light);
        box-shadow: var(--sf-shadow-sm);
    }
    .sf-hours-title {
        font-size: 22px;
        font-weight: 800;
        margin: 0 0 20px;
        display: flex;
        align-items: center;
        gap: 10px;
        letter-spacing: -0.4px;
    }
    .sf-hours-row {
        padding: 12px 0;
        font-size: 15px;
    }
    .sf-hours-day  { min-width: 140px; font-size: 15px; }
    .sf-hours-time { font-size: 14px; }

    .sf-landing-browse {
        padding: 8px 0 0;
        background: transparent;
        text-align: center;
    }
    .sf-landing-browse .sf-btn-primary {
        max-width: 320px;
        margin: 0 auto;
        padding: 16px 32px;
        font-size: 16px;
    }

    /* ──────────────────────────────────────────────────────────
       LANDING PAGE — desktop centered layout
       Hero stays full-bleed; everything below is a centered
       column on a soft page background, with breathing room.
       ────────────────────────────────────────────────────────── */
    #screenLanding {
        background: var(--sf-bg);
        padding-bottom: 64px;
    }

    /* Below-hero stack: 1100px max, centered, generous gap */
    #screenLanding > #announcementBar,
    #screenLanding > #infoStrip,
    #screenLanding > #featuredSection,
    #screenLanding > #hoursSection,
    #screenLanding > .sf-landing-browse {
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Spacing between landing sections */
    #screenLanding > #announcementBar  { margin-top: 32px; padding: 14px 22px; border-radius: var(--sf-radius); }
    #screenLanding > #infoStrip        { margin-top: 28px; }
    #screenLanding > #featuredSection  { margin-top: 8px; }
    #screenLanding > #hoursSection     { margin-top: 8px; }
    #screenLanding > .sf-landing-browse{ margin-top: 32px; padding-left: 24px; padding-right: 24px; }

    /* Info strip → 4-column responsive grid (no horizontal scroll) */
    #screenLanding .sf-info-strip {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 14px;
        padding: 24px;
        overflow: visible;
        background: var(--sf-surface);
        border: 1px solid var(--sf-border-light);
        border-radius: var(--sf-radius-lg);
        box-shadow: var(--sf-shadow-sm);
    }
    #screenLanding .sf-info-card {
        min-width: 0;
        padding: 16px 18px;
    }

    /* Featured section → centered card with contained inner */
    #screenLanding .sf-featured-section {
        padding: 32px 0 36px;
        background: var(--sf-surface);
        border-radius: var(--sf-radius-lg);
        border: 1px solid var(--sf-border-light);
        box-shadow: var(--sf-shadow-sm);
        border-bottom: 1px solid var(--sf-border-light);
        margin-top: 28px;
    }
    #screenLanding .sf-featured-section .sf-featured-header {
        padding: 0 32px 20px;
    }
    #screenLanding .sf-featured-section .sf-featured-row {
        padding: 4px 32px 8px;
    }

    /* Hours section: keep card look, narrower max-width centered */
    #screenLanding > #hoursSection {
        max-width: 720px;
    }
    #screenLanding .sf-hours-section { border-bottom: 1px solid var(--sf-border-light); }

    /* ── 3-col menu body (sidebar | main | cart) ────────────── */
    .sf-menu-body {
        display: grid;
        grid-template-columns: var(--sf-sidebar-width) 1fr var(--sf-cart-width);
        min-height: calc(100vh - var(--sf-header-height));
    }

    /* Mobile/tablet category pills hidden on desktop */
    .sf-categories { display: none; }

    /* Hide standalone cart screen (panel always visible) */
    #screenCart.sf-screen.active { display: none; }

    /* ── Category sidebar (left) ────────────────────────────── */
    .sf-cat-sidebar {
        display: flex;
        flex-direction: column;
        position: sticky;
        top: var(--sf-header-height);
        height: calc(100vh - var(--sf-header-height));
        overflow-y: auto;
        background: var(--sf-surface);
        border-right: 1px solid var(--sf-border-light);
        scrollbar-width: thin;
        scrollbar-color: var(--sf-border) transparent;
        flex-shrink: 0;
    }
    .sf-cat-sidebar::-webkit-scrollbar { width: 4px; }
    .sf-cat-sidebar::-webkit-scrollbar-thumb { background: var(--sf-border); border-radius: 4px; }

    .sf-cat-sidebar-inner { padding: 22px 0; flex: 1; }

    .sf-cat-sidebar-label {
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .8px;
        color: var(--sf-text-muted);
        padding: 0 20px 12px;
    }

    .sf-cat-nav-item {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 11px 20px;
        border: none;
        background: none;
        color: var(--sf-text-secondary);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: var(--sf-transition);
        text-align: left;
        font-family: inherit;
        border-left: 3px solid transparent;
        -webkit-tap-highlight-color: transparent;
        letter-spacing: -0.1px;
    }
    .sf-cat-nav-item:hover {
        background: var(--sf-bg-secondary);
        color: var(--sf-text);
    }
    .sf-cat-nav-item.active {
        color: var(--sf-accent);
        background: var(--sf-accent-light);
        border-left-color: var(--sf-accent);
    }
    .sf-cat-nav-item .sf-cat-count {
        margin-left: auto;
        font-size: 11px;
        font-weight: 700;
        color: var(--sf-text-muted);
        background: var(--sf-bg-secondary);
        padding: 2px 7px;
        border-radius: 10px;
    }
    .sf-cat-nav-item.active .sf-cat-count {
        background: var(--sf-accent);
        color: #fff;
    }

    /* ── Main product area ──────────────────────────────────── */
    .sf-menu-main { min-width: 0; overflow-y: auto; }

    .sf-product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 28px;
        background: var(--sf-bg);
    }

    /* ── Product card (with hover lift) ─────────────────────── */
    .sf-product-card {
        background: var(--sf-surface);
        border-radius: var(--sf-radius);
        overflow: hidden;
        box-shadow: var(--sf-shadow-sm);
        cursor: pointer;
        transition: var(--sf-transition);
        border: 1px solid var(--sf-border-light);
        -webkit-tap-highlight-color: transparent;
        position: relative;
    }
    .sf-product-card:hover  { transform: translateY(-4px); box-shadow: var(--sf-shadow-hover); }
    .sf-product-card:active { transform: scale(0.98); }

    .sf-product-img-wrap {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 10;
        overflow: hidden;
        background: var(--sf-bg-secondary);
    }
    .sf-product-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.45s ease;
    }
    .sf-product-card:hover .sf-product-img { transform: scale(1.06); }

    .sf-product-img-placeholder {
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, var(--sf-bg-secondary) 0%, var(--sf-border-light) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--sf-text-muted);
        font-size: 36px;
    }

    .sf-product-ribbon {
        position: absolute;
        top: 12px;
        left: 12px;
        background: var(--sf-accent);
        color: #fff;
        font-size: 10px;
        font-weight: 800;
        padding: 4px 10px;
        border-radius: 6px;
        letter-spacing: .6px;
        text-transform: uppercase;
        box-shadow: 0 2px 8px rgba(255,107,53,.45);
        z-index: 2;
    }

    .sf-product-add-btn {
        position: absolute;
        bottom: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: var(--sf-accent);
        color: #fff;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 19px;
        cursor: pointer;
        box-shadow: 0 4px 14px rgba(255,107,53,.45);
        transition: var(--sf-transition);
        z-index: 3;
        -webkit-tap-highlight-color: transparent;
    }
    .sf-product-add-btn:hover  { transform: scale(1.12); background: var(--sf-accent-hover); }
    .sf-product-add-btn:active { transform: scale(0.92); }
    .sf-product-add-btn.added  { background: #059669; }

    .sf-product-info { padding: 14px 16px 16px; }

    .sf-product-cat-tag {
        display: inline-block;
        font-size: 10px;
        font-weight: 700;
        padding: 3px 9px;
        border-radius: 6px;
        margin-bottom: 6px;
        background: var(--sf-bg-secondary);
        color: var(--sf-text-muted);
        letter-spacing: .3px;
        text-transform: uppercase;
    }

    .sf-product-name {
        font-size: 15px;
        font-weight: 700;
        margin: 0 0 5px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: var(--sf-text);
        letter-spacing: -0.15px;
    }

    .sf-product-name-sub {
        font-size: 12.5px;
        font-weight: 500;
        margin: -2px 0 5px;
        line-height: 1.3;
        color: var(--sf-text-muted);
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .sf-product-desc {
        font-size: 12px;
        color: var(--sf-text-muted);
        margin: 0 0 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.45;
    }

    .sf-product-price {
        font-size: 17px;
        font-weight: 800;
        color: var(--sf-accent);
        letter-spacing: -0.25px;
    }

    /* ── Cart panel (right, persistent) ─────────────────────── */
    .sf-cart-panel {
        display: flex;
        flex-direction: column;
        position: sticky;
        top: var(--sf-header-height);
        height: calc(100vh - var(--sf-header-height));
        overflow: hidden;
        background: var(--sf-surface);
        border-left: 1px solid var(--sf-border-light);
        flex-shrink: 0;
    }

    /* ── Product detail: centered modal ─────────────────────── */
    .sf-bottom-sheet.sf-product-modal {
        position: fixed;
        left: 50%;
        right: auto;
        bottom: auto;
        top: 50%;
        transform: translate(-50%, calc(-50% + 30px)) scale(0.96);
        width: 620px;
        max-width: calc(100vw - 80px);
        max-height: 88vh;
        max-height: 88dvh;
        border-radius: var(--sf-radius-lg);
        transition: transform .3s cubic-bezier(0.32, 0.72, 0, 1), opacity .25s ease;
        opacity: 0;
        background: var(--sf-surface);
        display: flex;
        flex-direction: column;
        z-index: 201;
        overflow: hidden;
    }
    .sf-bottom-sheet.sf-product-modal.open {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    .sf-bottom-sheet.sf-product-modal .sf-sheet-handle { display: none; }

    /* Other sheets (lang/location): centered bottom-sheet */
    .sf-bottom-sheet:not(.sf-product-modal) {
        position: fixed;
        bottom: 0;
        left: 50%;
        right: auto;
        width: min(520px, calc(100vw - 60px));
        max-height: 80vh;
        max-height: 80dvh;
        background: var(--sf-surface);
        border-radius: 22px 22px 0 0;
        transform: translateX(-50%) translateY(100%);
        transition: transform .35s cubic-bezier(0.32, 0.72, 0, 1);
        z-index: 201;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .sf-bottom-sheet:not(.sf-product-modal).open {
        transform: translateX(-50%) translateY(0);
    }

    .sf-sheet-body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sf-sheet-img-wrap {
        position: relative;
        width: 100%;
        background: var(--sf-bg-secondary);
        max-height: 320px;
        overflow: hidden;
    }
    .sf-sheet-img {
        width: 100%;
        max-height: 320px;
        object-fit: cover;
        display: block;
    }
    .sf-sheet-img-placeholder {
        width: 100%;
        height: 240px;
        background: linear-gradient(135deg, var(--sf-bg-secondary), var(--sf-border-light));
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--sf-text-muted);
        font-size: 56px;
    }

    .sf-sheet-content { padding: 26px 28px 4px; }

    .sf-sheet-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 10px;
    }

    .sf-sheet-title {
        font-size: 24px;
        font-weight: 800;
        margin: 0;
        line-height: 1.18;
        letter-spacing: -0.5px;
        flex: 1;
    }

    .sf-sheet-price {
        font-size: 26px;
        font-weight: 800;
        color: var(--sf-accent);
        letter-spacing: -0.5px;
        flex-shrink: 0;
    }

    .sf-sheet-desc {
        font-size: 15px;
        color: var(--sf-text-secondary);
        line-height: 1.55;
        margin: 0 0 24px;
    }

    .sf-sheet-footer {
        padding: 18px 28px;
        border-top: 1px solid var(--sf-border-light);
        flex-shrink: 0;
        background: var(--sf-surface);
    }
}

/* ── Wide desktop (≥1280px) ─────────────────────────────────── */
@media (min-width: 1280px) {
    :root {
        --sf-sidebar-width: 264px;
        --sf-cart-width: 400px;
    }
    .sf-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
        padding: 32px;
    }
    .sf-hero-full h1 { font-size: 54px; }
    .sf-hero-subtitle { font-size: 19px; }
    .sf-hero-full { min-height: 580px; }
    .sf-hero-full-inner { padding: 52px 64px 68px; max-width: 820px; }
    .sf-featured-card { width: 240px; }
    .sf-featured-img, .sf-featured-img-placeholder { height: 170px; }

    /* Landing column expands slightly */
    #screenLanding > #announcementBar,
    #screenLanding > #infoStrip,
    #screenLanding > #featuredSection,
    #screenLanding > .sf-landing-browse {
        max-width: 1200px;
    }
}

/* ── Ultra-wide desktop (≥1536px) ───────────────────────────── */
@media (min-width: 1536px) {
    :root { --sf-cart-width: 420px; }
    .sf-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        padding: 36px;
    }
    .sf-hero-full h1 { font-size: 60px; }
    .sf-hero-full { min-height: 620px; }
    .sf-hero-full-inner { padding: 60px 72px 80px; }
}
