.cart-icon {
  min-width: 24px;
  height: 24px;
  border: 2px solid var(--color-text);
  border-radius: var(--border-radius-small);
  background-color: var(--color-bg);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  box-sizing: border-box;
}

/* Когда есть товары */
.cart-icon.active {
  background-color: var(--accent);
  color: white;
  border: 0;
}/* ================= ПК НАВИГАЦИЯ (>= 1024px) ================= */
@media (min-width: 1024px) {
  .nav-list {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-item {
    position: relative;
    display: flex;
    align-items: center;
  }

  .nav-link-btn {
    background: none;
    border: none;
    font: 600 14px sans-serif;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 20px 0;
  }

  .arrow {
    transition: transform 0.2s ease;
    opacity: 0.4;
  }

  .nav-item:hover .arrow {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    min-width: 260px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-middle);
    padding: 12px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: none;
    list-style: none;
    z-index: 1000;
  }

  .nav-item:hover>.dropdown-menu {
    display: block;
    animation: navFadeIn 0.2s ease-out;
  }

  /* Красивые заголовки подразделов на ПК */
  .nav-header {
    padding: 12px 24px 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.1em;
  }

  .nav-divider {
    height: 1px;
    background-color: var(--color-border);
    margin: 8px 0;
  }

  .dropdown-link {
    display: block;
    padding: 8px 24px;
    font-size: 14px;
    color: var(--grey);
    text-decoration: none;
    transition: all 0.2s;
  }

  .dropdown-link:hover {
    background: var(--color-surface);
    color: var(--color-text);
    padding-left: 28px;
  }
}

/* ================= МОБИЛЬНОЕ МЕНЮ (< 1024px) ================= */
@media (max-width: 1023px) {
  nav#site-nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--color-bg);
    z-index: 1001;
    overflow-y: auto;
    display: none;
  }

  nav#site-nav.is-open {
    display: block;
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    padding: 20px;
    list-style: none;
  }

  .nav-item {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-link-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    background: none;
    border: none;
  }

  .dropdown-menu {
    display: none;
    padding: 0 0 20px 0;
    list-style: none;
  }

  .nav-link-btn[aria-expanded="true"]+.dropdown-menu {
    display: block;
  }

  /* Заголовки подразделов на мобильном */
  .nav-header {
    padding: 20px 0 10px 0;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-text);
    letter-spacing: 0.05em;
    border-top: 1px solid var(--color-border);
    margin-top: 10px;
  }

  .nav-divider {
    height: 1px;
    background-color: var(--color-border);
    margin: 15px 0;
  }

  .dropdown-link {
    display: block;
    padding: 12px 0;
    font-size: 17px;
    color: var(--grey);
    text-decoration: none;
  }
}

@keyframes navFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}/* src/components/site/style/header.css */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1002;
  height: 60px;
  width: 100%;
  color: var(--header-color);
  background-color: var(--header-bg-color);
  border-bottom: 1px solid var(--header-border-color-bottom);
}

.header-container {
  height: 100%;
  max-width: var(--width-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text);
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Полоска прогресса прокрутки */

.site-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: var(--scroll-percentage, 0%);
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  transition: width 0.1s linear;
  z-index: 1003;
}

/* ================= СЕКРЕТНЫЕ КРУЖОЧКИ ================= */
.secret-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 0.15s ease;
  position: relative;
}

.secret-dot:hover {
  opacity: 1;
}

.dot-shop {
  background-color: var(--header-bg-color-shop);
}

.dot-blog {
  background-color: var(--header-bg-color-blog);
}

