/* Cloud Kitchen — customer storefront (mobile-first) */

:root {
  --ink: #481a02;
  --ink-soft: #6b3a22;
  --paper: #fff8f1;
  --paper-2: #f3e6d8;
  --surface: #ffffff;
  --primary-color: #481a02;
  --secondary-color: #fc5602;
  --accent: #fc5602;
  --accent-deep: #fc5602;
  --leaf: #166534;
  --nonveg: #b91c1c;
  --line: #e8d8c8;
  --shadow: 0 12px 40px rgb(28 20 16 / 0.08);
  --radius: 1rem;
  --shell: 72rem;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --header-h: 4.25rem;
  --dock-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.frontend-body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #ffe8d2 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #f0d9c4 0%, transparent 45%),
    var(--paper);
  line-height: 1.55;
  padding-bottom: calc(var(--dock-h) + 0.5rem);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.shell {
  width: min(100% - 1.5rem, var(--shell));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 248 241 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgb(28 20 16 / 0.06);
}

.header-bar {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--ink);
  text-decoration: none;
}

.logo-mark {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.45rem;
  background:
    linear-gradient(145deg, #ea580c, #9a3412);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.25);
}

.logo-img {
  height: 2.55rem;
  width: auto;
  max-width: 9.5rem;
  object-fit: contain;
  border-radius: 0.4rem;
  background-color: #fff;
  flex-shrink: 0;
}

.logo-text {
  line-height: 1.15;
  max-width: 11rem;
}

@media (max-width: 640px) {
  .logo-img {
    height: 2.2rem;
    max-width: 7.5rem;
  }

  .logo-text {
    font-size: 0.95rem;
    max-width: 8.5rem;
  }
}

.nav-toggle {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--surface);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.28rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 1.05rem;
  height: 2px;
  background: var(--ink);
  display: block;
}

.primary-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: #fff8f1;
  border-bottom: 1px solid var(--line);
  display: none;
  flex-direction: column;
  padding: 0.75rem 1rem 1rem;
  gap: 0.25rem;
  z-index: 49;
  box-shadow: 0 12px 28px rgb(72 26 2 / 0.12);
}

.primary-nav.is-open {
  display: flex;
}

.primary-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.7rem 0.6rem;
  border-radius: 0.5rem;
  font-weight: 600;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 14%, white);
}

.primary-nav .nav-cta {
  margin-top: 0.35rem;
  text-align: center;
  color: #fff;
}

.primary-nav .nav-logout-form {
  margin: 0;
}

