:root {
  --header: #222;
  --header-ink: #fff;
  --accent: #3483fa;
  --accent-ink: #fff;
  --page: #ededed;
  --card: #fff;
  --ink: #1a1a1a;
  --muted: #666;
  --line: #e2e2e2;
  --danger: #d32f2f;
  --radius: 6px;
  --font-display: "Segoe UI", sans-serif;
  --font-body: "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  color-scheme: light;
}
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, .display {
  font-family: var(--font-body);
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
  margin: 0 0 8px;
}
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: min(1180px, calc(100% - 24px)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.skip { position: absolute; left: 12px; top: -40px; background: var(--accent); color: #fff; padding: 8px 12px; z-index: 80; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.shop-header { background: var(--header); color: var(--header-ink); }
.shop-bar {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 10px 0;
}
.logo { display: flex; gap: 8px; align-items: center; text-decoration: none; color: inherit; min-width: 0; }
.logo-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; flex: none;
}
.logo strong { display: block; font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.02em; line-height: 1.1; }
.logo small { display: block; opacity: 0.8; font-size: 0.72rem; }
.shop-search { display: flex; min-width: 0; background: #fff; border-radius: 4px; overflow: hidden; }
.shop-search input {
  flex: 1; min-width: 0; border: 0; min-height: 40px; padding: 0 12px; background: #fff; color: #222; border-radius: 0;
}
.shop-search button {
  border: 0; background: var(--accent); color: var(--accent-ink); padding: 0 16px; font-weight: 700; cursor: pointer;
}
.shop-account, .shop-cart { color: inherit; text-decoration: none; font-size: 0.92rem; white-space: nowrap; }
.shop-cart span {
  display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.3rem;
  background: var(--accent); color: var(--accent-ink); border-radius: 99px; font-size: 0.75rem; font-weight: 700;
}
.shop-cats {
  display: flex; gap: 4px 16px; flex-wrap: wrap;
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 0 0 8px;
}
.shop-cats a { color: inherit; text-decoration: none; font-size: 0.92rem; opacity: 0.92; }
.shop-cats a.is-active { font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }

.shop-page, .page-head { padding-top: 16px; }
.shop-page h1, .page-head h1 { font-size: 1.45rem; }
.crumb, .results-count, .kicker, .meta, .muted { color: var(--muted); }
.crumb a { color: #3483fa; }
.results-count { margin-top: 0; }
.shop-layout { display: grid; gap: 16px; padding-bottom: 28px; }
.filter-box, .panel, .ticket, .note, .sinpe-box, .card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.filter-box, .panel, .ticket, .note, .sinpe-box { padding: 14px; }
.filters { display: grid; gap: 10px; }
label { display: grid; gap: 4px; font-size: 0.82rem; color: #444; }
input, select, textarea {
  width: 100%; min-height: 40px; background: #fff; color: #222;
  border: 1px solid #ccc; border-radius: 4px; padding: 8px 10px;
}
textarea { min-height: 110px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 14px; border: 0; border-radius: 4px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.btn-ghost { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.btn-block { width: 100%; }
.grid.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card { overflow: hidden; height: 100%; }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.thumb, .product-layout .cover {
  aspect-ratio: 1;
  display: flex; align-items: flex-end; padding: 10px;
  background: linear-gradient(160deg, #d9d9d9, #f7f7f7);
  color: #222;
}
.thumb span, .cover span, .cover b { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { margin: 0; font-size: 0.95rem; font-weight: 500; line-height: 1.3; min-height: 2.6em; }
.price { margin: auto 0 0; font-size: 1.25rem; font-weight: 700; color: #222; }
.card-link:hover { outline: 1px solid #ccc; }

.banner {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  margin: 16px 0;
  display: grid;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.banner h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.cat-row { display: flex; gap: 8px; overflow: auto; padding-bottom: 8px; }
.cat-row a {
  flex: none; background: #fff; border-radius: 99px; padding: 8px 12px;
  text-decoration: none; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); font-size: 0.9rem;
}
.section { padding: 8px 0 20px; }
.section h2 { font-size: 1.25rem; }
.layout, .product-layout, .account-layout, .plan-grid, .info-grid { display: grid; gap: 14px; }
.product-layout .cover { border-radius: var(--radius); min-height: 220px; }
.includes { margin: 8px 0 0; padding-left: 18px; }
.sheet { width: 100%; border-collapse: collapse; }
.sheet th, .sheet td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.sheet th { width: 34%; color: var(--muted); font-weight: 600; }
.faqs details { background: #fff; border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; }
.faqs summary { cursor: pointer; font-weight: 650; }
.cart-row, .total-row {
  display: grid; gap: 8px; background: #fff; border-radius: 6px; padding: 12px; margin-bottom: 8px;
}
.flash, .alert { background: #fff; border-radius: 6px; padding: 10px 12px; margin: 12px 0; }
.alert-bad { border: 1px solid var(--danger); }
.prose { max-width: 68ch; }
.prose p, .prose li { color: #444; }
.plain-list { color: #444; }
.order-code { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; margin: 6px 0; }
.inline-actions, .hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.grade { position: relative; min-height: 180px; border-radius: 6px; overflow: hidden; background: linear-gradient(90deg, #bdbdbd 0 var(--mix, 58%), #7e57c2 var(--mix, 58%) 100%); }
.grade span { position: absolute; bottom: 10px; font-size: 0.75rem; }
.grade .before { left: 10px; } .grade .after { right: 10px; }
.grade input { position: absolute; left: 12px; right: 12px; bottom: 36px; width: calc(100% - 24px); }
.session { display: grid; grid-template-columns: 48px 1fr; gap: 6px 10px; }
.session dt { font-weight: 700; }
.session dd { margin: 0; }
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 24px; padding: 22px 0 28px; color: #555; }
.footer-grid { display: grid; gap: 14px; }
.footer-grid a { color: #3483fa; text-decoration: none; }
.footer-end { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 0.85rem; }
.admin-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 16px 0; }
.order-admin { margin: 10px 0; }

@media (max-width: 720px) {
  .shop-bar { grid-template-columns: 1fr auto auto; }
  .shop-search { grid-column: 1 / -1; }
  .logo small { display: none; }
}
@media (min-width: 800px) {
  .shop-layout { grid-template-columns: 250px 1fr; align-items: start; }
  .filter-box { position: sticky; top: 12px; }
  .grid.cards { grid-template-columns: repeat(4, 1fr); }
  .product-layout, .layout, .account-layout { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
  .plan-grid, .info-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .cart-row, .total-row { grid-template-columns: 1fr auto auto; align-items: center; }
  .banner { grid-template-columns: 1.4fr auto; align-items: center; }
}
@media (min-width: 800px) and (max-width: 1100px) {
  .grid.cards { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .shop-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
}
