/* Modern: app-like DTC brand. Plus Jakarta Sans, soft tiles, pill controls, springy motion, a phone
   tab bar. Markup: Views/Themes/Modern (_Header, _Footer with the tab bar, Home/Index). Loaded after shop.css. */

@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../fonts/plus-jakarta-sans.woff2") format("woff2");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --sf-bg: #FFFFFF;
    --sf-paper: #FFFFFF;
    --sf-surface: #F3F4F6;
    --sf-surface-hover: #EBEDF0;
    --sf-photo: #F3F4F6;
    --sf-text: #0E1116;
    --sf-muted: #596070;
    --sf-border: #E6E8EC;
    --sf-border-strong: #D0D4DB;
    --sf-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --sf-font-display: var(--sf-font);
    --sf-display-weight: 800;
    --sf-radius: 999px;
    --sf-radius-field: 14px;
    --sf-radius-photo: 20px;
    --sf-radius-card: 24px;
    --sf-photo-ratio: 1 / 1;
    --sf-max: 1280px;
    --sf-gutter: 32px;
    --sf-ease: cubic-bezier(.34, 1.56, .64, 1);
    --sf-dur: 220ms;
}

h1, h2 { letter-spacing: -.035em; }
.sf-btn { font-weight: 700; }
.sf-btn:active { transform: scale(.97); }

/* ── Header ──────────────────────────────────────────── */
.sf-announcement { background: var(--sf-primary); color: var(--sf-on-primary); font-weight: 600; }
.sf-header { background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(1.8) blur(16px); backdrop-filter: saturate(1.8) blur(16px); transition: box-shadow var(--sf-dur); }
.sf-header.is-scrolled { box-shadow: 0 1px 0 var(--sf-border), 0 8px 24px rgba(16, 24, 40, .06); }
.sf-bar { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.sf-brand { display: inline-flex; align-items: center; min-width: 0; max-width: 40%; min-height: 44px; color: var(--sf-text); text-decoration: none; flex-shrink: 0; }
.sf-brand img { max-height: 40px; width: auto; }
.sf-wordmark { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 22px; font-weight: 800; letter-spacing: -.035em; }
.sf-dot { width: 9px; height: 9px; margin: 8px 0 0 3px; border-radius: 50%; background: var(--sf-primary); flex-shrink: 0; }
.sf-nav { flex: 1; min-width: 0; }
.sf-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; list-style: none; }
.sf-nav ul::-webkit-scrollbar { display: none; }
.sf-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--sf-muted); font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background var(--sf-dur), color var(--sf-dur); }
.sf-nav a:hover { background: var(--sf-surface); color: var(--sf-text); }
.sf-nav a[aria-current] { background: var(--sf-text); color: #fff; }
.sf-search-pill { display: inline-flex; align-items: center; gap: 10px; width: 240px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--sf-surface); color: var(--sf-muted); font-size: 14px; text-decoration: none; flex-shrink: 0; transition: background var(--sf-dur); }
.sf-search-pill:hover { background: var(--sf-surface-hover); }
.sf-cart-link { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 8px 0 16px; border-radius: 999px; background: var(--sf-text); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; flex-shrink: 0; transition: transform var(--sf-dur) var(--sf-ease); }
.sf-cart-link:hover { transform: translateY(-1px); }
.sf-cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--sf-primary); color: var(--sf-on-primary); font-size: 13px; font-variant-numeric: tabular-nums; }
.sf-tabbar { display: none; }