.primary-nav .nav-logout-btn {
  width: 100%;
  text-align: left;
  color: var(--ink);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 0.6rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.primary-nav .nav-logout-btn:hover {
  background: color-mix(in srgb, var(--accent) 14%, white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgb(28 20 16 / 0.18);
}

.btn-ghost:hover {
  background: rgb(28 20 16 / 0.05);
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  color: var(--accent-deep);
  border-color: color-mix(in srgb, var(--accent) 35%, white);
}

.btn-outline:hover {
  background: #fff1e8;
  color: var(--accent-deep);
}

.btn-lg {
  min-height: 3rem;
  padding-inline: 1.35rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(66 24 2), #000000), linear-gradient(179deg, #2a1a12 0%, #000000 48%, #421802 100%);
  color: #fff8f1;
}

.hero-shell {
  display: grid;
  gap: 1.75rem;
  padding: 2rem 0 2.5rem;
  align-items: center;
}

.hero-copy {
  max-width: 36rem;
}

.hero-brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-label {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fbbf24;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 7vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-lead {
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
  color: rgb(255 248 241 / 0.86);
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-actions .btn-ghost {
  color: #fff;
  border-color: rgb(255 255 255 / 0.35);
}

.hero-actions .btn-ghost:hover {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}

.hero-visual {
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #1c1410;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */
.section {
  padding: 2.75rem 0;
}

.section-head {
  margin-bottom: 1.5rem;
  max-width: 36rem;
}

.section-head h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.page-hero {
  padding: 2rem 0 0.5rem;
}

.page-hero h1 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.6rem);
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 36rem;
}

/* Category grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.category-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  aspect-ratio: 1 / 1;
  background: #3b2418;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  text-decoration: none;
  color: #fff;
}

.category-card img,
.category-card-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-fallback {
  display: block;
  background:
    linear-gradient(160deg, #7c2d12, #c2410c 55%, #ea580c);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgb(0 0 0 / 0.72));
}

.category-card-name {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Product grid / cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 100%;
  box-shadow: 0 8px 24px rgb(28 20 16 / 0.04);
}

.product-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  overflow: hidden;
}

.product-card-media img,
.product-card-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-placeholder {
  display: block;
  background:
    linear-gradient(145deg, #efe0d0, #d9b99a 60%, #c48a5a);
}

.diet-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  border: 1.5px solid currentColor;
  display: grid;
  place-items: center;
  background: rgb(255 255 255 / 0.95);
}

.diet-badge.is-veg {
  color: var(--leaf);
}

.diet-badge.is-nonveg {
  color: var(--nonveg);
}

.diet-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.9rem 0.9rem 1rem;
  gap: 0.35rem;
}

.product-card-cat {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.product-card-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.product-card-title a {
  color: var(--ink);
  text-decoration: none;
}

.product-card-title a:hover {
  color: var(--accent-deep);
}

.product-card-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  flex: 1;
}

.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.product-card-price {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
}

.spice-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid #fdba74;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.product-card-cta {
  margin-top: 0.65rem;
  width: 100%;
}

.product-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.product-card-actions .product-card-cta {
  margin-top: 0;
}

.product-card-actions .product-card-icon-btn {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.45rem;
  border-radius: 0.85rem;
}

.product-card-actions .product-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.product-card-actions .product-action-icon svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.product-card-actions .product-card-icon-btn.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

/* Menu chips */
.menu-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0 1rem;
  margin-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.9rem;
  white-space: nowrap;
}

.chip:hover,
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  text-decoration: none;
}

/* Product detail */
.product-detail {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 0 2.5rem;
}

.product-detail-media {
  margin: 0;
  border-radius: 1.15rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.product-detail-media img,
.product-detail-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-placeholder {
  display: block;
  background: linear-gradient(145deg, #efe0d0, #d9b99a);
}

.product-detail-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 1rem;
}

.flag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.85rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--surface);
}

.flag.is-veg {
  color: var(--leaf);
  border-color: #86efac;
  background: #f0fdf4;
}

.flag.is-nonveg {
  color: var(--nonveg);
  border-color: #fecaca;
  background: #fef2f2;
}

.flag.is-spicy {
  color: #9a3412;
  border-color: #fdba74;
  background: #fff7ed;
}

