/* Appily-Two — Specimen Atlas (botanical field journal / cartographic expedition) */

:root {
  --ink: #0C1610;
  --parchment: #F6F1E6;
  --parchment-2: #EBE4D4;
  --brass: #A67C00;
  --fern: #1F5C45;
  --fern-light: #E4EFE8;
  --clay: #C4533A;
  --clay-pale: #F5E8E3;
  --mist: #D4CEC2;
  --muted: #5C6358;
  --white: #FFFDF9;
  --line: rgba(12, 22, 16, 0.1);

  --radius: 4px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-pill: 999px;
  --font-display: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-body: 'Figtree', system-ui, -apple-system, sans-serif;
  --shadow: 0 14px 40px rgba(12, 22, 16, 0.1);
  --shadow-sm: 0 4px 14px rgba(12, 22, 16, 0.07);

  /* Legacy aliases for store-chrome.css */
  --teal: var(--fern);
  --teal-mid: #174A38;
  --teal-light: var(--fern-light);
  --coral: var(--clay);
  --coral-pale: var(--clay-pale);
  --mint: var(--brass);
  --mint-pale: var(--fern-light);
  --slate: var(--ink);
  --slate-mid: var(--muted);
  --mist-2: var(--parchment-2);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { height: 100%; scroll-behavior: smooth; }

body.appily-store,
body.velocity-management,
body.atlas-store {
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
button, input, select, textarea { font: inherit; }
ul, ol { margin: 0; padding: 0; }

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main { flex: 1 0 auto; }

/* ── Atlas header ── */
.atlas-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.atlas-header.is-scrolled .atlas-masthead {
  box-shadow: 0 6px 24px rgba(12, 22, 16, 0.08);
}

.atlas-header.is-scrolled .atlas-ticker {
  max-height: 0;
  opacity: 0;
  padding-block: 0;
}

.atlas-ticker {
  overflow: hidden;
  max-height: 34px;
  padding: 7px 0;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 253, 249, 0.08);
  transition: max-height .35s ease, opacity .35s ease, padding .35s ease;
}

.ticker-marquee {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 14px;
  width: max-content;
  margin: 0 auto;
  animation: tickerDrift 28s linear infinite;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 253, 249, 0.82);
  white-space: nowrap;
}

.ticker-marquee span:nth-child(odd) { color: rgba(255, 253, 249, 0.82); }
.ticker-marquee span:nth-child(even) { color: var(--brass); opacity: .55; font-size: .55rem; }

@keyframes tickerDrift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.atlas-masthead {
  position: relative;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}

.masthead-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px 28px;
  padding: 14px 0;
}

.atlas-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-compass {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  color: var(--fern);
}

.brand-compass svg { width: 100%; height: 100%; display: block; }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  line-height: 1.1;
}

.brand-accent { color: var(--clay); }

.brand-sub {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.masthead-rule {
  height: 3px;
  background: var(--parchment-2);
  overflow: hidden;
}

.masthead-rule span {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--fern) 0,
    var(--fern) 24px,
    var(--brass) 24px,
    var(--brass) 26px,
    transparent 26px,
    transparent 40px
  );
  opacity: .35;
}

/* Navigation waypoints */
.atlas-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-sheet-head,
.nav-sheet-meta,
.nav-sheet-search,
.nav-sheet-quick,
.nav-sheet-foot,
.nav-section-label,
.waypoint-icon,
.waypoint-desc,
.waypoint-chevron { display: none; }

.nav-sheet-panel { display: contents; }

.nav-waypoints {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.waypoint {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
}

.waypoint::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: .45;
  transition: background .2s, opacity .2s;
}

.waypoint:hover {
  color: var(--fern);
  background: var(--fern-light);
  border-color: rgba(31, 92, 69, 0.12);
}

.waypoint:hover::before {
  background: var(--fern);
  opacity: 1;
}

.waypoint.is-active {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
  box-shadow: inset 0 0 0 1px rgba(166, 124, 0, 0.12);
}

.waypoint.is-active::before {
  background: var(--brass);
  border-color: var(--brass);
  opacity: 1;
}

