/* =====================================================================
   Spoon Parts USA — Industrial Steel design system
   Palette: navy #0f1b2d · steel #1e3a5f · amber #f59e0b · fog #e5e7eb
   Type:    Archivo Black (display) · Hind (body)
===================================================================== */

:root {
  --navy: #0f1b2d;
  --navy-2: #16263f;
  --steel: #1e3a5f;
  --steel-2: #2a4d78;
  --amber: #f59e0b;
  --amber-2: #fbbf24;
  --fog: #e5e7eb;
  --fog-2: #f4f5f7;
  --line: #d5d9df;
  --ink: #0b1220;
  --ink-2: #33415a;
  --white: #ffffff;
  --danger: #dc2626;
  --success: #15803d;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15,27,45,.08);
  --shadow: 0 6px 20px -8px rgba(15,27,45,.25);
  --shadow-lg: 0 24px 60px -20px rgba(15,27,45,.45);

  --f-display: "Archivo Black", "Impact", system-ui, sans-serif;
  --f-body: "Hind", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1280px;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-decoration: none; transition: color .15s; }
a:hover { color: var(--amber); }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* -------- Buttons -------- */
.btn, .button, button.button, input[type="submit"], .wp-block-button__link,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-display); text-transform: uppercase; letter-spacing: .03em;
  font-size: 14px; padding: 14px 22px; border-radius: var(--radius);
  background: var(--amber); color: var(--navy) !important;
  border: 2px solid var(--amber); cursor: pointer;
  transition: transform .12s, background .15s, border-color .15s, color .15s;
  text-decoration: none; line-height: 1;
}
.btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
  background: var(--amber-2); border-color: var(--amber-2); transform: translateY(-1px);
}
.btn--ghost { background: transparent; color: var(--fog) !important; border-color: var(--fog); }
.btn--ghost:hover { background: var(--fog); color: var(--navy) !important; }
.btn--dark { background: var(--navy); color: var(--white) !important; border-color: var(--navy); }
.btn--dark:hover { background: var(--steel); border-color: var(--steel); }

/* -------- Site header -------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--navy); color: var(--fog);
  border-bottom: 3px solid var(--amber);
}
.header-topbar {
  background: #08111e; color: var(--fog);
  font-size: 13px; padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.header-topbar strong { color: var(--amber); font-family: var(--f-display); letter-spacing: .05em; }
.header-main .container {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 24px; min-height: var(--header-h);
}
.site-brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.site-brand:hover { color: var(--amber); }
.site-brand .mark {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--amber); color: var(--navy); border-radius: var(--radius);
  font-family: var(--f-display); font-size: 22px;
}
.site-brand .title { font-family: var(--f-display); font-size: 20px; text-transform: uppercase; letter-spacing: .04em; line-height: 1; }
.site-brand .tag { display: block; font-family: var(--f-body); font-size: 11px; color: var(--amber); letter-spacing: .18em; margin-top: 4px; }

.header-search { min-width: 0; }
.header-search form { display: flex; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.header-search input[type="search"] {
  flex: 1; min-width: 0; border: 0; padding: 12px 16px; font: inherit; color: var(--ink);
}
.header-search input[type="search"]:focus { outline: 2px solid var(--amber); outline-offset: -2px; }
.header-search button {
  border: 0; padding: 0 20px; background: var(--navy); color: var(--white);
  font-family: var(--f-display); text-transform: uppercase; letter-spacing: .05em; cursor: pointer;
}
.header-search button:hover { background: var(--steel); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions a { color: var(--fog); display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.header-actions a:hover { color: var(--amber); }
.cart-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--amber); color: var(--navy); border-radius: 999px;
  font-family: var(--f-display); font-size: 12px; line-height: 1;
}

.primary-nav { background: var(--navy-2); border-top: 1px solid rgba(255,255,255,.05); }
.primary-nav .container { display: flex; align-items: center; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.primary-nav a {
  display: block; padding: 14px 18px; color: var(--fog);
  font-family: var(--f-display); text-transform: uppercase; letter-spacing: .05em; font-size: 13px;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--navy); background: var(--amber); }

.menu-toggle {
  display: none; background: transparent; border: 2px solid var(--fog); color: var(--fog);
  padding: 8px 12px; border-radius: var(--radius); font-family: var(--f-display);
  text-transform: uppercase; letter-spacing: .05em; cursor: pointer;
}

@media (max-width: 900px) {
  .header-main .container { grid-template-columns: auto 1fr auto; }
  .header-search { grid-column: 1 / -1; order: 3; padding-bottom: 12px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav ul { display: none; flex-direction: column; width: 100%; }
  .primary-nav.is-open ul { display: flex; }
  .primary-nav a { padding: 12px 24px; border-top: 1px solid rgba(255,255,255,.06); }
}

/* -------- Hero + Bento (homepage) -------- */
.hero-bento { background: linear-gradient(180deg, var(--fog-2), var(--white)); padding: 48px 0 64px; }
.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
}
.bento-tile {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--fog); box-shadow: var(--shadow); display: flex;
  color: var(--white); text-decoration: none; isolation: isolate;
}
.bento-tile::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(15,27,45,.85), rgba(15,27,45,.35) 55%, rgba(15,27,45,.75));
}
.bento-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .5s; }
.bento-tile:hover img { transform: scale(1.06); }
.bento-tile .tile-body {
  position: relative; z-index: 2; padding: 22px; margin-top: auto;
}
.bento-tile .eyebrow {
  display: inline-block; font-family: var(--f-display); text-transform: uppercase;
  font-size: 11px; letter-spacing: .18em; padding: 4px 10px; border-radius: 4px;
  background: var(--amber); color: var(--navy); margin-bottom: 10px;
}
.bento-tile h3 { color: var(--white); font-size: 1.4rem; margin: 0 0 6px; }
.bento-tile p { color: var(--fog); margin: 0; font-size: 14px; }

