/* ====================================================================
   ArcMart look — "Heavy Duty" (chosen Nov 2026).
   Loaded last, so it sits on top of styles.css and the page files.
   Fonts are self-hosted (fonts/, SIL Open Font License — see OFL.txt):
     Archivo Black for headlines and prices, DM Sans for everything else.
   To go back to the old look, remove this file's <link> in index.html.
   ==================================================================== */

@font-face {
  font-family: "DM Sans"; src: url("../fonts/dm-sans.woff") format("woff");
  font-weight: 100 1000; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo Black"; src: url("../fonts/archivo-black.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Archivo Black", "Arial Black", sans-serif;
  --page: #ece8e0;      /* concrete */
  --panel: #fbfaf7;
  --tile: #ddd8ce;      /* behind product pictures */
  --ink: #16181b; --ink-soft: #3d4148; --muted: #5e6268;
  --line: #d8d3c8; --line-soft: #e6e1d7;
  --header: #16181b; --header-ink: #f1eee8;
  --brand: #1f4f7a; --brand-dark: #163a5a; --brand-soft: #e3ebf2;
  --accent: #d6303a; --accent-dark: #b3242d;   /* Har-Bach red: the action colour */
  --radius: 4px;
  --shadow: 0 10px 28px rgba(22, 24, 27, .14);
}

h1, h2, .logo, .price, .buy-price, .category-card-name {
  font-family: var(--display); font-weight: 400; letter-spacing: -.01em;
}
h1 { font-size: 2.3rem; }
.price .muted, .filter-title, .seller-side-name { font-family: var(--font); }
.price, .buy-price, .mono, .menu-count { font-variant-numeric: tabular-nums; }
::selection { background: rgba(214, 48, 58, .22); }

/* Actions are red; links stay steel blue. */
.btn.primary, .search button { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover, .search button:hover { background: var(--accent-dark); }
.btn.primary:disabled { background: #c9c4ba; border-color: #c9c4ba; color: #3d4148; opacity: 1; cursor: not-allowed; }

/* ---------------------------------------------------------------- home */

.intro {   /* full-width dark band */
  margin: -28px calc(50% - 50vw) 0; padding: 44px calc(50vw - 50% + 20px) 40px;
  border: 0; border-radius: 0; color: var(--header-ink);
  background: radial-gradient(120% 140% at 85% 10%, #2b3038 0%, #16181b 60%);
}
.intro h1 { font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1; max-width: none; letter-spacing: -.02em; margin-bottom: 14px; }
.intro p { color: #c9c4ba; font-size: 1.08rem; max-width: 60ch; margin-bottom: 20px; }
.intro .btn { padding: 12px 22px; font-size: 1.02rem; }
.section-title { font-size: 1.45rem; margin: 28px 0 12px; }

.category-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.category-card { border: 0; background: var(--tile); }
.category-card img { aspect-ratio: 2 / 1; object-fit: contain; padding: 5% 8%; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.category-card:hover { box-shadow: var(--shadow); }
.category-card:hover img { transform: scale(1.04); }
.category-card-body {   /* name on a dark strip under the picture */
  flex: 1; flex-direction: row; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 11px 14px; background: var(--header); color: #fff;
}
.category-card-body .muted { color: #c9c4ba; font-size: .88rem; white-space: nowrap; }
.category-card-name { font-size: 1.02rem; line-height: 1.2; }

/* ---------------------------------------------------------------- shop */

.eyebrow { display: none; }                        /* titles speak for themselves */
.rix-banner { box-shadow: none; }                  /* no side stripe */
.rix-banner + .category-banner { display: none; }  /* one banner, not two */
.filter-list img { display: none; }                /* repeated tiny thumbnails */
.filter-chips a { padding: 3px 11px; }

.card { border: 0; }
.card:hover { box-shadow: var(--shadow); }
.card-image img, .card-image .image-missing { background: var(--tile); object-fit: contain; padding: 6%; }
.card-name { font-size: 1.02rem; }
.price { font-size: 1.45rem; }

/* -------------------------------------------------------------- product */

.product-image { background: var(--tile); padding: 5%; }
.buy-box { border: 0; box-shadow: 0 12px 32px rgba(22, 24, 27, .10); }
.buy-price { font-size: 2.6rem; }
.rix-details { border-left: 0; }

/* --------------------------------------------------------------- footer */

.site-footer { background: var(--header); color: #a9a49a; border: 0; }
.site-footer a { color: #d8d3c8; }

/* ---------------------------------------------------------- narrow screens */

@media (max-width: 900px) {
  .header-row { gap: 10px 14px; padding-top: 10px; padding-bottom: 10px; }
  .header-nav { gap: 14px; font-size: .92rem; }
  .logo { font-size: 1.05rem; }
  .logo-mark { width: 24px; height: 24px; }
  .intro { padding-top: 28px; padding-bottom: 28px; }
  .intro p { font-size: 1rem; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .category-card-body { flex-direction: column; gap: 2px; padding: 9px 12px; }
  .rix-banner { padding: 14px 16px; }
  .rix-lead, .rix-tag { display: none; }
  .rix-links .btn { padding: 7px 12px; font-size: .9rem; }
}

/* Short laptop screens: keep both rows of categories in view. */
@media (min-width: 901px) and (max-height: 820px) {
  .intro { padding-top: 30px; padding-bottom: 28px; }
  .category-card img { aspect-ratio: 3 / 1; padding: 3% 8%; }
}

@media (prefers-reduced-motion: reduce) {
  .category-card img { transition: none; }
}