.waypoint-primary {
  color: var(--fern);
  font-weight: 700;
}

.waypoint-primary.is-active {
  background: var(--fern);
  color: var(--white);
  border-color: var(--fern);
}

.waypoint-primary.is-active::before {
  background: var(--brass);
  border-color: var(--brass);
}

.waypoint-muted { font-size: .74rem; }

.waypoint-copy { display: inline; }

.waypoint-label { font: inherit; color: inherit; }

/* Masthead tools */
.masthead-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.atlas-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 180px;
  transition: width .25s ease;
}

.atlas-search:focus-within { width: 220px; }

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--muted);
  pointer-events: none;
}

.atlas-search input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--parchment);
  color: var(--ink);
  font-size: .82rem;
  transition: border-color .2s, background .2s, box-shadow .2s;
}

.atlas-search input::placeholder { color: var(--muted); opacity: .75; }

.atlas-search input:focus {
  outline: none;
  border-color: rgba(31, 92, 69, 0.35);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(31, 92, 69, 0.08);
}

.tool-link,
.tool-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 600;
  transition: background .2s, border-color .2s;
}

.tool-link:hover,
.tool-cart:hover {
  background: var(--parchment-2);
  border-color: var(--line);
}

.tool-link.is-active {
  color: var(--fern);
  background: var(--fern-light);
  border-color: rgba(31, 92, 69, 0.15);
}

.tool-cart {
  position: relative;
  padding-inline: 10px;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--clay);
  color: var(--white);
  font-size: .62rem;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  border: 2px solid var(--white);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}

.nav-burger span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .25s, opacity .25s;
}

.atlas-header.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.atlas-header.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.atlas-header.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Typography */
.eyebrow {
  margin: 0 0 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 16px; }
h1 em { font-style: italic; color: var(--fern); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 12px; }
h3 { font-size: 1rem; margin: 0 0 8px; }

.hero-lede {
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.7;
  max-width: 52ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-clay,
.btn-coral,
.btn-primary {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--white);
}

.btn-clay:hover,
.btn-coral:hover,
.btn-primary:hover {
  background: #A84730;
  border-color: #A84730;
  box-shadow: 0 8px 20px rgba(196, 83, 58, 0.22);
}

.btn-fern,
.btn-teal {
  background: var(--fern);
  border-color: var(--fern);
  color: var(--white);
}

.btn-fern:hover,
.btn-teal:hover {
  background: var(--teal-mid);
  border-color: var(--teal-mid);
  box-shadow: 0 8px 20px rgba(31, 92, 69, 0.18);
}

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

.btn-outline:hover {
  background: var(--white);
  border-color: var(--fern);
  color: var(--fern);
}

.btn-ghost {
  background: transparent;
  border-color: var(--fern);
  color: var(--fern);
}

.btn-ghost:hover { background: var(--fern-light); }

.btn-soft {
  background: var(--fern-light);
  border-color: rgba(31, 92, 69, 0.12);
  color: var(--fern);
}

.btn-soft:hover {
  background: #D8EAE0;
  border-color: rgba(31, 92, 69, 0.2);
}

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255, 253, 249, 0.45);
  color: var(--white);
}

.btn-ghost-light:hover {
  background: rgba(255, 253, 249, 0.1);
  border-color: rgba(255, 253, 249, 0.65);
}

.btn-soft-light {
  background: rgba(255, 253, 249, 0.14);
  border-color: rgba(255, 253, 249, 0.28);
  color: var(--white);
}

.btn-soft-light:hover { background: rgba(255, 253, 249, 0.22); }

.btn-lg { padding: 14px 28px; font-size: .94rem; min-width: 160px; }
.btn-sm { padding: 8px 16px; font-size: .8rem; }
.btn-xs { padding: 5px 12px; font-size: .72rem; }

.panel .btn-outline:hover { background: var(--fern-light); }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--white); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

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

.section-head-center {
  align-items: center;
  margin-bottom: 32px;
}

.section-head-center > div { flex: 1; min-width: 0; }
.section-head-center h2 { margin-bottom: 4px; }
.section-head-center p { margin: 0; }

