/* Gravel — customer mockup (hellogravel.com–inspired layout, not affiliated) */
:root {
  --hg-orange: #f27435;
  --hg-orange-dark: #d95f28;
  --hg-orange-light: #fb923c;
  --hg-topbar: #f37a34;
  --hg-text: #1a1a1a;
  --hg-muted: #5c5c5c;
  --hg-border: #e8e8e8;
  --hg-bg: #ffffff;
  --hg-bg-soft: #f6f6f6;
  --hg-green-pill: #16a34a;
  --hg-font: "Montserrat", "Inter", system-ui, sans-serif;
  --hg-mono: "JetBrains Mono", ui-monospace, monospace;
  --hg-radius: 10px;
  --hg-radius-lg: 14px;
  --hg-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --hg-shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 15px/1.55 var(--hg-font);
  color: var(--hg-text);
  background: var(--hg-bg);
  min-height: 100vh;
}

a { color: var(--hg-orange); text-underline-offset: 3px; }
a:hover { color: var(--hg-orange-dark); }

.hg-skip { position: absolute; left: -9999px; }
.hg-skip:focus { left: 8px; top: 8px; z-index: 999; padding: 8px 12px; background: #111; color: #fff; border-radius: 6px; }

/* Top bars */
.hg-topbar {
  background: var(--hg-topbar);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hg-disclaimer {
  background: #2d2d2d;
  color: #e5e5e5;
  text-align: center;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
}

.hg-header-main {
  background: #fff;
  border-bottom: 1px solid var(--hg-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.hg-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hg-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--hg-text);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.06em;
}

.hg-logo-truck {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.hg-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  flex-wrap: wrap;
  flex: 1;
}

.hg-menu a {
  padding: 8px 10px;
  text-decoration: none;
  color: #333;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hg-menu a:hover { color: var(--hg-orange); }
.hg-menu a.is-active { color: var(--hg-orange); text-decoration: underline; text-underline-offset: 4px; }
.hg-menu .hg-caret { font-size: 9px; opacity: 0.6; margin-left: 2px; }

.hg-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hg-cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: var(--hg-text);
  font-weight: 700;
  font-size: 13px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.hg-cart-pill:hover {
  border-color: #d1d5db;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.12);
}

.hg-cart-pill:focus-visible {
  outline: 2px solid rgba(242, 116, 53, 0.4);
  outline-offset: 2px;
}

.hg-cart-pill svg { width: 20px; height: 20px; opacity: 1; stroke-width: 2.2; color: #374151; }

.hg-cart-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.hg-cart-total {
  font-family: var(--hg-mono);
  font-weight: 800;
  font-size: 15px;
  color: #111827;
}

.hg-btn-shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: var(--hg-orange);
  color: #fff !important;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

.hg-btn-shop:hover { filter: brightness(1.05); background: var(--hg-orange-dark); }

.hg-link-admin {
  font-size: 11px;
  font-weight: 800;
  color: var(--hg-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hg-link-admin:hover { color: var(--hg-orange); }

/* Hero */
.hg-hero-full {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 20px 100px;
  background-color: #1a1a2e;
  background-image:
    linear-gradient(to right, rgba(0,0,0,.88) 0%, rgba(0,0,0,.72) 38%, rgba(0,0,0,.42) 65%, rgba(0,0,0,.18) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.52) 100%),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1920&q=80");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hg-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hg-hero-stars {
  color: var(--hg-orange);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-weight: 700;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}


.hg-hero-full h1,
.hg-hero-inner h1 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 18ch;
  text-shadow:
    0 2px 4px rgba(0,0,0,.95),
    0 4px 16px rgba(0,0,0,.9),
    0 8px 32px rgba(0,0,0,.8);
}

.hg-hero-tag {
  margin: 0 0 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 3px 16px rgba(0,0,0,.28);
}

.hg-hero-bullets {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
}

.hg-hero-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.hg-hero-bullets .hg-check {
  color: var(--hg-orange);
  font-weight: 900;
  font-size: 18px;
}

.hg-hero-review {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.hg-hero-review .hg-st { color: var(--hg-orange); letter-spacing: 2px; }

/* Estimate CTA */
.hg-estimate-wrap {
  max-width: 1240px;
  margin: -70px auto 0;
  padding: 0 20px 48px;
  position: relative;
  z-index: 5;
}

.hg-estimate-box {
  background: rgba(40, 40, 40, 0.92);
  backdrop-filter: blur(12px);
  border-radius: var(--hg-radius-lg);
  padding: 22px 24px 18px;
  box-shadow: 0 16px 48px rgba(0,0,0,.25);
}

.hg-estimate-box h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
}

.hg-estimate-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.hg-estimate-row input {
  flex: 1;
  min-width: 200px;
  padding: 14px 16px;
  border-radius: var(--hg-radius);
  border: none;
  font-size: 15px;
  font-family: inherit;
}

.hg-estimate-row .hg-btn-get {
  padding: 14px 28px;
  background: var(--hg-orange);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--hg-radius);
  cursor: pointer;
  white-space: nowrap;
}

.hg-estimate-row .hg-btn-get:hover { filter: brightness(1.06); }

.hg-estimate-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  color: rgba(255,255,255,.75);
  font-size: 12px;
  font-weight: 600;
}

/* Sections */
.hg-section {
  padding: 32px 20px;
}

.hg-section-title {
  text-align: center;
  margin: 0 0 28px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hg-text);
}

/* Category tabs */
.hg-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.hg-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--hg-radius-lg);
  border: 2px solid var(--hg-orange);
  background: #fff;
  color: var(--hg-text);
  font-family: inherit;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.hg-cat-tab:hover { background: #fff7ed; }

.hg-cat-tab.is-active {
  background: var(--hg-orange);
  color: #fff;
  border-color: var(--hg-orange);
}

.hg-cat-tab .hg-cat-ico {
  width: 22px;
  height: 22px;
  opacity: 0.9;
}

/* Product grid (home + catalog) */
.hg-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
}

