.prism-block {
  margin: 0 21px;
  border-bottom: 1px solid var(--line);
}
.prism-block > small {
  display: block;
  font-weight: 700;
  color: var(--muted);
}
.prism-types {
  display: flex;
  flex-wrap: wrap;
}
.prism-type {
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-4);
  color: var(--cyan-text);
}
.prism-icon {
  flex-shrink: 0;
}
.prism-type > span {
  white-space: nowrap;
}
.prism-info {
  margin: 16px 0;
}
.prism-info .prism-block {
  margin: 0;
}
.prism-info > p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.campaign-prisms > small {
  display: block;
  font-weight: 700;
  color: var(--muted);
}
html[data-theme="night"] .prism-block {
  border-color: var(--line);
}
html[data-theme="night"] .prism-block > small,
html[data-theme="night"] .prism-info > p {
  color: var(--muted);
}
html[data-theme="night"] .prism-type {
  border-color: var(--hairline);
}
@media (max-width: 600px) {
  .prism-block {
    margin-left: 20px;
    margin-right: 20px;
  }
  .prism-type {
    padding: 5px;
  }
  .prism-type > span {
    font-size: 11px;
  }
}
/* Compact feature strip, retaining readable labels and all prism types. */
.prism-block {
  padding: 9px 0;
}
.prism-block > small {
  font-size: 11px;
  margin-bottom: 6px;
}
.prism-types {
  gap: 5px;
}
.prism-icon {
  width: 19px;
  height: 19px;
}
.prism-type {
  padding: 3px 5px;
  gap: 4px;
}
.prism-type > span {
  font-size: 11px;
}
.campaign-prisms {
  margin: 12px 0;
}
.campaign-prisms > small {
  font-size: 11px;
  margin-bottom: 6px;
}
.campaign-prisms .prism-icon {
  width: 20px;
  height: 20px;
}
/* R-17 / R-18: четимост. Информативният текст и интерактивните етикети са >= 12px;
   11px остава само за чисти етикети (eyebrow, tag, ip-badge, product-type, спецификационни чипове). */
.equipment-card > span,
.preview,
.preview span,
.hero-bottom,
.theme-toggle,
.motion-toggle,
.finder-link,
.hero-proof > span,
.demo-note,
.transport-note,
footer,
footer > span,
.finder-results-grid p,
.catalog-help,
.budget-control p,
.ip-info p,
.training-details > p,
.use-paths > div > span,
.use-buttons button,
.use-buttons a,
#outdoor-only,
#reset-filters,
#empty-reset,
.compare-choice,
.compare-bar > span,
.compare-bar .button,
.compare-bar .quiet-button,
.comparison-scroll table,
.comparison-scroll caption,
.comparison-scroll tbody th,
.support-state,
.video-state,
.product-bottom > span,
.product-bottom span,
.product-details,
.guide-head > span,
.guide-grid p,
.guide-grid button,
.value-card a,
.value-card button,
.rig-card > .button,
.effect-models button > span,
.transport-facts small,
.brand-filter,
.filters button,
.result-count,
.remove,
.mobile-dock a,
.mobile-catalog,
.bag,
.resource-fold > summary > span,
.resource-fold[open] > summary > span:after,
.demo-plan span,
.finder-form label small,
.brand-row > small,
.quick-feature small,
.quick-feature strong,
.proof span,
.hero-mini small,
.hero-models .hero-mini small,
.comparison > a,
.controls select,
.mobile-cta a,
.prism-block > small,
.campaign-prisms > small,
.prism-type > span,
.facts span {
  font-size: 12px;
}
/* Дългите информативни абзаци под таблиците/картите */
.mockup-slot .ignis-placeholder text,
.ignis-placeholder text {
  font-size: 11px;
}
/* R-17 – контраст >= 4,5:1 */
html:not([data-theme="night"]) .why-ignis .eyebrow {
  color: var(--muted);
}
html:not([data-theme="night"]) .ip-badge {
  color: var(--cyan-text);
}
html[data-theme="night"] .demo-plan span {
  color: var(--muted);
}
/* 320px: заглавието на началната страница не бива да преливa хоризонтално */
@media (max-width: 360px) {
  html .hero h1 {
    font-size: 42px;
    letter-spacing: -2px;
  }
}