/* ── Home ────────────────────────────────────────────── */
.sf-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding-top: 36px; }
.sf-hero:not(:has(.sf-hero-tile)) { grid-template-columns: minmax(0, 1fr); padding-top: 64px; }
.sf-hero h1 { margin: 0; font-size: clamp(44px, 1.6rem + 4vw, 76px); line-height: .98; letter-spacing: -.045em; overflow-wrap: anywhere; }
.sf-hero p { max-width: 26em; margin: 22px 0 0; color: var(--sf-muted); font-size: 19px; line-height: 1.55; }
.sf-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.sf-hero-tile { position: relative; aspect-ratio: 5 / 4; overflow: hidden; border-radius: 32px; background: var(--sf-surface); background: color-mix(in srgb, var(--sf-primary) 14%, #fff); }
.sf-hero-tile > img { width: 100%; height: 100%; object-fit: cover; }
.sf-mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 14px; padding: 24px 24px 50px; }
.sf-mosaic-item { position: relative; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(16, 24, 40, .1); transition: transform var(--sf-dur) var(--sf-ease); }
.sf-mosaic-item img { width: 100%; height: 100%; padding: 8%; object-fit: contain; mix-blend-mode: multiply; }
.sf-mosaic-item:nth-child(even) { transform: translateY(26px); }
.sf-mosaic-item:hover { transform: translateY(-4px) rotate(-1deg); }
.sf-mosaic-item:nth-child(even):hover { transform: translateY(22px) rotate(1deg); }
.sf-mosaic-1 { grid-template-columns: minmax(0, 1fr); padding: 32px; }
.sf-mosaic-3 > :first-child { grid-row: span 2; }

.sf-chips-sec { padding-top: 44px; }
.sf-chips-scroll { flex-wrap: nowrap; gap: 10px; padding-bottom: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sf-chips-scroll::-webkit-scrollbar { display: none; }
.sf-chip { height: 44px; min-height: 0; border: 0; background: var(--sf-surface); font-weight: 600; transition: background var(--sf-dur), transform var(--sf-dur) var(--sf-ease); }
.sf-chip:hover { background: var(--sf-surface-hover); }
.sf-chip[aria-current] { background: var(--sf-text); color: #fff; }
.sf-chip-img { height: 56px; padding: 0 20px 0 8px; font-size: 15px; scroll-snap-align: start; }
.sf-chip-img:hover { transform: translateY(-2px); }
.sf-chip-ph { display: block; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; background: #fff; flex-shrink: 0; }
.sf-chip-ph img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.sf-section { padding-top: 64px; }
.sf-section-head h2 { font-size: 32px; letter-spacing: -.03em; line-height: 1.1; }
.sf-see { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--sf-surface); color: var(--sf-text); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; flex-shrink: 0; transition: background var(--sf-dur); }
.sf-see:hover { background: var(--sf-surface-hover); }

/* ── Product card: soft tile, one-tap round quick-add ── */
.sf-grid { gap: 32px 20px; }
.sf-card-title { font-weight: 600; }
.sf-card .sf-price { font-size: 16px; font-weight: 800; }
.sf-card-img:hover img { transform: scale(1.04); }
.sf-badge { border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(16, 24, 40, .08); }
.sf-badge-low::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #EA580C; vertical-align: 1px; }
.sf-card-add { grid-area: 1 / 1; align-self: end; justify-self: end; z-index: 3; margin: 12px; }
.sf-card-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--sf-text);
    box-shadow: 0 4px 14px rgba(16, 24, 40, .14); transition: transform var(--sf-dur) var(--sf-ease), background var(--sf-dur), color var(--sf-dur); }
.sf-card-btn:hover { transform: scale(1.08); }
.sf-card-btn.is-added { background: var(--sf-primary); color: var(--sf-on-primary); transform: scale(1.1); }
.sf-card-btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Listing ─────────────────────────────────────────── */
.sf-listing-title h1 { font-size: 44px; letter-spacing: -.035em; }
.sf-empty > p:first-of-type { font-size: 22px; font-weight: 700; }

/* ── Product: big rounded photo, the buy panel sticks beside it ── */
.sf-pd-media { position: static; }
@media (min-width: 901px) {
    .sf-pd { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; }
    .sf-pd-info { position: sticky; top: 100px; }
}
.sf-pd-img { border-radius: 28px; }
.sf-pd-brand { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--sf-surface); background: color-mix(in srgb, var(--sf-primary) 10%, #fff); color: var(--sf-primary-ink);
    font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.sf-pd-title { letter-spacing: -.035em; }
.sf-pd-price { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.sf-pd-stock { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--sf-surface); font-size: 13px; }
.sf-qty { border-color: transparent; background: var(--sf-surface); }
.sf-pd-wa { border: 0; background: #E8F8EE; color: #0B5A2A; }
.sf-pd-wa:hover { background: #D9F3E3; }
.sf-pd-more { display: flex; flex-direction: column; gap: 10px; border-top: 0; }
.sf-acc { padding: 0 20px; border: 0; border-radius: 18px; background: var(--sf-surface); }
.sf-acc summary { font-weight: 700; }

/* ── Cart, checkout, drawer, sheet ───────────────────── */
.sf-page-title { letter-spacing: -.035em; }
.sf-field label { font-weight: 700; }
.sf-field input, .sf-field select, .sf-field textarea { min-height: 54px; border-color: transparent; background: var(--sf-surface); }
.sf-phone-prefix { border-color: transparent; }
.sf-option { border-color: transparent; border-radius: 16px; background: var(--sf-surface); }
.sf-option:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 1px var(--sf-primary-ink), 0 6px 20px rgba(16, 24, 40, .06); }
.sf-step legend { font-size: 22px; letter-spacing: -.02em; }
.sf-step-n { width: 32px; height: 32px; border-radius: 50%; background: var(--sf-primary); color: var(--sf-on-primary); font-size: 15px; letter-spacing: 0; }
.sf-summary-q { background: var(--sf-primary); color: var(--sf-on-primary); }
/* The drawer floats clear of every edge, with its own border and radius. */
.sf-drawer { inset: 12px 12px 12px auto; width: min(420px, 100vw - 24px); height: calc(100% - 24px); overflow: hidden; border: 1px solid var(--sf-border); border-radius: 28px; box-shadow: 0 24px 60px rgba(16, 24, 40, .18); }
.sf-drawer-added { border-radius: 14px; }
.sf-drawer-line .sf-thumb { border-radius: 14px; }
.sf-sheet { border-radius: 0 0 28px 28px; }
.sf-zoom-close { border-radius: 50%; }

/* ── Footer: a rounded panel ending in an oversized wordmark ── */
.sf-footer { margin: 96px 16px 16px; overflow: hidden; border-radius: 32px; background: var(--sf-secondary); color: var(--sf-on-secondary-soft); container-type: inline-size; }
.sf-footer-in { max-width: var(--sf-max); margin: 0 auto; padding: 56px var(--sf-gutter) 0; }
.sf-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.sf-footer-lead { max-width: 24em; margin: 0 0 16px; color: var(--sf-on-secondary); font-size: 17px; line-height: 1.55; }
.sf-footer address { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 20px; font-size: 14px; }
.sf-footer a:hover { color: var(--sf-on-secondary); }
.sf-footer .sf-footer-wa { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; background: #25D366; color: #0B2E17; font-size: 14px; font-weight: 700; text-decoration: none; }
.sf-footer-title { margin: 0 0 14px; color: var(--sf-on-secondary); font-size: 14px; font-weight: 700; }
.sf-footer li { margin-bottom: 10px; font-size: 14.5px; }
.sf-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 48px; padding: 20px 0; border-top: 1px solid var(--sf-on-secondary-line); font-size: 13px; }
.sf-footer-word { margin: 8px 0 0; overflow: hidden; color: var(--sf-on-secondary); font-size: min(14cqw, calc(170cqw / var(--len, 14))); font-weight: 800; letter-spacing: -.055em; line-height: .8; white-space: nowrap; transform: translateY(16%); }

/* ── Tablet and phone ────────────────────────────────── */
@media (max-width: 1024px) {
    .sf-bar { gap: 16px; }
    .sf-search-pill { width: 44px; padding: 0; justify-content: center; }
    .sf-search-pill span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .sf-hero { gap: 40px; }
    .sf-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
    .sf-bar { justify-content: space-between; gap: 12px; min-height: 60px; }
    .sf-brand { max-width: 65%; }
    .sf-nav, .sf-search-pill { display: none; }
    .sf-wordmark { font-size: 20px; }
    .sf-cart-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .sf-cart-link { height: 40px; padding: 0 6px 0 12px; }

    .sf-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(68px + env(safe-area-inset-bottom));
        padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--sf-border); background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
    .sf-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--sf-muted); font-size: 11px; font-weight: 600; text-decoration: none; }
    .sf-tab-ic { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 30px; border-radius: 999px; transition: background var(--sf-dur); }
    .sf-tab[aria-current] { color: var(--sf-text); }
    .sf-tab[aria-current] .sf-tab-ic { background: var(--sf-surface); background: color-mix(in srgb, var(--sf-primary) 16%, #fff); color: var(--sf-primary-ink); }
    .sf-tab-badge { position: absolute; top: 2px; left: calc(50% + 8px); display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
        background: var(--sf-primary); color: var(--sf-on-primary); font-size: 10px; font-weight: 700; }
    .sf-tab-badge[data-cart-count="0"] { display: none; }
    .sf-whatsapp { bottom: calc(84px + env(safe-area-inset-bottom)); }
    .sf-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
    .sf-sticky-buy { left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); padding: 8px 8px 8px 22px; border: 0; border-radius: 999px; background: var(--sf-text); color: #fff; box-shadow: 0 12px 32px rgba(16, 24, 40, .24); }
    .sf-sticky-name { color: rgba(255, 255, 255, .72); }
    body.sf-sticky-on .sf-whatsapp { bottom: calc(148px + env(safe-area-inset-bottom)); }

    .sf-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 20px; }
    .sf-hero:not(:has(.sf-hero-tile)) { padding-top: 32px; }
    .sf-hero h1 { font-size: 46px; }
    .sf-hero p { margin-top: 14px; font-size: 16.5px; }
    .sf-hero-cta { margin-top: 22px; }
    .sf-hero-cta .sf-btn { flex: 1; padding: 0 16px; }
    .sf-hero-tile { aspect-ratio: 1 / 1; border-radius: 26px; }
    .sf-mosaic { gap: 10px; padding: 16px 16px 40px; }
    .sf-mosaic-item:nth-child(even) { transform: translateY(20px); }
    .sf-chips-sec { padding-top: 32px; }
    .sf-chips-scroll { margin: 0 calc(-1 * var(--sf-gutter)); padding: 0 var(--sf-gutter) 4px; scroll-padding: 0 var(--sf-gutter); }
    .sf-section { padding-top: 44px; }
    .sf-section-head { margin-bottom: 18px; }
    .sf-section-head h2 { font-size: 24px; }
    .sf-rail { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; gap: 12px; margin: 0 calc(-1 * var(--sf-gutter)); padding: 0 var(--sf-gutter) 6px;
        overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--sf-gutter); scrollbar-width: none; }
    .sf-rail::-webkit-scrollbar { display: none; }
    .sf-rail > * { scroll-snap-align: start; }
    .sf-grid { gap: 28px 12px; }
    .sf-listing-title h1 { font-size: 30px; }
    .sf-pd-img { border-radius: 24px; }
    /* Phones: the drawer becomes a bottom sheet, still clear of the side edges. */
    .sf-drawer { inset: auto 8px 8px 8px; width: auto; height: auto; max-height: calc(100% - 48px); border-radius: 28px; }
    .sf-drawer[open] { animation-name: sf-rise; }
    .sf-drawer .sf-panel { max-height: calc(100dvh - 48px); }
    .sf-sheet { border-radius: 0; }
    .sf-footer { margin: 64px 8px 8px; border-radius: 26px; }
    .sf-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
    .sf-footer-grid > :first-child { grid-column: 1 / -1; }
    .sf-footer-bottom { margin-top: 36px; }
}
