/* Brand is deliberately single-theme: a red-on-ember identity, on purpose,
   regardless of the viewer's OS theme — a dark charcoal look read as
   gloomy for a grill-house menu. White paper panels (hero, footer,
   cards) sit on glowing charcoal embers — the same fire the menu is named for. */
:root{
  --bg: linear-gradient(rgba(8,4,2,.6), rgba(8,4,2,.72)), url('images/pexels-filirovska-7140242.jpg');
  --bg-elevated: #ffece5;
  --ink: #2a1712;
  --ink-dim: #8c766c;
  --on-bg: #fff7f0;
  --ember: #d8311c;
  --tide: #2b7268;
  --brass: #b3791a;
  --line: rgba(42,23,18,0.12);
  --shadow-color: rgba(59,30,9,0.35);
  color-scheme: light;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration: .001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}

.icon-defs{ position:absolute; width:0; height:0; overflow:hidden; }
.inline-ic{ width:16px; height:16px; }

.grain{
  position: fixed; inset:0; z-index:0; pointer-events:none;
  opacity:.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Loader — the wordmark "fills up" left to right on a loop, like a
   portion being served, instead of a plain pulsing label. */
.loader{
  position: fixed; inset:0; z-index: 999;
  background: var(--ember);
  display:flex; align-items:center; justify-content:center;
  transition: opacity .5s ease, visibility .5s ease;
}
.loader.hide{ opacity:0; visibility:hidden; }

.loader-mark-wrap{ position:relative; display:inline-block; }
.loader-mark{
  font-family:'Archivo Black', sans-serif;
  font-size: 2rem; letter-spacing: 3px; white-space:nowrap;
  display:block;
}
.loader-mark-ghost{ color: rgba(255,255,255,.22); }
.loader-mark-fill{
  position:absolute; left:0; top:0; color: var(--on-bg);
  overflow:hidden; width:0;
  animation: fillText 1.7s cubic-bezier(.4,.1,.2,1) infinite;
}
@keyframes fillText{
  0%{ width:0%; }
  55%{ width:100%; }
  85%{ width:100%; }
  100%{ width:0%; }
}
@media (prefers-reduced-motion: reduce){
  .loader-mark-fill{ animation:none; width:100%; }
}

/* View switching */
#app{ position:relative; z-index:1; }
.view[hidden]{ display:none; }
.view-enter{ animation: viewIn .45s cubic-bezier(.2,.8,.2,1) both; }
.view-leave{ animation: viewOut .2s ease both; }
@keyframes viewIn{ from{ opacity:0; transform: translateY(16px);} to{ opacity:1; transform:translateY(0);} }
@keyframes viewOut{ from{ opacity:1; transform: translateY(0);} to{ opacity:0; transform: translateY(-10px);} }

/* Hero */
.hero{
  position: relative;
  background: var(--ember);
  padding: 44px 20px 34px;
  text-align:center;
  box-shadow: 0 10px 24px -14px rgba(0,0,0,.5);
}
.eyebrow{
  margin:0; font-size:.7rem; letter-spacing:3px; text-transform:uppercase;
  color: rgba(255,255,255,.8); font-weight:700;
  animation: fadeUp .6s ease both;
}
.brand{
  font-family:'Archivo Black', sans-serif;
  font-size: clamp(2.8rem, 13vw, 4rem);
  letter-spacing: 2px;
  margin: 2px 0 0;
  color: var(--on-bg);
  animation: fadeUp .6s ease .05s both;
}
.brass-rule{
  width: 64px; height: 3px; margin: 14px auto;
  background: var(--on-bg);
  animation: growLine .6s ease .2s both;
  transform-origin:center;
}
@keyframes growLine{ from{ transform: scaleX(0);} to{ transform: scaleX(1);} }

.tagline{
  color: var(--on-bg); margin: 12px 0 0; font-size: .95rem; font-weight:500;
  animation: fadeUp .6s ease .15s both;
}
@keyframes fadeUp{ from{ opacity:0; transform: translateY(10px);} to{ opacity:1; transform:translateY(0);} }

.meta-dot{ opacity:.5; }

/* Home nav cards */
.nav-cards{
  max-width: 640px; margin: 0 auto; padding: 30px 20px 46px;
  display:flex; flex-direction:column; gap:16px;
}
.nav-card{
  position:relative; display:block; text-decoration:none;
  border-radius: 22px; overflow:hidden; isolation:isolate;
  aspect-ratio: 16/9; min-height:150px;
  background-size: cover; background-position:center;
  border: 1px solid var(--line);
  box-shadow: 0 22px 40px -22px var(--shadow-color);
  opacity:0; transform: translateY(22px);
  animation: cardIn .55s cubic-bezier(.2,.8,.2,1) forwards;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes cardIn{ to{ opacity:1; transform: translateY(0);} }
.nav-card:active{ transform: scale(.97); }
@media (hover:hover){
  .nav-card:hover{ transform: translateY(-6px); }
}

.nav-card .placeholder-bg{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
}
.nav-card.flame .placeholder-bg{ background: radial-gradient(130% 130% at 25% 15%, color-mix(in srgb, var(--ember) 42%, var(--bg-elevated)) 0%, var(--bg-elevated) 72%); }
.nav-card.skewer .placeholder-bg{ background: radial-gradient(130% 130% at 25% 15%, color-mix(in srgb, var(--brass) 42%, var(--bg-elevated)) 0%, var(--bg-elevated) 72%); }
.nav-card.cup .placeholder-bg{ background: radial-gradient(130% 130% at 25% 15%, color-mix(in srgb, var(--tide) 42%, var(--bg-elevated)) 0%, var(--bg-elevated) 72%); }
.nav-card .placeholder-bg svg{ width: 26%; max-width:84px; opacity:.28; color: var(--ink); }

.nav-card .scrim{
  position:absolute; inset:0; z-index:1;
  background: linear-gradient(180deg, transparent 25%, rgba(8,4,2,.88) 100%);
}
.nav-card .card-label{
  position:absolute; left:20px; right:20px; bottom:16px; z-index:2;
  color: var(--on-bg); text-shadow: 0 2px 6px rgba(0,0,0,.55);
}
.card-label .eyebrow-mini{ font-size:.68rem; letter-spacing:2.5px; text-transform:uppercase; opacity:.9; }
.card-label h2{
  font-family:'Archivo Black', sans-serif; font-weight:400; letter-spacing:.5px;
  font-size: 2rem; margin: 2px 0 0; color: var(--on-bg);
}
.card-label .count{ font-size:.78rem; opacity:.9; margin-top:3px; display:flex; align-items:center; gap:5px; }
.card-label .count svg{ width:13px; height:13px; }

/* Category view topbar — same red identity as the home hero. The
   selected category is the focal point: bigger, filled, centered;
   the others sit smaller either side, one tap away. */
.cat-topbar{
  position: sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:center;
  padding: 12px 58px;
  background: var(--ember);
  box-shadow: 0 4px 16px -6px rgba(0,0,0,.3);
}
.cat-home{
  position:absolute; left:12px; top:50%; transform:translateY(-50%);
  width:36px; height:36px; border-radius:50%;
  appearance:none; border:none; cursor:pointer;
  background: rgba(255,255,255,.14); color: var(--on-bg);
  display:flex; align-items:center; justify-content:center;
  transition: background .2s ease;
}
.cat-home svg{ width:17px; height:17px; }
.cat-home:hover{ background: rgba(255,255,255,.28); }

/* All categories as one tap-to-switch row — faster than going back to
   the home cards and back in again. */
.cat-tabs{
  position:relative; display:flex; align-items:center; justify-content:center;
  gap:6px; overflow-x:auto; scrollbar-width:none; max-width:100%;
}
.cat-tabs::-webkit-scrollbar{ display:none; }
.cat-tabs button{
  appearance:none; border:none; cursor:pointer; white-space:nowrap;
  padding: 8px 14px; border-radius:999px;
  background: transparent; color: rgba(255,255,255,.8);
  font-family:'Manrope',sans-serif; font-weight:700; font-size:.78rem;
  transition: background .3s ease, color .3s ease, font-size .3s ease, padding .3s ease;
}
.cat-tabs button.active{
  background: var(--on-bg); color: var(--ember);
  font-size: 1rem; padding: 10px 22px;
}

/* Category main / product grid */
.cat-main{ max-width:640px; margin:0 auto; padding: 26px 20px 10px; }

.product-grid{ display:grid; grid-template-columns: 1fr; gap:18px; }
@media (min-width:620px){ .product-grid{ grid-template-columns: 1fr 1fr; } }

.product-card{
  border-radius:18px; overflow:hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: 0 18px 34px -22px var(--shadow-color);
  opacity:0; transform: translateY(18px);
  transition: transform .3s ease, opacity .5s ease;
}
.product-card.in{ opacity:1; transform: translateY(0); }
@media (hover:hover){
  .product-card:hover{ transform: translateY(-4px); }
}

.product-media{
  aspect-ratio: 4/3; position:relative; background-size:cover; background-position:center;
}
.product-media .placeholder-bg{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
}
.cat-main:not(.cool) .product-media .placeholder-bg{ background: linear-gradient(155deg, color-mix(in srgb, var(--ember) 30%, var(--bg-elevated)), var(--bg-elevated)); }
.cat-main.cool .product-media .placeholder-bg{ background: linear-gradient(155deg, color-mix(in srgb, var(--tide) 30%, var(--bg-elevated)), var(--bg-elevated)); }
.product-media .placeholder-bg svg{ width:22%; max-width:52px; opacity:.3; color: var(--ink); }

.product-body{ padding: 14px 16px 16px; }
.product-top{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.product-top .name{ font-weight:700; font-size:.98rem; }
.product-top .price{ font-weight:800; color: var(--brass); font-size:.95rem; font-variant-numeric: tabular-nums; white-space:nowrap; }
.product-desc{ margin:6px 0 0; font-size:.82rem; line-height:1.5; color: var(--ink-dim); }

/* Footer */
.site-footer{
  text-align:center; padding: 44px 20px 28px; color: rgba(255,255,255,.82);
  background: var(--ember);
}
.footer-rule{ margin-bottom:22px; }
.site-footer h3{
  font-family:'Archivo Black', sans-serif; font-weight:400; letter-spacing:1px;
  color: var(--on-bg); margin:0 0 10px; font-size:1.5rem;
}
.footer-addr{ display:flex; align-items:center; justify-content:center; margin:3px 0; font-size:.85rem; }
.footer-addr a{
  display:flex; align-items:center; gap:6px; color:inherit; text-decoration:none;
  border-bottom:1px solid transparent; transition: border-color .2s ease;
}
.footer-addr a:hover{ border-color: rgba(255,255,255,.6); }
.footer-addr .inline-ic{ color: var(--on-bg); }
.footer-phone{ margin:3px 0; font-size:.85rem; }
.footer-phone a{
  color:inherit; text-decoration:none; font-variant-numeric: tabular-nums;
  border-bottom:1px solid transparent; transition: border-color .2s ease;
}
.footer-phone a:hover{ border-color: rgba(255,255,255,.6); }
.footer-closed{ margin:6px 0 0; font-size:.78rem; color: var(--on-bg); font-weight:700; }
.footer-links{ display:flex; align-items:center; justify-content:center; gap:8px; margin: 16px 0 6px; font-size:.82rem; }
.footer-links a{ color: rgba(255,255,255,.82); text-decoration:none; border-bottom:1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.footer-links a:hover{ color: var(--on-bg); border-color: var(--on-bg); }
.footer-quality{
  margin: 16px auto 0; max-width: 30ch;
  font-size: .74rem; font-style: italic; opacity: .8;
}
.footer-base{
  margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.25);
  display:flex; flex-direction:column; align-items:center; gap:4px;
}
.footer-copy{ font-size:.72rem; opacity:.75; margin:0; }
.footer-credit{
  font-size:.72rem; color: rgba(255,255,255,.82); text-decoration:none;
  border-bottom: 1px dotted rgba(255,255,255,.4);
  transition: color .2s ease, border-color .2s ease;
}
.footer-credit:hover{ color: var(--on-bg); border-color: var(--on-bg); }

/* Back to top */
.back-top{
  position: fixed; right:16px; bottom:16px; z-index:60;
  width:42px; height:42px; border-radius:50%;
  border:1px solid var(--line); cursor:pointer;
  background: var(--ember); color: var(--bg-elevated);
  font-size:1.05rem; font-weight:700;
  box-shadow: 0 10px 24px -10px var(--shadow-color);
  opacity:0; visibility:hidden; transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease,
              background .25s ease, color .25s ease;
}
.back-top.show{ opacity:1; visibility:visible; transform:translateY(0); }
/* Footer is the same red as this button — flip to white so it stays visible on it. */
.back-top.on-footer{
  background: var(--on-bg); color: var(--ember); border-color: rgba(0,0,0,.1);
}

/* Product cards are tappable to enlarge */
.product-card{ cursor:pointer; }
.product-card:focus-visible{ outline:2px solid var(--ember); outline-offset:3px; }

/* Product enlarge modal */
.product-modal{
  position:fixed; inset:0; z-index:200;
  display:flex; align-items:center; justify-content:center; padding:20px;
}
.product-modal[hidden]{ display:none; }
.product-modal-backdrop{
  position:absolute; inset:0;
  background: rgba(20,8,4,.62); backdrop-filter: blur(4px);
  animation: modalBackdropIn .25s ease both;
}
@keyframes modalBackdropIn{ from{ opacity:0; } to{ opacity:1; } }

.product-modal-card{
  position:relative; z-index:1; width:100%; max-width:420px; max-height:86vh;
  overflow:auto; background: var(--bg-elevated); border-radius:22px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.55);
  animation: modalCardIn .32s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes modalCardIn{
  from{ opacity:0; transform: scale(.82) translateY(14px); }
  to{ opacity:1; transform: scale(1) translateY(0); }
}

.product-modal-close{
  position:absolute; top:12px; right:12px; z-index:2;
  width:34px; height:34px; border-radius:50%;
  background: rgba(20,8,4,.4); color:#fff; border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition: background .2s ease;
}
.product-modal-close svg{ width:16px; height:16px; }
.product-modal-close:hover{ background: var(--ember); }

.product-modal-media{ aspect-ratio: 4/3; background-size:cover; background-position:center; position:relative; }
.product-modal-media .placeholder-bg{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.product-modal-media .placeholder-bg svg{ width:26%; max-width:72px; opacity:.32; color: var(--ink); }
.product-modal-media:not(.cool-tone) .placeholder-bg{ background: linear-gradient(155deg, color-mix(in srgb, var(--ember) 32%, var(--bg-elevated)), var(--bg-elevated)); }
.product-modal-media.cool-tone .placeholder-bg{ background: linear-gradient(155deg, color-mix(in srgb, var(--tide) 32%, var(--bg-elevated)), var(--bg-elevated)); }

.product-modal-body{ padding: 18px 20px 22px; }
.product-modal-top{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.product-modal-top h3{
  font-family:'Archivo Black', sans-serif; font-weight:400; font-size:1.5rem;
  margin:0; letter-spacing:.3px; color: var(--ink);
}
.product-modal-top .price{ font-weight:800; color: var(--brass); font-variant-numeric: tabular-nums; }
#productModalDesc{ margin:10px 0 0; font-size:.9rem; line-height:1.6; color: var(--ink-dim); }
