
/* Site 08 — theme: industrial */
:root {
  --primary: #ef6c00;
  --primary-dark: color-mix(in srgb, #ef6c00 75%, #000);
  --accent: var(--primary);
  --bg: #f3f5f8;
  --card: #ffffff;
  --text: #141820;
  --muted: #5a6570;
  --border: #d5dde6;
  --hero-bg: linear-gradient(135deg, color-mix(in srgb, #ef6c00 12%, #fff) 0%, #fff8f0 100%);
  --radius: 10px;
  --font: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.top-accent {
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}
.top-bar-bottom {
  height: 0;
  overflow: hidden;
}
.top-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}
.top-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 18px 4px 20px;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 14px; }
.logo-mark {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 16px color-mix(in srgb, var(--primary) 38%, transparent);
}
.site-name { font-size: 1.28rem; color: var(--primary); display: block; font-weight: 800; letter-spacing: -0.02em; }
.tagline.small, .small { font-size: 0.88rem; color: var(--muted); }
.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.top-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 16px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
}
.top-nav a:hover { color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); }

.search-wrap { display: flex; flex: 1; min-width: 220px; max-width: 400px; }
.search-wrap input {
  flex: 1;
  border: 2px solid var(--border);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
}
.search-wrap button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
}
.search-wrap button:hover { filter: brightness(1.06); }