.product-detail h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.product-detail-cat {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.product-detail-desc {
  margin: 1rem 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.product-detail-desc p {
    margin: 0 0 18px;
}

.product-detail-desc h2,
.product-detail-desc h3,
.product-detail-desc h4 {
    margin: 0 0 12px;
    line-height: 1.3;
}

.product-detail-desc strong,
.product-detail-desc b {
    font-weight: 700;
}

.product-detail-desc ul,
.product-detail-desc ol {
    margin: 10px 0 20px;
    padding-left: 25px;
}

.product-detail-desc li {
    margin-bottom: 8px;
}

.product-detail-desc br {
    display: block;
    content: "";
    margin-bottom: 8px;
}
.product-detail-price {
  margin: 0 0 1rem;
  font-size: 1.6rem;
  font-weight: 800;
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.availability-note {
  margin: 0 0 1rem;
  font-weight: 700;
  color: #9a3412;
}

.back-link {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-weight: 650;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* Empty / 404 */
.empty-panel,
.error-panel {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--ink-soft);
}

.error-panel h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  color: var(--ink);
}

/* Footer */
.site-footer {
  background: #1c1410;
  color: #f5e6d8;
  padding: 2.5rem 0 calc(1.5rem + var(--dock-h));
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.site-footer h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
}

.footer-brand {
  display: inline-block;
  margin: 0 0 0.75rem;
  text-decoration: none;
}

.site-footer .footer-logo-img,
.footer-logo-img {
  display: block;
  height: 3.25rem;
  width: auto;
  max-width: 12rem;
  object-fit: contain;
  border-radius: 0.45rem;
  background-color: #fff;
  padding: 0.2rem;
  box-sizing: content-box;
}

.site-footer p,
.site-footer li {
  margin: 0;
  color: rgb(245 230 216 / 0.78);
  font-size: 0.95rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.site-footer a {
  color: #ffd7a8;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-copy {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.85rem;
}

/* Mobile dock */
.mobile-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  background: rgb(255 248 241 / 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}

.mobile-dock.mobile-dock-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mobile-dock a {
  display: grid;
  place-items: center;
  min-height: 2.85rem;
  padding: 0.35rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
}

.mobile-dock a:hover {
  color: var(--ink);
  text-decoration: none;
}

.mobile-dock .dock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  line-height: 0;
  position: relative;
}

.mobile-dock .dock-icon svg {
  display: block;
  width: 1.4rem;
  height: 1.4rem;
}

.mobile-dock .dock-icon-cart .dock-badge {
  position: absolute;
  top: -0.45rem;
  right: -0.55rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.1rem;
  text-align: center;
  border: 1px solid rgb(0 0 0 / 0.08);
}

.mobile-dock .dock-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.mobile-dock .dock-primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.mobile-dock .dock-primary .dock-badge {
  background: #fff;
  color: var(--ink);
}

/* Breakpoints */
@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  body.frontend-body {
    padding-bottom: 0;
  }

  .mobile-dock {
    display: none;
  }

  .site-footer {
    padding-bottom: 2rem;
  }

  .nav-toggle {
    display: none;
  }

  .logo-text {
    font-size: 0.95rem;
    max-width: 7.5rem;
  }

  .logo-img {
    height: 2.35rem;
    max-width: 8.25rem;
  }

  .primary-nav {
    position: static;
    inset: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.05rem;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .primary-nav a,
  .primary-nav .nav-logout-btn {
    padding: 0.35rem 0.45rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .primary-nav .nav-cta {
    margin-top: 0;
    margin-left: 0.2rem;
    min-height: 2.15rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
  }

  .primary-nav .nav-logout-btn {
    width: auto;
    text-align: center;
  }

  .hero-shell {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    padding: 3.25rem 0 3.5rem;
  }

  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-detail {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: start;
    padding-top: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

@media (max-width: 379px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .category-card,
  .site-header {
    transition: none;
  }

  .btn:hover,
  .category-card:hover {
    transform: none;
  }
}

/* Branded header extras */
.branded-header .cart-link,
.branded-header .header-phone {
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.22);
  color: #fff8f1;
}

.branded-header .cart-link:hover,
.branded-header .cart-link.is-active,
.branded-header .header-phone:hover {
  background: rgb(255 255 255 / 0.2);
  color: #fff;
}

.branded-header .nav-toggle {
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.22);
}

.branded-header .nav-toggle span {
  background: #fff8f1;
}

.header-phone {
  display: inline-grid;
  place-items: center;
  color: #fff8f1;
  text-decoration: none;
}

.header-phone:hover {
  color: #fff;
  text-decoration: none;
}

.header-icon-btn {
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.22);
  background: rgb(255 255 255 / 0.12);
  color: #fff8f1;
}

.header-icon-btn:hover,
.header-icon-btn.is-active {
  background: rgb(255 255 255 / 0.2);
  color: #fff;
  text-decoration: none;
}

.header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 1.35rem;
  height: 1.35rem;
  line-height: 0;
}

.header-icon svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.header-icon-cart .header-cart-badge {
  position: absolute;
  top: -0.45rem;
  right: -0.55rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #fff;
  color: #481a02;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.05rem;
  text-align: center;
  border: 1px solid rgb(0 0 0 / 0.08);
}

.footer-address {
  line-height: 1.45;
}

/* About page */
.about-panel-address {
    width: 100%;
}

.about-content {
    max-width: 1100px;
    margin: 0 auto;
}

.about-eyebrow {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.about-content h2 {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.about-content h3 {
    font-size: 26px;
    margin-bottom: 15px;
}

.about-content h4 {
    font-size: 18px;
    margin: 0 0 7px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.about-lead {
    font-size: 19px !important;
    line-height: 1.8 !important;
}

.about-section {
    margin-top: 45px;
}

.farm-products {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.farm-products li {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.03);
}

.farm-products li > span {
    font-size: 28px;
}

.farm-products p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.about-values,
.about-quality-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 25px;
}

.about-value,
.quality-item {
    padding: 22px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.03);
}

.about-value strong {
    display: block;
    margin-bottom: 7px;
}

.about-value span {
    font-size: 14px;
}

.quality-icon {
    font-size: 30px;
    display: block;
    margin-bottom: 10px;
}

.quality-item p {
    font-size: 14px;
    margin-bottom: 0;
}

.about-quote {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px 0;
}

.about-quote strong {
    padding: 12px 18px;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.05);
}

.mission-line,
.promise-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.mission-line span,
.promise-list span {
    padding: 12px 18px;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

.about-promise {
    margin-top: 50px;
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.04);
}

.about-closing {
    text-align: center;
    margin-top: 55px;
    padding: 30px 15px;
}

.closing-quote {
    font-size: 24px !important;
    line-height: 1.7 !important;
    font-weight: 700;
}

.about-closing h2 {
    margin-top: 25px;
    margin-bottom: 8px;
}

.tagline {
    margin-bottom: 8px !important;
}

@media (max-width: 768px) {

    .about-content h2 {
        font-size: 30px;
    }

    .about-content h3 {
        font-size: 22px;
    }

    .farm-products,
    .about-values,
    .about-quality-grid {
        grid-template-columns: 1fr;
    }

    .about-section {
        margin-top: 35px;
    }

    .about-promise {
        padding: 25px 18px;
    }

    .closing-quote {
        font-size: 20px !important;
    }
}
.about-hero .about-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary-color);
}