.hg-product-card {
  background: #fff;
  border-radius: var(--hg-radius-lg);
  overflow: hidden;
  box-shadow: var(--hg-shadow-card);
  border: 1px solid var(--hg-border);
  display: flex;
  flex-direction: column;
}

.hg-product-img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--hg-border);
}

.hg-product-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }

.hg-product-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--hg-text);
}

.hg-product-desc {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--hg-muted);
  line-height: 1.45;
  flex: 1;
}

.hg-product-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--hg-orange);
}

.hg-product-price {
  font-family: var(--hg-mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--hg-orange);
  margin-bottom: 6px;
}

.hg-product-price small {
  font-size: 12px;
  font-weight: 700;
  color: var(--hg-muted);
}

.hg-pill-delivery {
  display: inline-block;
  background: var(--hg-green-pill);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hg-card-shop-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: var(--hg-orange);
  color: #fff !important;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.hg-card-shop-btn:hover { filter: brightness(1.05); }

.hg-product-actions {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  align-items: center;
}

.hg-mini-qty {
  width: 100%;
  padding: 10px 8px;
  border: 1px solid var(--hg-border);
  border-radius: 8px;
  font-family: var(--hg-mono);
  font-size: 12px;
  text-align: center;
}

/* Value props */
.hg-value-strip {
  background: var(--hg-bg-soft);
  padding: 40px 20px;
  border-top: 1px solid var(--hg-border);
}

.hg-value-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  text-align: center;
}

.hg-value-item svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  stroke: var(--hg-text);
}

.hg-value-item h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hg-value-item p {
  margin: 0;
  font-size: 13px;
  color: var(--hg-muted);
  line-height: 1.5;
}

/* Floating chat */
.hg-chat-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--hg-orange);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(242, 116, 53, 0.45);
  display: grid;
  place-items: center;
  z-index: 80;
}

.hg-chat-fab:hover { filter: brightness(1.08); }
.hg-chat-fab svg { width: 26px; height: 26px; }

