/* Дизайны витрины на выбор (Ф10.1, 23.10.2026): A - по образцу Media Expert, C - x-kom, D - Klick.
   Включаются атрибутом html[data-design]: build.py ставит D по умолчанию, static/design.js меняет по ?design=a|c|base.
   Без атрибута (?design=base) - прежний вид из shop.css, части дизайнов скрыты. */

.d-home,
.cat-ico,
.card-ship {
  display: none;
}

/* ---------- панель переключения (только localhost, static/design.js) ---------- */
.design-switch {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: calc(100vw - 32px);
  padding: 8px 10px;
  background: #0f2328;
  color: #c9dbe0;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  font: 600 0.85rem/1.2 system-ui, sans-serif;
}
.design-switch a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid #5ad8f8;
  border-radius: 999px;
}
.design-switch a[aria-current] {
  background: #5ad8f8;
  color: #0f2328;
}

/* ---------- общее для трёх дизайнов ---------- */
html[data-design] .hero {
  display: none;
}
html[data-design] .cat-ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.a-rail .cat-ico,
html[data-design='c'] .cat-nav .cat-ico {
  display: block;
}
/* фото производителей на белом фоне: на тёмных и цветных плашках - белая подложка */
.a-hero img,
.c-banner img,
.d-hero img,
.d-side img {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-sizing: border-box;
}
html[data-design] .card-ship {
  display: block;
  font-size: 0.8rem;
  color: var(--ok);
}
html[data-design='a'] .d-home-a,
html[data-design='c'] .d-home-c,
html[data-design='d'] .d-home-d {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}
.d-home a {
  text-decoration: none;
}
.d-home img {
  object-fit: contain;
}
.d-text {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.d-title {
  margin: 0;
  line-height: 1.05;
  color: inherit;
  font-weight: 700;
}
.d-price {
  font-weight: 700;
}
.d-price .from {
  font-size: 0.45em;
  font-weight: 500;
  margin-right: 4px;
}
.d-btn {
  margin-top: 4px;
}

/* =================== A - Media Expert =================== */
html[data-design='a'] body {
  background: #f6f7f8;
}
html[data-design='a'] .topbar {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid #e6eaeb;
}
html[data-design='a'] .topbar ul {
  justify-content: flex-end;
}
html[data-design='a'] .site-header {
  border-bottom: 0;
}
html[data-design='a'] .search {
  max-width: none;
}
html[data-design='a'] .search input {
  border: 2px solid var(--ink);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: #fff;
  padding: 12px 18px;
}
html[data-design='a'] .search button {
  background: var(--cyan);
  color: var(--ink);
  font-weight: 700;
  border-radius: 0 8px 8px 0;
  padding: 0 24px;
}
html[data-design='a'] .cat-nav a {
  font-weight: 600;
}
.a-rail {
  flex: 1 1 240px;
  max-width: 280px;
  background: #fff;
  border-radius: 10px;
  padding: 8px 0;
}
.a-rail-title {
  margin: 0 18px 6px;
  padding: 8px 0;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 3px solid var(--ink);
}
.a-rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.a-rail a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  color: var(--text);
}
.a-rail a:hover {
  background: var(--surface);
  color: var(--ink);
}
.a-stage {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.a-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px 10px 0 0;
  padding: 40px 48px;
  min-height: 300px;
}
.a-hero:hover {
  color: #fff;
}
.a-hero img {
  flex: 0 1 300px;
  width: 300px;
  max-width: 100%;
  height: 300px;
}
.a-hero .d-kicker {
  background: var(--cyan);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
}
.a-hero .d-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
}
.a-hero .d-lead {
  color: #cfe3e8;
  font-size: 1.05rem;
}
.a-hero .d-price {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
}
.a-hero .d-btn {
  background: var(--cyan);
  color: var(--ink);
  border-radius: 8px;
}
.a-tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 0 0 10px 10px;
  font-size: 0.85rem;
  font-weight: 600;
}
.a-tabs li {
  flex: 1 1 140px;
}
.a-tabs a {
  display: block;
  padding: 14px 16px;
  text-align: center;
  color: var(--muted);
  border-top: 3px solid transparent;
}
.a-tabs li:first-child a,
.a-tabs a:hover {
  color: var(--ink);
  border-top-color: var(--ink);
}
html[data-design='a'] .benefits li,
html[data-design='a'] .tile,
html[data-design='a'] .card {
  background: #fff;
  border: 0;
  border-radius: 10px;
}
html[data-design='a'] .card-price {
  font-size: 1.35rem;
}

