/* =====================================================================
   KAIJU — ОБОЛОЧКА МАГАЗИНА (шапка, меню, поиск, мини-корзина).
   Чистый fashion: тонкие линейные иконки 1.5 px, монохром, розовый
   только в счётчике корзины. Цвета — токены сайта, поэтому ночная тема
   (theme.css) работает без отдельных правил. Подключается последним.
   ===================================================================== */
:root {
  --header-h: 64px;
  --shop-font: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --shop-pink: #f0a7c0;
}

.sh,
.sd,
.cat2 {
  font-family: var(--shop-font);
  -webkit-font-smoothing: antialiased;
}

.ico {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.ico-sm { width: 18px; height: 18px; }
.ico-xs { width: 16px; height: 16px; }

/* ---------- шапка ---------- */
.site-header.sh {
  color: var(--ink);
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
  transition: transform 0.35s var(--ease), background 0.3s;
}
.sh-in {
  height: var(--header-h);
  max-width: 2000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.sh-left,
.sh-right { display: flex; align-items: center; min-width: 0; }
.sh-left { gap: 18px; }
.sh-right { justify-content: flex-end; gap: 4px; }
.sh-logo { line-height: 0; }
.sh-logo img { height: 22px; width: auto; }
.sh-nav { display: flex; gap: 22px; }
.sh-link {
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}
.sh-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transition: right 0.25s var(--ease);
}
.sh-link:hover::after,
.sh-link[aria-current]::after { right: 0; }
.sh-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  margin-left: -10px;
  padding: 0 10px;
  border: 0;
  border-radius: 20px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.sh-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  text-decoration: none;
  transition: background 0.2s;
}
.sh-menu:hover,
.sh-icon:hover { background: var(--bg-soft); }
.sh-count {
  position: absolute;
  top: 5px;
  right: 3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--shop-pink);
  color: #121212;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.sh-count[hidden] { display: none; }
@media (max-width: 1023px) {
  .sh-nav, .sh-menu-word, .sh-desk { display: none; }
  .sh-left { gap: 0; }
}
@media (min-width: 1024px) {
  .sh-mob { display: none; }
}