.hg-chat-panel {
  position: fixed;
  left: 24px;
  bottom: 92px;
  width: min(360px, calc(100vw - 32px));
  max-height: min(470px, calc(100vh - 140px));
  border: 1px solid var(--hg-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(12, 22, 34, 0.2);
  display: none;
  z-index: 85;
  overflow: hidden;
}

.hg-chat-panel.is-open { display: flex; flex-direction: column; }

.hg-chat-header {
  padding: 12px 14px;
  background: var(--hg-text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.hg-chat-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.hg-chat-body {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f9fafc;
  overflow: auto;
}

.hg-chat-msg {
  max-width: 88%;
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.45;
}

.hg-chat-msg.bot {
  background: #fff;
  border: 1px solid var(--hg-border);
  color: var(--hg-text);
}

.hg-chat-msg.user {
  margin-left: auto;
  background: var(--hg-orange);
  color: #fff;
}

.hg-chat-quick {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--hg-border);
  display: grid;
  gap: 8px;
  background: #fff;
}

.hg-chat-quick button {
  border: 1px solid var(--hg-border);
  border-radius: 999px;
  background: #fff;
  color: var(--hg-text);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}

.hg-chat-quick button:hover {
  border-color: var(--hg-orange);
  color: var(--hg-orange);
}

/* Footer */
.hg-footer {
  margin-top: 24px;
  border-top: 1px solid var(--hg-border);
  background: #fff;
  color: var(--hg-muted);
}

.hg-footer-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px 18px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 20px;
}

.hg-footer-col h4 {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--hg-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hg-footer-col p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.hg-footer-brand {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 900;
  color: var(--hg-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hg-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.hg-footer-list a {
  color: var(--hg-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

.hg-footer-list a:hover { color: var(--hg-orange); }

.hg-footer-contact {
  display: grid;
  gap: 6px;
  font-size: 12px;
}

.hg-footer-contact a {
  color: var(--hg-text);
  text-decoration: none;
  font-weight: 700;
}

.hg-footer-contact a:hover { color: var(--hg-orange); }

.hg-footer-bottom {
  border-top: 1px solid var(--hg-border);
}

.hg-footer-bottom-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
}

.hg-footer-legal {
  margin: 0;
}

.hg-footer-powered {
  margin: 0;
}

.hg-footer-powered a {
  color: var(--hg-text);
  font-weight: 700;
  text-decoration: none;
}

.hg-footer-powered a:hover { color: var(--hg-orange); }

@media (max-width: 980px) {
  .hg-footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hg-footer-main {
    grid-template-columns: 1fr;
    padding-top: 22px;
  }
  .hg-footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Inner pages layout */
.hg-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.hg-page h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Legacy / catalog cards */
.hg-zip-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-lg);
  margin-bottom: 24px;
  box-shadow: var(--hg-shadow);
}

.hg-zip-bar label {
  display: block;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hg-muted);
  margin-bottom: 6px;
}

.hg-zip-bar input {
  width: 120px;
  padding: 10px 12px;
  border: 1px solid var(--hg-border);
  border-radius: 8px;
  font-family: var(--hg-mono);
}

.hg-zip-hint { font-size: 12px; color: var(--hg-muted); flex: 1; min-width: 200px; }

.hg-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.hg-card {
  background: #fff;
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--hg-shadow-card);
}

.hg-card-vendor { font-weight: 800; font-size: 15px; }
.hg-card-meta { font-size: 12px; color: var(--hg-muted); }
.hg-card-product { font-size: 14px; font-weight: 700; }
.hg-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.hg-price {
  font-family: var(--hg-mono);
  font-weight: 800;
  font-size: 18px;
  color: var(--hg-orange);
}

.hg-price small { font-size: 11px; font-weight: 700; color: var(--hg-muted); }

.hg-mock-dist {
  font-size: 11px;
  font-weight: 700;
  color: var(--hg-muted);
  background: var(--hg-bg-soft);
  padding: 4px 8px;
  border-radius: 6px;
}

.hg-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.hg-qty input {
  width: 72px;
  padding: 8px 10px;
  border: 1px solid var(--hg-border);
  border-radius: 8px;
  font-family: var(--hg-mono);
}

.hg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--hg-radius);
  font-weight: 800;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.hg-btn-primary {
  background: var(--hg-orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(242, 116, 53, 0.35);
}

.hg-btn-primary:hover { filter: brightness(1.06); }

.hg-btn-secondary {
  background: #fff;
  color: var(--hg-text);
  border: 1px solid var(--hg-border);
}

.hg-btn-secondary:hover { border-color: #ccc; }

/* ===== CHECKOUT PROGRESS STEPPER ===== */
.hg-checkout-progress {
  max-width: 500px;
  margin: 0 auto;
  padding: 24px 20px 8px;
}

.hg-progress-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hg-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hg-step-num, .hg-step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  background: #f3f4f6;
  color: #9ca3af;
  border: 2px solid #e5e7eb;
  transition: all .2s ease;
}

.hg-step-icon svg {
  width: 16px;
  height: 16px;
}

.hg-progress-step.completed .hg-step-icon {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.hg-progress-step.active .hg-step-num {
  background: var(--hg-orange);
  border-color: var(--hg-orange);
  color: #fff;
}

.hg-step-label {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hg-progress-step.completed .hg-step-label,
.hg-progress-step.active .hg-step-label {
  color: var(--hg-text);
}

.hg-progress-line {
  width: 60px;
  height: 2px;
  background: #e5e7eb;
  margin: 0 8px;
  margin-bottom: 22px;
}

.hg-progress-line.completed {
  background: #22c55e;
}

/* ===== CHECKOUT LAYOUT ===== */
.hg-checkout-layout {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 20px 48px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

.hg-form-panel {
  background: #fff;
  border: 1px solid var(--hg-border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
}

.hg-summary-panel {
  position: sticky;
  top: 20px;
  background: #fff;
  border: 1px solid var(--hg-border);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  overflow: hidden;
}

/* Form Sections */
.hg-form-section {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f3f4f6;
}

.hg-form-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.hg-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 800;
  color: var(--hg-text);
}

.hg-section-head svg {
  width: 20px;
  height: 20px;
  color: var(--hg-orange);
}

.hg-section-head .hg-pay-mock-badge {
  margin-left: 4px;
}

/* Input with icons */
.hg-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.hg-input-wrap svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #9ca3af;
  pointer-events: none;
  z-index: 1;
}

/* Field styling */
.hg-field { margin-bottom: 14px; }
.hg-field label {
  display: block;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hg-muted);
  margin-bottom: 5px;
}

.hg-field input, .hg-field select, .hg-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.hg-field input:focus, .hg-field select:focus, .hg-field textarea:focus {
  outline: none;
  border-color: var(--hg-orange);
  box-shadow: 0 0 0 3px rgba(242, 116, 53, 0.15);
}

.hg-field input::placeholder {
  color: #9ca3af;
}

/* Input with icon - must come after .hg-field input to override padding */
.hg-field .hg-input-wrap input {
  padding-left: 38px;
}

.hg-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hg-field-row--3 { grid-template-columns: 2fr 1fr 1fr; }

/* ===== CHECKOUT SUMMARY PANEL ===== */
.hg-checkout-summary-inner {
  padding: 24px;
}

.hg-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.hg-summary-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hg-edit-cart {
  font-size: 12px;
  font-weight: 700;
  color: var(--hg-orange);
  text-decoration: none;
}

.hg-edit-cart:hover {
  text-decoration: underline;
}

.hg-summary-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.hg-summary-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
}

.hg-summary-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  display: grid;
  place-items: center;
  color: #9ca3af;
}

.hg-summary-item-thumb svg {
  width: 28px;
  height: 28px;
}

.hg-summary-item-info {
  min-width: 0;
}

.hg-summary-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--hg-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hg-summary-item-meta {
  font-size: 11px;
  color: var(--hg-muted);
  margin-top: 2px;
}

.hg-summary-item-price {
  font-family: var(--hg-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--hg-text);
}

.hg-summary-costs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.hg-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--hg-text);
}