.section-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 36px;
  padding-top: 8px;
}

.section-curated { background: var(--white); }

/* Shop / catalog */
.page-hero {
  padding: 40px 0 28px;
  background:
    linear-gradient(180deg, var(--white) 0%, var(--parchment) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero-compact { padding: 32px 0 24px; }

.page-hero h1 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.page-hero .hero-lede { margin: 0; }

.catalog-page { padding: 28px 0 56px; }

.filter-bar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-label {
  padding-top: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fern);
}

.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.filter-pill {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
  transition: background .2s, color .2s, border-color .2s;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--fern);
  border-color: var(--fern);
  color: var(--white);
}

.result-meta {
  margin: 0 0 16px;
  font-size: .86rem;
  color: var(--muted);
}

.product-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.masonry-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}

.masonry-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(166, 124, 0, 0.22);
}

.masonry-img {
  position: relative;
  display: block;
  background: var(--fern-light);
}

.masonry-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.masonry-body { padding: 14px 16px 18px; }

.masonry-body h3 {
  margin: 4px 0;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
}

.product-cat {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass);
}

.product-variant {
  margin: 0 0 10px;
  font-size: .82rem;
  color: var(--muted);
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fern);
}

.product-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--fern-light);
  color: var(--fern);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.masonry-img .product-badge,
.catalog-img .product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

/* Product detail */
.product-detail { padding: 40px 0; }

.product-detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.product-showcase {
  margin: 0;
  overflow: hidden;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: inset 0 0 0 1px rgba(255, 253, 249, 0.6);
}

.product-showcase img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-detail-panel h1 {
  margin: 8px 0 14px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.product-lede {
  margin-bottom: 24px;
  color: var(--muted);
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.spec-strip div {
  padding: 14px;
  background: var(--parchment);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
}

.spec-strip span {
  display: block;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec-strip strong {
  display: block;
  margin-top: 4px;
  font-size: .88rem;
  color: var(--ink);
}

.buy-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--ink);
  color: var(--white);
  border: 1px solid rgba(255, 253, 249, 0.08);
}

.buy-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.price-lg {
  font-size: 1.65rem;
  color: var(--brass);
}

.buy-card .product-badge {
  background: var(--clay);
  color: var(--white);
}

.buy-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.buy-form label {
  display: block;
  margin-bottom: 4px;
  font-size: .8rem;
  opacity: .85;
}

.buy-form select {
  padding: 10px 12px;
  border: 1px solid rgba(255, 253, 249, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.95);
  color: var(--ink);
  font-weight: 600;
}

.buy-form select:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}

.fine-print {
  margin: 12px 0 0;
  font-size: .76rem;
  opacity: .72;
}

/* Cart / checkout */
.page-panel { padding: 40px 0 56px; }

.dual {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.summary-box { position: sticky; top: 160px; }

.table-like { overflow-x: auto; }

.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.cart-table th,
.cart-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.cart-table th {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.price-tag { color: var(--fern); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid label {
  display: block;
  margin-bottom: 4px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--fern);
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.form-grid textarea {
  min-height: 90px;
  resize: vertical;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: rgba(31, 92, 69, 0.35);
  box-shadow: 0 0 0 3px rgba(31, 92, 69, 0.08);
}

.notice {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--fern-light);
  color: var(--ink);
}

.notice.error {
  border-color: #E8B4B4;
  background: #FDF2F2;
  color: #8B2E2E;
}

.notice.success {
  border-color: #A8D5BC;
  background: #EFF8F2;
  color: #1F5C45;
}

.notice.warning {
  border-color: #E8D4A8;
  background: #FFF9EE;
  color: #7A5A12;
}

.mini-copy {
  margin: 0;
  font-size: .85rem;
  color: var(--muted);
}

.cart-add-more {
  border-color: var(--fern);
  color: var(--fern);
}

.inline-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .9rem;
  color: var(--muted);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Mosaic */
.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.mosaic-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.mosaic-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.mosaic-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(166, 124, 0, 0.2);
}

.mosaic-img {
  padding: 10px;
  background: var(--parchment);
}

.mosaic-img img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.mosaic-info { padding: 10px 12px 14px; }

.mosaic-info h3 {
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
}

.mosaic-info .price { font-size: .9rem; }

/* Pagination */
.catalog-pagination { margin-top: 32px; }

.pagination-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-btn,
.pagination-num {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink);
  transition: background .2s, border-color .2s, color .2s;
}