/* =================== C - x-kom =================== */
html[data-design='c'] body {
  background: #f2f4f5;
}
html[data-design='c'] .topbar {
  background: #f2f4f5;
  color: var(--muted);
}
html[data-design='c'] .site-header {
  border-bottom: 0;
  box-shadow: 0 1px 0 #e3e8ea;
}
html[data-design='c'] .search {
  max-width: none;
  background: #f2f4f5;
  border-radius: 28px;
  padding: 4px;
}
html[data-design='c'] .search input {
  border: 0;
  background: transparent;
  padding: 10px 16px;
}
html[data-design='c'] .search button {
  border-radius: 24px;
  padding: 0 22px;
  font-weight: 600;
}
html[data-design='c'] .cat-nav ul {
  gap: 4px;
  padding-top: 0;
  padding-bottom: 0;
}
html[data-design='c'] .cat-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 3px solid transparent;
}
html[data-design='c'] .cat-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--cyan);
}
.c-pick {
  flex: 1 1 300px;
  max-width: 360px;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text);
}
.c-pick:hover {
  color: var(--text);
  box-shadow: 0 6px 20px rgba(27, 58, 65, 0.08);
}
.c-pick-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.c-pick-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}
.c-pick-note {
  font-size: 0.78rem;
  color: var(--muted);
}
.c-pick img {
  width: 100%;
  height: 230px;
  margin: 8px 0;
}
.c-pick-name {
  font-size: 1.05rem;
  font-weight: 500;
}
.c-pick .d-price {
  font-size: 1.9rem;
  color: var(--ink);
}
.c-pick .d-btn {
  align-self: stretch;
  text-align: center;
  margin-top: auto;
}
.c-stage {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.c-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 36px 44px;
  min-height: 300px;
}
.c-banner:hover {
  color: #fff;
}
.c-banner img {
  flex: 0 1 260px;
  width: 260px;
  max-width: 100%;
  height: 280px;
}
.c-banner .d-kicker {
  color: var(--cyan);
  font-weight: 600;
}
.c-banner .d-title {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}
.c-banner .d-price {
  font-size: 1.9rem;
}
.c-banner .d-btn {
  background: var(--cyan);
  color: var(--ink);
}
.c-brands {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.c-brands a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--text);
  font-weight: 600;
}
.c-brands img {
  width: 48px;
  height: 48px;
}
html[data-design='c'] .benefits li,
html[data-design='c'] .tile,
html[data-design='c'] .card {
  background: #fff;
  border: 0;
  border-radius: 16px;
}
html[data-design='c'] .card-price {
  font-size: 1.3rem;
}
html[data-design='c'] .site-footer {
  background: #fff;
  color: var(--muted);
  border-top: 1px solid #e3e8ea;
}
html[data-design='c'] .site-footer a,
html[data-design='c'] .site-footer h2 {
  color: var(--ink);
}
html[data-design='c'] .site-footer a:hover {
  color: var(--blue);
}
html[data-design='c'] .footer-legal {
  border-top-color: #e3e8ea;
  color: var(--muted);
}

/* =================== D - Klick =================== */
html[data-design='d'] {
  --dark: #0f2328;
}
html[data-design='d'] .topbar {
  background: #f2f5f6;
  color: var(--text);
}
html[data-design='d'] .site-header {
  border-bottom: 0;
}
html[data-design='d'] .header-contact {
  order: 1;
  margin-left: 0;
  font-size: 0.78rem;
}
html[data-design='d'] .search {
  order: 2;
  max-width: none;
  border: 2px solid var(--dark);
  border-radius: 26px;
  overflow: hidden;
}
html[data-design='d'] .cart-link {
  order: 3;
  margin-left: auto;
}
html[data-design='d'] .search input {
  border: 0;
  border-radius: 0;
  background: #fff;
}
html[data-design='d'] .search button {
  background: var(--dark);
  border-radius: 0;
  padding: 0 22px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
html[data-design='d'] .cat-nav {
  background: var(--dark);
}
html[data-design='d'] .cat-nav ul {
  align-items: center;
  gap: 0 4px;
  padding-top: 0;
  padding-bottom: 0;
}
html[data-design='d'] .cat-nav a {
  display: block;
  color: #fff;
  font-weight: 600;
  padding: 15px 14px;
}
html[data-design='d'] .cat-nav a:hover {
  color: var(--cyan);
}
html[data-design='d'] .cat-nav li:first-child a {
  background: var(--cyan);
  color: var(--dark);
  padding: 6px 14px;
  border-radius: 4px;
  margin-right: 8px;
}
.d-hero {
  flex: 2 1 560px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  background: var(--dark);
  color: #fff;
  border-radius: 6px;
  padding: 40px 44px;
  min-height: 360px;
}
.d-hero:hover {
  color: #fff;
}
.d-hero img {
  flex: 0 1 300px;
  width: 300px;
  max-width: 100%;
  height: 300px;
}
.d-hero .d-kicker {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.d-hero .d-title {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 800;
  text-transform: uppercase;
}
.d-hero .d-lead {
  color: #c9dbe0;
}
.d-hero .d-price {
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 0.95;
  color: var(--cyan);
}
.d-hero .d-btn {
  background: #fff;
  color: var(--dark);
}
.d-side {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--cyan);
  color: var(--dark);
  border-radius: 6px;
  padding: 28px;
  min-height: 360px;
}
.d-side:hover {
  color: var(--dark);
}
.d-side-name {
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
}
.d-side img {
  width: 100%;
  height: 190px;
  margin: auto 0;
}
.d-side .d-price {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
}
html[data-design='d'] section > h2 {
  text-transform: uppercase;
  font-weight: 800;
}
html[data-design='d'] .benefits {
  background: #e8f4f7;
  border: 1px solid #cfe3e9;
  border-radius: 6px;
  padding: 12px;
  gap: 12px;
}
html[data-design='d'] .benefits li {
  background: #fff;
  border: 0;
  border-radius: 4px;
}
html[data-design='d'] .benefits strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
}
html[data-design='d'] .card {
  border: 0;
  border-bottom: 1px solid #e3e8ea;
  border-radius: 0;
}
html[data-design='d'] .card:hover {
  box-shadow: none;
}
html[data-design='d'] .card-img {
  background: #f2f5f6;
  border-radius: 6px;
}
html[data-design='d'] .card-body {
  padding: 8px 0 12px;
}
html[data-design='d'] .card-name {
  font-weight: 600;
}
html[data-design='d'] .card-price {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--dark);
}
html[data-design='d'] .btn {
  background: var(--dark);
}
html[data-design='d'] .site-footer {
  background: var(--dark);
}

@media (max-width: 800px) {
  .a-rail,
  .c-pick {
    max-width: none;
  }
  .a-hero,
  .c-banner,
  .d-hero {
    padding: 28px 22px;
  }
  html[data-design='d'] .search {
    order: 3;
  }
  html[data-design='d'] .cart-link {
    order: 2;
  }
}