.hg-summary-row strong {
  font-family: var(--hg-mono);
  font-weight: 700;
}

.hg-summary-hint {
  color: var(--hg-muted);
  font-size: 12px;
}

.hg-summary-final {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 900;
}

.hg-summary-final span:last-child {
  font-family: var(--hg-mono);
  color: var(--hg-orange);
}

.hg-summary-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.hg-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--hg-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hg-trust-badge svg {
  width: 16px;
  height: 16px;
  color: #22c55e;
}

.hg-checkout-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--hg-muted);
}

/* ===== SECURITY MESSAGING ===== */
.hg-checkout-security {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.hg-security-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--hg-muted);
}

.hg-security-item svg {
  width: 16px;
  height: 16px;
  color: #22c55e;
}

/* Apple Pay text logo */
.hg-apple-logo {
  width: 20px;
  height: 20px;
}

.hg-apple-text {
  font-size: 17px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.02em;
}

/* Place order button */
.hg-btn-place-order {
  width: 100%;
  margin-top: 8px;
  font-size: 15px;
  padding: 16px 24px;
  border-radius: 12px;
  letter-spacing: 0.02em;
  gap: 10px;
}

.hg-btn-place-order svg {
  width: 20px;
  height: 20px;
}

/* Responsive */
@media (max-width: 860px) {
  .hg-checkout-layout { grid-template-columns: 1fr; }
  .hg-summary-panel { position: static; order: -1; }
  .hg-progress-line { width: 40px; }
  .hg-field-row--3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hg-field-row { grid-template-columns: 1fr; }
  .hg-field-row--3 { grid-template-columns: 1fr; }
  .hg-checkout-security { flex-direction: column; align-items: center; }
}