/* ---------- панели (меню, корзина) ---------- */
.sd .drawer-panel { width: min(440px, 100vw); }
.sd-panel { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.sd-head {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 24px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.sd-title { font-size: 15px; font-weight: 500; color: var(--ink); }
.sd-n { color: var(--muted-2); font-weight: 400; }
.sd-body { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 8px 24px 24px; color: var(--ink); }
.sd-foot { flex: none; border-top: 1px solid var(--line); padding: 18px 24px calc(20px + env(safe-area-inset-bottom, 0px)); }
.sd-foot[hidden] { display: none; }

/* меню */
.sm-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  margin: 16px 0 6px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--muted);
}
.sm-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.sm-hits { display: grid; gap: 2px; margin: 4px 0 8px; }
.sm-hits[hidden] { display: none; }
.sm-hit { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 6px 0; color: var(--ink); text-decoration: none; font-size: 14px; }
.sm-hit img, .sm-hit-ph { width: 40px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; background: var(--bg-soft); }
.sm-hits-all { display: flex; align-items: center; gap: 8px; padding: 10px 0 2px; font-size: 13px; color: var(--muted); text-decoration: none; }
.sm-hits-empty { color: var(--muted); font-size: 13px; padding: 8px 0; }
.sm-list { list-style: none; margin: 0; padding: 0; }
.sm-list > li { border-bottom: 1px solid var(--line); }
.sm-list > li[hidden] { display: none; }
.sm-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.sm-row > span:first-child { margin-right: auto; }
.sm-n { color: var(--muted-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.sm-plus { transition: transform 0.3s var(--ease); }
.sm-row[aria-expanded="true"] .sm-plus { transform: rotate(45deg); }
.sm-sub { list-style: none; margin: 0; padding: 0 0 14px; display: grid; gap: 2px; }
.sm-sub[hidden], .sm-sub li[hidden] { display: none; }
.sm-sub a { display: flex; justify-content: space-between; padding: 7px 0; color: var(--muted); font-size: 14px; text-decoration: none; }
.sm-sub a:hover { color: var(--ink); }
.sm-service { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 2px; }
.sm-service a { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--muted); font-size: 14px; text-decoration: none; }
.sm-service a:hover { color: var(--ink); }
.sm-look {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.sm-look[hidden] { display: none; }
.sm-look img { width: 88px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
.sm-look p { margin: 0; }
.sm-look b { display: block; margin: 2px 0 4px; color: var(--ink); font-size: 15px; font-weight: 500; }
.sm-contacts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 20px; font-size: 13px; }
.sm-contacts a { color: var(--muted); text-decoration: none; }
.sm-contacts a:hover { color: var(--ink); }
.sm-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sm-acc { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; text-decoration: none; }

/* поиск */
.sd.sd--search .drawer-panel { width: 100%; max-width: none; }
.ss-panel { padding-top: env(safe-area-inset-top, 0px); }
.ss-in { width: 100%; max-width: 1600px; margin: 0 auto; padding: 12px var(--gutter) 28px; font-family: var(--shop-font); color: var(--ink); }
.ss-row { display: flex; align-items: center; gap: 14px; height: 64px; border-bottom: 1px solid var(--ink); }
.ss-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.01em;
}
.ss-row input::-webkit-search-cancel-button { display: none; }
.ss-hint { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.ss-hint[hidden] { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--ink); }
.ss-res { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
@media (max-width: 900px) { .ss-res { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ss-card { color: var(--ink); text-decoration: none; font-size: 12px; min-width: 0; }
.ss-th { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; background: var(--bg-soft); }
.ss-th img { width: 100%; height: 100%; object-fit: cover; }
.ss-name { display: block; margin-top: 6px; }
.ss-price { color: var(--muted); }
.ss-empty { grid-column: 1 / -1; color: var(--muted); }

/* мини-корзина */
.sc-item { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sc-th { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 3px; background: var(--bg-soft); }
.sc-th img { width: 100%; height: 100%; object-fit: cover; }
.sc-info { min-width: 0; }
.sc-top { display: flex; justify-content: space-between; gap: 10px; }
.sc-name { font-weight: 500; color: var(--ink); text-decoration: none; }
.sc-meta { margin-top: 2px; color: var(--muted); font-size: 13px; }
.sc-bot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.sc-qty { display: flex; align-items: center; height: 34px; border: 1px solid var(--line); border-radius: 17px; }
.sc-qty button { width: 34px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); cursor: pointer; }
.sc-qty button:disabled { color: var(--muted-2); cursor: default; }
.sc-qty span { min-width: 22px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.sc-rm { border: 0; background: none; padding: 0; color: var(--muted); font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sc-rm:hover { color: var(--ink); }
.sc-line { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.sc-sum { display: flex; justify-content: space-between; font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.sc-note { margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.sc-empty { text-align: center; padding: 72px 12px 24px; color: var(--muted); }
.sc-empty .ico { width: 44px; height: 44px; stroke-width: 1.1; margin: 0 auto 18px; color: var(--muted-2); }
.sc-empty b { display: block; margin-bottom: 6px; color: var(--ink); font-size: 16px; font-weight: 500; }
.sc-empty p { margin: 0; }
.sbtn {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 25px;
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.sbtn:hover { opacity: 0.86; }
.sbtn-ghost { width: 100%; height: 44px; margin-top: 6px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.sbtn-ghost:hover { color: var(--ink); }

/* ночная тема: логотип нарисован тёмным, студийные фото чуть приглушаем */
html[data-theme="dark"] .sh-logo img { filter: invert(1) brightness(1.08); }
html[data-theme="dark"] :is(.cc2-media, .sc-th, .ss-th, .sm-look) img { filter: brightness(0.93) contrast(1.02); }
html[data-theme="dark"] .cat2-menu { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4); }

/* ---------- подвал: компактный, тонкий ---------- */
.site-footer.sf {
  padding: 0;
  font-family: var(--shop-font);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.sf-in {
  max-width: 2000px;
  margin: 0 auto;
  padding: 40px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
}
.sf a { color: inherit; text-decoration: none; }
.sf-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
.sf-brand { display: grid; gap: 10px; align-content: start; }
.sf-logo { line-height: 0; justify-self: start; }
.sf-logo img { height: 20px; width: auto; }
.sf-brand p { margin: 0; color: var(--muted); }
.sf-contacts { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.sf-contacts a { color: var(--ink); }
.sf-contacts a:hover, .sf-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sf-col summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted-2);
  font-size: 12px;
  cursor: default;
  pointer-events: none;
}
.sf-col summary::-webkit-details-marker { display: none; }
.sf-plus { display: none; transition: transform 0.25s var(--ease); }
.sf-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sf-col a { color: var(--ink); }
.sf-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11.5px;
}
.sf-req { flex: 1; min-width: 0; }
.sf-bottom button { margin-left: auto; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.sf-bottom button:hover { color: var(--ink); }
.sf-note { margin: 10px 0 0; color: var(--muted-2); font-size: 11px; }
html[data-theme="dark"] .sf-logo img { filter: invert(1) brightness(1.08); }

@media (max-width: 767px) {
  .sf-in { padding-top: 28px; }
  .sf-top { grid-template-columns: 1fr; gap: 0; }
  .sf-brand { padding-bottom: 18px; }
  .sf-col { border-top: 1px solid var(--line); }
  .sf-col summary { margin: 0; padding: 13px 0; color: var(--ink); font-size: 14px; pointer-events: auto; cursor: pointer; }
  .sf-plus { display: block; }
  .sf-col[open] .sf-plus { transform: rotate(45deg); }
  .sf-col ul { padding-bottom: 14px; }
  .sf-col a { color: var(--muted); }
  .sf-bottom { margin-top: 0; flex-direction: column; gap: 6px; }
  .sf-bottom button { margin-left: 0; }
}