.hero {
  background: var(--hero-bg);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.hero-inner {
  padding: 40px 4px 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.hero-title { margin: 0 0 12px; font-size: clamp(1.75rem, 4vw, 2.35rem); letter-spacing: -0.03em; line-height: 1.15; }
.hero-desc { margin: 0; color: var(--muted); max-width: 640px; font-size: 1.08rem; line-height: 1.55; }
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badges span {
  background: #fff;
  border: 2px solid var(--border);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 32px;
  padding: 36px 4px 64px;
  align-items: start;
}
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
}

.sidebar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  position: sticky;
  top: 88px;
}
.sidebar h2 { margin: 0 0 14px; font-size: 1.05rem; font-weight: 800; }
.sidebar ul { list-style: none; margin: 0; padding: 0; max-height: 72vh; overflow-y: auto; }
.sidebar li { margin-bottom: 4px; }
.sidebar a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}
.sidebar a:hover { background: color-mix(in srgb, var(--primary) 10%, #fff); color: var(--primary); }
.sidebar a.active { background: var(--primary); color: #fff; }
.sidebar-note { font-size: 0.75rem; color: var(--muted); margin-top: 12px; line-height: 1.45; }

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.count { margin: 0; font-size: 0.95rem; color: var(--muted); }
.per-page { font-size: 0.9rem; color: var(--muted); }
.per-page select { margin-left: 6px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--border); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  outline: none;
}
.card:hover, .card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.card-thumb {
  aspect-ratio: 4/3;
  background: #e8ecf1;
  overflow: hidden;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.12) contrast(1.03);
}
.card-thumb img[src^="data:image/svg"] {
  object-fit: contain;
  object-position: center;
  background: #f8fafc;
  filter: none;
}
.card-inner {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card-cat {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  font-weight: 800;
}
.card-title { margin: 0; font-size: 1.02rem; line-height: 1.38; font-weight: 700; }
.card-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}
.card-meta .sku { font-family: ui-monospace, monospace; font-size: 0.8rem; }
.card-price { font-size: 0.88rem; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--border); }
.card-price strong { color: #b71c1c; font-size: 1.08rem; }
.card-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.pager button {
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 500;
}
.pager button:not(:disabled):hover { border-color: var(--primary); color: var(--primary); }
.pager button:disabled { opacity: 0.45; cursor: not-allowed; }
.pager-info { font-size: 0.9rem; color: var(--muted); }

.footer {
  position: relative;
  background: #fff;
  border-top: 2px solid var(--border);
  padding: 0;
  font-size: 1rem;
  margin-top: 12px;
}
.footer-deco {
  height: 8px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 35%, #e8ecf4), transparent);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 40px 4px 36px;
  max-width: 1180px;
  margin: 0 auto;
}
.footer-main p { margin: 0; line-height: 1.65; }
.footer-lead strong { font-size: 1.05rem; color: var(--text); }
.footer-aside { border-top: 1px dashed var(--border); padding-top: 16px; }
.footer .muted, .footer-note { color: var(--muted); }
.footer-bottom {
  height: 6px;
  background: var(--primary);
  opacity: 0.35;
}

/* Modal */
.modal[hidden] { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 36, 0.55);
  cursor: pointer;
}
.modal-panel {
  position: relative;
  z-index: 1;
  background: var(--card);
  border-radius: var(--radius);
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
  border: 1px solid var(--border);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  z-index: 2;
}
.modal-close:hover { color: var(--text); }
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
}
@media (max-width: 720px) {
  .modal-grid { grid-template-columns: 1fr; }
}
.modal-visual {
  background: #eef1f5;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}
.modal-visual img {
  width: 100%;
  max-width: 480px;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: saturate(1.1) contrast(1.02);
}
.modal-visual img[src^="data:image/svg"] {
  object-fit: contain;
  background: transparent;
  filter: none;
}
.modal-body { padding: 22px 24px 26px; }
.modal-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  font-weight: 700;
  margin: 0 0 6px;
}
.modal-title { margin: 0 0 10px; font-size: 1.35rem; line-height: 1.25; }
.modal-sku { margin: 0 0 8px; font-size: 0.9rem; }
.modal-sku code { font-size: 0.95rem; }
.label { color: var(--muted); font-weight: 600; margin-right: 6px; }
.modal-price { margin: 0 0 8px; font-size: 1rem; }
.modal-price strong { color: #b71c1c; font-size: 1.2rem; }
.modal-moq { margin: 0 0 14px; font-size: 0.95rem; }
.modal-desc {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.55;
  white-space: pre-wrap;
}


/* Layout: list rows + hazard-strip header / dock footer */
:root {
  --bg: #eceff1;
  --radius: 4px;
  --hero-bg: linear-gradient(180deg, #cfd8dc 0%, #eceff1 100%);
}
.top-accent {
  height: 8px;
  background: repeating-linear-gradient(90deg, #fbc02d 0 28px, #37474f 28px 56px);
}
.top-bar { background: #37474f; border-bottom: 4px solid var(--primary); }
.top-bar-bottom {
  height: 6px;
  background: linear-gradient(90deg, #ffb300, var(--primary), #ffb300);
}
.top-bar .site-name { color: #fff; font-size: 1.35rem; letter-spacing: 0.04em; }
.top-bar .tagline { color: #b0bec5; }
.top-bar .top-nav a { color: #eceff1; padding: 12px 18px; }
.top-bar .top-nav a:hover { color: #ffb74d; background: rgba(255,255,255,0.06); }
.search-wrap input { background: #455a64; border-color: #546e7a; color: #fff; border-width: 2px; }
.search-wrap input::placeholder { color: #b0bec5; }
.search-wrap button { background: var(--primary); }
.footer {
  background: #263238;
  color: #cfd8dc;
  border-top: 4px solid var(--primary);
}
.footer-deco {
  height: 10px;
  background: repeating-linear-gradient(90deg, #455a64 0 10px, #37474f 10px 20px);
}
.footer-inner { padding: 36px 8px 32px; }
.footer-lead strong { color: #fff; }
.footer-note { color: #90a4ae !important; }
.footer-aside { border-color: #546e7a; }
.footer-bottom { height: 12px; background: #fbc02d; opacity: 1; }
.hero-title { font-family: "Arial Black", Arial, sans-serif; text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 1.85rem); }
.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.layout { grid-template-columns: 200px minmax(0, 1fr); gap: 16px; }
.grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card {
  flex-direction: row;
  align-items: stretch;
  max-width: 100%;
  border-width: 2px;
  border-color: #90a4ae;
}
.card-thumb {
  width: 200px;
  min-width: 160px;
  max-width: 42%;
  aspect-ratio: 4/3;
}
.card-inner { flex: 1; justify-content: center; }
.card-cta { align-self: flex-start; }
@media (max-width: 560px) {
  .card { flex-direction: column; }
  .card-thumb { width: 100%; max-width: none; }
}
