
/* Site 04 — theme: indigo_soft */
:root {
  --primary: #283593;
  --primary-dark: color-mix(in srgb, #283593 75%, #000);
  --accent: var(--primary);
  --bg: #f3f5f8;
  --card: #ffffff;
  --text: #141820;
  --muted: #5a6570;
  --border: #d5dde6;
  --hero-bg: linear-gradient(135deg, color-mix(in srgb, #283593 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: airy band + soft glass header + layered footer */
:root {
  --bg: #f4f4fb;
  --hero-bg: radial-gradient(ellipse at top, #e8eaf6 0%, #fafafa 55%);
}
.top-accent {
  height: 14px;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, #9fa8da 0%, transparent 70%),
    linear-gradient(90deg, #e8eaf6, #fff, #e8eaf6);
}
.top-bar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(63, 81, 181, 0.12);
  box-shadow: 0 4px 30px rgba(40, 53, 147, 0.08);
}
.top-bar-bottom { display: none; }
.footer {
  background: radial-gradient(ellipse 120% 80% at 50% 100%, #e8eaf6 0%, #f4f4fb 50%);
  border-top: 1px solid rgba(63, 81, 181, 0.15);
}
.footer-deco {
  height: 20px;
  background: linear-gradient(180deg, rgba(159, 168, 218, 0.35) 0%, transparent 100%);
}
.footer-inner {
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 48px 8px 40px;
}
.footer-aside { border-top: none; padding-top: 0; border-left: 1px solid rgba(63, 81, 181, 0.2); padding-left: 28px; }
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-aside { border-left: none; padding-left: 0; border-top: 1px solid rgba(63, 81, 181, 0.2); padding-top: 20px; }
}
.container { max-width: 1320px; }
.hero-inner { padding-top: 52px; padding-bottom: 56px; }
.layout {
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 40px;
  padding-left: 12px;
  padding-right: 12px;
}
.main {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 20px 28px;
  box-shadow: 0 8px 32px rgba(40,53,147,0.06);
}
.toolbar { padding: 0 4px; }
.card { box-shadow: 0 2px 8px rgba(40,53,147,0.06); }
.card:hover { box-shadow: 0 16px 40px rgba(40,53,147,0.12); }
.sidebar { border: none; box-shadow: 0 4px 20px rgba(0,0,0,0.06); background: #fff; }
.grid { grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 20px; }
@media (max-width: 880px) {
  .main { padding: 16px; }
}