.pagination-num:hover,
.pagination-btn:hover:not(.is-disabled) {
  border-color: var(--fern);
  color: var(--fern);
}

.pagination-num.is-active {
  background: var(--fern);
  border-color: var(--fern);
  color: var(--white);
}

.pagination-btn.is-disabled {
  opacity: .4;
  pointer-events: none;
}

.pagination-ellipsis {
  padding: 0 4px;
  color: var(--muted);
}

/* Orders */
.order-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.order-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.orders-guest { margin-top: 16px; }

/* Empty state */
.empty-state {
  padding: 48px 24px;
  text-align: center;
}

.empty-state p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fern);
}

.empty-state .sub {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 400;
  color: var(--muted);
}

/* Atlas footer */
.atlas-cta-band {
  padding: 40px 0;
  background:
    linear-gradient(135deg, var(--fern) 0%, #174A38 100%);
  color: var(--white);
  border-top: 1px solid rgba(255, 253, 249, 0.08);
}

.atlas-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-copy h2 {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  color: var(--white);
}

.cta-copy p {
  margin: 0;
  opacity: .86;
  font-size: .92rem;
  max-width: 44ch;
}

.cta-label {
  margin: 0 0 8px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
}

.atlas-footer {
  margin-top: auto;
  padding: 48px 0 0;
  background: var(--ink);
  color: rgba(255, 253, 249, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
}

.footer-atlas-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
}

.footer-atlas-brand p {
  margin: 10px 0 0;
  max-width: 32ch;
  font-size: .88rem;
  opacity: .72;
  line-height: 1.6;
}

.footer-compass {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(166, 124, 0, 0.45);
  border-radius: 50%;
  color: var(--brass);
  font-size: .9rem;
}

.footer-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.legend-col h4 {
  margin: 0 0 12px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
}

.legend-col a {
  display: block;
  margin-bottom: 8px;
  font-size: .86rem;
  opacity: .78;
  transition: opacity .2s, color .2s;
}

.legend-col a:hover {
  opacity: 1;
  color: var(--white);
}

.footer-coords h4 {
  margin: 0 0 12px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
}

.footer-coords p {
  margin: 0 0 8px;
  font-size: .86rem;
  opacity: .78;
}

.footer-hours {
  font-size: .8rem !important;
  opacity: .58 !important;
}

.footer-legal {
  margin-top: 12px !important;
  font-size: .74rem !important;
  opacity: .48 !important;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 253, 249, 0.08);
  font-size: .8rem;
  opacity: .58;
}

.footer-tag { color: var(--brass); opacity: .85; }

/* Product list fallback */
.product-list { display: flex; flex-direction: column; gap: 16px; }

.product-row-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: box-shadow .2s;
}

.product-row-card:hover { box-shadow: var(--shadow-sm); }

.product-row-img {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--fern-light);
}

.product-row-img img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-row-body h3 {
  margin: 4px 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
}

.link-arrow {
  font-size: .88rem;
  font-weight: 600;
  color: var(--clay);
}

/* Mobile navigation */
@media (max-width: 1100px) {
  .masthead-inner { gap: 16px; }
  .atlas-search { width: 150px; }
  .atlas-search:focus-within { width: 180px; }
  .tool-link span { display: none; }
}