.bento-tile.tile-hero { grid-column: span 2; grid-row: span 2; }
.bento-tile.tile-hero h3 { font-size: clamp(1.6rem, 2.5vw, 2.4rem); }
.bento-tile.tile-wide { grid-column: span 2; }
.bento-tile.tile-tall { grid-row: span 2; }
.bento-tile.tile-cta {
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: var(--navy);
}
.bento-tile.tile-cta::before { display: none; }
.bento-tile.tile-cta h3, .bento-tile.tile-cta p { color: var(--navy); }
.bento-tile.tile-cta .eyebrow { background: var(--navy); color: var(--amber); }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .bento-tile.tile-hero { grid-column: span 2; }
  .bento-tile.tile-wide { grid-column: span 2; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
  .bento-tile, .bento-tile.tile-hero, .bento-tile.tile-wide, .bento-tile.tile-tall { grid-column: span 1; grid-row: span 1; }
}

/* -------- Trust strip -------- */
.trust-strip { background: var(--navy); color: var(--fog); padding: 28px 0; }
.trust-strip .grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.trust-strip .item { display: flex; align-items: center; gap: 12px; }
.trust-strip .icon {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--steel); color: var(--amber); border-radius: var(--radius);
  font-family: var(--f-display);
}
.trust-strip strong { display: block; color: var(--white); font-family: var(--f-display); text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.trust-strip span { font-size: 13px; color: #b6c0cf; }
@media (max-width: 800px) { .trust-strip .grid { grid-template-columns: repeat(2, 1fr); } }

/* -------- Section header -------- */
.section { padding: 64px 0; }
.section-alt { background: var(--fog-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .lead { color: var(--ink-2); max-width: 520px; margin: 0; }
.section-head .link { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .05em; font-size: 13px; color: var(--steel); }
.section-head .link:hover { color: var(--amber); }

/* -------- Category pills -------- */
.cat-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-pills a {
  padding: 10px 16px; border: 2px solid var(--line); border-radius: 999px;
  color: var(--navy); font-family: var(--f-display); text-transform: uppercase;
  letter-spacing: .05em; font-size: 12px; background: var(--white);
}
.cat-pills a:hover { border-color: var(--amber); background: var(--amber); color: var(--navy); }

/* -------- WooCommerce loop -------- */
.woocommerce ul.products, .woocommerce-page ul.products {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin: 0; padding: 0; list-style: none;
}
@media (max-width: 1024px) { .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); } }

.woocommerce ul.products li.product {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px; margin: 0 !important; width: 100% !important; float: none !important;
  transition: transform .15s, box-shadow .15s, border-color .15s; display: flex; flex-direction: column;
}
.woocommerce ul.products li.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--steel-2); }
.woocommerce ul.products li.product a { color: var(--navy); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--f-display); font-size: 15px !important; text-transform: uppercase; letter-spacing: .02em;
  padding: 10px 0 4px !important; color: var(--navy) !important; min-height: 3em;
}
.woocommerce ul.products li.product img { border-radius: var(--radius); background: var(--fog-2); }
.woocommerce ul.products li.product .price {
  color: var(--steel) !important; font-family: var(--f-display) !important; font-size: 18px !important;
}
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--danger) !important; }
.woocommerce ul.products li.product .button { margin-top: auto !important; width: 100%; }
.woocommerce span.onsale {
  background: var(--amber) !important; color: var(--navy) !important;
  font-family: var(--f-display) !important; text-transform: uppercase !important; letter-spacing: .05em;
  border-radius: 4px !important; min-height: 0 !important; min-width: 0 !important;
  padding: 4px 10px !important; line-height: 1 !important; top: 12px !important; left: 12px !important; right: auto !important; margin: 0 !important;
}

