:root {
  --bg: #0a0a0f;
  --surface: #14141c;
  --surface-2: #1c1c26;
  --border: #2a2a35;
  --text: #e8e8ec;
  --text-dim: #9a9aa6;
  --accent: #4a7fff;
  --accent-hover: #5a8fff;
  --accent-dim: rgba(74, 127, 255, 0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* HEADER */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.85);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
  gap: var(--space-md);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.1rem;
}

.brand-mark {
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
}

/* NAV */
.primary-nav {
  display: flex;
  gap: var(--space-xs);
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.tab-btn:hover { color: var(--text); background: var(--surface); }

.tab-btn.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent);
}

/* MAIN */
main {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-xl);
  min-height: calc(100vh - 200px);
}

.tab-section { animation: fadeIn 0.2s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* HERO */
.hero { margin-bottom: var(--space-lg); }

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

.hero .lede {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 60ch;
  margin-bottom: var(--space-sm);
}

/* Photo-backed heroes (shop + marketplace) */
.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  min-height: 220px;
  aspect-ratio: 21 / 7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-color: var(--surface);
  border: 1px solid var(--border);
}

.hero-photo h1 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-photo .lede {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
  max-width: 56ch;
}

.hero-photo-shop {
  background-image: linear-gradient(rgba(10, 10, 15, 0.30), rgba(10, 10, 15, 0.65)), url('/assets/hero/shop-mountain.jpg');
  background-position: center 35%;
}

.hero-photo-marketplace {
  background-image: linear-gradient(rgba(10, 10, 15, 0.25), rgba(10, 10, 15, 0.65)), url('/assets/hero/marketplace-sunset.jpg');
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
}

/* CARDS */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.card-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-body { padding: var(--space-sm); }
.card-body h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.card-body p { color: var(--text-dim); font-size: 0.9rem; }

.card-body .price,
.card-body .meta {
  margin-top: var(--space-xs);
  color: var(--accent);
  font-weight: 600;
}

.card.placeholder { opacity: 0.65; }

/* CTA */
.cta {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cta:hover { background: var(--accent-hover); }

/* STUDIO PREVIEW */
.studio-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

@media (max-width: 768px) {
  .studio-preview { grid-template-columns: 1fr; }
}

.preview-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.studio-features h3 { font-size: 1.2rem; margin-bottom: var(--space-sm); }

.studio-features ul {
  list-style: none;
  margin-bottom: var(--space-md);
}

.studio-features li {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}

.studio-features li:last-of-type { border-bottom: none; }

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-md) 0;
  margin-top: var(--space-xl);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-nav { display: flex; gap: var(--space-md); }
.footer-nav a { color: var(--text-dim); text-decoration: none; }
.footer-nav a:hover { color: var(--text); }

/* SHOP LANDING — hero CTAs, category tiles, filter chip */

.shop-section-head {
  font-size: 1.2rem;
  font-weight: 600;
  margin: var(--space-lg) 0 var(--space-sm);
  letter-spacing: -0.01em;
}

.shop-hero-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.hero-cta {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  padding: 0;
  font-family: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  border-color: var(--accent);
}

.hero-cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-featured .hero-cta-bg {
  background-color: #1e3a8a;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/8/87/Logan_Sapphire_10956420_cropped.png/330px-Logan_Sapphire_10956420_cropped.png');
}
.hero-rough .hero-cta-bg {
  background-color: #047857;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/0/00/Kyanite_crystals.jpg');
  background-position: center 35%;
}
.hero-marketplace .hero-cta-bg {
  background-color: #b91c1c;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/1/17/Corundum-215330.jpg/330px-Corundum-215330.jpg');
}

.hero-cta-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  text-align: left;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  padding: 0.7rem 1rem;
  background: rgba(20, 20, 28, 0.88);
  letter-spacing: 0.01em;
}

@media (max-width: 700px) {
  .shop-hero-row { grid-template-columns: 1fr; }
}

/* Species tiles — like gemrock auction's gemstone categories */
.species-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.species-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  display: block;
}

.species-tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.species-tile.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.species-tile-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.species-tile-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.85rem;
  background: rgba(20, 20, 28, 0.88);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  z-index: 1;
}

.species-tile-count {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-weight: 600;
}

/* Type tiles — 4 horizontal cards like the screenshot */
.type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

@media (max-width: 700px) {
  .type-grid { grid-template-columns: repeat(2, 1fr); }
}

.type-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: block;
}

.type-tile:hover { transform: translateY(-2px); border-color: var(--accent); }
.type-tile.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-dim); }

.type-tile-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
}

.type-tile-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 20, 28, 0.88);
  padding: 0.5rem 0.85rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
}

