/* =========================================================
   CEDAR FIRE SUPPLY — Storefront
   Brand: navy + red, same DNA as the CFS inventory app
   ========================================================= */

:root {
  --navy:        #0b1d3a;
  --navy-2:      #142a52;
  --navy-3:      #1b3870;
  --red:         #d72638;
  --red-2:       #b21d2c;
  --amber:       #ffb43b;
  --bg:          #fafbfd;
  --bg-2:        #f1f4f9;
  --card:        #ffffff;
  --ink:         #0c1424;
  --ink-2:       #303a52;
  --muted:       #6b7385;
  --muted-2:     #9aa1b4;
  --line:        #e6e9ef;
  --line-2:      #dfe3ec;
  --chip:        #eef2f8;
  --chip-active: #0b1d3a;
  --good:        #1f9d55;
  --warn:        #c97a0c;
  --bad:         #c0392b;

  --shadow-sm:   0 1px 2px rgba(11, 22, 40, .06);
  --shadow:      0 2px 4px rgba(11, 22, 40, .04), 0 10px 30px rgba(11, 22, 40, .07);
  --shadow-lg:   0 10px 40px rgba(11, 22, 40, .14);

  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   22px;

  --container:   1240px;
  --gutter:      24px;
  --header-h:    72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px; line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .3px;
  box-shadow: 0 4px 12px rgba(215, 38, 56, .35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 16px; }
.brand-tag { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }

.primary-nav {
  display: flex; align-items: center; gap: 30px;
  margin-left: auto;
}
.primary-nav a {
  font-weight: 500; font-size: 14.5px; color: var(--ink-2);
  position: relative; padding: 6px 0;
  transition: color .15s;
}
.primary-nav a:hover { color: var(--navy); }
.primary-nav a.active { color: var(--navy); font-weight: 700; }
.primary-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--red); border-radius: 1px;
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-btn {
  position: relative;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-2); color: var(--navy); border: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-btn:hover { background: var(--line-2); }
.cart-count {
  position: absolute; top: -3px; right: -3px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--red); color: #fff;
  font-size: 10.5px; font-weight: 800; line-height: 18px;
  display: none;
}
.cart-count.show { display: inline-block; }

.hamburger {
  display: none; width: 40px; height: 40px;
  border-radius: 10px; background: var(--bg-2); border: 0;
  flex-direction: column; gap: 4px;
  align-items: center; justify-content: center;
}
.hamburger span {
  width: 18px; height: 2px; background: var(--navy); border-radius: 1px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 14.5px; border: 0;
  transition: transform .12s, box-shadow .15s, background .15s, color .15s;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 6px 18px rgba(215, 38, 56, .3);
}
.btn-primary:hover { background: var(--red-2); }
.btn-ghost {
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--line-2);
}
.btn-ghost:hover { background: var(--bg-2); border-color: var(--navy); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  padding: 80px 0 88px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(255, 180, 59, .18), transparent 60%),
    radial-gradient(900px 600px at 20% 100%, rgba(215, 38, 56, .35), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  z-index: 0;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; text-align: left; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  padding: 7px 14px; border-radius: 999px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 4px rgba(215, 38, 56, .25);
}
.hero-title {
  margin: 22px 0 18px;
  font-size: clamp(38px, 6vw, 72px); line-height: 1.05;
  font-weight: 900; letter-spacing: -0.025em;
}
.hero-title .accent {
  color: var(--red);
  background: linear-gradient(180deg, #ff5d70 0%, var(--red) 60%, #b21d2c 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(15px, 1.4vw, 19px); line-height: 1.55;
  max-width: 600px;
  color: rgba(255,255,255,.78);
}
.hero-ctas {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.hero-ctas .btn-ghost {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-color: rgba(255,255,255,.18);
}
.hero-ctas .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.32); }
.hero-trust {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 28px;
}
.trust-item { display: flex; flex-direction: column; }
.trust-item strong {
  font-size: 22px; font-weight: 800; color: #fff;
  letter-spacing: -0.01em;
}
.trust-item span {
  font-size: 12px; color: rgba(255,255,255,.6);
  text-transform: uppercase; letter-spacing: .5px; font-weight: 600;
  margin-top: 4px;
}