/* ===== Фаза 2: Моята селекция, запитване, контакти, R-19 (последният общ слой на двете страници) ===== */
/* R-19 – предпазна мрежа срещу хоризонтален скрол (не е решение; причините са поправени в самите правила) */
html,
body {
  overflow-x: clip;
}
h1,
h2,
h3,
h4,
label,
summary,
.eyebrow,
.filters button,
.button,
.cta,
.secondary,
.secondary-action {
  overflow-wrap: anywhere;
}
.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  min-height: 24px;
}
mark.placeholder {
  background: var(--tint-y);
  color: var(--ink-on-light);
  padding: 0 3px;
  border-radius: var(--radius-2);
}
/* Контакти в header (магазин и кампания): текст >= 801 px, иконка 44x44 <= 800 px */
.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  font-size: 12px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone .feature-icon {
  width: 20px;
  height: 20px;
  flex: none;
}
@media (max-width: 800px) {
  .header-phone {
    width: 44px;
    height: 44px;
    border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
    border-radius: var(--radius-5);
    flex: none;
  }
  .header-phone-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
/* Footer: контакти и данни за търговеца */
footer {
  flex-wrap: wrap;
  gap: 12px 28px;
}
.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  font-size: 12px;
}
.footer-contacts > strong {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}
.footer-contacts a,
.footer-contacts .link-button {
  color: inherit;
  font-weight: 700;
}
.footer-merchant {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  line-height: 1.7;
  flex-basis: 100%;
  opacity: 0.9;
}
.footer-merchant strong {
  font-size: 12px;
}
/* Диалог „Моята селекция“ */
.cart-lead {
  font-size: 13px;
  margin: 6px 0 14px;
}
.cart-empty {
  padding: 18px 0;
}
.cart-empty p {
  margin: 0 0 8px;
}
.clear-confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 13px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  border-radius: var(--radius-5);
}
.clear-confirm[hidden] {
  display: none;
}
.clear-confirm .quiet-button,
.qf-result .quiet-button {
  color: inherit;
  background: none;
  border: 0;
  text-decoration: underline;
  font-size: 12px;
}
.selection-actions .secondary-action {
  color: inherit;
  background: transparent;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  cursor: pointer;
}
.cart-item .remove {
  flex: none;
}
.cart-item > div {
  min-width: 0;
  flex: 1;
}
/* Диалог „Запитване“ и формите (общи за магазина и кампанията) */
.inquiry-summary {
  margin: 14px 0;
}
.inquiry-summary h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
.inquiry-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  border-radius: var(--radius-5);
}
.inquiry-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  font-size: 13px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}
.inquiry-list li:last-child {
  border-bottom: 0;
}
.inquiry-list strong {
  white-space: nowrap;
}
.qf {
  display: grid;
  gap: 14px;
}
.qf-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
}
.qf-contact .span-all {
  grid-column: 1 / -1;
  margin: 0;
}
.qf-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.qf-field label {
  font-size: 12px;
  font-weight: 700;
}
.qf-field input,
.qf-field select,
.qf-field textarea,
.qf select,
.qf textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 12px 13px;
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-5);
  background: var(--glass-strong);
  color: inherit;
}
.qf-field textarea,
.qf textarea {
  min-height: 92px;
  resize: vertical;
}
.qf-field input[aria-invalid="true"],
.qf-field textarea[aria-invalid="true"] {
  border-color: var(--danger);
  outline: 1px solid var(--danger);
}
.field-error {
  display: block;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
}
.field-error[hidden] {
  display: none;
}
html[data-theme="night"] .field-error {
  color: var(--danger);
}
.req {
  color: var(--danger);
  margin-left: 3px;
}
.opt-mark {
  font-weight: 500;
  color: var(--muted);
}
.opt-mark:before {
  content: "(";
}
.opt-mark:after {
  content: ")";
}
.qf-hint {
  font-size: 12px;
  line-height: 1.5;
  opacity: 1;
  color: var(--muted);
  margin: 0;
}
.qf-check {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
}
.qf-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
}
.qf-check small {
  display: block;
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}
.qf-actions {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}
.qf-art13 {
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
.qf-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 10px;
}
.qf-buttons button {
  justify-content: center;
  text-align: center;
  cursor: pointer;
  min-height: 44px;
  gap: 8px;
}
.qf-buttons button > span:after {
  content: " \2197";
}
.qf-buttons .secondary-action,
.qf-buttons .secondary {
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  background: transparent;
  color: inherit;
  padding: 12px 16px;
  border-radius: var(--radius-4);
  font-weight: 700;
}
.qf-status {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600;
}
.qf-status:empty {
  display: none;
}
.qf-result {
  display: grid;
  gap: 8px;
  font-size: 13px;
}
.qf-result[hidden] {
  display: none;
}
.qf-result p {
  margin: 0;
}
.qf-result pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    12px/1.7 Manrope,
    Arial,
    sans-serif;
  padding: 14px;
  border-radius: var(--radius-5);
  background: color-mix(in srgb, currentColor 8%, transparent);
  max-height: 260px;
  overflow: auto;
  margin: 8px 0 0;
}
.qf-note {
  font-weight: 600;
}
.qf-result summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
}
/* Проект: контактните полета и редът „включи селекцията“ */
.project-form .span-two {
  grid-column: 1 / -1;
}
.project-selection {
  display: flex !important;
  gap: 10px;
  align-items: center;
}
.project-selection[hidden] {
  display: none !important;
}
.project-form .qf-field label {
  display: block;
}
/* Втори слой на информирането */
.privacy-dialog {
  max-width: 760px;
  width: calc(100% - 28px);
  max-height: 90vh;
  overflow: auto;
  padding: 26px;
}
.privacy-dialog h2 {
  font-size: 24px;
  margin: 10px 40px 14px 0;
}
.privacy-dialog h3 {
  font-size: 15px;
  margin: 20px 0 6px;
}
.privacy-dialog p,
.privacy-dialog li {
  font-size: 13px;
  line-height: 1.7;
}
.privacy-dialog a {
  color: inherit;
  overflow-wrap: anywhere;
}
.privacy-dialog .experience-close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: 0;
  background: none;
  font-size: 28px;
  color: inherit;
  cursor: pointer;
}
.priv-table {
  overflow-x: auto;
  margin: 8px 0;
}
.priv-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
.priv-table th,
.priv-table td {
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  padding: 7px 9px;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}
html[data-theme="night"] .privacy-dialog {
  background: var(--surface);
  color: var(--ink);
}
/* Модал „детайли“: характеристики -> технически -> физически -> размери -> свързани; празните секции не се показват (P3) */
#product-content {
  display: block;
}
.detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 30px;
  align-items: center;
  margin-bottom: 8px;
}
.detail-top > .catalog-photo {
  height: 300px;
  width: 100%;
  margin: 0;
  padding: 18px;
  /* QA-N02: продуктовите снимки остават върху светла подложка (както в картите на каталога) – multiply върху тъмния диалог нощем ги правеше почти черни */
  background: radial-gradient(ellipse at 50% 40%, var(--paper), var(--pad));
  border-radius: var(--radius-5);
}
/* QA-N02: умножението е върху светлата подложка вътре в снимката, не върху тъмния диалог */
.detail-top > .catalog-photo,
.detail-related .catalog-photo,
#product-content > .catalog-photo {
  mix-blend-mode: normal;
  isolation: isolate;
}
.detail-top > .catalog-photo img,
.detail-related .catalog-photo img,
#product-content > .catalog-photo img {
  mix-blend-mode: multiply;
}
.detail-head h2 {
  font-size: 28px;
  letter-spacing: -1px;
  margin: 10px 0;
}
.detail-head p {
  font-size: 13px;
  margin: 6px 0 16px;
}
.detail-section {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}
.detail-section h3 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
  opacity: 0.85;
}
.detail-section .spec-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  columns: 2;
  column-gap: 28px;
}
.detail-section .spec-list li {
  break-inside: avoid;
  margin-bottom: 4px;
}
.detail-section .prism-info {
  margin-top: 14px;
  columns: 1;
}
.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
}
.detail-facts dt {
  font-size: 11px;
  opacity: 0.75;
}
.detail-facts dd {
  margin: 2px 0 0;
  font-weight: 800;
  font-size: 15px;
}
.detail-related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 10px;
}
.detail-related button {
  display: grid;
  gap: 6px;
  text-align: left;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  border-radius: var(--radius-5);
  background: transparent;
  color: inherit;
  padding: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.detail-related .catalog-photo {
  height: 90px;
  width: 100%;
  background: radial-gradient(ellipse at 50% 40%, var(--paper), var(--pad));
  border-radius: var(--radius-4);
}
@media (max-width: 700px) {
  .detail-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-top > .catalog-photo {
    height: 230px;
  }
  .detail-section .spec-list {
    columns: 1;
  }
}
/* Бюджет без умножение: една карта */
.budget-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-content: start;
}
.budget-results .secondary-link {
  justify-self: start;
}
/* P3: тостът над отворен диалог */
#toast {
  z-index: var(--z-toast);
}
/* P1: нощното лого в header е видимо */
html[data-theme="night"] header .brand-image,
html[data-theme="night"] footer .brand-image {
  mix-blend-mode: normal !important;
  background: transparent;
}
.opt-mark {
  margin-left: 0.3em;
}
.bag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
/* Решение 12.10.2026: „Моята селекция“ = иконка количка + брояч на всички ширини; текстът остава за екранни четци (+ aria-label от sel.nav.aria).
   QA P2-1: нощните правила (по-висока специфичност) връщаха width/height:auto на скрития етикет – затова и трите селектора. */