/* WooCommerce single product */
.woocommerce div.product .product_title { font-size: 2rem; }
.woocommerce div.product p.price, .woocommerce div.product span.price {
  color: var(--navy); font-family: var(--f-display); font-size: 1.6rem;
}
.woocommerce-tabs .tabs { border-bottom: 2px solid var(--line) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent !important; border: 0 !important; border-radius: 0 !important;
  padding: 0 !important; margin: 0 4px 0 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: var(--f-display); text-transform: uppercase; letter-spacing: .05em;
  padding: 12px 18px !important; color: var(--ink-2) !important; border-bottom: 3px solid transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--navy) !important; border-color: var(--amber); }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }

/* Shop layout with sidebar */
.wc-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 32px 0 64px; }
body:not(.has-shop-sidebar) .wc-layout { grid-template-columns: 1fr; }
.shop-sidebar .widget { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.widget-title { font-family: var(--f-display); text-transform: uppercase; font-size: 14px; letter-spacing: .05em; margin: 0 0 12px; color: var(--navy); }
@media (max-width: 900px) { .wc-layout { grid-template-columns: 1fr; } }

/* -------- Page + article -------- */
.page-hero { background: var(--navy); color: var(--fog); padding: 56px 0; }
.page-hero h1 { color: var(--white); margin: 0; }
.page-hero .crumbs { font-size: 13px; color: var(--amber); font-family: var(--f-display); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.page-hero .crumbs a { color: var(--amber); }
.entry { padding: 48px 0; }
.entry-content > * { max-width: 780px; margin-left: auto; margin-right: auto; }
.entry-content h2, .entry-content h3 { margin-top: 1.4em; }
.entry-content img { border-radius: var(--radius); margin: 24px auto; }

/* -------- Footer -------- */
.site-footer { background: var(--navy); color: var(--fog); padding-top: 56px; margin-top: 64px; }
.site-footer a { color: var(--fog); }
.site-footer a:hover { color: var(--amber); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-widget-title { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .05em; font-size: 14px; color: var(--white); margin: 0 0 16px; }
.footer-widget ul { list-style: none; padding: 0; margin: 0; }
.footer-widget li { padding: 4px 0; font-size: 14px; }
.footer-brand p { color: #b6c0cf; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: #b6c0cf;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* -------- Utilities -------- */
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); height: 1px; width: 1px; overflow: hidden; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--amber); color: var(--navy); padding: 8px 12px; font-family: var(--f-display); border-radius: var(--radius); z-index: 100; }
.skip-link:focus { left: 8px; }

/* =====================================================================
   Category-first marketplace UI
===================================================================== */

/* -------- Hero lead + stats -------- */
.hero-bento .container { display: grid; grid-template-columns: 1.05fr 1.35fr; gap: 48px; align-items: start; padding-top: 56px; padding-bottom: 72px; }
.hero-lead .eyebrow { color: var(--amber); font-family: var(--f-display); text-transform: uppercase; font-size: 12px; letter-spacing: .15em; }
.hero-lead h1 { font-size: clamp(36px, 4.2vw, 60px); margin: 16px 0 20px; color: var(--white); }
.hero-lead p.lead { color: #cfd6e0; font-size: 17px; max-width: 46ch; }
.hero-bento { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--fog); }
.hero-actions { display: flex; gap: 12px; margin: 28px 0 36px; flex-wrap: wrap; }
.btn-ghost { background: transparent; color: var(--fog); border: 1.5px solid rgba(255,255,255,.25); padding: 12px 20px; border-radius: var(--radius); font-family: var(--f-display); text-transform: uppercase; letter-spacing: .04em; font-size: 13px; transition: all .15s; }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; }
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--f-display); font-size: 26px; color: var(--white); line-height: 1; }
.hero-stats span { font-size: 12px; color: #98a4b7; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }

/* -------- Category bento (homepage) -------- */
.cat-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 165px;
  gap: 12px;
}
.cat-card {
  position: relative; overflow: hidden;
  background: var(--steel); color: var(--white);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  isolation: isolate;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat-card.tile-hero { grid-column: span 2; grid-row: span 2; }
.cat-card.tile-tall { grid-column: span 1; grid-row: span 2; }
.cat-card.tile-wide { grid-column: span 2; grid-row: span 1; }
.cat-card-img {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  filter: brightness(.55) saturate(1.1);
}
.cat-card-img-placeholder {
  background: linear-gradient(135deg, var(--steel-2) 0%, var(--navy) 100%);
  display: flex; align-items: center; justify-content: center;
}
.cat-card-img-placeholder span {
  font-family: var(--f-display); font-size: 72px; color: rgba(245,158,11,.35); letter-spacing: -.02em;
}
.cat-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 40%, rgba(11,18,32,.85) 100%);
}
.cat-card .eyebrow { color: var(--amber); font-family: var(--f-display); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.cat-card h3 { color: var(--white); font-size: 20px; margin: 6px 0 10px; line-height: 1.1; }
.cat-card.tile-hero h3 { font-size: 30px; }
.cat-card-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-card-cta {
  position: absolute; top: 14px; right: 14px;
  background: rgba(0,0,0,.4); backdrop-filter: blur(4px);
  color: var(--amber); font-family: var(--f-display); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 100px; opacity: 0; transition: opacity .2s;
}
.cat-card:hover .cat-card-cta { opacity: 1; }

/* -------- Pills / badges -------- */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--f-display); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 10px; border-radius: 100px;
  background: rgba(255,255,255,.12); color: var(--white);
  border: 1px solid rgba(255,255,255,.15);
}
.pill-count { background: rgba(245,158,11,.18); color: var(--amber-2); border-color: rgba(245,158,11,.35); }
.pill-price { background: var(--amber); color: var(--navy); border-color: var(--amber); font-weight: 700; }
.pill-cond-new       { background: #dcfce7; color: #14532d; border-color: #86efac; }
.pill-cond-rebuilt   { background: #dbeafe; color: #1e3a8a; border-color: #93c5fd; }
.pill-cond-used      { background: #f3f4f6; color: #374151; border-color: #d1d5db; }
.pill-cond-core      { background: #fee2e2; color: #7f1d1d; border-color: #fca5a5; }
.pill-cond-refurbished { background: #ede9fe; color: #4c1d95; border-color: #c4b5fd; }
.pill-seller { background: var(--fog-2); color: var(--ink); border-color: var(--line); }

/* -------- Full directory (homepage + /shop) -------- */
.directory { background: var(--fog-2); padding: 64px 0; }
.directory-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px;
}
.dir-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink);
  transition: all .15s;
}
.dir-item:hover { border-color: var(--amber); transform: translateX(3px); color: var(--navy); box-shadow: var(--shadow-sm); }
.dir-name { font-family: var(--f-display); text-transform: uppercase; font-size: 13px; letter-spacing: .02em; }
.dir-meta { font-size: 12px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.dir-price { font-family: var(--f-display); color: var(--amber); }

/* -------- Category archive header -------- */
.cat-header { background: var(--navy); color: var(--fog); padding: 48px 0 40px; position: relative; }
.cat-header::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--amber) 0%, transparent 100%); }
.cat-header .crumbs { font-size: 12px; color: var(--amber); font-family: var(--f-display); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 20px; }
.cat-header .crumbs a { color: var(--amber); }
.cat-header .eyebrow { color: var(--amber); font-family: var(--f-display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.cat-header h1 { color: var(--white); font-size: clamp(32px, 4vw, 52px); margin: 8px 0 18px; }
.cat-header-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-header-desc { margin-top: 24px; max-width: 78ch; color: #cfd6e0; position: relative; }
.cat-header-desc[data-collapsed="1"] .cat-header-desc-body { max-height: 5.6em; overflow: hidden; mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
.cat-header-desc-body h2, .cat-header-desc-body h3 { color: var(--white); }
.cat-header-desc-body p, .cat-header-desc-body li { font-size: 14px; }
.cat-header-desc-toggle {
  background: transparent; color: var(--amber); border: 0; padding: 8px 0 0;
  font-family: var(--f-display); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; cursor: pointer;
}

/* -------- Listing cards (grid inside category) -------- */
.cat-listings { padding: 40px 0 64px; }
.cat-listings .products,
.cat-listings ul.products {
  list-style: none; padding: 0; margin: 0;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
}
.cat-listings .products::before,
.cat-listings .products::after { display: none !important; }
li.listing-card,
.listing-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  width: auto !important; float: none !important; margin: 0 !important;
  list-style: none;
}
li.listing-card:hover, .listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--amber); }
.listing-card-link { display: block; color: var(--ink); }
.listing-card-img {
  aspect-ratio: 4/3; background-size: cover; background-position: center;
  background-color: var(--fog-2);
}
.listing-card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.listing-card-body h3, .listing-card-body h4 {
  font-size: 15px; margin: 0; text-transform: none; letter-spacing: 0;
  line-height: 1.3; color: var(--navy);
}
.listing-card-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.listing-card-price {
  font-family: var(--f-display); font-size: 22px; color: var(--amber); line-height: 1;
}
.listing-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px;
}
.listing-card-seller { font-size: 11px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; font-family: var(--f-display); }
.listing-card-cta { font-size: 11px; color: var(--amber); text-transform: uppercase; letter-spacing: .1em; font-family: var(--f-display); }