@media (max-width: 740px) {
  .hero { padding: 48px 0 56px; }
  .hero-title { font-size: clamp(34px, 8vw, 46px); }
  .hero-trust { grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 32px; padding-top: 20px; }
  .trust-item strong { font-size: 18px; }
  .trust-item span { font-size: 11px; }
}
@media (max-width: 420px) {
  .brand-tag { display: none; }
  .brand-name { font-size: 14.5px; }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 84px 0; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: var(--red);
  padding: 5px 12px; border-radius: 999px;
  background: rgba(215, 38, 56, .08);
}
.section-title {
  margin: 14px 0 12px;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.1;
  font-weight: 800; letter-spacing: -0.022em;
  color: var(--navy);
}
.section-sub {
  color: var(--muted); font-size: 16px; max-width: 580px;
  margin: 0 auto;
}

@media (max-width: 740px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
}

/* =========================================================
   CATEGORIES
   ========================================================= */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.cat-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: pointer;
  position: relative; overflow: hidden;
}
.cat-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--navy);
}
.cat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--bg-2); display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.cat-tile h3 {
  margin: 6px 0 0; font-size: 18px; font-weight: 700; color: var(--navy);
  letter-spacing: -0.012em;
}
.cat-tile p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.cat-count {
  margin-top: auto; padding-top: 10px;
  font-size: 12px; font-weight: 700; color: var(--red);
  letter-spacing: .3px; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
}
.cat-count::after { content: "→"; transition: transform .15s; }
.cat-tile:hover .cat-count::after { transform: translateX(3px); }

/* =========================================================
   PRODUCT GRID
   ========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
@media (max-width: 740px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr; }
}

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .2s, border-color .2s;
  position: relative;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}
.product-photo {
  aspect-ratio: 1 / 1;
  background: var(--bg-2);
  overflow: hidden; cursor: zoom-in; position: relative;
}
.product-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.product-card:hover .product-photo img { transform: scale(1.04); }
.product-photo.empty {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef2f8 0%, #dde4ef 100%);
}
.product-photo.empty::before { content: "📦"; font-size: 30px; opacity: .8; }

.product-status {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700;
  background: rgba(255,255,255,.95); color: var(--good);
  text-transform: uppercase; letter-spacing: .4px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.product-status.warn  { color: var(--warn); }
.product-status.bad   { color: var(--bad); }
.product-app-badge {
  position: absolute; top: 10px; right: 10px;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(11, 29, 58, .92); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}

.product-body {
  padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1;
}
.product-cat {
  font-size: 10.5px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px;
}
.product-name {
  margin: 2px 0 4px; font-size: 14.5px; font-weight: 600; line-height: 1.3;
  color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 38px;
}
.product-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag {
  font-size: 10.5px; padding: 2px 8px; border-radius: 5px;
  background: var(--chip); color: var(--ink); font-weight: 600;
}
.tag.size   { background: #e2eaf8; color: #1b3a6e; }
.tag.conn   { background: #f0e6fa; color: #4a2e7c; }
.tag.finish { background: #efeae0; color: #5a4b1e; }

.product-price-row {
  margin-top: auto; padding-top: 12px;
  display: flex; justify-content: space-between; align-items: end;
  gap: 8px; flex-wrap: wrap;
}
.price {
  font-size: 18px; font-weight: 800; color: var(--navy);
  letter-spacing: -0.01em; line-height: 1;
}
.price-no { color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1; }

.stock-line {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .2px;
  white-space: nowrap;
}
.stock-line .stock-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px currentColor;
  opacity: .9;
}
.stock-line .stock-dot { box-shadow: none; }
.stock-line.in  { color: var(--good); }
.stock-line.out { color: var(--bad); }

.product-actions {
  margin-top: 10px; display: flex; gap: 6px;
}
.product-actions .btn {
  flex: 1; padding: 9px 10px; font-size: 12.5px;
  white-space: nowrap;
  min-width: 0;
}
@media (max-width: 420px) {
  .product-actions .btn { padding: 8px 8px; font-size: 11.5px; gap: 4px; }
}
.btn-add {
  background: var(--bg-2); color: var(--navy);
  border: 1.5px solid var(--line-2);
}
.btn-add:hover { background: var(--line-2); border-color: var(--navy); }
.btn-add:disabled,
.btn-add[disabled] {
  opacity: .4; cursor: not-allowed;
  background: var(--bg-2); border-color: var(--line-2); color: var(--muted);
}
.btn-add:disabled:hover { background: var(--bg-2); border-color: var(--line-2); }
.btn-buy {
  background: var(--navy); color: #fff;
}
.btn-buy:hover { background: var(--navy-2); }
.btn-inquire { background: var(--navy); color: #fff; }
.btn-inquire:hover { background: var(--navy-2); }

/* =========================================================
   CATALOG CONTROLS
   ========================================================= */