@media (max-width: 900px) {
  .masthead-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand tools";
  }

  .atlas-brand { grid-area: brand; }
  .masthead-tools { grid-area: tools; }

  .nav-burger { display: inline-flex; }

  .atlas-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
    background: rgba(12, 22, 16, 0.48);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

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

  .nav-sheet-panel {
    display: flex;
    flex-direction: column;
    width: min(400px, 100%);
    max-height: 100dvh;
    margin-left: auto;
    background:
      linear-gradient(180deg, rgba(255, 253, 249, 0.98) 0%, rgba(247, 242, 232, 0.98) 100%);
    box-shadow: -16px 0 48px rgba(12, 22, 16, 0.18);
    border-left: 1px solid rgba(31, 92, 69, 0.12);
    transform: translateX(104%);
    transition: transform .32s cubic-bezier(.22, 1, .36, 1);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .atlas-nav.is-open .nav-sheet-panel {
    transform: translateX(0);
  }

  .nav-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 16px;
    background:
      linear-gradient(135deg, var(--ink) 0%, #163528 100%);
    color: var(--white);
    border-bottom: 1px solid rgba(255, 253, 249, 0.08);
  }

  .nav-sheet-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .nav-sheet-eyebrow {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 253, 249, 0.62);
  }

  .nav-sheet-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.15;
  }

  .nav-sheet-close {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 253, 249, 0.16);
    border-radius: 50%;
    background: rgba(255, 253, 249, 0.08);
    color: var(--white);
    cursor: pointer;
    transition: background .2s, transform .2s;
  }

  .nav-sheet-close:hover {
    background: rgba(255, 253, 249, 0.16);
  }

  .nav-sheet-search {
    display: flex;
    position: relative;
    align-items: center;
    margin: 16px 16px 0;
  }

  .nav-sheet-search .search-icon {
    position: absolute;
    left: 14px;
    color: var(--muted);
    pointer-events: none;
  }

  .nav-sheet-search input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--ink);
    font-size: .88rem;
    box-shadow: 0 2px 10px rgba(12, 22, 16, 0.04);
  }

  .nav-sheet-search input:focus {
    outline: none;
    border-color: rgba(31, 92, 69, 0.35);
    box-shadow: 0 0 0 3px rgba(31, 92, 69, 0.1);
  }

  .nav-sheet-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 16px 4px;
  }

  .nav-quick-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 72px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 4px 14px rgba(12, 22, 16, 0.05);
    transition: border-color .2s, transform .2s, box-shadow .2s;
  }

  .nav-quick-card:hover {
    border-color: rgba(31, 92, 69, 0.22);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(12, 22, 16, 0.08);
  }

  .nav-quick-card.is-active {
    border-color: rgba(31, 92, 69, 0.35);
    background: var(--fern-light);
  }

  .nav-quick-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--parchment-2);
    color: var(--fern);
  }

  .nav-quick-cart .nav-quick-icon {
    background: rgba(196, 83, 58, 0.1);
    color: var(--clay);
  }

  .nav-quick-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .nav-quick-label {
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .nav-quick-desc {
    font-size: .68rem;
    line-height: 1.35;
    color: var(--muted);
  }

  .nav-quick-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 4px;
    padding: 0 5px;
    border-radius: var(--radius-pill);
    background: var(--clay);
    color: var(--white);
    font-size: .62rem;
    font-weight: 700;
    vertical-align: middle;
  }

  .nav-waypoints,
  .nav-sheet-meta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 16px 0;
    background: transparent;
    box-shadow: none;
    width: auto;
    margin: 0;
  }

  .nav-sheet-meta {
    padding-top: 4px;
    padding-bottom: 8px;
    border-top: 0;
  }

  .nav-section-label {
    display: block;
    margin: 0 0 2px;
    padding: 0 4px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brass);
  }

  .waypoint {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--white);
    font-size: .92rem;
    box-shadow: 0 2px 8px rgba(12, 22, 16, 0.04);
    transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
  }

  .waypoint::before { display: none; }

  .waypoint-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--parchment-2);
    color: var(--fern);
  }

  .waypoint-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
    text-align: left;
  }

  .waypoint-label {
    font-size: .92rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
  }

  .waypoint-desc {
    display: block;
    font-size: .74rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--muted);
  }

  .waypoint-chevron {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--parchment);
    color: var(--muted);
    transition: background .2s, color .2s, transform .2s;
  }

  .waypoint:hover {
    border-color: rgba(31, 92, 69, 0.22);
    background: var(--white);
    transform: translateX(2px);
    box-shadow: 0 8px 18px rgba(12, 22, 16, 0.08);
  }

  .waypoint:hover .waypoint-chevron {
    background: var(--fern-light);
    color: var(--fern);
  }

  .waypoint.is-active {
    border-color: rgba(31, 92, 69, 0.28);
    background: linear-gradient(180deg, rgba(31, 92, 69, 0.08) 0%, rgba(255, 253, 249, 1) 100%);
    box-shadow: inset 0 0 0 1px rgba(166, 124, 0, 0.1);
  }

  .waypoint.is-active .waypoint-icon {
    background: var(--fern);
    color: var(--white);
  }

  .waypoint-primary {
    border-color: rgba(31, 92, 69, 0.18);
    background: linear-gradient(180deg, rgba(31, 92, 69, 0.06) 0%, var(--white) 100%);
  }

  .waypoint-primary .waypoint-icon {
    background: var(--fern);
    color: var(--white);
  }

  .waypoint-primary.is-active {
    background: var(--fern);
    border-color: var(--fern);
    color: var(--white);
  }

  .waypoint-primary.is-active .waypoint-label,
  .waypoint-primary.is-active .waypoint-desc {
    color: var(--white);
  }

  .waypoint-primary.is-active .waypoint-desc {
    opacity: .82;
  }

  .waypoint-primary.is-active .waypoint-icon {
    background: rgba(255, 253, 249, 0.16);
    color: var(--white);
  }

  .waypoint-primary.is-active .waypoint-chevron {
    background: rgba(255, 253, 249, 0.14);
    color: var(--white);
  }

  .waypoint-muted .waypoint-label {
    font-size: .88rem;
  }

  .nav-sheet-foot {
    display: block;
    margin-top: auto;
    padding: 14px 18px 18px;
    border-top: 1px solid var(--line);
    background: rgba(255, 253, 249, 0.72);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-align: center;
    color: var(--muted);
  }

  .atlas-search,
  .tool-link { display: none; }

  .product-detail-layout,
  .dual,
  .footer-grid { grid-template-columns: 1fr; }

  .section-head-center {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .form-grid { grid-template-columns: 1fr; }
  .spec-strip { grid-template-columns: 1fr; }
  .footer-legend { grid-template-columns: 1fr 1fr; }
  .atlas-cta-inner { flex-direction: column; align-items: flex-start; }
  .filter-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .filter-pills { width: 100%; }
}