.about-layout {
  display: grid;
  gap: 1rem;
}

.about-panel {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 0.15rem);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.35rem 1.25rem 1.4rem;
  box-shadow: 0 10px 28px rgb(72 26 2 / 0.06);
  animation: about-rise 0.55s ease both;
}
.about-panel:nth-child(2) { animation-delay: 0.06s; }
.about-panel:nth-child(3) { animation-delay: 0.12s; }
.about-panel:nth-child(4) { animation-delay: 0.18s; }
.about-panel:nth-child(5) { animation-delay: 0.24s; }

@keyframes about-rise {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-label {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--secondary-color);
}

.about-panel h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.5vw, 1.65rem);
  letter-spacing: -0.02em;
  color: var(--primary-color);
  line-height: 1.2;
}

.about-panel-story {
  background:
    linear-gradient(145deg, rgb(255 248 241 / 0.96) 0%, rgb(255 255 255 / 0.92) 48%, rgb(255 236 214 / 0.9) 100%),
    radial-gradient(600px 220px at 100% 0%, rgb(252 86 2 / 0.12), transparent 60%);
  border-color: rgb(252 86 2 / 0.18);
}

.about-panel-story::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.28rem;
  background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
}

.about-panel-inner {
  position: relative;
  padding-left: 0.35rem;
}

.about-panel-story p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  max-width: 40rem;
  font-size: 1.02rem;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.about-actions .btn {
  width: auto;
  min-width: 8.5rem;
}