.catalog-controls {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  margin-bottom: 24px;
}
.search-wrap { position: relative; }
.search-wrap input {
  width: 100%; padding: 12px 14px 12px 40px;
  border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink);
  font-size: 14.5px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.search-wrap input:focus {
  outline: 0; border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(11, 29, 58, .08);
}
.search-icn {
  position: absolute; top: 50%; left: 14px; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted);
}
.sort-select {
  padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); font-family: inherit;
  font-size: 14px; cursor: pointer;
}
.active-filter-count {
  display: inline-block; min-width: 18px; padding: 0 6px;
  border-radius: 999px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; margin-left: 4px;
}
.active-filter-count:empty { display: none; }

.catalog-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 28px;
  align-items: start;
}
.catalog-filters {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky; top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
}
.filters-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.filters-head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.filter-close {
  display: none; width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg-2); border: 0; font-size: 22px; line-height: 1;
}
.filter-group { padding: 10px 0; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: 0; padding-top: 4px; }
.filter-group h4 {
  margin: 0 0 8px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; color: var(--muted);
}
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  border: 1px solid var(--line); background: var(--chip);
  color: var(--ink); border-radius: 999px;
  padding: 5px 10px; font-size: 12px; font-weight: 500;
  cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
}
.chip .ct { color: var(--muted); font-size: 10.5px; }
.chip:hover { background: var(--line-2); }
.chip.active { background: var(--chip-active); color: #fff; border-color: var(--chip-active); }
.chip.active .ct { color: var(--amber); }
.clear-filters {
  margin-top: 12px; width: 100%;
  padding: 8px; border-radius: 8px; border: 0;
  background: var(--bg-2); color: var(--ink); font-size: 12.5px; font-weight: 600;
}
.clear-filters:hover { background: var(--line-2); }

.catalog-empty {
  text-align: center; padding: 60px 20px; color: var(--muted);
}
.catalog-empty h3 { color: var(--ink); margin: 0 0 6px; }

@media (max-width: 920px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-controls { grid-template-columns: 1fr auto; }
  .sort-select { grid-column: 1 / -1; }
  .catalog-filters {
    position: fixed; inset: 0 0 0 auto;
    width: 320px; max-width: 90vw; max-height: 100vh;
    border-radius: 0;
    z-index: 80;
    transform: translateX(100%);
    transition: transform .25s;
    box-shadow: var(--shadow-lg);
  }
  .catalog-filters[data-open="true"] { transform: translateX(0); }
  .filter-close { display: flex; align-items: center; justify-content: center; cursor: pointer; }
}

/* =========================================================
   ABOUT
   ========================================================= */
.section-about { background: var(--bg-2); }
.about-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px;
  align-items: start;
}
.about-text .section-eyebrow { background: rgba(215, 38, 56, .1); }
.about-text .section-title { text-align: left; margin-top: 12px; }
.about-text p {
  color: var(--ink-2); font-size: 16px; line-height: 1.65;
  margin: 16px 0 0;
}
.about-stats {
  margin: 32px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 32px;
}
.about-stats > div { display: flex; flex-direction: column; }
.about-stats strong {
  font-size: 24px; font-weight: 800; color: var(--navy);
  letter-spacing: -0.015em;
}
.about-stats span {
  font-size: 12.5px; color: var(--muted); margin-top: 2px;
  text-transform: uppercase; letter-spacing: .4px; font-weight: 600;
}
.about-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 8px 4px;
  box-shadow: var(--shadow);
}
.about-card-row {
  padding: 20px 22px;
  display: grid; grid-template-columns: 130px 1fr; gap: 18px;
  border-bottom: 1px solid var(--line);
}
.about-card-row:last-child { border-bottom: 0; }
.ac-label {
  font-size: 11.5px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px;
}
.ac-value { font-size: 14.5px; color: var(--ink); line-height: 1.45; }
.ac-value a { color: var(--red); font-weight: 600; }

