:root {
  --brand: #f97316;
  --brand-soft: color-mix(in srgb, var(--brand) 11%, white);
  --ink: #111827;
  --muted: #64748b;
  --line: #e8ebef;
  --paper: #fffdf9;
  --card: #fff;
  --shadow: 0 15px 45px rgba(15,23,42,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 88px 0 100px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Outfit", system-ui, sans-serif;
}
button, input { font: inherit; }
a { color: inherit; }
.sf-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 72px;
  padding: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  backdrop-filter: blur(18px);
  box-shadow: none;
}
.sf-header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.sf-logo { width: fit-content; text-decoration: none; }
.sf-logo img { display: block; width: 146px; height: 66px; object-fit: contain; border-radius: 50%; }
.sf-logo .fallback { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; }
.sf-desktop-nav {
  justify-self: center;
  transform: translateX(-42px);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.sf-desktop-nav a { padding: 9px 15px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 800; }
.sf-desktop-nav a:hover, .sf-desktop-nav a.active { background: var(--ink); color: #fff; }
.sf-header-actions { display: flex; justify-content: flex-end; gap: 8px; }
.sf-header.scrolled {
  background: rgba(255,253,249,.92);
  border-bottom-color: rgba(15,23,42,.06);
  box-shadow: 0 8px 30px rgba(15,23,42,.04);
}
.sf-svg { width: 18px; height: 18px; display: block; fill: none; }
.sf-location-btn, .sf-orders-btn {
  height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  display: flex; align-items: center; gap: 8px; background: #fff; color: var(--ink);
  text-decoration: none; font-size: .67rem; font-weight: 800;
}
.sf-location-btn .sf-svg, .sf-orders-btn .sf-svg { color: var(--brand); width: 16px; height: 16px; }
.sf-icon-btn {
  position: relative; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--ink); text-decoration: none;
}
.sf-cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px;
  display: none; place-items: center; border: 2px solid #fff; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: .52rem; font-weight: 900;
}
.sf-cart-count.show { display: grid; }
.sf-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.sf-page-head { padding: 44px 0 28px; }
.sf-eyebrow { color: var(--brand); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.sf-page-head h1 { margin: 8px 0 7px; font: 900 clamp(2rem, 5vw, 3.7rem)/1 "Space Grotesk", sans-serif; letter-spacing: -.055em; }
.sf-page-head p { margin: 0; max-width: 620px; color: var(--muted); font-size: .85rem; }
.sf-page-hero {
  margin-top: -88px;
  padding: 116px 0 32px;
  background: var(--brand);
  color: #fff;
}
.sf-page-hero .sf-page-head { padding: 34px 0 28px; }
.sf-page-hero .sf-eyebrow, .sf-page-hero .sf-page-head p { color: rgba(255,255,255,.78); }
.sf-page-hero .sf-search { box-shadow: 0 16px 38px rgba(63,25,0,.16); }
.sf-content-shell { padding-top: 28px; }
.sf-search {
  max-width: 600px; height: 52px; padding: 0 16px; margin-top: 22px;
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line);
  border-radius: 16px; background: #fff; box-shadow: 0 9px 30px rgba(15,23,42,.04);
}
.sf-search i { color: var(--brand); }
.sf-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.category-card {
  min-height: 270px; padding: 22px 18px 18px; border: 1px solid var(--line); border-radius: 24px;
  position: relative; overflow: hidden; background: var(--card); text-decoration: none; text-align: center;
  box-shadow: 0 10px 30px rgba(15,23,42,.045); transition: transform .25s ease, border-color .25s ease;
}
.category-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.category-card img { width: 164px; height: 164px; margin: 0 auto 16px; display: block; object-fit: cover; border-radius: 50%; opacity: 0; transition: opacity .35s ease; }
.category-card img.loaded { opacity: 1; }
.category-card .fallback { width: 164px; height: 164px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 2rem; }
.category-card h2 { margin: 0 0 6px; font: 800 1.05rem/1.05 "Space Grotesk", sans-serif; letter-spacing: -.035em; }
.category-card p { margin: 0; color: var(--muted); font-size: .68rem; }
.category-card .arrow { position: absolute; z-index: 2; top: 16px; right: 16px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(15,23,42,.1); color: var(--brand); }
.sf-section-title { margin: 50px 0 18px; font: 800 1.4rem "Space Grotesk", sans-serif; letter-spacing: -.035em; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.sf-product { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; text-decoration: none; box-shadow: 0 10px 30px rgba(15,23,42,.045); transition: transform .25s ease, box-shadow .25s ease; }
.sf-product:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(15,23,42,.09); }
.sf-product-image { height: 220px; background: #f1f5f9; position: relative; overflow: hidden; }
.sf-product-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.sf-product-image img.loaded { opacity: 1; }
.sf-product-body { padding: 14px; }
.sf-product-body small { color: var(--brand); font-size: .6rem; font-weight: 800; text-transform: uppercase; }
.sf-product-body h3 { margin: 6px 0 12px; font-size: .84rem; }
.sf-product-desc { min-height: 2.8em; margin: -5px 0 12px; color: var(--muted); font-size: .63rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sf-product-foot { display: flex; align-items: center; justify-content: space-between; }
.sf-product-foot strong { font-size: .82rem; }
.sf-product-foot span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; }
.skeleton {
  background: linear-gradient(100deg, #eceff3 25%, #fafafa 42%, #eceff3 60%);
  background-size: 220% 100%; animation: sfShimmer 1.25s linear infinite;
}
@keyframes sfShimmer { to { background-position-x: -220%; } }
.empty-state { padding: 70px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 24px; background: #fff; }
.empty-state i { font-size: 2rem; color: var(--brand); }
.empty-state h2 { margin: 14px 0 7px; font-size: 1.1rem; }
.empty-state p { margin: 0; color: var(--muted); font-size: .78rem; }
.sf-bottom-nav { display: none; }
.primary-btn {
  min-height: 48px; padding: 0 20px; border: 0; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; text-decoration: none; font-size: .76rem; font-weight: 800; cursor: pointer;
}
@media (max-width: 900px) {
  .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { padding-top: 72px; }
  .sf-header { height: 64px; }
  .sf-header-inner { width: calc(100% - 24px); display: flex; justify-content: space-between; }
  .sf-logo img { width: 80px; height: 40px; }
  .sf-desktop-nav { display: none; transform: none; }
  .sf-location-btn { width: 42px; padding: 0; display: grid; place-items: center; }
  .sf-location-btn span { display: none; }
  .sf-orders-btn { display: none; }
  .sf-shell { width: min(100% - 24px, 1180px); }
  .sf-page-head { padding-top: 28px; }
  .category-grid { gap: 10px; }
  .category-card { min-height: 205px; padding: 14px 10px; border-radius: 19px; }
  .category-card h2 { font-size: .86rem; }
  .category-card img { width: 128px; height: 128px; margin-bottom: 12px; }
  .category-card .fallback { width: 128px; height: 128px; margin-bottom: 12px; }
  .product-grid { gap: 10px; }
  .sf-product { border-radius: 17px; }
  .sf-product-image { height: 155px; }
  .sf-bottom-nav {
    position: fixed; z-index: 900; left: 50%; bottom: max(14px, env(safe-area-inset-bottom));
    transform: translateX(-50%); width: min(370px, calc(100% - 26px)); height: 60px;
    padding: 7px; display: flex; align-items: center; gap: 4px;
    border: 1px solid rgba(255,255,255,.12); border-radius: 20px;
    background: rgba(15,15,17,.94); backdrop-filter: blur(20px); box-shadow: 0 18px 45px rgba(15,23,42,.28);
  }
  .sf-bottom-nav a { flex: 1; height: 46px; min-width: 42px; border-radius: 15px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #a9adb5; text-decoration: none; transition: .2s ease; }
  .sf-bottom-nav a.active { flex: 1.6; color: #fff; background: #2a2a2d; }
  .sf-bottom-nav a > span:last-child { display: none; font-size: .62rem; font-weight: 800; line-height: 1; }
  .sf-bottom-nav a.active > span:last-child { display: block; }
  .sf-dock-icon { position: relative; display: block; }
  .sf-dock-icon .sf-svg { width: 19px; height: 19px; }
  .sf-bottom-nav .sf-dock-cart { transform: none; }
  .sf-bottom-nav .sf-dock-cart .sf-dock-icon { width: auto; height: auto; display: block; border: 0; border-radius: 0; background: transparent; color: inherit; box-shadow: none; }
  .sf-bottom-nav .sf-dock-cart > span:last-child { margin: 0; color: inherit; }
  .sf-dock-cart b { position: absolute; top: -8px; right: -9px; min-width: 16px; height: 16px; padding: 0 3px; display: none; place-items: center; border: 2px solid #151517; border-radius: 999px; background: var(--brand); color: #fff; font-size: .46rem; }
  .sf-dock-cart b.show { display: grid; }
  .sf-page-hero { margin-top: -72px; padding: 92px 0 18px; }
  .sf-page-hero .sf-page-head { padding: 24px 0 20px; }
}