.bag {
  min-width: 44px;
  min-height: 44px;
  padding: 6px 12px;
  justify-content: center;
}
.bag-icon {
  display: inline-flex;
}
.bag-icon .feature-icon {
  width: 24px;
  height: 24px;
}
.bag .bag-label,
html[data-theme="night"] .bag .bag-label,
.bag.cart-pulse .bag-label {
  position: absolute;
  display: inline;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.bag #count {
  margin-left: 0;
}
.bag:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .bag {
    padding: 6px 8px;
    gap: 4px;
  }
  .bag #count {
    width: 22px;
    height: 22px;
    margin-left: 0;
  }
}
.qf-field label {
  display: block;
  margin: 0;
  padding: 0;
}
.qf-hint,
.field-error {
  display: block;
}
.qf-contact,
.qf-actions {
  margin-top: 4px;
}
.privacy-dialog {
  border: 0;
  border-radius: var(--radius-8);
  background: var(--surface);
  color: var(--ink);
}
.privacy-dialog::backdrop {
  background: var(--backdrop);
}
.bag,
.header-phone {
  position: relative;
}
@media (max-width: 600px) {
  html {
    scroll-padding-bottom: 90px;
  }
  body {
    padding-bottom: 84px;
  }
}
@media (max-width: 480px) {
  body > header:has(> .controls) {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  body > header:has(> .controls) .controls {
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
/* Фаза 2 (QA P2-2): най-малък размер 12px за „по желание“, пояснения на отметките и данните на търговеца; без чупене на 320 px */
.opt-mark,
.finder-form label small.opt-mark,
.project-form label small.opt-mark,
.qf-field label .opt-mark {
  font-size: 12px;
  letter-spacing: 0;
}
.qf-check small,
.finder-form .qf-check small {
  font-size: 12px;
  letter-spacing: 0;
}
footer > span,
footer .footer-merchant,
footer .footer-merchant span {
  font-size: 12px;
  overflow-wrap: anywhere;
}
footer .footer-merchant strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.qf-field label {
  flex-wrap: wrap;
}
/* Фаза 2 (QA P3): при отворен диалог на телефон тостът е най-горе и не покрива бутоните за изпращане */
@media (max-width: 600px) {
  body:has(dialog[open]) #toast {
    top: calc(12px + env(safe-area-inset-top));
    bottom: auto;
  }
}
/* R-29: етикет „Визуализация“ върху всеки макет (на localhost и живия .eu домейн; другаде макети няма). Тъмна подложка на повърхностите --dark/--on-dark: контраст > 14:1 и в двете теми. */
.mock-host,
.mockup-slot:has(> .mock-tag) {
  position: relative;
}
.mock-host picture {
  display: contents;
}
.mock-host img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mock-tag {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  max-width: calc(100% - 12px);
  padding: 2px 6px;
  border-radius: var(--radius-4);
  background: var(--dark);
  color: var(--on-dark);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
/* Малки миниатюри (91 px и по-малки): вместо текст – иконка „око“; името остава в title и за екранни четци (текстът е с font-size 0, не display:none) */
.effect-models .mock-tag,
.cart-item .mock-tag,
.comparison-scroll th .mock-tag,
.detail-related .mock-tag {
  right: 4px;
  bottom: 4px;
  width: 20px;
  height: 20px;
  padding: 0;
  font-size: 0;
}
.effect-models .mock-tag::before,
.cart-item .mock-tag::before,
.comparison-scroll th .mock-tag::before,
.detail-related .mock-tag::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: 3px;
  background: var(--on-dark);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 5C6.5 5 2.5 9 1 12c1.5 3 5.5 7 11 7s9.5-4 11-7c-1.5-3-5.5-7-11-7zm0 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 5C6.5 5 2.5 9 1 12c1.5 3 5.5 7 11 7s9.5-4 11-7c-1.5-3-5.5-7-11-7zm0 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Hero на index: етикетът горе вдясно – долу е редът с надписа и бутона */
.hero-slot .mock-tag {
  top: 10px;
  right: 10px;
  bottom: auto;
}
/* R-31 / иконки в header: езикът = глобус + код (нативният select е прозрачен върху него), темата = слънце/луна без текст.
   Общо за магазина (#language-select, #theme-toggle) и кампанията (#campaign-language, #campaign-theme). */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: none;
  min-width: 44px;
  height: 44px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-5);
  color: inherit;
  font:
    700 12px Manrope,
    Arial,
    sans-serif;
  letter-spacing: 0.04em;
}
.lang-switch .lang-icon {
  width: 20px;
  height: 20px;
  flex: none;
}
.lang-switch .lang-code {
  min-width: 2ch;
  text-align: left;
}
html[data-theme] .lang-switch > select {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
}
.lang-switch:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
html[data-theme] .theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}
html[data-theme] .theme-toggle .theme-icon {
  width: 20px;
  height: 20px;
}
/* Иконката показва текущата тема: слънце = дневна, луна = нощна */
html[data-theme] .theme-toggle .theme-icon-moon,
html[data-theme="night"] .theme-toggle .theme-icon-sun {
  display: none;
}
html[data-theme="night"] .theme-toggle .theme-icon-moon {
  display: block;
}
@media (max-width: 600px) {
  body > header .site-preferences {
    width: auto;
    order: 0;
    margin-left: auto;
    padding-top: 0;
    border-top: 0;
    gap: 6px;
  }
}