/* Legacy summary line (keep for compatibility) */
.hg-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hg-bg-soft);
}

.hg-summary-line strong { font-family: var(--hg-mono); }
.hg-summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  font-weight: 900;
  font-size: 17px;
}

.hg-summary-total span:last-child { font-family: var(--hg-mono); color: var(--hg-orange); }

/* Payment (mock) heading badge */
.hg-pay-mock-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  vertical-align: middle;
  margin-left: 6px;
}

/* Payment method list — Stripe/Shopify style card rows */
.hg-pay-methods {
  border: 1px solid #d1d5db;
  border-radius: 12px;
  overflow: hidden;
  margin: 14px 0 20px;
}

.hg-pay-method {
  border-bottom: 1px solid #e5e7eb;
  transition: background .12s ease;
}

.hg-pay-method:last-child { border-bottom: 0; }

.hg-pay-method-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}

.hg-pay-radio {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--hg-orange);
  cursor: pointer;
}

.hg-pay-method-name {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  flex: 1;
}

/* Card brand icons beside the label */
.hg-pay-method-brands {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.hg-pay-method-brands img {
  width: 32px;
  height: 22px;
  object-fit: contain;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  background: #fff;
  padding: 2px 3px;
}

/* Inline logo (PayPal, Apple Pay, Google Pay) */
.hg-pay-method-logo {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hg-logo-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.hg-logo-img--wide {
  width: auto;
  height: 22px;
}

/* PayPal two-tone wordmark text */
.hg-paypal-text {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* Google Pay text wordmark */
.hg-gpay-text {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
}

/* Expanded panel inside a method row */
.hg-pay-method .hg-pay-panel {
  padding: 4px 16px 18px;
  border-top: 1px solid #f3f4f6;
  background: #fafafa;
}

.hg-pay-method.is-on { background: #fffbf8; }
.hg-pay-method.is-on > .hg-pay-method-label { background: #fff7ed; }

/* Card number input with inline brand icons */
.hg-card-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.hg-card-input-wrap input {
  width: 100%;
  padding-right: 100px;
}

.hg-card-inline-brands {
  position: absolute;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 3px;
  pointer-events: none;
}

.hg-card-inline-brands img {
  width: 28px;
  height: 20px;
  object-fit: contain;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #fff;
  padding: 1px 2px;
}

/* CVC field icon */
.hg-cvc-ico {
  position: absolute;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  color: #9ca3af;
}

.hg-cvc-ico svg { width: 22px; height: 22px; }
.hg-cvc-ico small { font-size: 10px; font-weight: 700; color: #9ca3af; }

/* Wallet method hint text */
.hg-pay-wallet-hint {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.hg-pay-wallet-hint em { color: #9ca3af; font-style: normal; }

/* Place order button */
.hg-btn-place-order {
  width: 100%;
  margin-top: 4px;
  font-size: 15px;
  padding: 15px 22px;
  border-radius: 10px;
  letter-spacing: 0.02em;
}

.hg-pay-panel { margin-top: 10px; font-size: 13px; }
.hg-pay-panel.hidden { display: none; }

.hg-confirm {
  max-width: 520px;
  margin: 48px auto;
  padding: 24px;
  text-align: center;
}

.hg-confirm-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #fff7ed;
  color: var(--hg-orange);
  display: grid;
  place-items: center;
  font-size: 28px;
}

.hg-confirm h1 { margin: 0 0 8px; font-size: 1.5rem; font-weight: 900; }
.hg-confirm .hg-order-id {
  font-family: var(--hg-mono);
  font-weight: 800;
  font-size: 18px;
  color: var(--hg-orange);
  margin: 12px 0;
}

/* ===== CART PAGE ===== */
.hg-cart-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.hg-cart-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.hg-cart-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 900;
}

.hg-cart-count {
  font-size: 14px;
  color: var(--hg-muted);
  font-weight: 600;
}

.hg-cart-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hg-cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--hg-border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: box-shadow .15s ease;
}

.hg-cart-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.hg-cart-item-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  display: grid;
  place-items: center;
  color: #9ca3af;
}

.hg-cart-item-thumb svg {
  width: 40px;
  height: 40px;
}

.hg-cart-item-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.hg-cart-item-vendor {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hg-muted);
}

.hg-cart-item-product {
  font-size: 16px;
  font-weight: 800;
  color: var(--hg-text);
}

.hg-cart-item-price {
  font-size: 13px;
  color: #6b7280;
}

.hg-cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.hg-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hg-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.hg-qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #f9fafb;
  color: var(--hg-text);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s ease;
  display: grid;
  place-items: center;
}

.hg-qty-btn:hover {
  background: #f3f4f6;
}

.hg-qty-btn:active {
  background: #e5e7eb;
}

.hg-qty-stepper input {
  width: 48px;
  height: 36px;
  border: none;
  border-left: 1px solid var(--hg-border);
  border-right: 1px solid var(--hg-border);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--hg-mono);
  -moz-appearance: textfield;
}

.hg-qty-stepper input::-webkit-outer-spin-button,
.hg-qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.hg-cart-item-total {
  font-family: var(--hg-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--hg-text);
}

.hg-cart-remove {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 6px;
  display: grid;
  place-items: center;
  transition: color .12s ease, background .12s ease;
}

.hg-cart-remove:hover {
  color: #ef4444;
  background: #fef2f2;
}

.hg-cart-remove svg {
  width: 18px;
  height: 18px;
}

.hg-cart-continue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--hg-muted);
  text-decoration: none;
  transition: color .12s ease;
}

