:root {
  color-scheme: light;
  --bg: #f4f8fb;
  --ink: #122033;
  --muted: #65758a;
  --line: #d8e4ec;
  --panel: #ffffff;
  --accent: #117c8c;
  --accent-dark: #063b58;
  --accent-soft: #e4f6f7;
  --shadow: 0 18px 50px rgba(20, 47, 72, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 22px;
  grid-template-columns: auto auto minmax(280px, 1fr) auto;
  margin: 0;
  padding: 16px max(20px, calc((100vw - 1500px) / 2 + 20px));
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 10;
}

.brand {
  align-items: center;
  color: var(--accent-dark);
  display: inline-flex;
  font-size: 22px;
  font-weight: 900;
  gap: 10px;
  text-decoration: none;
}

.brand::before {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border-radius: 8px;
  color: #fff;
  content: "CP";
  display: grid;
  font-size: 14px;
  font-weight: 900;
  height: 38px;
  place-items: center;
  width: 38px;
}

.vertical-name {
  border-left: 1px solid var(--line);
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  padding-left: 18px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-search {
  align-items: center;
  background: #fff;
  border: 1px solid #bed5e1;
  border-radius: 7px;
  display: grid;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr);
  justify-self: stretch;
  min-height: 42px;
  width: 100%;
  padding: 0 13px;
}

.nav-search span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.nav-search input {
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.nav-search input::placeholder {
  color: #718492;
}

.catalog-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.catalog-nav a {
  color: var(--muted);
  font-weight: 750;
  padding: 10px 8px;
  text-decoration: none;
}

.catalog-nav a:hover {
  color: var(--accent);
}

.top-category-menu {
  position: relative;
}

.top-category-menu > summary {
  align-items: center;
  background: transparent;
  border-radius: 7px;
  color: #334258;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 750;
  gap: 8px;
  list-style: none;
  padding: 9px 12px;
}

.summary-icon {
  background:
    linear-gradient(currentColor 0 0) 0 0 / 4px 4px no-repeat,
    linear-gradient(currentColor 0 0) 8px 0 / 4px 4px no-repeat,
    linear-gradient(currentColor 0 0) 0 8px / 4px 4px no-repeat,
    linear-gradient(currentColor 0 0) 8px 8px / 4px 4px no-repeat;
  display: inline-grid;
  flex: 0 0 auto;
  gap: 2px;
  grid-template-columns: repeat(2, 4px);
  grid-template-rows: repeat(2, 4px);
  height: 14px;
  width: 14px;
}

.top-category-menu > summary::after {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  height: 6px;
  margin-left: 2px;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.16s ease;
  width: 6px;
}

.top-category-menu > summary::-webkit-details-marker {
  display: none;
}

.top-category-menu[open] > summary,
.top-category-menu > summary:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.top-category-menu[open] > summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.top-category-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 55px rgba(10, 25, 34, 0.18);
  padding: 20px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(680px, calc(100vw - 40px));
  z-index: 30;
}

.top-category-panel > div:first-child {
  align-items: baseline;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.top-category-panel span {
  color: var(--muted);
  font-size: 0.75rem;
}

.top-category-panel strong {
  color: var(--accent-dark);
  font-size: 16px;
}

.top-category-panel .all-cartpicker-link {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.top-category-grid {
  display: grid;
  gap: 6px 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.top-category-grid a {
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  padding: 10px 11px;
}

.top-category-grid a:hover {
  background: var(--accent-soft);
  border-color: var(--line);
  color: var(--accent);
}

.shell {
  margin: 0 auto;
  padding: 42px 24px 72px;
  width: min(1500px, 100%);
}

.hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1 {
  color: var(--accent-dark);
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
}

.hero p:last-child {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  margin: 18px 0 0;
  max-width: 760px;
}

.status {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 22px 0;
}

.branches,
.branch-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.branch-grid {
  margin-top: 12px;
}

.branch,
.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 102px;
  padding: 16px;
  text-decoration: none;
}

.branch:hover {
  border-color: #86bdcc;
  box-shadow: var(--shadow);
}

.brand-branch {
  min-height: 90px;
}

.section-heading {
  align-items: baseline;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 34px;
  padding-top: 24px;
}

.section-heading span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-heading strong {
  font-size: 1.15rem;
}

.branch strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
}

.branch span {
  color: var(--muted);
  display: block;
  font-size: 0.84rem;
  margin-top: 18px;
}

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

.product-card {
  display: grid;
  gap: 10px;
  min-height: 136px;
}

.product-card span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card strong {
  font-size: 1.08rem;
  line-height: 1.25;
}

.product-card small {
  color: var(--muted);
  line-height: 1.4;
}

.empty {
  background: var(--panel);
  border: 1px dashed #b7cbd5;
  border-radius: 8px;
  margin-top: 18px;
  padding: 24px;
}

.empty h2 {
  font-size: 1.2rem;
  margin: 0;
}

.empty p {
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 0 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(180px, 300px) 1fr;
  margin: 0 auto;
  padding: 28px 24px;
  width: min(1120px, 100%);
}

.site-footer div {
  display: grid;
  gap: 8px;
}

.site-footer strong {
  font-size: 1rem;
}

.site-footer span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.site-footer nav {
  align-items: start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: end;
}

.site-footer a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 0;
}

@media (max-width: 720px) {
  .topbar {
    align-items: start;
    gap: 10px;
    grid-template-columns: 1fr;
    padding: 16px;
    position: static;
  }

  .nav-search {
    flex-basis: auto;
    max-width: none;
    width: 100%;
  }

  .top-category-panel {
    left: 0;
    right: auto;
    transform: none;
  }

  .top-category-grid {
    grid-template-columns: 1fr;
  }

  .shell {
    padding: 28px 16px 52px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: start;
  }
}
