:root {
  --bg: #f8f8f6;
  --surface: #ffffff;
  --surface-muted: #f2f2ef;
  --ink: #111216;
  --ink-muted: #5a5d66;
  --border: #e6e6e1;
  --accent: #f5c518;
  --accent-hover: #e4b50c;
  --accent-ink: #111216;
  --danger: #d93025;
  --danger-bg: #fce8e6;
  --success: #15803d;
  --success-bg: #ecfdf5;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(17, 18, 22, 0.05);
  --shadow-md: 0 12px 32px rgba(17, 18, 22, 0.08);
  --shadow-lg: 0 24px 64px rgba(17, 18, 22, 0.16);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1240px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Announcement Bar */
.announcement-bar {
  background: var(--ink);
  color: #f4f4f6;
  font-size: 0.82rem;
  padding: 0.5rem 0;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  text-align: center;
}

.announcement-bar strong {
  color: var(--accent);
}

.announcement-bar .dot {
  opacity: 0.45;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:hover {
  color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.brand-text small {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  margin-top: 2px;
}

.header-search {
  flex: 1;
  max-width: 440px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  width: 17px;
  height: 17px;
  color: var(--ink-muted);
  pointer-events: none;
}

.header-search input {
  width: 100%;
  padding: 0.62rem 2.2rem 0.62rem 2.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-muted);
  font-size: 0.92rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.header-search input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 18, 22, 0.08);
}

.clear-search-btn {
  position: absolute;
  right: 0.6rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.quick-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.quick-nav a:hover {
  color: var(--ink);
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.cart-trigger:hover {
  background: #23262f;
  transform: translateY(-1px);
}

.cart-trigger svg {
  width: 18px;
  height: 18px;
}

.cart-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-primary:hover {
  background: #252833;
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--ink);
}

.btn-full {
  width: 100%;
}

/* Hero */
.hero {
  padding: 3rem 0 2.5rem;
  background:
    radial-gradient(600px 360px at 82% 22%, rgba(245, 197, 24, 0.18), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2.5rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 1.15rem;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.4vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero h1 .highlight {
  background: linear-gradient(180deg, transparent 58%, rgba(245, 197, 24, 0.55) 58%);
  padding-inline: 2px;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 52ch;
  margin: 0 0 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-metrics {
  display: flex;
  gap: 2.25rem;
  margin: 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

.hero-metrics dt {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.hero-metrics dd {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.showcase-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.showcase-tag {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.showcase-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 0.75rem;
}

.showcase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.showcase-footer strong {
  display: block;
  font-size: 0.98rem;
}

.showcase-footer span {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.showcase-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  background: var(--surface-muted);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Trust Strip */
.trust-strip {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--surface-muted);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  font-size: 0.92rem;
}

.trust-item p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* Catalog Section */
.catalog-section {
  padding: 3rem 0 4.5rem;
}

.catalog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.catalog-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin: 0;
}

.catalog-subtitle {
  margin: 0.25rem 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.sort-control select {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
}

/* Category Pills */
.category-bar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.cat-pill:hover {
  border-color: var(--ink);
}

.cat-pill[aria-selected='true'] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.cat-pill .count {
  font-size: 0.76rem;
  opacity: 0.75;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.35rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d4d4ce;
}

.product-media {
  position: relative;
  background: #ffffff;
  aspect-ratio: 1 / 1;
  padding: 1.15rem;
  border-bottom: 1px solid var(--surface-muted);
  cursor: pointer;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
}

.quick-view-pill {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(17, 18, 22, 0.86);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
}

.product-card:hover .quick-view-pill,
.quick-view-pill:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-body {
  padding: 1.05rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.3rem;
}

.product-title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.2rem;
}

.product-variant {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin: 0 0 0.75rem;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.spec-chip {
  font-size: 0.72rem;
  background: var(--surface-muted);
  color: var(--ink-muted);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.price-stack {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.price-current {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
}

.price-old {
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-decoration: line-through;
}

.add-btn {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.52rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.add-btn:hover {
  background: #252833;
}

.add-btn.added {
  background: var(--success);
}

.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #d4d6dc;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand-mark {
  background: var(--accent);
  color: var(--ink);
}

.footer-brand .brand-text strong {
  color: #fff;
}

.footer-brand .brand-text small {
  color: #9ca0ab;
}

.footer-brand p {
  max-width: 38ch;
  font-size: 0.9rem;
  color: #a5a8b3;
  margin-top: 0.85rem;
}

.site-footer h4 {
  color: #fff;
  margin: 0 0 0.8rem;
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: #a5a8b3;
}

.site-footer a:hover,
.footer-link-btn:hover {
  color: var(--accent);
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: #828694;
  text-align: center;
}

/* Native Modal Dialogs (Modern Web Guidance) */
dialog.modal-dialog {
  padding: 0;
  border: none;
  background: transparent;
  max-width: none;
  max-height: none;
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  background: rgba(17, 18, 22, 0.56);
  backdrop-filter: blur(4px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.dialog-shell {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.dialog-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.dialog-close:hover {
  background: var(--surface-muted);
}

/* Product Quick View Dialog */
.product-dialog {
  width: min(820px, calc(100vw - 2rem));
  margin: auto;
}

.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
}

.pd-media {
  background: #fff;
  padding: 2rem;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--border);
}

.pd-media img {
  max-height: 360px;
  object-fit: contain;
}

.pd-info {
  padding: 2rem 1.85rem;
  display: flex;
  flex-direction: column;
}

.pd-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

.pd-info h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 0 0 0.25rem;
}

.pd-variant {
  margin: 0 0 0.9rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.pd-price {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
}

.pd-old-price {
  color: var(--ink-muted);
  text-decoration: line-through;
}

.pd-desc {
  margin: 0 0 1rem;
  font-size: 0.93rem;
  color: var(--ink-muted);
}

.pd-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pd-specs li {
  background: var(--surface-muted);
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
}

.pd-actions {
  margin-top: auto;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.pd-add-btn {
  flex: 1;
}

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

.qty-picker button {
  width: 34px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 700;
}

.qty-picker button:hover {
  background: var(--surface-muted);
}

.qty-picker span {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Cart Drawer Dialog */
.cart-dialog {
  margin: 0 0 0 auto;
  height: 100dvh;
  width: min(440px, 100vw);
}

.drawer-shell {
  height: 100%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.drawer-header h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0;
}

.drawer-header .dialog-close {
  position: static;
}

.shipping-banner {
  padding: 0.75rem 1.25rem;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.83rem;
}

.shipping-banner p {
  margin: 0 0 0.45rem;
}

.shipping-track {
  height: 6px;
  border-radius: 999px;
  background: #e1e1dc;
  overflow: hidden;
}

.shipping-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.25s ease;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.15rem 1.25rem;
}

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

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.85rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  background: #fff;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-item-title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.25;
}

.cart-item-variant {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.remove-item-btn {
  background: none;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 4px;
}

.remove-item-btn:hover {
  color: var(--danger);
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.55rem;
}

.cart-item-bottom .qty-picker button {
  width: 28px;
  height: 28px;
}

.cart-empty {
  text-align: center;
  padding: 2.5rem 1rem;
}

.cart-empty-icon {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.cart-empty p {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.drawer-footer {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

.totals-grand {
  font-size: 1.05rem;
  color: var(--ink);
  padding-top: 0.5rem;
  margin-top: 0.45rem;
  margin-bottom: 0.95rem;
  border-top: 1px solid var(--border);
}

/* Checkout Form & Modern Validation (:user-invalid) */
.back-btn {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0;
  cursor: pointer;
  margin-bottom: 0.8rem;
}

.back-btn:hover {
  color: var(--ink);
}

.checkout-heading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.field {
  margin-bottom: 0.95rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.86rem;
  margin-bottom: 0.2rem;
}

.hint {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.92rem;
  transition: border-color 0.15s, background 0.15s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.error-msg {
  display: none;
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

:is(input, textarea, select):is(:user-invalid, .user-invalid-fallback) {
  border-color: var(--danger);
  background-color: var(--danger-bg);
}

:is(input, textarea, select):is(:user-invalid, .user-invalid-fallback) + .error-msg {
  display: block;
}

:is(input, textarea):user-valid {
  border-color: var(--success);
}

.form-alert {
  background: var(--danger-bg);
  color: var(--danger);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  margin-bottom: 0.85rem;
}

/* Order Success */
.order-success {
  text-align: center;
  padding: 1rem 0.25rem;
}

.success-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  font-size: 1.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin: 0 auto 0.85rem;
}

.order-ref-box {
  background: var(--surface-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin: 1rem 0;
}

.order-ref-box span {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.order-ref-box strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.order-summary-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.86rem;
  margin-bottom: 1.15rem;
}

/* Track Order Dialog */
.track-dialog {
  width: min(480px, calc(100vw - 2rem));
  margin: auto;
}

.track-shell {
  padding: 1.75rem;
}

.track-shell h2 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
}

.track-subtitle {
  margin: 0 0 1.1rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.track-form {
  display: flex;
  gap: 0.5rem;
}

.track-form input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-transform: uppercase;
}

.track-result {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.track-card {
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  z-index: 60;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-nav {
    display: none;
  }

  .pd-layout {
    grid-template-columns: 1fr;
  }

  .pd-media {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.25rem;
  }

  .pd-media img {
    max-height: 240px;
  }

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

@media (max-width: 600px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .header-search {
    order: 3;
    max-width: none;
    flex: 1 0 100%;
  }

  .cart-label {
    display: none;
  }

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

  .hide-sm {
    display: none;
  }
}