/* Cut/shape pills — abstract shape silhouettes, smaller */
.cut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.cut-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  display: block;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.cut-tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.cut-tile.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.cut-tile-photo {
  position: absolute;
  inset: 0;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cut-tile-shape {
  width: 50%;
  height: 50%;
  background: var(--text-dim);
  display: block;
  transition: background 0.15s ease;
}

.cut-tile:hover .cut-tile-shape,
.cut-tile.active .cut-tile-shape { background: var(--accent); }

.cut-shape-round { border-radius: 50%; }
.cut-shape-oval { border-radius: 50%; transform: scaleX(0.7); }
.cut-shape-pear { clip-path: polygon(50% 0%, 90% 60%, 75% 100%, 25% 100%, 10% 60%); }
.cut-shape-emerald { border-radius: 4px; transform: scaleY(0.78); }
.cut-shape-cushion { border-radius: 30%; }
.cut-shape-trillion { clip-path: polygon(50% 0%, 100% 100%, 0% 100%); }
.cut-shape-heart { clip-path: path('M18,32 C0,18 0,8 9,4 C14,2 18,6 18,10 C18,6 22,2 27,4 C36,8 36,18 18,32 Z'); }
.cut-shape-marquise { border-radius: 50%; transform: scaleX(0.5) scaleY(1.1); }
.cut-shape-freeform { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
.cut-shape-rough { clip-path: polygon(20% 0%, 80% 5%, 100% 40%, 90% 90%, 50% 100%, 10% 80%, 0% 35%); }
.cut-shape-novelty { clip-path: polygon(50% 0%, 65% 30%, 100% 35%, 75% 60%, 85% 100%, 50% 80%, 15% 100%, 25% 60%, 0% 35%, 35% 30%); }

/* Color tiles — same standardized pattern */
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.color-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  display: block;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.color-tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.color-tile.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.color-tile-photo {
  position: absolute;
  inset: 0;
}

.color-tile-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 20, 28, 0.88);
  padding: 0.5rem 0.85rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
  z-index: 1;
}

.color-tile-count {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-weight: 600;
  z-index: 2;
}

.cut-tile-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 20, 28, 0.88);
  padding: 0.5rem 0.85rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
  z-index: 1;
}

/* Grid header with active filter chip */
.shop-grid-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.shop-grid-header .shop-section-head { margin: 0; }

.shop-grid-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.active-filter-chip {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.link-btn {
  background: transparent;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  padding: 0;
}

.link-btn:hover { color: var(--accent-hover); }

/* SITE SEARCH (header) */
.site-search {
  position: relative;
  flex: 1 1 200px;
  min-width: 160px;
  max-width: 320px;
}

.site-search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
}

.site-search input::placeholder { color: var(--text-dim); }
.site-search input:focus { outline: none; border-color: var(--accent); }

.site-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 60vh;
  overflow-y: auto;
  z-index: 40;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.site-search-results[hidden] { display: none; }

.search-section { padding: 0.25rem 0; border-bottom: 1px solid var(--border); }
.search-section:last-child { border-bottom: none; }

.search-section-label {
  padding: 0.4rem var(--space-sm) 0.2rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 600;
}

.search-result {
  display: flex;
  gap: var(--space-sm);
  padding: 0.5rem var(--space-sm);
  text-decoration: none;
  color: var(--text);
  align-items: center;
  cursor: pointer;
  transition: background 0.1s ease;
}

.search-result:hover { background: var(--surface-2); }

.search-result-thumb {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.search-result-info { min-width: 0; flex: 1; }

.search-result-name {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-empty {
  padding: var(--space-md);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* PRODUCT FOCUS (when arrived via search) */
.product-card.product-focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  animation: focusPulse 1.6s ease;
}

@keyframes focusPulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 127, 255, 0.6); }
  60% { box-shadow: 0 0 0 14px transparent; }
  100% { box-shadow: 0 0 0 3px var(--accent-dim); }
}

/* CART TOGGLE (header button) */
.cart-toggle {
  position: relative;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cart-toggle:hover { border-color: var(--accent); background: var(--surface); }

.cart-icon { font-size: 1.1rem; line-height: 1; }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-badge[hidden] { display: none; }

@keyframes badgeFlash {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.cart-badge.flash { animation: badgeFlash 0.35s ease; }

/* PRODUCT CARDS (add-to-cart) */
.product-card .card-body { display: flex; flex-direction: column; gap: 0.25rem; }

.add-to-cart-btn {
  margin-top: var(--space-xs);
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  width: 100%;
}

.product-card.sold-out { opacity: 0.55; }

.cta-secondary {
  background: var(--surface-2);
  color: var(--text-dim);
  cursor: not-allowed;
}

/* CART OVERLAY */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 50;
}

.cart-overlay.visible { opacity: 1; visibility: visible; }

/* CART DRAWER */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 100%);
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 60;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
}

.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border);
}

.cart-header h2 { font-size: 1.1rem; font-weight: 600; }

.cart-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
}

.cart-close:hover { color: var(--text); }

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-sm) var(--space-md);
}

.cart-empty {
  color: var(--text-dim);
  text-align: center;
  padding: var(--space-lg) 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.cart-item:last-child { border-bottom: none; }

.cart-item-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.cart-item-info { min-width: 0; }
.cart-item-name { font-weight: 500; font-size: 0.95rem; line-height: 1.3; }
.cart-item-meta { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.15rem; }

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.qty-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 26px;
  height: 26px;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.qty-btn:hover { border-color: var(--accent); }

.cart-item-controls .qty {
  min-width: 1.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.remove-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  margin-left: 0.4rem;
  text-decoration: underline;
  font-family: inherit;
}

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

.cart-item-line-total {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cart-footer {
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.cart-note {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-bottom: var(--space-sm);
}

.cart-checkout-btn {
  width: 100%;
}

.cart-checkout-btn:disabled {
  background: var(--surface);
  color: var(--text-dim);
  cursor: not-allowed;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .header-inner { flex-direction: column; align-items: stretch; }
  .primary-nav { width: 100%; justify-content: stretch; }
  .tab-btn { flex: 1; }
  .brand { justify-content: center; }
  .cart-toggle { align-self: flex-end; }
}