.about-actions-stack {
  flex-direction: column;
}

.about-actions-stack .btn {
  width: 100%;
  min-width: 0;
}

.about-panel-owner {
  background:
    linear-gradient(160deg, #481a02 0%, #6a2c0f 55%, #8a3a12 100%);
  border-color: transparent;
  color: #fff8f1;
  box-shadow: 0 14px 36px rgb(72 26 2 / 0.28);
}

.about-panel-owner .about-label {
  color: #ffc19a;
}

.about-panel-owner h2 {
  color: #fff;
  margin-bottom: 0.25rem;
}

.about-owner-mark {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: #481a02;
  background: linear-gradient(145deg, #ffd7b8, #fc5602);
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.18);
}

.about-owner-role {
  margin: 0 0 0.75rem;
  color: #ffd7b8;
  font-weight: 650;
  font-size: 0.95rem;
}

.about-owner-note {
  margin: 0;
  color: rgb(255 248 241 / 0.82);
  font-size: 0.95rem;
  line-height: 1.5;
}

.about-panel-info,
.about-panel-address {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.about-info-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  margin: 0 0 0.85rem;
  color: var(--secondary-color);
  background: rgb(252 86 2 / 0.1);
  border: 1px solid rgb(252 86 2 / 0.16);
}

.about-info-value {
  margin: 0 0 0.35rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 700;
  word-break: break-word;
}

.about-info-value a {
  color: var(--primary-color);
  text-decoration: none;
}

.about-info-value a:hover {
  color: var(--secondary-color);
}

.about-address {
  white-space: pre-line;
  font-weight: 600;
  line-height: 1.55;
}

.about-hours {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.about-hours span {
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary-color);
}

.about-panel-info .about-actions,
.about-panel-address .about-actions {
  margin-top: auto;
  padding-top: 1.15rem;
}

.about-panel-address {
  background:
    linear-gradient(180deg, #fff 0%, #fff8f1 100%);
}

@media (prefers-reduced-motion: reduce) {
  .about-panel {
    animation: none;
  }
}

/* Contact page */
.contact-grid {
  display: grid;
  gap: 0.9rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: 0 8px 24px rgb(28 20 16 / 0.04);
}

.contact-card h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--primary-color);
}