.hg-cart-continue:hover {
  color: var(--hg-orange);
}

.hg-cart-continue svg {
  width: 18px;
  height: 18px;
}

/* Cart Summary */
.hg-cart-summary {
  position: sticky;
  top: 24px;
}

.hg-cart-summary-inner {
  background: #fff;
  border: 1px solid var(--hg-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

.hg-cart-summary-inner h3 {
  margin: 0 0 20px;
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hg-cart-summary-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hg-border);
}

.hg-cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--hg-text);
}

.hg-cart-summary-line strong {
  font-family: var(--hg-mono);
  font-weight: 700;
}

.hg-cart-summary-hint {
  color: var(--hg-muted);
  font-size: 13px;
}

.hg-cart-summary-total {
  display: flex;
  justify-content: space-between;
  margin: 16px 0 20px;
  font-size: 18px;
  font-weight: 900;
}

.hg-cart-summary-total span:last-child {
  font-family: var(--hg-mono);
  color: var(--hg-orange);
}

.hg-btn-checkout {
  width: 100%;
  padding: 16px 24px;
  font-size: 15px;
  border-radius: 10px;
}

.hg-cart-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hg-border);
}

.hg-cart-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--hg-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hg-cart-trust svg {
  width: 16px;
  height: 16px;
  color: #22c55e;
}

/* Empty Cart */
.hg-cart-empty {
  max-width: 400px;
  margin: 64px auto;
  padding: 48px 24px;
  text-align: center;
}

.hg-cart-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--hg-orange);
}

.hg-cart-empty-icon svg {
  width: 40px;
  height: 40px;
}

.hg-cart-empty h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--hg-text);
}

.hg-cart-empty p {
  margin: 0 0 24px;
  color: var(--hg-muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hg-cart-layout {
    grid-template-columns: 1fr;
  }
  .hg-cart-summary {
    position: static;
  }
  .hg-cart-item {
    grid-template-columns: 60px 1fr;
  }
  .hg-cart-item-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--hg-border);
    margin-top: 4px;
  }
}

@media (max-width: 900px) {
  .hg-menu { order: 3; width: 100%; justify-content: flex-start; }
  .hg-estimate-wrap { margin-top: -40px; }
  .hg-section { padding-top: 24px; }
  .hg-product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .hg-cart-total { font-size: 14px; }
  .hg-pay-method-brands img { width: 26px; height: 18px; }
  .hg-card-inline-brands img { width: 22px; height: 16px; }
  .hg-card-input-wrap input { padding-right: 82px; }
}