@media (max-width: 920px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-card-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px;
  align-items: start;
}
.contact-text .section-eyebrow { background: rgba(215, 38, 56, .1); }
.contact-text .section-title { text-align: left; margin-top: 12px; }
.contact-text p { color: var(--muted); margin: 14px 0 28px; max-width: 460px; }
.contact-list {
  display: flex; flex-direction: column; gap: 14px;
}
.contact-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px;
  background: var(--bg-2);
  border-radius: var(--radius);
  transition: background .15s;
}
.contact-row[href]:hover { background: var(--line-2); }
.cr-icn {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.contact-row strong { display: block; font-weight: 700; color: var(--ink); font-size: 15px; }
.contact-row span  { font-size: 12.5px; color: var(--muted); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px;
}
.contact-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border-radius: 10px; border: 1.5px solid var(--line);
  font-family: inherit; font-size: 14.5px;
  background: #fff; color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 0; border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(11, 29, 58, .08);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note {
  margin: -6px 0 0; font-size: 12px; color: var(--muted); text-align: center;
}

@media (max-width: 920px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.78);
  padding: 56px 0 24px;
  margin-top: 56px;
}
.footer-inner {
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 56px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { font-weight: 800; font-size: 18px; color: #fff; }
.footer-tag { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 3px; }
.footer-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.footer-cols h4 {
  color: #fff; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  margin: 0 0 14px;
}
.footer-cols a, .footer-cols span {
  display: block; font-size: 14px; color: rgba(255,255,255,.7);
  padding: 4px 0;
}
.footer-cols a:hover { color: #fff; }
.footer-bottom {
  margin-top: 36px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.10);
  font-size: 12.5px; color: rgba(255,255,255,.5);
}

@media (max-width: 740px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   CART DRAWER
   ========================================================= */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(8, 14, 28, .55);
  opacity: 0; pointer-events: none; transition: opacity .25s;
  z-index: 90;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: 400px; max-width: 100%;
  background: #fff; z-index: 91;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,.0,.2,1);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  padding: 20px 22px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.cart-head h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--navy); }
.cart-close {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg-2); border: 0; font-size: 22px; line-height: 1;
  cursor: pointer; color: var(--ink);
}
.cart-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-item-img {
  width: 56px; height: 56px; border-radius: 8px; background: var(--bg-2);
  overflow: hidden; flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-text { min-width: 0; }
.cart-item-name { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.cart-item-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.cart-item-controls { display: flex; align-items: center; gap: 4px; }
.qty-mini {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--bg-2); color: var(--ink); border: 0;
  font-weight: 700; cursor: pointer;
}
.qty-mini:hover { background: var(--line-2); }
.qty-mini-val {
  min-width: 26px; text-align: center; font-weight: 700; font-size: 14px;
}
.cart-empty {
  text-align: center; padding: 60px 24px; color: var(--muted);
}
.cart-empty strong { color: var(--ink); display: block; margin-bottom: 4px; font-size: 16px; }
.cart-foot {
  padding: 20px 22px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.cart-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.cart-total span { font-size: 13px; color: var(--muted); }
.cart-total strong { font-size: 22px; font-weight: 800; color: var(--navy); }
.cart-note {
  font-size: 11.5px; color: var(--muted); margin: 10px 0 0; text-align: center;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; background: rgba(8, 14, 28, .92);
  display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 16px;
}
.lightbox.show { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 86vh;
  border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lb-close {
  position: absolute; top: 18px; right: 18px;
  background: #fff; border: 0; border-radius: 999px;
  width: 42px; height: 42px; font-size: 22px; font-weight: 800; cursor: pointer;
}
.lb-info {
  position: absolute; bottom: 24px; left: 16px; right: 16px;
  color: #fff; font-size: 13px; text-align: center; max-width: 720px; margin: 0 auto;
}
.lb-info strong { display: block; font-size: 16px; margin-bottom: 4px; }

/* =========================================================
   TOAST
   ========================================================= */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff;
  padding: 11px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  opacity: 0; transition: opacity .2s, transform .2s;
  pointer-events: none; z-index: 95;
}
.toast.show {
  opacity: 1; transform: translateX(-50%) translateY(-4px);
}

/* =========================================================
   MOBILE NAV + HEADER FIXES
   ========================================================= */
@media (max-width: 880px) {
  .header-inner { gap: 8px; }
  .brand { min-width: 0; flex: 1; }
  .brand-text { min-width: 0; }
  .brand-name { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-tag { font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; flex-direction: column;
    gap: 0; padding: 12px 22px 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-115%);
    transition: transform .25s;
    z-index: 55;
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px; font-weight: 600;
  }
  .primary-nav a:last-child { border-bottom: 0; }
  .hamburger { display: flex; }
}
