:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #fbfbfe;
  --text: #111522;
  --muted: #5f6678;
  --border: #d8deea;
  --accent: #7e2fb9;
  --accent-2: #23b8d6;
  --accent-3: #355be6;
  --good: #107c41;
  --warn: #a36b00;
  --shadow: 0 10px 30px rgba(17, 21, 34, 0.08);
  --radius: 8px;
  --max: 1320px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #f8f8fc 0%, #f2f5fb 100%);
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", "Noto Sans", sans-serif;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

.topbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
  flex: 0 0 auto;
}

.brand-copy {
  min-width: 0;
}

.eyebrow, .section-label {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.brand-name {
  font-size: 24px;
  line-height: 1.05;
  font-weight: 800;
}

.brand-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
  max-width: 58ch;
}

.topbar-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: flex-end;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.topbar-contact a {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.special-notice { max-width: var(--max); margin: 0 auto 16px; padding: 0 20px; }
.special-notice-inner { background: linear-gradient(135deg, #fff7e6, #fff0f4); border: 1px solid #efc77a; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.special-notice h2 { margin: 5px 0 8px; }
.special-notice p { margin: 0 0 10px; white-space: pre-line; line-height: 1.5; }
.special-notice-dates { color: var(--muted); font-size: 13px; margin-bottom: 0; }
.special-notice.sale-banner .special-notice-inner { background: linear-gradient(100deg, rgba(126,47,185,.10), rgba(35,184,214,.10)); border-color: rgba(126,47,185,.25); }
.special-notice.sale-banner .section-label { color: var(--accent); }
.site-notice { max-width:var(--max); margin:16px auto; padding:0 20px; color:var(--text); }
.site-notice[hidden] { display:none; }
.site-notice-inner { display:block; min-height:92px; padding:16px 20px; border:1px solid rgba(126,47,185,.18); border-radius:var(--radius); background:linear-gradient(100deg,rgba(126,47,185,.07),rgba(35,184,214,.07)); box-shadow:var(--shadow); overflow:visible; }
.site-notice-copy { display:grid; gap:6px; min-width:0; visibility:visible; opacity:1; color:#111522; }
.site-notice-copy > * { position:static; visibility:visible; opacity:1; transform:none; }
.site-notice-copy h2 { display:block; visibility:visible; margin:0; color:#111522; font-family:"Trebuchet MS", "Segoe UI", sans-serif; font-size:20px; line-height:1.25; font-weight:700; letter-spacing:-.15px; min-height:1.25em; }
.site-notice-copy p { display:block; visibility:visible; margin:0; color:#2f3748; font-size:15px; line-height:1.45; white-space:pre-line; overflow-wrap:anywhere; min-height:1.45em; }
.site-notice-copy .secondary-button { display:inline-block; padding:7px 11px; }

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.language-picker select {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
}

.layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.catalog {
  min-width: 0;
}

.banner {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: linear-gradient(135deg, rgba(126, 47, 185, 0.11), rgba(35, 184, 214, 0.09));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.banner img {
  width: 100%;
  height: 144px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: #fff;
}

.banner-copy h1 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.1;
}

.banner-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.banner-copy .free-delivery-note {
  margin-bottom: 6px;
  color: var(--accent);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -.15px;
}

.controls {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr 0.8fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field > span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: color-mix(in oklab, var(--accent) 60%, white);
  box-shadow: 0 0 0 3px rgba(126, 47, 185, 0.08);
}

.catalog-head,
.panel-head {
  margin-top: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.catalog-head h2,
.panel h2 {
  margin: 4px 0 0;
  font-size: 18px;
}

.products-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.pagination {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-button {
  min-width: 38px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.pagination-button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 800;
}

.pagination-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: grid;
  gap: 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.product-media {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(126, 47, 185, 0.12), rgba(35, 184, 214, 0.16));
  border: 1px solid rgba(126, 47, 185, 0.14);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  max-width: 100%;
  max-height: 100%;
  background: #fff;
  display: block;
}

.product-media .placeholder {
  font-size: 32px;
  font-weight: 900;
  color: rgba(17, 21, 34, 0.14);
}

.product-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.product-title h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.product-tag {
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(126, 47, 185, 0.18);
  color: var(--accent);
  white-space: nowrap;
}

.product-tags { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:5px; }
.manufacturer-tag { border-color:rgba(35, 184, 214, 0.3); color:#087e98; }
.sale-tag { border-color:rgba(218, 126, 24, 0.35); color:#b05a00; background:#fff7e8; }

.product-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  min-height: 2.5em;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.price {
  font-size: 18px;
  font-weight: 800;
}

.price .old-price { display:block; color:var(--muted); font-size:12px; font-weight:400; text-decoration:line-through; }
.price strong { color:#b04422; }
.discount-badge { margin-left:7px; color:#b04422; font-size:11px; font-weight:700; }

.product-actions {
  display: flex;
  gap: 8px;
}

.button, .primary-button, .ghost-button, .quantity-button {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
  cursor: pointer;
}

.primary-button {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #fff;
  font-weight: 800;
  border-color: transparent;
}

.ghost-button {
  color: var(--accent);
  font-weight: 700;
}

.button:disabled,
.primary-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sidebar {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 12px;
}

.panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.badge {
  min-width: 30px;
  height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(126, 47, 185, 0.12);
  color: var(--accent);
  font-weight: 800;
}

.cart-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-name {
  font-size: 14px;
  font-weight: 700;
}

.cart-sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.qty-row {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quantity-input {
  width: 58px;
  height: 28px;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
  color: var(--text);
  background: #fff;
}

.quantity-button {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.remove-button {
  margin-top: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  font-size: 12px;
}

.cart-totals {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: grid;
  gap: 8px;
}

.cart-totals div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.cart-totals strong {
  color: var(--text);
}

.total-row {
  font-size: 16px;
}

.order-form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.message {
  min-height: 1.2em;
  font-size: 13px;
  color: var(--muted);
}

.message.ok {
  color: var(--good);
}

.message.error {
  color: #b42318;
}

.info-panel .info-line {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}
.working-hours-list { display:grid; gap:4px; }
.working-hours-row { display:flex; justify-content:space-between; gap:12px; border-bottom:1px solid rgba(216,222,234,.7); padding:3px 0; }
.working-hours-row:last-child { border-bottom:0; }
.working-hours-row span { color:var(--muted); }
.working-hours-row strong { color:var(--text); white-space:nowrap; }

.network-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.network-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-soft);
  font-size: 13px;
}

.network-row a {
  color: var(--accent-3);
  overflow-wrap: anywhere;
}

.empty-state {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1120px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .topbar,
  .layout {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .banner {
    grid-template-columns: 1fr;
  }

  .banner img {
    height: 180px;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .site-notice { margin-top:14px; margin-bottom:14px; padding-left:14px; padding-right:14px; }
  .site-notice-inner { padding:14px; }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product {
    padding: 8px;
    gap: 7px;
  }

  .product-title {
    display: block;
  }

  .product-title h3 {
    font-size: 13px;
  }

  .product-tags {
    justify-content: flex-start;
    margin-top: 5px;
  }

  .product-tag {
    font-size: 10px;
    padding: 4px 6px;
  }

  .product-desc {
    font-size: 12px;
  }

  .product-actions .primary-button {
    width: 100%;
    padding: 8px 5px;
    font-size: 12px;
  }
}