/* Решение 12.10.2026 (т.4): на телефон header-ът е един ред – лого, (Продукти), телефон, количка, ☰. Езикът и темата се местят в менюто с JS (preferences.js). */
@media (max-width: 600px) {
  body > header:has(#nav-menu-toggle) {
    flex-wrap: nowrap;
    gap: 8px;
    height: auto;
    min-height: 72px;
    padding: 12px 16px;
  }
  .logo.horizontal,
  .header-phone,
  .bag {
    flex: none;
  }
  .nav-menu-toggle {
    order: 9;
    flex: none;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
  }
  .nav-menu-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .nav-menu-toggle .feature-icon {
    width: 24px;
    height: 24px;
  }
  .nav-menu-toggle:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
  }
  header nav .site-preferences {
    justify-content: flex-start;
    margin-top: 6px;
    padding: 12px 14px 4px;
  }
}
@media (max-width: 480px) {
  .mobile-catalog {
    display: none;
  }
  .header-phone {
    margin-left: auto;
  }
}
/* Решение 12.10.2026 (т.3): „Моята селекция“ е секция отдясно (drawer); остава <dialog> с showModal() */
#cart {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(420px, 100%);
  max-width: none;
  height: 100dvh;
  max-height: none;
  overflow-y: auto;
  border-radius: var(--radius-8) 0 0 var(--radius-8);
}
@media (max-width: 600px) {
  #cart {
    width: 100%;
    border-radius: 0;
  }
}
/* Решение 12.10.2026 (т.2): панел „Добавено“ отдясно горе (top layer – над отворен диалог) */
#add-panel {
  position: fixed;
  inset: auto;
  top: 100px;
  right: 16px;
  margin: 0;
  width: min(360px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-8);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 12px 40px var(--shadow-3);
  display: none;
  z-index: var(--z-toast);
}
#add-panel.show {
  display: block;
}
.add-panel-body {
  display: flex;
  gap: 14px;
  align-items: center;
}
.add-panel-art {
  flex: none;
  width: 72px;
  height: 72px;
}
.add-panel-art .catalog-photo {
  width: 72px;
  height: 72px;
}
.add-panel-art .mock-tag {
  right: 4px;
  bottom: 4px;
  width: 20px;
  height: 20px;
  padding: 0;
  font-size: 0;
}
.add-panel-text {
  display: grid;
  gap: 3px;
  min-width: 0;
  font-size: 13px;
}
.add-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan-text);
  font-size: 13px;
}
.add-panel-title .feature-icon {
  width: 20px;
  height: 20px;
}
.add-panel-name {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.add-panel-qty,
.add-panel-total {
  color: var(--muted);
}
.add-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.add-panel-actions button {
  flex: 1 1 auto;
  min-height: 44px;
  justify-content: center;
  padding: 10px 14px;
  font-size: 12px;
}
.add-panel-actions .secondary-action {
  color: inherit;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-4);
  cursor: pointer;
}
@media (max-width: 600px) {
  #add-panel {
    top: calc(16px + env(safe-area-inset-top));
    left: 16px;
    right: 16px;
    width: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  #cart[open],
  #add-panel.enter {
    animation: none;
  }
}