/* Hide default Woo price/add-to-cart on loop since we render our own card */
.cat-listings .woocommerce-loop-product__title,
.cat-listings .price,
.cat-listings .button.add_to_cart_button { display: none !important; }

/* -------- Single listing detail -------- */
.listing-detail { padding: 40px 0 56px; }
.listing-detail .crumbs { font-size: 12px; color: var(--ink-2); font-family: var(--f-display); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 20px; }
.listing-detail .crumbs a { color: var(--steel); }
.listing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.listing-media img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--fog-2); }
.listing-body .eyebrow-link { display: inline-block; color: var(--amber); font-family: var(--f-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.listing-body h1 { font-size: clamp(28px, 3.2vw, 42px); text-transform: none; letter-spacing: -.01em; margin: 0 0 16px; }
.listing-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.listing-price {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 20px;
  display: flex; align-items: baseline; gap: 12px;
}
.listing-price-value { font-family: var(--f-display); font-size: 44px; color: var(--amber); line-height: 1; }
.listing-price-note { color: #98a4b7; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.listing-desc { color: var(--ink-2); margin-bottom: 24px; }
.listing-desc p { margin-bottom: 12px; }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-amber { background: var(--amber); color: var(--navy); border: 0; border-radius: var(--radius); font-family: var(--f-display); text-transform: uppercase; letter-spacing: .05em; padding: 12px 20px; display: inline-block; transition: all .15s; }
.btn-amber:hover { background: var(--amber-2); color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow); }
.listing-source-note { font-size: 12px; color: var(--ink-2); margin-top: 10px; }

/* -------- Sibling listing rail -------- */
.listing-rail {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.listing-rail .listing-card-body { padding: 12px; gap: 6px; }
.listing-rail .listing-card-price { font-size: 18px; }
.listing-rail h4 { font-size: 13px; }

/* -------- Responsive -------- */
@media (max-width: 1100px) {
  .hero-bento .container { grid-template-columns: 1fr; }
  .cat-bento { grid-template-columns: repeat(3, 1fr); }
  .cat-listings .products { grid-template-columns: repeat(2, 1fr) !important; }
  .listing-rail { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .cat-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 145px; }
  .cat-card.tile-hero, .cat-card.tile-wide { grid-column: span 2; }
  .cat-card.tile-tall { grid-row: span 1; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .listing-grid { grid-template-columns: 1fr; gap: 24px; }
  .cat-listings .products { grid-template-columns: 1fr !important; }
  .listing-rail { grid-template-columns: repeat(2, 1fr); }
}