.contact-value {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.contact-value a {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
}

.contact-address {
  white-space: pre-line;
}

.contact-card .btn {
  width: 100%;
}

.color-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.color-row input[type="color"] {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-border, #e4ddd3);
  border-radius: 0.5rem;
  background: #fff;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.settings-form .form-actions {
  margin: 0.5rem 0 1.5rem;
}

@media (min-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-card-wide {
    grid-column: 1 / -1;
  }

  .about-layout {
    grid-template-columns: 1.35fr 1fr;
    gap: 1.1rem;
  }

  .about-panel-story {
    grid-column: 1 / -1;
    padding: 1.75rem 1.75rem 1.85rem;
  }

  .about-panel-address {
    grid-column: 1 / -1;
  }

  .about-actions-stack {
    flex-direction: row;
  }

  .about-actions-stack .btn {
    width: auto;
    flex: 1 1 auto;
  }
}

@media (min-width: 960px) {
  .about-layout {
    grid-template-columns: 1.1fr 1fr 1fr;
  }

  .about-panel-story {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    min-height: 100%;
  }

  .about-panel-owner {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .about-panel-address {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .header-phone {
    display: inline-grid;
  }
}

/* Alerts */
.alert {
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.alert-success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.alert-warn {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Header cart */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.cart-menu {
  position: relative;
}

.cart-link {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.cart-link:hover,
.cart-link.is-active {
  color: var(--ink);
  text-decoration: none;
  border-color: #fdba74;
  background: #fff7ed;
}

.mini-cart {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  width: min(20rem, calc(100vw - 2rem));
  background:#421802;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  box-shadow: var(--shadow);
  padding: 0.85rem;
  z-index: 60;
}

.mini-cart-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  max-height: 14rem;
  overflow: auto;
}

.mini-cart-list li {
  display: grid;
  gap: 0.1rem;
}

.mini-cart-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.mini-cart-meta {
  color: #fc5602;
  font-size: 0.8rem;
}

.mini-cart-subtotal {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.mini-cart-empty {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Toast */
.cart-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-h) + 0.75rem);
  transform: translateX(-50%);
  z-index: 80;
  background: #1c1410;
  color: #fff8f1;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  max-width: min(92vw, 28rem);
  text-align: center;
}

.cart-toast.is-error {
  background: #991b1b;
}

.global-cart-toast {
  bottom: calc(var(--dock-h) + 0.75rem);
}

/* Cart page */
.cart-layout {
  display: grid;
  gap: 1.25rem;
}

.cart-items {
  display: grid;
  gap: 0.85rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
}

.cart-item-media {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 0.65rem;
  overflow: hidden;
  background: var(--paper-2);
}

.cart-item-media img,
.cart-item-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-placeholder {
  display: block;
  background: linear-gradient(145deg, #efe0d0, #d9b99a);
}

.cart-item-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.2;
}

.cart-item-title a {
  color: var(--ink);
  text-decoration: none;
}

.cart-item-price {
  margin: 0 0 0.65rem;
  font-weight: 700;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cart-item-subtotal {
  margin: 0;
  font-weight: 800;
}

.cart-remove {
  margin-top: 0.65rem;
  border: 0;
  background: transparent;
  color: #b91c1c;
  font: inherit;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.qty-btn {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}

.qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty-input {
  width: 2.5rem;
  border: 0;
  text-align: center;
  font: inherit;
  font-weight: 700;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  height: fit-content;
}

.cart-summary h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.summary-list {
  margin: 0 0 1rem;
}

.summary-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.summary-list dt {
  margin: 0;
  color: var(--ink-soft);
}

.summary-list dd {
  margin: 0;
  font-weight: 700;
}

.summary-total {
  border-bottom: 0 !important;
  padding-top: 0.75rem !important;
  font-size: 1.05rem;
}

  .cart-summary .btn + .btn {
  margin-top: 0.55rem;
}

/* Checkout */
.checkout-layout {
  display: grid;
  gap: 1.25rem;
}

.checkout-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.25rem;
}

.checkout-card legend,
.checkout-card h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  padding: 0;
}

.checkout-card fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

.form-group {
  margin: 0;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 40%, white);
  border-color: var(--accent);
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.promo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.promo-row input {
  flex: 1 1 10rem;
  min-width: 0;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.promo-row .btn {
  flex: 0 0 auto;
}

@media (max-width: 520px) {
  .promo-row {
    flex-direction: column;
    align-items: stretch;
  }

  .promo-row .btn {
    width: 100%;
  }
}

.field-error {
  margin: 0.35rem 0 0;
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 650;
}

.optional {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.req {
  color: #b91c1c;
}

.order-type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.85rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
}

.radio-card:has(input:checked) {
  border-color: var(--accent);
  background: #fff7ed;
}

.pincode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.pincode-row input {
  flex: 1 1 8rem;
  min-width: 0;
}

.delivery-meta {
  margin-top: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--primary-color) 6%, white);
  border: 1px solid var(--line);
  font-size: 0.92rem;
}

.delivery-meta p {
  margin: 0.2rem 0;
}

.checkout-delivery-msg {
  min-height: 1.4em;
  color: #b91c1c;
  font-size: 0.9rem;
  margin: 0.5rem 0 0.75rem;
}

.checkout-items {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.checkout-items li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.checkout-items li > div {
  display: grid;
  gap: 0.15rem;
}

.checkout-delivery-msg {
  min-height: 1.25rem;
  margin: 0 0 0.75rem;
  color: #9a3412;
  font-size: 0.9rem;
  font-weight: 650;
}

.success-wrap {
  max-width: 56rem;
}

.success-hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

.success-eyebrow {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-deep);
}

.success-hero h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.6rem);
}

.success-order-no {
  margin: 0.75rem 0;
  font-weight: 800;
  font-size: 1.15rem;
}

.success-subhead {
  margin: 1rem 0 0.35rem;
  font-size: 1rem;
  font-family: var(--font-display);
}

.detail-list {
  margin: 0;
}

.detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  margin: 0;
  color: var(--ink-soft);
}