@media (max-width: 520px) {
  .container { width: min(1200px, calc(100% - 24px)); }

  .brand-sub { display: none; }
  .brand-compass { width: 38px; height: 38px; }
  .brand-name { font-size: 1.05rem; }

  .ticker-marquee {
    font-size: .58rem;
    letter-spacing: .1em;
    gap: 10px;
  }

  .footer-legend { grid-template-columns: 1fr; }
  .product-masonry { grid-template-columns: 1fr; gap: 14px; }
  .product-row-card { grid-template-columns: 88px 1fr; }
  .mosaic-grid { grid-template-columns: 1fr; gap: 12px; }
  .mosaic-grid-home { grid-template-columns: 1fr; }
  .pagination-inner { gap: 8px; }
  .pagination-btn { padding: 8px 10px; font-size: .8rem; }
  .buy-card { position: static; top: auto; }
  .buy-form .btn { width: 100%; }
  .filter-bar { gap: 8px; }
  .filter-pill { font-size: .78rem; padding: 7px 12px; flex-shrink: 0; }
  .filter-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 6px;
    width: 100%;
    max-width: 100%;
  }
  .hero-atlas { padding: 32px 0 48px; }
  .hero-atlas-grid { gap: 28px; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { max-width: none; }
  .atlas-cta-inner .btn { width: 100%; text-align: center; }
  .order-row { flex-direction: column; align-items: stretch; }
  .order-row .btn { align-self: flex-start; }
  .page-panel { padding: 32px 0 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-marquee { animation: none !important; }
  .btn:hover,
  .masonry-card:hover,
  .mosaic-tile:hover { transform: none; }
  .nav-sheet-panel { transition: none; }
  .waypoint:hover { transform: none; }
  .nav-quick-card:hover { transform: none; }
}