/* Тултип */
.secret-dot::after {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% - 50px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.secret-dot:hover::after {
  opacity: 1;
}

.btn-instock {
  background-color: var(--header-bg-color-button);
  color: var(--header-color-button);
  padding: 6px 12px;
  border-radius: var(--border-radius-small);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

/* ИСПРАВЛЕНО: класс был .header-search-btn, но в разметке используется .search-btn */
.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-search-icon {
  width: 24px;
  height: 24px;
  color: var(--color-text-muted);
}

/* ================= КНОПКА МЕНЮ (БУРГЕР) ================= */
.mobile-menu-btn {
  display: none;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1100;
}

.burger-box {
  display: block;
  width: 24px;
  height: 18px;
  position: relative;
}

/* Центральная линия */
.burger-inner,
.burger-inner::before,
.burger-inner::after {
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  position: absolute;
  transition: transform 0.2s ease, opacity 0.2s ease;
  border-radius: 2px;
}

.burger-inner {
  top: 50%;
  transform: translateY(-50%);
}

/* Верхняя линия */
.burger-inner::before {
  content: "";
  top: -8px;
  left: 0;
}

/* Нижняя линия */
.burger-inner::after {
  content: "";
  bottom: -8px;
  left: 0;
}

/* Анимация при активном меню (класс .active добавляется скриптом) */
.mobile-menu-btn.active .burger-inner {
  background-color: transparent;
}

.mobile-menu-btn.active .burger-inner::before {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .burger-inner::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* Утилита для запрета скролла при открытом меню */
.no-scroll {
  overflow: hidden;
}

@media (min-width: 1024px) {

  /* Эффект блюра только для десктопа (экран >= 1024px) */
  .site-header {
    background-color: color-mix(in srgb, var(--color-bg) 80%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

@media (max-width: 1023px) {

  /* Мобильное меню */
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .secret-dot {
    display: none;
  }
}/* src/components/site/style/footer.css */

.site-footer {
  background-color: var(--footer-bg-color);
  color: var(--footer-color);
  padding: 3rem 0;
}

.footer-container {
  max-width: var(--width-wide);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto;
}

.footer-left {
  display: flex;
  gap: 10px;
}

.footer-left img {
  display: block;
}

.footer-left .brand {
  display: flex;
  flex-direction: column;
}

.footer-left .name {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
}

.footer-left .description {
  font-size: 12px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.footer-right a {
  color: inherit;
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}

.footer-right .lang {
  font-size: smaller;
  text-transform: uppercase;
}

.footer-right .lang a {
  padding: 5px;
  background-color: var(--footer-bg-color-lang);
  color: var(--footer-color-lang);
  text-decoration: none;
  border-radius: var(--border-radius-small);
}

/* ИСПРАВЛЕНО: добавлен flex-direction: column для мобильных */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    padding: 0 10px;
  }

  .footer-right {
    align-items: flex-start;
  }
}/* src/components/toast/toast.css */

#toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 12px 36px 12px 12px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.07),
        0 10px 30px -5px rgba(0, 0, 0, 0.12);
    min-width: 260px;
    max-width: 320px;
    pointer-events: auto;
    position: relative;

    transform: translateX(calc(-100% - 24px));
    opacity: 0;
    transition:
        transform var(--toast-anim) cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity var(--toast-anim) ease;
}

.toast--visible {
    transform: translateX(0);
    opacity: 1;
}

.toast--hiding {
    transform: translateX(calc(-100% - 24px));
    opacity: 0;
    transition:
        transform var(--toast-anim) cubic-bezier(0.55, 0, 1, 0.45),
        opacity var(--toast-anim) ease;
}

/* ── Ссылка-обёртка ── */

.toast__link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.toast__link:hover .toast__text {
    text-decoration: underline;
}

/* ── Картинка ── */

.toast__thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--color-surface);
}

/* ── Текстовый блок ── */

.toast__body {
    flex: 1;
    min-width: 0;
}

.toast__tag {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: var(--color-success, #16a34a);
}

.toast__text {
    font-size: 13px;
    line-height: 1.45;
    color: var(--color-text, #111827);
    margin: 0;
}

/* ── Кнопка закрытия ── */

.toast__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border: none;
    background: none;
    color: var(--color-muted, var(--color-muted));
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding: 0;
    transition: color 0.15s, background-color 0.15s;
}

.toast__close:hover {
    color: var(--color-text, #374151);
    background-color: var(--color-surface, var(--color-surface));
}

@media (max-width: 768px) {
    #toast-container {
        display: none;
    }
}/* src\layouts\back-to-top.css */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: scale(1.1);
}

.back-to-top svg {
  display: block;
}/* src\layouts\style\global.css */

/* --- БРЕЙКПОИНТЫ ---
   Планшет:  max-width: 1024px
   Мобильный: max-width: 768px
*/

:root {
    /* Кнопка */
    --color-btn: white;
    --color-btn-secondary: white;
    --color-btn-disabled: #888;
    --bg-color-btn: crimson;
    --bg-color-btn-secondary: #888;
    --bg-color-btn-disabled: #888;
    --border-color-btn-active: crimson;
    --border-color-btn-hover: crimson;
    --border-color-btn-secondary: #aaa;
    --bg-green: #E0FFF3;
    --bg-red: #FFEBEB;
    --bg-blue: #E8F6FF;
    --bg-yellow: #fff7e4;
    /* Кнопка Опция */
    --option-bg-color: white;
    --option-bg-color-active: snow;
    --option-font-size: 13px;
    --option-text-color: black;
    --option-text-color-active: black;
    --option-text-hover: black;
    --option-border-color: lightgrey;
    --option-border-color-active: crimson;
    --option-border-color-hover: crimson;
    --option-border-thickness: 1px;
    --option-border-thickness-active: 2px;
    --option-border-thickness-hover: 1px;
    --option-border-radius: 10px;
    --option-padding-v: 6px;
    --option-padding-h: 16px;
    /* Граница */
    --border-radius-small: 5px;
    --border-radius-middle: 12px;
    --border-radius-big: 20px;
    /* Изображение */
    --img-border-radius-small: 3px;
    --img-border-radius-middle: 12px;
    --img-border-radius-big: 20px;
    /* Цвет */
    --accent: crimson;
    --grey: #666;
    --color-bg: white;
    --color-text: black;
    --color-text-muted: #333;
    --color-border: #ddd;
    --color-success: #2ecc71;
    --color-warning: #f39c12;
    --color-error: #e74c3c;
    --color-surface: #f3f4f6;
    --color-muted: #9ca3af;
    --width-text: 800px;
    --width-wide: 1600px;
    /* Header */
    --header-color: black;
    --header-color-button: white;
    --header-bg-color: #eee;
    --header-border-color-bottom: #eee;
    --header-bg-color-button: crimson;
    --header-bg-color-shop: #22c55e;
    --header-bg-color-blog: #3b82f6;
    /* Footer */
    --footer-color: black;
    --footer-color-lang: white;
    --footer-bg-color: #eee;
    --footer-bg-color-lang: royalblue;
    /* Хлебные крошки */
    --bc-font-size: 0.875rem;
    --bc-gap: 8px;
    --bc-text-main: #6b7280;
}/* src\layouts\body.css */

body {
  font-family: Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

main {
  padding: 20px 0;
}

/* Утилиты */

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hidden {
  display: none !important;
}

strong {
  font-weight: 700;
}

/* Article */

article {
  margin: 0 auto;
  max-width: var(--width-text);
}

@media (max-width: 768px) {
  article {
    padding: 0 10px;
  }
}

/* Мобильный */
@media (max-width: 480px) {
  article {
    padding: 0 5px;
  }
}

/* Картинки */

figure {
  margin: 0;
}

@media (max-width: 768px) {
  figure img {
    max-width: 100%;
    height: auto;
  }
}

/* --- ЗАГОЛОВОК --- */

article header {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

header p {
  margin: 0;
}

/* --- Изображения --- */

.fly {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fly:hover,
.button:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

/* --- КНОПКИ --- */

.buttons {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  list-style: none;
  padding: 0;
}

.button {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  padding: 12px 25px;
  border: none;
  border-radius: 12px;
  font-weight: normal;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
  color: var(--color-btn);
  background-color: var(--bg-color-btn);
}

.button:active:not(:disabled) {
  transform: translateY(1px);
}

.button.secondary {
  background-color: var(--bg-color-btn-secondary);
  color: var(--color-btn-secondary);
}

.button:disabled {
  background-color: var(--bg-color-btn-disabled);
  color: var(--color-btn-disabled);
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 768px) {
  .buttons {
    flex-direction: column;
    width: 100%;
  }

  .button {
    box-sizing: border-box;
  }

}

/* Число */

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}/* src\layouts\style\content.css */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Segoe UI", sans-serif;
    font-weight: 700;
}

h1 {
    font-size: 2.2rem;
    margin: 0 0 2rem;
    color: #666;
}

h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: SteelBlue;
}

h3 {
    font-size: 1.4rem;
    margin: 1rem 0;
    color: #666;
}

h4 {
    font-size: 1.2rem;
    margin: 1rem 0;
}

h5 {
    font-size: 1rem;
    margin: 1rem 0;
}

h6 {
    font-size: 1rem;
    margin: 1rem 0;
    font-weight: normal;
}

article ul,
article ol {
    padding-left: 30px;
}

p,
ul,
li {
    line-height: 1.6;
}

/* --- ТАБЛИЦА --- */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

table thead th {
    text-align: center;
}

table th,
table td {
    border: 1px solid var(--color-border);
    padding: 8px;
}

/* --- КАРТИНКА --- */

.content img {
    display: block;
    margin: 0 auto;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 600px;
}

.content h3 img {
    height: 20px;
    width: 20px;
    max-width: 20px;
    max-height: 20px;
    margin: 0 10px 0 0;
    display: inline;
}

.caption {
    margin: 0 0 2rem;
    line-height: 1rem;
    font-style: italic;
    text-align: center;
    font-size: 0.9em;
}

/* --- Широкая картинка --- */

.wide {
    width: min(1200px, 100vw);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow-x: auto;
}

.before-after {
    display: flex;
    gap: 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 10px;
}

.before-after p {
    margin: 0;
}

.before-after p:last-of-type {
    font-style: italic;
    text-align: center;
    font-size: 0.9em;
    padding-top: 10px;
}

.before-after>div {
    flex: 1;
    text-align: center;
}

.before-after img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

@media (max-width: 640px) {
    .before-after {
        flex-direction: column;
    }
}

/* --- ЦИТАТА --- */

blockquote {
    position: relative;
    margin: 1rem 0;
    padding: 1.5rem 2rem;
    font-family: serif;
    font-style: italic;
    font-size: 1.1em;
    line-height: 1.6;
    border-left: 5px solid #4f46e5;
    border-radius: 8px;
    background-color: floralwhite;
}

blockquote p {
    margin: 0;
}

blockquote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-size: 0.9rem;
    color: #6b7280;
    text-align: right;
}

/* Планшет */

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
        margin: 1.5rem 0;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

}