.detail-list dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.success-grid .btn + .btn {
  margin-top: 0.55rem;
}

@media (min-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1.35fr 0.9fr;
    align-items: start;
  }

  .checkout-summary {
    position: sticky;
    top: calc(var(--header-h) + 0.75rem);
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .checkout-main {
    display: grid;
    gap: 1rem;
  }
}

@media (min-width: 900px) {
  .header-actions {
    order: 3;
    margin-left: 0.75rem;
  }

  .primary-nav {
    order: 2;
    margin-left: auto;
  }

  .logo {
    order: 1;
  }

  .header-bar {
    display: flex;
  }

  .cart-layout {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
  }

  .cart-toast,
  .global-cart-toast {
    bottom: 1.25rem;
  }
}

/* Order tracking */
.track-layout {
  display: grid;
  gap: 1.25rem;
  max-width: 52rem;
}

.track-form .track-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.track-status-label {
  margin: 0.25rem 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.track-cancelled {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  color: #991b1b;
}

.track-cancelled h2 {
  margin: 0 0 0.25rem;
  color: inherit;
}

.track-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.track-step {
  position: relative;
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.65rem;
  padding-bottom: 1.1rem;
}

.track-mark {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: #eee4da;
  color: var(--primary-color);
  z-index: 1;
}

.track-step.is-done .track-mark,
.track-step.is-current .track-mark {
  background: var(--secondary-color);
  color: #fff;
}

.track-step.is-cancelled .track-mark {
  background: #b91c1c;
  color: #fff;
}

.track-step.is-upcoming {
  opacity: 0.55;
}

.track-step-body {
  display: grid;
  gap: 0.15rem;
}

.track-time {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.track-connector {
  position: absolute;
  left: 0.7rem;
  top: 1.55rem;
  bottom: 0;
  width: 2px;
  background: #e8d8c8;
}

.track-step.is-done .track-connector {
  background: color-mix(in srgb, var(--secondary-color) 55%, #e8d8c8);
}

@media (min-width: 768px) {
  .track-layout {
    grid-template-columns: minmax(16rem, 20rem) 1fr;
    align-items: start;
  }
}

/* Account / auth */
.shell-narrow { max-width: 40rem; margin-inline: auto; }
.auth-section { padding-block: 2rem 3rem; }
.auth-panel h1 { margin: 0 0 0.35rem; }
.auth-lead { margin: 0 0 1rem; color: var(--ink-soft); }
.auth-form .form-group { margin-bottom: 0.85rem; }
.auth-switch { margin: 1rem 0 0; font-size: 0.9rem; }
.auth-switch a { font-weight: 650; }
.nav-logout-form { display: inline; margin: 0; }
.nav-logout-btn {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
}
.nav-logout-btn:hover { background: rgb(255 255 255 / 0.12); }
.account-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}
.account-nav a {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
}
.account-nav a.is-active,
.account-nav a:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.account-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.account-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.account-order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.account-order-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.account-order-list li > div { display: grid; gap: 0.15rem; }
.account-order-meta { display: flex; align-items: center; gap: 0.65rem; }
.account-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.account-card-head h2 { margin: 0; }
.checkout-account-prompt { margin-bottom: 0; }
.btn-sm { padding: 0.35rem 0.65rem; font-size: 0.85rem; }
.account-table-wrap { overflow-x: auto; }
.inline-form { display: inline; }
