* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #160A03;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Noto Sans', sans-serif;
}

button, input, select, textarea, optgroup {
  font-family: inherit;
}

/* Золотая полоса над шапкой */
.nav-announce {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 16px;
  background: #E8B96A;
  color: #1A0F0A;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}

.nav-announce-dot {
  width: 4px;
  height: 4px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #1A0F0A;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 40px;
  height: 88px;
  box-sizing: border-box;
  padding: 0 64px;
  background: #1A0F0A;
  border-bottom: 1px solid rgba(232, 185, 106, 0.14);
  font-family: Manrope, 'Noto Sans', sans-serif;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 46px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #F2E8DC;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.nav-item:focus-visible {
  outline: 2px solid #E8B96A;
  outline-offset: 4px;
  border-radius: 4px;
}

.nav-item-sale {
  color: #FF6B5E;
}

.nav-item-count {
  padding: 2px 6px;
  border-radius: 99px;
  background: #D4111A;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.see-all-link {
    color: #e8b96a;
    text-decoration: none;
    font-size: 16px;
    font-family: 'Noto Sans', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.see-all-link:hover {
    color: #f0e6d8;
    transform: translateY(-4px);
}

.see-all-link:visited {
    color: #e8b96a;
}


.nav-item:hover {
  color: #E8B96A;
}

.nav-icons {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.nav-burger {
  display: none;
}

/* Кнопки-иконки шапки: 44×44, линия 1.75, акцент только при взаимодействии */
.nav-icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #E9DDD0;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.nav-icon-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

.nav-icon-btn:hover {
  background: rgba(233, 189, 114, 0.12);
  color: #E9BD72;
}

.nav-icon-btn:active {
  background: rgba(233, 189, 114, 0.2);
  color: #E9BD72;
  transform: scale(0.94);
}

.nav-icon-btn:focus-visible {
  outline: 2px solid #E9BD72;
  outline-offset: 2px;
}

/* Текущий раздел: иконка залита акцентом, под ней точка */
.nav-icon-btn.is-current {
  color: #E9BD72;
}

.nav-icon-btn.is-current svg {
  fill: currentColor;
}

.nav-icon-btn.is-current::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 2px;
  background: #E9BD72;
}

/* Счётчик: золотая пилюля с обводкой цветом шапки, растёт влево */
.nav-count {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 9px;
  background: #E9BD72;
  color: #1A110D;
  box-shadow: 0 0 0 2px #1a0f0a;
  font-size: 11px;
  line-height: 18px;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* Профиль в меню — только на телефоне */
.nav-item-profile {
  display: none;
}


/* У картинки свой коричневый фон — растворяем его края, чтобы не было видно прямоугольника */
.hero-image {
  position: relative;
  display: block;
  width: 118%;
  max-width: none;
  margin: -4% -9% -4% 0;
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, rgba(0, 0, 0, 0.6) 76%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 58%, rgba(0, 0, 0, 0.6) 76%, transparent 100%);
}


.hero-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

/* Тёплое свечение за картинкой, полностью гаснет к краям */
.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -20% -25%;
  background: radial-gradient(closest-side, rgba(58, 31, 18, 0.9) 0%, rgba(58, 31, 18, 0.35) 55%, rgba(22, 10, 3, 0) 100%);
  pointer-events: none;
}


.popular_text h1{
  font-family: 'Noto Sans', sans-serif;
  font-size: 40px;
  line-height: 1.1;
  color: white;
}

.popular_text h2{
  font-family: 'Noto Sans', sans-serif;
  font-size: 15px;
  line-height: 1.1;
  color: #e8b96a;
  cursor: pointer;
}

.popular_text h2:hover {
  transform: translateX(4px)
}


.popular_text {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 40px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}


.trust-block {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.trust-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.trust-text h3 {
  font-family: 'Noto Sans', sans-serif;
  color: white;
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 2px;
}

.trust-text p {
  font-family: 'Noto Sans', sans-serif;
  color: #999;
  font-size: 12px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(232, 185, 106, 0.2);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 14px;
}

.footer-logo {
  display: block;
  height: 72px;
  width: auto;
}

.footer-brand p {
  font-family: 'Noto Sans', sans-serif;
  color: #999;
  font-size: 16px;
  line-height: 1.4;
}

.footer-col h3 {
  font-family: 'Noto Sans', sans-serif;
  color: white;
  font-size: 15px;
  margin-bottom: 5px;
}

.footer-col a {
  font-family: 'Noto Sans', sans-serif;
  color: #ccc;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #e8b96a;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.footer-socials img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease;
}

.footer-socials a:hover img {
  filter: invert(72%) sepia(28%) saturate(573%) hue-rotate(357deg) brightness(93%) contrast(90%);
}

.search-wrapper {
  position: relative;
}

.search-dropdown {
  position: absolute;
  top: 130%;
  right: 0;
  left: auto;
  background: #1a0f0a;
  border: 1px solid #e8b96a;
  border-radius: 12px;
  padding: 12px;
  width: 260px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1001;
}

.search-dropdown .search-panel-close {
  display: none;
}

.search-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-dropdown form {
  display: flex;
  gap: 8px;
}

.search-field {
  flex: 1;
  min-width: 0;
  display: flex;
}

.search-field-icon {
  display: none;
}

.search-dropdown input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e8b96a;
  background: #2a1810;
  color: #e8b96a;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  outline: none;
}

.search-dropdown input::placeholder {
  color: rgba(232, 185, 106, 0.5);
}

.search-dropdown input:focus {
  border-color: #f5e6c8;
}

.search-dropdown button {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: #e8b96a;
  color: #1a0f0a;
  font-weight: bold;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-suggestions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}

.search-suggestions.has-items {
  display: block;
}

.search-suggestions .suggestion-item,
.search-suggestions .suggestion-empty {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
}

.search-suggestions .suggestion-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f0e6d8;
  text-decoration: none;
}

.search-suggestions .suggestion-item img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.search-suggestions .suggestion-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.search-suggestions .suggestion-price {
  color: #e8b96a;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.search-suggestions .suggestion-empty {
  color: #999;
  font-size: 13px;
}

.search-dropdown button:hover {
  background: rgba(232, 185, 106, 0.8);
}


.auth-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 10, 3, 0.55);
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.auth-overlay.auth-modal {
  opacity: 0;
  pointer-events: none;
}

.auth-overlay.auth-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.auth-overlay.auth-modal.closing {
  opacity: 0;
  pointer-events: none;
}


.auth-overlay.closing {
  opacity: 0;
}


.auth-box {
  position: relative;
  background: #1a0f0a;
  border: 1px solid #e8b96a;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  font-family: 'Noto Sans', sans-serif;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s ease, opacity 0.25s ease;

}

.auth-overlay.closing .auth-box {
  transform: scale(0.92);
  opacity: 0;
}

.auth-box h1 {
  color: #e8b96a;
  font-size: 28px;
  margin-bottom: 25px;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form label {
  color: #ccc;
  font-size: 13px;
  margin-top: 10px;
}

.auth-form input {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(232, 185, 106, 0.3);
  background: #2a1810;
  color: white;
  font-family: 'Noto Sans', sans-serif;
  outline: none;
}

.auth-form input:focus {
  border-color: #e8b96a;
}

.auth-btn {
  margin-top: 25px;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: #e8b96a;
  color: #1a0f0a;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.auth-btn:hover {
  background: rgba(232, 185, 106, 0.85);
}

.auth-switch {
  margin-top: 18px;
  text-align: center;
  color: #999;
  font-size: 13px;
}

.auth-switch a {
  color: #e8b96a;
  text-decoration: none;
}

.delivery-text {
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 14px;
  text-align: center;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: #e8b96a;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 10;
}

.auth-close:hover {
  background: rgba(232, 185, 106, 0.15);
  color: #f5e6c8;
}

.auth-error {
  color: #ff6b6b;
  font-size: 13px;
  text-align: center;
  margin-bottom: 10px;
}

.empty-state {
  color: #999;
  font-size: 13px;
  text-align: center;
  padding: 20px;
  background: rgba(232, 185, 106, 0.05);
  border-radius: 10px;
  border: 1px dashed rgba(232, 185, 106, 0.2);
}


.catalog-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px;
}

.catalog-title {
  color: #e8b96a;
  font-family: 'Noto Sans', sans-serif;
  font-size: 36px;
  margin-bottom: 30px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  align-items: stretch;
}


.product-old-price {
  color: #999;
  font-size: 14px;
  text-decoration: line-through;
}

.product-price-sale {
  color: #ff6b6b;
  margin-bottom: 0;
}

.telegram-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: #2AABEE;
    border-radius: 50%;

    color: #fff;
    text-decoration: none;

    transition: .25s ease;
}

.telegram-btn:hover {
    background: #229ED9;
    transform: translateY(-2px) scale(1.05);
}

.telegram-icon {
    width: 24px;
    height: 24px;
}

.addProduct {
  background: #e8b96a;
  color: #1a0f0a;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Noto Sans', sans-serif;
  font-size: 12px;
  width: 100%;
}

.addProduct:hover {
  transform: translateY(-2px) scale(1.05);

}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 40px;
}

@media (max-width: 1000px) {
  .popular-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


.qty-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  background: #2a1810;
  border: 1px solid rgba(232, 185, 106, 0.3);
  border-radius: 8px;
  padding: 6px 10px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: none;
  background: #e8b96a;
  color: #1a0f0a;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.qty-btn:hover {
  background: rgba(232, 185, 106, 0.85);
}

.qty-btn:disabled {
  background: rgba(232, 185, 106, 0.2);
  color: #999;
  cursor: not-allowed;
}

.qty-value {
  color: #f5e6c8;
  font-size: 15px;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}


/* ===== Планшеты ===== */
@media (max-width: 1024px) {


  .hero-image {
    width: 100%;
    max-width: 560px;
    margin: -6% 0;
  }


  .popular-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px 30px;
  }

}

/* ===== Телефоны ===== */
@media (max-width: 768px) {
  .nav {
    padding: 10px 16px;
    height: auto;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .nav-logo img {
    height: 46px;
  }

  /* Телефон: меню слева, логотип, справа поиск / избранное / корзина */
  .nav-burger {
    order: -1;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3.25px;
    width: 44px;
    height: 44px;
    padding: 0 0 0 10px;
    background: transparent;
    border: 0;
    border-radius: 12px;
    color: #E9DDD0;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  }

  .nav-burger:active {
    background: rgba(233, 189, 114, 0.2);
    color: #E9BD72;
    transform: scale(0.94);
  }

  .nav-burger:focus-visible {
    outline: 2px solid #E9BD72;
    outline-offset: 2px;
  }

  .nav-burger span {
    display: block;
    width: 16px;
    height: 1.75px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
  }

  .nav-burger span:nth-child(3) {
    width: 10px;
  }

  .nav.open .nav-burger {
    color: #E9BD72;
  }

  .nav.open .nav-burger span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .nav.open .nav-burger span:nth-child(2) {
    opacity: 0;
  }

  .nav.open .nav-burger span:nth-child(3) {
    width: 16px;
    transform: translateY(-5px) rotate(-45deg);
  }

  .nav-profile-link {
    display: none;
  }

  .nav-item-profile {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    transform: none;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 16px;
    background: #1a0f0a;
    border-bottom: 1px solid rgba(232, 185, 106, 0.25);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
  }

  .nav.open .nav-menu {
    opacity: 1;
    visibility: visible;
  }

  .nav-item {
    padding: 13px 4px;
    font-size: 16px;
    border-bottom: 1px solid rgba(232, 185, 106, 0.08);
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-item:hover {
    transform: none;
  }

  .nav-icons {
    gap: 0;
    margin-left: 0;
  }

  .nav-icons img {
    width: 20px;
    height: 20px;
  }

  .search-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: none;
    border: none;
    border-radius: 0;
    padding: 24px 20px;
    background: #1a0f0a;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    overscroll-behavior: none;
  }

  .search-dropdown .search-panel-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #e8b96a;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    font-family: 'Noto Sans', sans-serif;
  }

  .search-dropdown::before {
    content: 'Поиск по каталогу';
    display: block;
    color: #e8b96a;
    font-family: 'Noto Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-right: 48px;
  }

  .search-dropdown form {
    flex-direction: column;
    gap: 10px;
  }

  .search-dropdown input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
  }

  .search-dropdown button {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
  }

  .search-suggestions {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  input, select, textarea {
    font-size: 16px;
  }


.catalog-page,
  .popular_text {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    text-align: center;
  }

  .popular_text h1 {
    font-size: 26px;
  }

  .see-all-link {
    align-self: center;
    margin-top: 4px;
  }

  .popular-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 16px 24px;
  }

  .trust-block {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .footer {
    flex-direction: column;
    padding: 30px 20px;
    gap: 24px;
  }

  .catalog-page,
  .catalog-title {
    font-size: 26px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }


  .trust-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }


  .auth-box {
    padding: 24px;
    max-width: 100%;
    margin: 0 16px;
  }

}

/* ===== Маленькие телефоны ===== */
@media (max-width: 400px) {

  .popular-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .nav-logo img {
    height: 42px;
  }

  .nav {
    padding: 10px 12px;
    gap: 6px;
  }


}

/* ========== 404 ========== */
.error-404-page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px 40px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  font-family: 'Noto Sans', sans-serif;
}

.error-404-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.error-404-code {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #e8b96a;
  font-size: 200px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -6px;
}

.error-404-can {
  width: 0.68em;
  height: 0.9em;
}

.error-404-title {
  color: #f5e6c8;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.error-404-text {
  color: #bfae9c;
  font-size: 18px;
  line-height: 1.5;
  max-width: 560px;
}

.error-404-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.error-404-btn,
.error-404-btn-secondary {
  height: 48px;
  padding: 0 26px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Noto Sans', sans-serif;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.error-404-btn {
  background: #e8b96a;
  color: #1a0f0a;
  border: none;
}

.error-404-btn svg {
  width: 18px;
  height: 18px;
}

.error-404-btn:hover {
  background: rgba(232, 185, 106, 0.85);
}

.error-404-btn-secondary {
  background: transparent;
  border: 1px solid #5a4333;
  color: #f5e6c8;
}

.error-404-btn-secondary:hover {
  border-color: #e8b96a;
}

.error-404-picks {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.error-404-picks-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.error-404-picks-head h2 {
  color: #e8b96a;
  font-size: 22px;
}

.error-404-picks-head a {
  color: #e8b96a;
  font-size: 15px;
  font-weight: bold;
}

.error-404-picks-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.error-404-pick {
  display: flex;
  overflow: hidden;
  background: #1a0f0a;
  border: 1px solid #3d2b20;
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.error-404-pick:hover {
  border-color: #e8b96a;
  transform: translateY(-3px);
}

.error-404-pick-image {
  width: 96px;
  flex-shrink: 0;
  background: #030303;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-404-pick-image img {
  width: 100%;
  height: 100%;
  max-height: 120px;
  object-fit: contain;
}

.error-404-pick-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.error-404-pick-category {
  color: #bfae9c;
  font-size: 13px;
}

.error-404-pick-name {
  color: #f5e6c8;
  font-size: 15px;
  font-weight: bold;
}

.error-404-pick-price {
  color: #e8b96a;
  font-size: 17px;
  font-weight: 900;
}

@media (max-width: 1000px) {
  .error-404-picks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .error-404-page {
    padding: 40px 16px 56px;
    gap: 40px;
  }

  .error-404-code {
    font-size: 110px;
    gap: 10px;
    letter-spacing: -3px;
  }

  .error-404-title {
    font-size: 30px;
  }

  .error-404-text {
    font-size: 16px;
  }

  .error-404-picks-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== 18+ ========== */
/* Метка нейтральная, не красная — чтобы не путалась со скидкой */


.age-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 380px;
}

.age-box-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid #f5e6c8;
  color: #f5e6c8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
}

.age-box-title {
  color: #f5e6c8;
  font-size: 22px;
}

.age-box-text {
  color: #bfae9c;
  font-size: 14px;
  line-height: 1.5;
}

.age-box .age-btn-yes {
  margin-top: 6px;
}

.age-btn-no {
  padding: 13px;
  border-radius: 10px;
  border: 1px solid #5a4333;
  background: transparent;
  color: #f5e6c8;
  font-family: 'Noto Sans', sans-serif;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.age-btn-no:hover {
  border-color: #e8b96a;
}


.btn-admin {
    display: inline-block;
    background-color:#e8b96a;
    color:#160A03;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.2s;
    font-family: 'Noto Sans', sans-serif;
}


.nav-logo a {
    display: block;
}


.policy-page {
    display: flex;
    justify-content: center;
    padding: 60px 20px 80px;
    background: #160A03;
    min-height: 100vh;
}

.policy-box {
    max-width: 820px;
    width: 100%;
    background: #1a0f0a;
    border: 1px solid rgba(232, 185, 106, 0.35);
    border-radius: 20px;
    padding: 48px 56px;
    font-family: 'Noto Sans', sans-serif;
    color: #f0e6d8;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.policy-box h1 {
    color: #e8b96a;
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.policy-box h2 {
    color: #e8b96a;
    font-size: 18px;
    margin: 32px 0 12px;
}

.policy-box p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.policy-list {
    margin: 0 0 14px 22px;
}

.policy-list li {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 4px;
}

.policy-date {
    color: #9a8570;
    font-size: 14px;
}

@media (max-width: 640px) {
    .policy-box {
        padding: 32px 22px;
    }
}

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 18px;
    width: calc(100% - 32px);
    max-width: 680px;
    background: #1a0f0a;
    border: 1px solid #e8b96a;
    border-radius: 16px;
    padding: 20px 24px;
    font-family: 'Noto Sans', sans-serif;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    opacity: 1;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-banner.closing {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
    pointer-events: none;
}

.cookie-banner-text p {
    color: #f0e6d8;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-text a {
    color: #e8b96a;
    text-decoration: none;
}

.cookie-banner-text a:hover {
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.cookie-btn-accept {
    margin-top: 0;
    padding: 12px 22px;
    font-size: 14px;
}

.cookie-btn-reject {
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid rgba(232, 185, 106, 0.35);
    background: transparent;
    color: #e8b96a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Noto Sans', sans-serif;
}

.cookie-btn-reject:hover {
    background: rgba(232, 185, 106, 0.12);
}

@media (max-width: 640px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        left: 16px;
        right: 16px;
        transform: none;
        width: auto;
    }

    .cookie-banner.closing {
        transform: translateY(12px);
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .cookie-btn-accept, .cookie-btn-reject {
        flex: 1;
    }
}

/* ===== Отключение ховеров на тач-устройствах (телефоны, планшеты) ===== */
@media (hover: none) and (pointer: coarse) {
  .see-all-link:hover {
    color: #e8b96a;
    transform: none;
  }

  .nav-item:hover {
    color: rgb(255, 255, 255);
    box-shadow: none;
    transform: none;
  }

  .nav-icon-btn:hover {
    background: transparent;
    color: #E9DDD0;
  }

  .nav-icon-btn.is-current:hover {
    color: #E9BD72;
  }

  .nav-icon-btn:active {
    background: rgba(233, 189, 114, 0.2);
    color: #E9BD72;
  }


  .popular_text h2:hover {
    transform: none;
  }

  .footer-col a:hover {
    color: #ccc;
  }

  .footer-socials a:hover img {
    filter: brightness(0) invert(1);
  }

  .search-dropdown button:hover {
    background: #e8b96a;
  }

  .auth-btn:hover {
    background: #e8b96a;
  }

  .auth-close:hover {
    background: transparent;
    color: #e8b96a;
  }


  .telegram-btn:hover {
    background: #2AABEE;
    transform: none;
  }

  .addProduct:hover {
    transform: none;
  }


  .qty-btn:hover {
    background: #e8b96a;
  }

  .error-404-btn:hover {
    background: #e8b96a;
  }


  .cookie-banner-text a:hover {
    text-decoration: none;
  }

  .cookie-btn-reject:hover {
    background: transparent;
  }
}

/* ========== ПРОФИЛЬ ========== */
.profile-overlay {
  --pf-accent: #F0B35B;
  --pf-bg: #1A110C;
  --pf-card: #251810;
  --pf-text: #F6ECE1;
  --pf-muted: #B8A493;
  --pf-soft: #D9C8B6;
  --pf-line: rgba(240, 179, 91, 0.14);
  background: rgba(12, 7, 4, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 24px;
}

body.pf-lock {
  overflow: hidden;
}

.profile-box {
  position: relative;
  width: 100%;
  max-width: 960px;
  height: min(720px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  border-radius: 28px;
  overflow: hidden;
  background: var(--pf-bg);
  border: 1px solid rgba(240, 179, 91, 0.22);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  font-family: Manrope, 'Noto Sans', sans-serif;
  color: var(--pf-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.profile-overlay.closing .profile-box {
  transform: scale(0.96);
  opacity: 0;
}

.profile-box h1,
.profile-box h2 {
  margin: 0;
}

.pf-topbar {
  display: none;
}

.pf-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pf-muted);
}

.pf-ghost-btn,
.pf-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  border: 1px solid rgba(240, 179, 91, 0.18);
  background: rgba(255, 240, 220, 0.04);
  color: var(--pf-soft);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pf-ghost-btn:hover,
.pf-icon-btn:hover {
  border-color: var(--pf-accent);
  color: var(--pf-text);
}

.pf-ghost-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.pf-icon-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--pf-text);
  flex-shrink: 0;
}

.pf-icon-btn svg {
  width: 20px;
  height: 20px;
}

/* Левая колонка */
.pf-side {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px 32px 32px;
  background: #221610;
  background-image: radial-gradient(360px 240px at 50% 0, rgba(240, 179, 91, 0.16), rgba(240, 179, 91, 0) 70%);
  border-right: 1px solid rgba(240, 179, 91, 0.12);
  overflow-y: auto;
}

.pf-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.pf-avatar {
  width: 108px;
  height: 108px;
  margin-bottom: 10px;
  padding: 5px;
  border-radius: 50%;
  border: 2px solid var(--pf-accent);
  display: flex;
}

.pf-avatar span,
.pf-avatar img {
  flex-grow: 1;
  width: 100%;
  border-radius: 50%;
}

.pf-avatar span {
  background: var(--pf-accent);
  color: var(--pf-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Unbounded, 'Arial Black', sans-serif;
  font-weight: 700;
  font-size: 40px;
}

.pf-avatar img {
  object-fit: cover;
}

.pf-name {
  font-family: Unbounded, 'Arial Black', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.1;
  color: var(--pf-text);
  overflow-wrap: anywhere;
}

.pf-since {
  font-size: 14px;
  color: var(--pf-muted);
}

.pf-info {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: #2A1C13;
  border: 1px solid rgba(240, 179, 91, 0.12);
}

.pf-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.pf-info-row + .pf-info-row {
  border-top: 1px solid rgba(240, 179, 91, 0.10);
}

.pf-info-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(240, 179, 91, 0.12);
  color: var(--pf-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pf-info-icon svg {
  width: 18px;
  height: 18px;
}

.pf-info-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.pf-info-label {
  font-size: 12px;
  color: var(--pf-muted);
}

.pf-info-value {
  font-size: 15px;
  font-weight: 600;
}

.pf-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pf-stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: #2A1C13;
  border: 1px solid rgba(240, 179, 91, 0.12);
  color: var(--pf-text);
  text-decoration: none;
}

a.pf-stat:hover {
  border-color: rgba(240, 179, 91, 0.4);
}

.pf-stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--pf-muted);
  font-size: 13px;
  font-weight: 500;
}

.pf-stat-head svg {
  display: none;
  width: 18px;
  height: 18px;
}

.pf-stat-number {
  font-family: Unbounded, 'Arial Black', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
}

.pf-accent {
  color: var(--pf-accent);
}

.pf-logout {
  margin-top: auto;
  min-height: 48px;
  background: transparent;
}

/* Правая колонка */
.pf-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px 36px 36px 40px;
  overflow-y: auto;
}

.pf-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pf-main-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pf-main-title h2 {
  font-family: Unbounded, 'Arial Black', sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: var(--pf-text);
}

.pf-main-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pf-link {
  color: var(--pf-accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 0;
}

.pf-link:hover {
  text-decoration: underline;
}

.pf-orders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pf-order {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: 20px;
  background: var(--pf-card);
  border: 1px solid var(--pf-line);
}

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

.pf-order-date {
  font-size: 14px;
  font-weight: 600;
  color: var(--pf-soft);
  white-space: nowrap;
}

.pf-date-long {
  display: none;
}

.pf-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  height: 26px;
  padding: 0 11px 0 9px;
  border-radius: 999px;
  background: rgba(240, 179, 91, 0.12);
  border: 1px solid rgba(240, 179, 91, 0.22);
  color: var(--pf-accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.pf-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.pf-status-completed,
.pf-status-done {
  background: rgba(80, 200, 120, 0.12);
  border-color: rgba(80, 200, 120, 0.3);
  color: #6fd394;
}

.pf-status-cancelled,
.pf-status-canceled {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--pf-muted);
}

.pf-order-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.pf-order-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
}

.pf-order-qty {
  color: var(--pf-muted);
  flex-shrink: 0;
  font-weight: 400;
}

.pf-order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed rgba(240, 179, 91, 0.22);
  font-size: 13px;
  color: var(--pf-muted);
}

.pf-order-sum {
  font-family: Unbounded, 'Arial Black', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--pf-accent);
}

.pf-empty {
  font-size: 14px;
}

@media (max-width: 860px) {
  .profile-box {
    grid-template-columns: 290px minmax(0, 1fr);
  }

  .pf-orders {
    grid-template-columns: 1fr;
  }
}

/* Телефон: полноэкранный лист в одну колонку */
@media (max-width: 640px) {
  .profile-overlay {
    padding: 0;
    align-items: stretch;
  }

  .profile-box {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: none;
    height: 100%;
    border: none;
    border-radius: 0;
    padding: 16px 20px 32px;
    overflow-y: auto;
    background-image: radial-gradient(420px 260px at 50% -40px, rgba(240, 179, 91, 0.16), rgba(240, 179, 91, 0) 70%);
  }

  .pf-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
  }

  .pf-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .pf-topbar .pf-ghost-btn {
    height: 44px;
    padding: 0 14px 0 12px;
  }

  .pf-side,
  .pf-main {
    flex-shrink: 0;
    padding: 0;
    background: none;
    border: none;
    overflow: visible;
    gap: 24px;
  }

  .pf-avatar {
    width: 96px;
    height: 96px;
    padding: 4px;
  }

  .pf-avatar span {
    font-size: 36px;
  }

  .pf-info,
  .pf-stat {
    border-radius: 20px;
    background: var(--pf-card);
    border-color: var(--pf-line);
  }

  .pf-info-row {
    gap: 14px;
    padding: 16px 18px;
  }

  .pf-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .pf-info-value {
    font-size: 16px;
  }

  .pf-stat {
    padding: 18px;
  }

  .pf-stat-head svg {
    display: block;
  }

  .pf-stat-number {
    font-size: 34px;
  }

  .pf-logout,
  .pf-close-desktop,
  .pf-main-title .pf-kicker {
    display: none;
  }

  .pf-main {
    gap: 14px;
  }

  .pf-main-head {
    align-items: baseline;
  }

  .pf-main-title h2 {
    font-size: 18px;
  }

  .pf-orders {
    gap: 12px;
  }

  .pf-order {
    padding: 18px;
  }

  .pf-date-long {
    display: inline;
  }

  .pf-date-short {
    display: none;
  }
}


/* ========== АДМИНКА ========== */
.adm-body {
  background: #140d09;
}

.adm-page {
  --adm-bg: #140d09;
  --adm-panel: #1d1410;
  --adm-line: #2e2119;
  --adm-line-soft: #261b15;
  --adm-field-line: #3a2a20;
  --adm-accent: #e8b563;
  --adm-text: #f3e6d8;
  --adm-soft: #d9c6b3;
  --adm-muted: #a8927f;
  --adm-danger: #ef7a72;
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  font-family: Manrope, 'Noto Sans', sans-serif;
  color: var(--adm-text);
}

.adm-page [hidden] {
  display: none !important;
}

.adm-page-narrow {
  max-width: 720px;
}

.adm-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.adm-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.adm-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: var(--adm-accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.adm-back:hover {
  color: #f5cf8e;
}

.adm-back svg {
  width: 16px;
  height: 16px;
}

.adm-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.adm-title {
  margin: 0;
  font-family: Unbounded, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 40px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--adm-accent);
}

.adm-count {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #2a1e17;
  color: var(--adm-soft);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.adm-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.adm-list {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Поля */
.adm-input {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: var(--adm-bg);
  border: 1px solid var(--adm-field-line);
  border-radius: 10px;
  color: var(--adm-text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
}

.adm-input::placeholder {
  color: #8a7563;
}

.adm-input:focus {
  border-color: var(--adm-accent);
}

textarea.adm-input {
  height: 96px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.45;
}

select.adm-input {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 40px;
}

select.adm-input option {
  background: var(--adm-panel);
  color: var(--adm-text);
}

.adm-select-wrap,
.adm-suffix-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

.adm-select-icon {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 16px;
  height: 16px;
  color: var(--adm-muted);
  pointer-events: none;
}

.adm-suffix-wrap .adm-input {
  padding-right: 36px;
}

.adm-suffix {
  position: absolute;
  right: 14px;
  top: 11px;
  color: var(--adm-muted);
  font-weight: 600;
  pointer-events: none;
}

/* Поиск и фильтры */
.adm-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
}

.adm-search {
  position: relative;
  flex-grow: 1;
  display: block;
}

.adm-search svg {
  position: absolute;
  left: 16px;
  top: 13px;
  width: 18px;
  height: 18px;
  color: #8a7563;
  pointer-events: none;
}

.adm-search .adm-input {
  padding-left: 46px;
  background: var(--adm-panel);
}

.adm-chips {
  display: flex;
  gap: 8px;
}

.adm-chip {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--adm-field-line);
  background: transparent;
  color: var(--adm-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.adm-chip:hover {
  border-color: #6b513f;
}

.adm-chip[aria-pressed="true"] {
  background: var(--adm-accent);
  border-color: var(--adm-accent);
  color: #1a100a;
}

.adm-chip-count {
  opacity: 0.65;
}

/* Таблица */
.adm-table {
  background: var(--adm-panel);
  border: 1px solid var(--adm-line);
  border-radius: 16px;
  overflow: hidden;
}

.adm-table-head,
.adm-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 96px 150px 100px;
  gap: 16px;
  align-items: center;
  padding: 0 20px;
}

.adm-table-head {
  height: 44px;
  border-bottom: 1px solid var(--adm-line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--adm-muted);
}

.adm-right {
  text-align: right;
}

.adm-row {
  min-height: 72px;
  border-bottom: 1px solid var(--adm-line-soft);
  transition: background 0.12s;
}

.adm-row:hover {
  background: #221711;
}

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

.adm-thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0b0605;
}

.adm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.adm-thumb svg {
  width: 22px;
  height: 22px;
}

.adm-thumb-drink { color: #ef8a6a; background: rgba(239, 138, 106, 0.14); }
.adm-thumb-choco { color: #e8b563; background: rgba(232, 181, 99, 0.14); }
.adm-thumb-set { color: #7fd4a8; background: rgba(127, 212, 168, 0.14); }
.adm-thumb:has(img) { background: #0b0605; }

.adm-product-name {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adm-cat {
  font-size: 14px;
  color: #c4ae99;
}

.adm-price {
  font-size: 16px;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.adm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.adm-tag {
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
}

.adm-tag-promo {
  background: #4a2a12;
  color: #f7ac62;
}

.adm-tag-adult {
  border: 1px solid var(--adm-danger);
  color: #ff9a92;
}

.adm-tag-new {
  background: #2a1e17;
  color: var(--adm-soft);
}

.adm-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.adm-actions form {
  margin: 0;
}

.adm-icon-btn {
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid var(--adm-field-line);
  background: transparent;
  color: var(--adm-accent);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.adm-icon-btn svg {
  width: 18px;
  height: 18px;
}

.adm-icon-btn:hover {
  background: #2a1e17;
  border-color: var(--adm-accent);
}

.adm-icon-btn-del {
  color: var(--adm-danger);
}

.adm-icon-btn-del:hover {
  border-color: var(--adm-danger);
}

.adm-icon-btn-visible {
  color: #6dbb7a;
}

.adm-icon-btn-visible:hover {
  border-color: #6dbb7a;
  background: #1a2e1d;
}

.adm-icon-btn-hidden {
  color: var(--adm-muted);
}

.adm-icon-btn-hidden:hover {
  border-color: #6dbb7a;
  color: #6dbb7a;
  background: #1a2e1d;
}

.adm-row--hidden {
  opacity: 0.5;
}

.adm-empty {
  margin: 0;
  padding: 56px 20px;
  text-align: center;
  color: var(--adm-muted);
  font-size: 15px;
}

/* Карточка с формой */
.adm-card {
  box-sizing: border-box;
  background: var(--adm-panel);
  border: 1px solid var(--adm-line);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.adm-side {
  width: 400px;
  flex-shrink: 0;
}

.adm-card-title {
  margin: 0;
  font-family: Unbounded, 'Segoe UI', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--adm-text);
}

.adm-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.adm-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.adm-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--adm-text);
}

.adm-label-note {
  font-weight: 500;
  color: var(--adm-muted);
}

.adm-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--adm-muted);
}

.adm-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* Состав набора */
.adm-comp-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.composition-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.composition-row .adm-select-wrap {
  flex-grow: 1;
}

.adm-qty {
  width: 76px;
  flex-shrink: 0;
}

.adm-add-row {
  align-self: flex-start;
  padding: 6px 0;
  border: none;
  background: none;
  color: var(--adm-accent);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.adm-add-row:hover {
  color: #f5cf8e;
}

/* Фото */
.adm-drop {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px dashed #4a3628;
  border-radius: 12px;
  background: var(--adm-bg);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.adm-drop:hover,
.adm-drop.dragover,
.adm-drop:focus-within {
  border-color: var(--adm-accent);
}

.adm-drop.dragover {
  background: #1f150f;
}

.adm-drop-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #2a1e17;
  color: var(--adm-accent);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.adm-drop-icon svg {
  width: 20px;
  height: 20px;
}

.adm-drop-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adm-drop-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.adm-drop-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--adm-accent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adm-drop-sub {
  font-size: 13px;
  color: var(--adm-muted);
}

/* Переключатели */
.adm-toggles {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--adm-line);
  border-radius: 12px;
  background: #180f0b;
}

.adm-toggles > * + * {
  border-top: 1px solid var(--adm-line);
}

.adm-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.adm-toggle-group .adm-hint {
  padding: 0 16px 14px;
  margin-top: -6px;
}

.adm-toggle-extra {
  padding: 0 16px 14px;
}

.adm-switch {
  appearance: none;
  -webkit-appearance: none;
  width: 40px;
  height: 24px;
  border-radius: 12px;
  background: var(--adm-field-line);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
  transition: background 0.15s;
}

.adm-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--adm-soft);
  transition: transform 0.15s;
}

.adm-switch:checked {
  background: var(--adm-accent);
}

.adm-switch:checked::after {
  transform: translateX(16px);
  background: #1a100a;
}

.adm-switch:focus-visible,
.adm-chip:focus-visible,
.adm-icon-btn:focus-visible,
.adm-primary:focus-visible {
  outline: 2px solid var(--adm-accent);
  outline-offset: 2px;
}

.adm-primary {
  height: 52px;
  border: none;
  border-radius: 12px;
  background: var(--adm-accent);
  color: #1a100a;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.adm-primary:hover {
  background: #f0c57c;
}

.adm-primary svg {
  width: 18px;
  height: 18px;
}

/* Планшет: форма под списком */
@media (max-width: 1180px) {
  .adm-page {
    padding: 40px 32px;
  }

  .adm-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .adm-side {
    width: auto;
  }
}

/* Телефон: строки таблицы превращаются в карточки */
@media (max-width: 760px) {
  .adm-page {
    padding: 24px 16px 40px;
    gap: 24px;
  }

  .adm-title {
    font-size: 26px;
  }

  .adm-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .adm-chips {
    overflow-x: auto;
  }

  .adm-table-head {
    display: none;
  }

  .adm-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "product actions"
      "cat     price"
      "tags    tags";
    gap: 8px 12px;
    padding: 14px 16px;
  }

  .adm-product { grid-area: product; }
  .adm-actions { grid-area: actions; }
  .adm-cat { grid-area: cat; }
  .adm-price { grid-area: price; }
  .adm-tags { grid-area: tags; }

  .adm-tags:not(:has(.adm-tag)) {
    display: none;
  }

  .adm-product-name {
    white-space: normal;
    font-size: 15px;
  }

  .adm-card {
    padding: 20px;
  }

  .adm-row-2 {
    grid-template-columns: 1fr;
  }
}

/* ========== ГЛАВНАЯ: КАТЕГОРИИ ========== */
.home-cats {
  --cat-accent: #E8B86B;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px;
  box-sizing: border-box;
  font-family: Manrope, 'Noto Sans', sans-serif;
}

.home-cat {
  min-height: 200px;
  box-sizing: border-box;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  background-color: #221410;
  border: 1px solid rgba(232, 184, 107, 0.22);
  border-radius: 20px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.home-cat:hover {
  border-color: rgba(232, 184, 107, 0.65);
  background-color: #2a1912;
  transform: translateY(-3px);
}

.home-cat:focus-visible {
  outline: 2px solid var(--cat-accent);
  outline-offset: 3px;
}

.home-cat-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.home-cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: rgba(232, 184, 107, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cat-accent);
}

.home-cat-icon svg {
  width: 28px;
  height: 28px;
}

.home-cat-arrow {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(232, 184, 107, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cat-accent);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home-cat-arrow svg {
  width: 16px;
  height: 16px;
}

.home-cat:hover .home-cat-arrow {
  background-color: var(--cat-accent);
  border-color: var(--cat-accent);
  color: #190c07;
}

.home-cat-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.home-cat-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-cat-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #F5E9D8;
  overflow-wrap: break-word;
  min-width: 0;
}

.home-cat-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background-color: var(--cat-accent);
  color: #190c07;
}

.home-cat-desc {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #A8927F;
}

@media (max-width: 1000px) {
  .home-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 32px 24px;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .home-cats {
    padding: 20px 16px;
    gap: 12px;
  }

  .home-cat {
    min-height: 168px;
    padding: 16px;
    gap: 14px;
    border-radius: 16px;
  }

  .home-cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .home-cat-icon svg {
    width: 22px;
    height: 22px;
  }

  .home-cat-arrow {
    width: 30px;
    height: 30px;
  }

  .home-cat-title {
    font-size: 17px;
  }

  .home-cat-title-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .home-cat-desc {
    font-size: 13px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .home-cat:hover {
    transform: none;
    background-color: #221410;
    border-color: rgba(232, 184, 107, 0.22);
  }

  .home-cat:hover .home-cat-arrow {
    background-color: transparent;
    border-color: rgba(232, 184, 107, 0.30);
    color: var(--cat-accent);
  }
}


/* ========== КАТАЛОГ: ФИЛЬТР ========== */
.cf-panel,
.cf-bar {
  --cf-accent: #e8b665;
  --cf-field: #2e2018;
  --cf-line: #4a3526;
  --cf-text: #f5e9dc;
  --cf-muted: #cdb298;
  font-family: Manrope, 'Noto Sans', sans-serif;
}

.cf-panel {
  margin: 0 0 20px;
  text-align: left;
  padding: 20px 24px;
  background: #251912;
  border: 1px solid #3d2c20;
  border-radius: 16px;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.cf-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.cf-group-cat {
  width: 240px;
}

.cf-group-price {
  width: 260px;
}

.cf-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--cf-muted);
}

.cf-field {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  background: var(--cf-field);
  color: var(--cf-text);
  border: 1px solid var(--cf-line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cf-field:hover {
  border-color: #6b4d35;
}

select.cf-field {
  padding: 0 40px 0 14px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

select.cf-field:focus-visible {
  outline: 2px solid var(--cf-accent);
  outline-offset: 2px;
}

.cf-field option {
  background: var(--cf-field);
  color: var(--cf-text);
}

.cf-select-wrap {
  position: relative;
}

.cf-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--cf-muted);
  pointer-events: none;
}

.cf-price {
  display: flex;
  align-items: center;
}

.cf-price:focus-within {
  border-color: var(--cf-accent);
  box-shadow: 0 0 0 1px var(--cf-accent);
}

.cf-price input {
  flex-grow: 1;
  width: 0;
  height: 100%;
  box-sizing: border-box;
  padding: 0 14px;
  background: transparent;
  border: 0;
  color: var(--cf-text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.cf-price input::placeholder {
  color: #8f7a66;
}

.cf-price-sep {
  width: 1px;
  height: 22px;
  flex-shrink: 0;
  background: var(--cf-line);
}

.cf-toggles {
  display: flex;
  gap: 8px;
}

.cf-toggle {
  position: relative;
  height: 44px;
  box-sizing: border-box;
  padding: 0 16px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cf-field);
  color: #eadccb;
  border: 1px solid var(--cf-line);
  border-radius: 22px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cf-toggle:hover {
  border-color: var(--cf-accent);
}

.cf-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.cf-check {
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1.5px solid #7a6150;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
}

.cf-check svg {
  width: 14px;
  height: 14px;
}

.cf-toggle:has(input:checked) {
  background: rgba(232, 182, 101, 0.14);
  border-color: var(--cf-accent);
  color: #f6d9a6;
}

.cf-toggle:has(input:checked) .cf-check {
  background: var(--cf-accent);
  border-color: var(--cf-accent);
  color: #23150b;
}

.cf-toggle:has(input:focus-visible) {
  outline: 2px solid var(--cf-accent);
  outline-offset: 2px;
}

.cf-submit {
  margin-left: auto;
  height: 44px;
  padding: 0 24px;
  background: var(--cf-accent);
  color: #23150b;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cf-submit:hover {
  background: #f0c67f;
}

.cf-submit:focus-visible {
  outline: 2px solid var(--cf-accent);
  outline-offset: 2px;
}

/* Строка результатов */
.cf-bar {
  min-height: 40px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "count chips sort";
  align-items: center;
  gap: 8px 16px;
}

.cf-toggle-panel {
  display: none;
}

.cf-count {
  grid-area: count;
  text-align: left;
  font-size: 15px;
  color: var(--cf-muted);
  white-space: nowrap;
}

.cf-count strong {
  color: var(--cf-text);
  font-weight: 700;
}

.cf-chips {
  grid-area: chips;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.cf-chip {
  height: 32px;
  box-sizing: border-box;
  padding: 0 8px 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  background: rgba(232, 182, 101, 0.12);
  color: #f6d9a6;
  border: 1px solid rgba(232, 182, 101, 0.45);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s ease;
}

.cf-chip:hover {
  border-color: var(--cf-accent);
}

.cf-chip svg {
  width: 14px;
  height: 14px;
}

.cf-reset {
  height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--cf-accent);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.cf-reset:hover {
  color: #f3cf92;
  background: var(--cf-field);
}

.cf-sort {
  grid-area: sort;
  display: flex;
  align-items: center;
  gap: 16px;
}

.cf-sort-label {
  font-size: 14px;
  color: var(--cf-muted);
  white-space: nowrap;
}

.cf-sort select.cf-field {
  height: 40px;
  padding: 0 38px 0 12px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}

.cf-sort .cf-chevron {
  width: 16px;
  height: 16px;
  right: 12px;
}

.cf-empty {
  margin-bottom: 24px;
  font-size: 15px;
}

/* Планшет: поля переносятся, кнопка — во всю ширину */
@media (max-width: 1100px) {
  .cf-group-cat,
  .cf-group-price {
    flex: 1 1 220px;
    width: auto;
  }

  .cf-submit {
    flex: 1 1 100%;
  }
}

/* Телефон: панель скрыта под кнопкой «Фильтры» */
@media (max-width: 640px) {
  /* Панель встаёт между кнопкой «Фильтры» и чипами */
  .cf-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "toggle sort"
      "panel  panel"
      "chips  chips"
      "count  count";
    gap: 12px 8px;
    margin-bottom: 16px;
  }

  .cf-bar {
    display: contents;
  }

  .cf-panel {
    grid-area: panel;
  }

  .cf-toggle-panel {
    grid-area: toggle;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--cf-field);
    color: var(--cf-text);
    border: 1px solid var(--cf-line);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
  }

  .cf-toggle-panel svg {
    width: 18px;
    height: 18px;
    color: var(--cf-accent);
  }

  .cf-toggle-panel[aria-expanded="true"] {
    border-color: var(--cf-accent);
  }

  .cf-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    box-sizing: border-box;
    border-radius: 10px;
    background: var(--cf-accent);
    color: #23150b;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cf-sort-label {
    display: none;
  }

  .cf-sort select.cf-field {
    height: 44px;
    padding: 0 30px 0 12px;
    background: var(--cf-field);
    font-size: 14px;
    text-overflow: ellipsis;
  }

  .cf-sort .cf-chevron {
    right: 10px;
  }

  .cf-sort,
  .cf-sort .cf-select-wrap {
    min-width: 0;
  }

  .cf-sort .cf-select-wrap {
    flex-grow: 1;
  }

  /* Чипы — в одну прокручиваемую строку */
  .cf-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 0 16px;
  }

  .cf-chips::-webkit-scrollbar {
    display: none;
  }

  .cf-count {
    font-size: 14px;
  }

  .cf-panel {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    margin: 0;
  }

  .cf-panel.open {
    display: flex;
  }

  .cf-group-cat,
  .cf-group-price {
    flex: none;
  }

  .cf-toggles {
    flex-wrap: wrap;
  }

  .cf-toggle {
    flex: 1 1 auto;
    justify-content: center;
  }

  .cf-submit {
    flex: none;
    margin-left: 0;
  }
}

@media (hover: none) and (pointer: coarse) {
  .cf-toggle:hover {
    border-color: var(--cf-line);
  }

  .cf-toggle:has(input:checked):hover {
    border-color: var(--cf-accent);
  }
}

/* ========== КАТАЛОГ: ЖИВОЕ ОБНОВЛЕНИЕ ========== */
.cf-chips[hidden] {
  display: none;
}

.catalog-results {
  transition: opacity 0.15s ease;
}

.catalog-results.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

/* Фильтры применяются сами — на компьютере кнопка не нужна */
@media (min-width: 641px) {
  .cf-panel.is-live .cf-submit {
    display: none;
  }
}

/* ========== НОВОСТИ ВК: СЛАЙДЕР ========== */
.vk-news {
  max-width: 1400px;
  margin: 40px auto 56px;
  padding: 0 40px;
}

.vk-news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  /* 40px по макету минус 4px верхнего отступа ленты (запас под подъём карточки) */
  margin-bottom: 36px;
}

.vk-news-title {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  color: #ffffff;
}

.vk-news-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.vk-news-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #eaaa4c;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.vk-news-all:hover {
  color: #f5c77e;
}

.vk-news-all svg {
  width: 16px;
  height: 16px;
}

.vk-news-all-short {
  display: none;
}

.vk-news-arrows {
  display: flex;
  gap: 8px;
}

.vk-news-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid #4a3527;
  border-radius: 50%;
  background: #1f1511;
  color: #f2e8dc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.vk-news-arrow:hover:not(:disabled) {
  border-color: #eaaa4c;
  color: #eaaa4c;
}

.vk-news-arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

.vk-news-arrow svg {
  width: 20px;
  height: 20px;
}

.vk-news-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 2px 8px 0;
}

.vk-news-track::-webkit-scrollbar {
  display: none;
}

.vk-news-card {
  flex: 0 0 315px;
  max-width: 315px;
  height: 438px;
  scroll-snap-align: start;
  background: #1f1511;
  border: 1px solid #3b2a1f;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.vk-news-card:hover {
  border-color: #4a3527;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.vk-news-media {
  position: relative;
  width: 100%;
  height: 200px;
  flex-shrink: 0;
  overflow: hidden;
  background: #0d0806;
}

.vk-news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.vk-news-card:hover .vk-news-media img {
  transform: scale(1.04);
}

.vk-news-noimg {
  width: 100%;
  height: 100%;
  border-bottom: 1px dashed #4a3527;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0d0806;
  color: #9c8672;
  font-size: 13px;
  font-weight: 600;
}

.vk-news-noimg svg {
  width: 28px;
  height: 28px;
}

.vk-news-new {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  background: #e3141b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
}

.vk-news-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.vk-news-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  line-height: 20px;
  color: #f2e8dc;
}

.vk-news-kicker svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.vk-news-card-title {
  margin-top: 8px;
  font-size: 15px;
  line-height: 21px;
  font-weight: 700;
  color: #f6dca8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vk-news-text {
  margin-top: 8px;
  font-size: 13px;
  line-height: 19px;
  color: #b8a592;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vk-news-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
}

.vk-news-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #eaaa4c;
}

.vk-news-date::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #eaaa4c;
  flex-shrink: 0;
}

.vk-news-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9c8672;
}

.vk-news-stats svg {
  width: 16px;
  height: 16px;
}

.vk-news-read {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  background: #e8b769;
  color: #1a0f0a;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.vk-news-read:hover {
  background: #eaaa4c;
  color: #1a0f0a;
}

.vk-news-read svg {
  width: 14px;
  height: 14px;
}

.vk-news-empty {
  padding: 48px 32px;
  text-align: center;
  background: rgba(42, 28, 15, 0.5);
  border: 1px dashed #3a2a1e;
  border-radius: 14px;
}

.vk-news-empty p {
  font-size: 15px;
  color: #8a7a68;
  margin-bottom: 16px;
}

.vk-news-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #e8b96a, #d4a050);
  color: #1a0f08;
  font-size: 14px;
  font-weight: 600;
  border-radius: 24px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.vk-news-read-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232, 185, 106, 0.3);
}

.vk-news-read-btn svg {
  width: 16px;
  height: 16px;
}

.vk-news-dots {
  display: flex;
  justify-content: center;
  gap: 0;
  /* 24px от карточек по макету: 8px нижнего отступа ленты + 16px */
  margin-top: 16px;
}

.vk-news-dot {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.vk-news-dot::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4a3527;
  transition: width 0.3s ease, background 0.3s ease;
}

.vk-news-dot[aria-current="true"]::after {
  width: 24px;
  background: #eaaa4c;
}

@media (max-width: 768px) {
  .vk-news {
    max-width: none;
    margin: 32px 0 48px;
    padding: 0;
  }

  .vk-news-head {
    padding: 0 20px;
    gap: 12px;
    margin-bottom: 18px;
  }

  .vk-news-title {
    font-size: 26px;
    line-height: 1.2;
  }

  .vk-news-all {
    gap: 6px;
    font-size: 14px;
  }

  .vk-news-all svg {
    width: 14px;
    height: 14px;
  }

  .vk-news-all-long {
    display: none;
  }

  .vk-news-all-short {
    display: inline;
  }

  .vk-news-arrows {
    display: none;
  }

  .vk-news-track {
    gap: 12px;
    padding: 4px 20px 8px;
    scroll-padding-left: 20px;
  }

  .vk-news-card {
    flex: 0 0 270px;
    max-width: 270px;
    height: 420px;
  }

  .vk-news-media {
    height: 180px;
  }

  .vk-news-noimg svg {
    display: none;
  }

  .vk-news-body {
    padding: 14px;
  }

  .vk-news-kicker {
    font-size: 14px;
    line-height: 19px;
  }

  .vk-news-kicker svg {
    display: none;
  }

  .vk-news-card-title,
  .vk-news-text {
    margin-top: 6px;
  }

  .vk-news-meta {
    justify-content: flex-start;
    gap: 6px;
  }

  .vk-news-stats {
    display: none;
  }

  .vk-news-read {
    height: 44px;
  }

  .vk-news-read svg {
    display: none;
  }

  .vk-news-dots {
    display: none;
  }

  .vk-news-empty {
    margin: 0 20px;
    padding: 40px 20px;
  }
}

/* ========== КАРТОЧКА ТОВАРА ========== */
.product-card {
  container: pcard / inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #1E120C;
  border: 1px solid rgba(232, 185, 106, 0.16);
  border-radius: 22px;
  overflow: hidden;
  font-family: Manrope, 'Noto Sans', sans-serif;
  transition: border-color 0.2s ease;
}

.product-card:hover {
  border-color: rgba(232, 185, 106, 0.45);
}

/* Фото на тёплом «свечении» в цвет категории */
.pc-media {
  position: relative;
  /* 6:5 — пропорции большинства фото товаров, они встают без полей */
  aspect-ratio: 6 / 5;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 60%, #4A2A16 0%, #24140E 75%);
}

.pc-cat-drinks .pc-media {
  background: radial-gradient(circle at 50% 60%, #5A1418 0%, #2A1210 75%);
}

.pc-cat-gift .pc-media {
  background: radial-gradient(circle at 50% 60%, #4A3414 0%, #221410 75%);
}

/* Фото видно целиком, без обрезки */
.pc-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pc-img-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(24px) brightness(0.6);
  transform: scale(1.15);
  pointer-events: none;
}

.product-card.is-out .pc-img {
  opacity: 0.55;
}

.pc-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 64px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pc-badge {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
}

.pc-badge-sale {
  background: #D4111A;
  color: #FFFFFF;
}

.pc-badge-new {
  background: #E8B96A;
  color: #1A0F0A;
}

.pc-badge-adult {
  background: #F2E8DC;
  color: #1A0F0A;
}

.product-card .pc-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(22, 10, 3, 0.55);
  color: #F2E8DC;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.product-card .pc-fav svg {
  width: 20px;
  height: 20px;
}

.product-card .pc-fav:hover {
  background: rgba(22, 10, 3, 0.8);
  color: #E8B96A;
}

.product-card .pc-fav:active {
  transform: scale(0.94);
}

.product-card .pc-fav.active {
  color: #FF4B45;
}

.product-card .pc-fav.active svg {
  fill: currentColor;
}

.product-card .pc-fav:focus-visible,
.product-card .add-to-cart-btn:focus-visible,
.product-card .qty-btn:focus-visible {
  outline: 2px solid #E8B96A;
  outline-offset: 2px;
}

.pc-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px 20px;
}

.pc-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #8E7A66;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pc-name {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  color: #F5E6C8;
  overflow-wrap: anywhere;
}

.pc-set {
  margin: -4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  line-height: 1.4;
  color: #B8A58F;
}

.pc-set-empty {
  font-style: italic;
  color: #8E7A66;
}

.pc-stock {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #7FD18B;
}

.pc-stock.low-stock {
  color: #F0A04B;
}

.pc-stock.out-of-stock {
  color: #8E7A66;
}

.pc-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: currentColor;
}

.pc-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pc-price {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
  min-width: 0;
}

.pc-price-now {
  font-family: Unbounded, 'Arial Black', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #F5E6C8;
  white-space: nowrap;
}

.product-card.is-out .pc-price-now {
  color: #8E7A66;
}

.pc-price-old {
  font-size: 14px;
  color: #8E7A66;
  text-decoration: line-through;
  white-space: nowrap;
}

.pc-cta {
  flex-shrink: 0;
}

.product-card .add-to-cart-btn {
  height: 44px;
  box-sizing: border-box;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: #E8B96A;
  color: #1A0F0A;
  font: 800 14px Manrope, 'Noto Sans', sans-serif;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.product-card .add-to-cart-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.product-card .add-to-cart-btn:hover {
  background: #F5CB85;
}

.product-card .add-to-cart-btn:active {
  transform: scale(0.97);
}

/* Степпер в карточке — той же высоты, что и кнопка */
.product-card .qty-stepper {
  height: 44px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 4px;
  gap: 4px;
  justify-content: space-between;
  background: transparent;
  border: 1.5px solid rgba(232, 185, 106, 0.45);
  border-radius: 12px;
}

.product-card .qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: transparent;
  color: #E8B96A;
  font-size: 20px;
  font-weight: 700;
}

.product-card .qty-btn:hover {
  background: rgba(232, 185, 106, 0.14);
}

.product-card .qty-btn:disabled {
  background: transparent;
  color: #5C4A3A;
}

.product-card .qty-value {
  min-width: 24px;
  font-size: 15px;
  font-weight: 800;
  color: #F5E6C8;
  font-variant-numeric: tabular-nums;
}

/* Узкая карточка (две колонки на телефоне): кнопка уходит под цену на всю ширину */
@container pcard (max-width: 260px) {
  .pc-badges {
    top: 10px;
    left: 10px;
    right: 58px;
  }

  .pc-body {
    gap: 8px;
    padding: 14px 14px 14px;
  }

  .pc-meta {
    font-size: 11px;
  }

  .pc-name {
    font-size: 15px;
  }

  .pc-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 2px;
  }

  .pc-price-now {
    font-size: 18px;
  }

  .product-card .add-to-cart-btn,
  .product-card .qty-stepper {
    width: 100%;
  }
}

@media (hover: none) and (pointer: coarse) {
  .product-card:hover {
    border-color: rgba(232, 185, 106, 0.16);
  }

  .product-card .pc-fav:hover {
    background: rgba(22, 10, 3, 0.55);
    color: #F2E8DC;
  }

  .product-card .pc-fav.active:hover {
    color: #FF4B45;
  }

  .product-card .add-to-cart-btn:hover {
    background: #E8B96A;
  }

  .product-card .qty-btn:hover {
    background: transparent;
  }
}

/* ========== ГЛАВНАЯ: ПЕРВЫЙ ЭКРАН ========== */
.main_page_welcome_block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 48px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 72px 40px 64px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.hero-eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E8B96A;
}

.hero-eyebrow-line {
  width: 28px;
  height: 1px;
  flex-shrink: 0;
  background: #E8B96A;
}

.hero-title {
  margin: 0;
  font-family: Unbounded, 'Arial Black', sans-serif;
  font-weight: 800;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #F5E6C8;
  text-wrap: balance;
}

.hero-tag {
  margin: -12px 0 0;
  display: flex;
}

.hero-tag span {
  display: inline-block;
  padding: 10px 22px 12px;
  background: #D4111A;
  color: #FFFFFF;
  font-family: Unbounded, 'Arial Black', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  border-radius: 10px;
  transform: rotate(-2.5deg);
  box-shadow: 0 14px 30px rgba(212, 17, 26, 0.28);
}

.hero-lead {
  margin: 4px 0 0;
  max-width: 500px;
  font-family: Manrope, 'Noto Sans', sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: #CDBBA6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-btn {
  height: 56px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  font-family: Manrope, 'Noto Sans', sans-serif;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.hero-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.hero-btn:active {
  transform: scale(0.97);
}

.hero-btn:focus-visible {
  outline: 2px solid #E8B96A;
  outline-offset: 3px;
}

.hero-btn-primary {
  padding: 0 28px;
  background: #E8B96A;
  color: #1A0F0A;
  font-weight: 800;
}

.hero-btn-primary:hover {
  background: #F5CB85;
  color: #1A0F0A;
}

.hero-btn-primary:hover svg {
  transform: translateX(3px);
}

.hero-btn-ghost {
  padding: 0 26px;
  background: transparent;
  color: #F2E8DC;
  border: 1.5px solid rgba(242, 232, 220, 0.28);
  font-weight: 700;
}

.hero-btn-ghost:hover {
  border-color: #E8B96A;
  color: #E8B96A;
}

.hero-features {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-feature-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(232, 185, 106, 0.12);
  color: #E8B96A;
}

.hero-feature-icon svg {
  width: 20px;
  height: 20px;
}

.hero-feature-text {
  display: flex;
  flex-direction: column;
  font-family: Manrope, 'Noto Sans', sans-serif;
  font-size: 13px;
  line-height: 1.35;
  color: #B8A58F;
}

.hero-feature-text strong {
  font-size: 14px;
  color: #F2E8DC;
}

@media (max-width: 1200px) {
  .hero-title {
    font-size: 52px;
  }

  .hero-tag span {
    font-size: 24px;
  }
}

@media (max-width: 1024px) {
  .main_page_welcome_block {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px 32px;
  }
}

@media (max-width: 640px) {
  .main_page_welcome_block {
    padding: 28px 16px 24px;
  }

  .hero-text {
    gap: 22px;
  }

  .hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .hero-title {
    font-size: clamp(34px, 10vw, 44px);
  }

  .hero-tag {
    margin-top: -8px;
  }

  .hero-tag span {
    padding: 8px 16px 10px;
    font-size: clamp(17px, 5vw, 22px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-btn {
    flex: 1 1 100%;
  }

  .hero-features {
    flex-direction: column;
    gap: 14px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .hero-btn-primary:hover {
    background: #E8B96A;
  }

  .hero-btn-primary:hover svg {
    transform: none;
  }

  .hero-btn-ghost:hover {
    border-color: rgba(242, 232, 220, 0.28);
    color: #F2E8DC;
  }
}

/* ========== ВХОД / РЕГИСТРАЦИЯ / ВОССТАНОВЛЕНИЕ ========== */
/* Форма регистрации высокая — оверлей прокручивается, окно не обрезается */
.am-overlay {
  align-items: flex-start;
  padding: 40px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(12, 6, 2, 0.72);
}

.auth-box.am-box {
  width: 100%;
  max-width: 440px;
  margin: auto;
  padding: 28px 32px 32px;
  box-sizing: border-box;
  background: #1A120D;
  border: 1px solid rgba(233, 185, 106, 0.45);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  font-family: Manrope, 'Noto Sans', sans-serif;
  color: #F4EAD9;
}

.am-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.am-panel[hidden] {
  display: none;
}

.am-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: #E9B96A;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.am-close svg {
  width: 20px;
  height: 20px;
}

.am-close:hover {
  background: rgba(233, 185, 106, 0.12);
  color: #F6D395;
}

.am-box a {
  color: #E9B96A;
}

.am-box a:hover {
  color: #F6D395;
}

.am-box button:focus-visible,
.am-box a:focus-visible,
.am-check input:focus-visible {
  outline: 2px solid #E9B96A;
  outline-offset: 2px;
}

.am-alert {
  margin: 0 56px 20px 0;
  padding: 12px 14px;
  background: rgba(255, 107, 94, 0.1);
  border: 1px solid rgba(255, 107, 94, 0.45);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #FFB4A9;
}

.am-alert[hidden] {
  display: none;
}

.am-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 40px;
}

.am-title {
  margin: 0;
  font-family: Unbounded, Manrope, sans-serif;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.2;
  color: #E9B96A;
}

.am-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #B8A48C;
}

.am-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.am-section,
.am-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.am-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.am-step-num {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(233, 185, 106, 0.12);
  font-family: Unbounded, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #E9B96A;
}

.am-step-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #F4EAD9;
}

.am-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.am-label {
  font-size: 14px;
  font-weight: 600;
  color: #E3D5C0;
}

.am-input {
  width: 100%;
  height: 52px;
  box-sizing: border-box;
  padding: 0 16px;
  background: #241911;
  border: 1px solid #4A3524;
  border-radius: 12px;
  color: #F4EAD9;
  font-family: Manrope, 'Noto Sans', sans-serif;
  font-size: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.am-input::placeholder {
  color: #9E8A72;
}

.am-input:focus {
  outline: none;
  border-color: #E9B96A;
  box-shadow: 0 0 0 3px rgba(233, 185, 106, 0.22);
}

.am-input-phone {
  letter-spacing: 0.02em;
}

.am-input-wrap {
  position: relative;
  display: flex;
}

.am-input-pass {
  padding-right: 56px;
}

.am-input-wrap.is-match .am-input-pass {
  padding-right: 88px;
}

.am-eye {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #B8A48C;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.am-eye:hover {
  color: #E9B96A;
  background: rgba(233, 185, 106, 0.08);
}

.am-eye svg {
  width: 20px;
  height: 20px;
}

.am-eye .am-eye-off,
.am-eye[aria-pressed="true"] .am-eye-on {
  display: none;
}

.am-eye[aria-pressed="true"] .am-eye-off {
  display: block;
}

.am-match {
  position: absolute;
  top: 14px;
  right: 52px;
  width: 24px;
  height: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  color: #8FCB8A;
}

.am-match svg {
  width: 20px;
  height: 20px;
}

.am-input-wrap.is-match .am-match {
  display: flex;
}

.am-hint {
  font-size: 13px;
  line-height: 1.4;
  color: #B8A48C;
}

.am-hint[hidden] {
  display: none;
}

/* Подтверждение ВК */
.am-vk-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background: #221710;
  border: 1px solid #3A2A1E;
  border-radius: 16px;
}

.am-vk-card[hidden],
.am-vk-start[hidden] {
  display: none;
}

.am-vk-intro {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #E3D5C0;
}

.am-vk-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.am-vk-step {
  display: flex;
  gap: 12px;
}

.am-vk-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #E9B96A;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #E9B96A;
}

.am-vk-body {
  flex-grow: 1;
  min-width: 0;
  margin: 0;
  padding-top: 3px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: #F4EAD9;
}

p.am-vk-body {
  display: block;
  line-height: 1.6;
}

.am-box .am-vk-link {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0B63D6;
  color: #FFFFFF;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.am-box .am-vk-link:hover {
  background: #1A73E8;
  color: #FFFFFF;
}

.am-vk-link svg {
  width: 16px;
  height: 16px;
}

.am-vk-url {
  margin-top: -4px;
  font-size: 13px;
  color: #9E8A72;
}

.am-kbd {
  display: inline-block;
  padding: 0 8px;
  background: rgba(233, 185, 106, 0.14);
  border: 1px solid rgba(233, 185, 106, 0.35);
  border-radius: 6px;
  font-weight: 700;
  color: #E9B96A;
}

.am-code {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.am-code-digit {
  width: 100%;
  min-width: 0;
  height: 56px;
  box-sizing: border-box;
  padding: 0;
  text-align: center;
  background: #1A120D;
  border: 1px solid #4A3524;
  border-radius: 12px;
  color: #F4EAD9;
  font-family: Unbounded, sans-serif;
  font-size: 22px;
  font-weight: 500;
  caret-color: #E9B96A;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.am-code-digit:focus {
  outline: none;
  border-color: #E9B96A;
  box-shadow: 0 0 0 3px rgba(233, 185, 106, 0.22);
}

.am-code.is-invalid .am-code-digit {
  border-color: rgba(255, 107, 94, 0.7);
}

.am-field-error {
  margin: -2px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #FF8A7A;
}

.am-field-error[hidden] {
  display: none;
}

.am-vk-done {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px 14px 16px;
  background: rgba(233, 185, 106, 0.08);
  border: 1px solid rgba(233, 185, 106, 0.4);
  border-radius: 16px;
}

.am-vk-done[hidden] {
  display: none;
}

.am-vk-done-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E9B96A;
  border-radius: 999px;
  color: #1A120D;
}

.am-vk-done-icon svg {
  width: 18px;
  height: 18px;
}

.am-vk-done-text {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: #B8A48C;
}

.am-vk-done-text strong {
  font-size: 15px;
  font-weight: 700;
  color: #F4EAD9;
}

.am-link-btn {
  flex-shrink: 0;
  height: 44px;
  padding: 0 12px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #E9B96A;
  font-family: Manrope, 'Noto Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.am-link-btn:hover {
  background: rgba(233, 185, 106, 0.1);
}

.am-vk-start {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.am-note {
  margin: 0;
  padding: 16px;
  background: #221710;
  border-left: 3px solid #E9B96A;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #E3D5C0;
}

/* Согласия */
.am-consents {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: -8px;
}

.am-check {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.am-check input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #E9B96A;
  cursor: pointer;
}

.am-check span {
  font-size: 14px;
  line-height: 1.45;
  color: #E3D5C0;
}

.am-check a {
  text-decoration: none;
}

.am-check a:hover {
  text-decoration: underline;
}

/* Кнопки */
.am-btn {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-family: Manrope, 'Noto Sans', sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.am-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.am-btn-primary {
  height: 56px;
  border: 0;
  border-radius: 14px;
  background: #E9B96A;
  color: #1A120D;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(233, 185, 106, 0.25);
}

.am-btn-primary:hover:not(:disabled) {
  background: #F2C882;
}

.am-btn-primary:disabled {
  background: #3A2A1E;
  color: #A8937A;
  box-shadow: none;
  cursor: not-allowed;
}

.am-btn-outline {
  height: 48px;
  background: transparent;
  border: 1.5px solid #E9B96A;
  color: #E9B96A;
  font-size: 15px;
  font-weight: 700;
}

.am-vk-start .am-btn-outline {
  height: 52px;
}

.am-btn-outline:hover:not(:disabled) {
  background: rgba(233, 185, 106, 0.1);
}

.am-btn-outline:disabled {
  opacity: 0.6;
  cursor: progress;
}

.am-submit {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.am-switch {
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: #B8A48C;
}

.am-switch a {
  font-weight: 700;
  text-decoration: none;
}

.am-switch-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.am-switch-stack p {
  margin: 0;
}

.am-box .am-forgot {
  font-weight: 600;
}

@media (max-width: 480px) {
  .am-overlay {
    padding: 12px 8px;
  }

  .auth-box.am-box {
    padding: 22px 20px 24px;
    border-radius: 20px;
  }

  .am-close {
    top: 10px;
    right: 10px;
  }

  .am-title {
    font-size: 26px;
  }

  .am-panel,
  .am-form {
    gap: 24px;
  }

  .am-vk-card {
    padding: 16px 14px;
  }

  .am-vk-step {
    gap: 10px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .am-close:hover,
  .am-eye:hover,
  .am-link-btn:hover,
  .am-btn-outline:hover:not(:disabled) {
    background: transparent;
  }

  .am-btn-primary:hover:not(:disabled) {
    background: #E9B96A;
  }

  .am-box .am-vk-link:hover {
    background: #0B63D6;
  }
}

/* ========== ШАПКА: ПОИСК ПРЯМО В ШАПКЕ (широкие экраны) ========== */
@media (min-width: 1101px) {
  .search-wrapper {
    flex: 0 1 320px;
    min-width: 200px;
    margin-right: 36px;
  }

  #searchBtn,
  .search-dropdown .search-panel-close,
  .search-dropdown form button[type="submit"] {
    display: none;
  }

  .search-dropdown {
    position: static;
    width: auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .search-field {
    height: 44px;
    box-sizing: border-box;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    background: #221410;
    border: 1px solid rgba(232, 185, 106, 0.18);
    border-radius: 12px;
    color: #B8A58F;
    cursor: text;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }

  .search-field:hover {
    border-color: rgba(232, 185, 106, 0.35);
  }

  .search-field:focus-within {
    border-color: #E8B96A;
    box-shadow: 0 0 0 3px rgba(232, 185, 106, 0.18);
  }

  .search-field-icon {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .search-dropdown .search-field input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #F2E8DC;
    font: 500 14px Manrope, 'Noto Sans', sans-serif;
  }

  .search-dropdown .search-field input::placeholder {
    color: #8E7A66;
  }

  /* Подсказки — выпадающий список под полем */
  .search-suggestions.has-items {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1001;
    padding: 6px;
    background: #1E120C;
    border: 1px solid rgba(232, 185, 106, 0.25);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  }

  .search-suggestions .suggestion-item,
  .search-suggestions .suggestion-empty {
    margin-top: 0;
  }

  .search-suggestions .suggestion-item:hover,
  .search-suggestions .suggestion-item:focus-within {
    background: rgba(232, 185, 106, 0.1);
  }
}

@media (max-width: 1200px) and (min-width: 769px) {
  .nav {
    gap: 28px;
    padding: 0 40px;
  }

  .nav-menu {
    gap: 24px;
  }

  .search-wrapper {
    margin-right: 20px;
  }
}

@media (max-width: 960px) and (min-width: 769px) {
  .nav {
    gap: 18px;
    padding: 0 24px;
  }

  .nav-menu {
    gap: 16px;
  }

  .nav-item {
    font-size: 14px;
  }

  .nav-logo img {
    height: 42px;
  }
}

@media (max-width: 768px) {
  .nav-announce {
    height: 32px;
    gap: 14px;
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .nav {
    gap: 8px;
    justify-content: space-between;
  }

  .nav-icons {
    flex: 0 0 auto;
  }

  .nav-item-sale {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .nav-announce-extra {
    display: none;
  }
}

/* Самые узкие телефоны: логотип чуть меньше, чтобы все иконки поместились */
@media (max-width: 360px) {
  .nav-logo img {
    height: 36px;
  }
}

/* ========== КОРЗИНА → ОФОРМЛЕНИЕ → ГОТОВО ========== */
.co-page {
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 40px 64px 72px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  font-family: Manrope, 'Noto Sans', sans-serif;
  color: #F2E8DC;
}

.co-page a {
  color: #E8B96A;
  text-decoration: none;
}

.co-page a:hover {
  color: #F5D49A;
}

.co-page button:focus-visible,
.co-page a:focus-visible,
.co-page input:focus-visible {
  outline: 2px solid #E8B96A;
  outline-offset: 2px;
}

/* Хлебные крошки и шаги */
.co-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.co-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #B8A58F;
}

.co-page .co-crumbs a {
  color: #B8A58F;
}

.co-page .co-crumbs a:hover {
  color: #E8B96A;
}

.co-crumbs-sep {
  color: #5E4A3A;
}

.co-crumbs-current {
  color: #E8B96A;
}

.co-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
}

.co-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #B8A58F;
  white-space: nowrap;
}

.co-step.is-active {
  color: #F5E6C8;
}

.co-step-num {
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 185, 106, 0.35);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
}

.co-step.is-active .co-step-num,
.co-step.is-done .co-step-num {
  background: #E8B96A;
  border-color: #E8B96A;
  color: #1A0F0A;
}

.co-steps-line {
  width: 40px;
  height: 1px;
  background: rgba(232, 185, 106, 0.3);
}

/* Заголовок */
.co-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.co-title {
  margin: 0;
  font-family: Unbounded, 'Arial Black', sans-serif;
  font-weight: 800;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.035em;
  color: #F5E6C8;
}

.co-count {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E8B96A;
}

/* Раскладка: список + итог справа */
.co-layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.co-main {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Пустая корзина */
.co-empty {
  min-height: 420px;
  box-sizing: border-box;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: #1E120C;
  border: 1px dashed rgba(232, 185, 106, 0.3);
  border-radius: 24px;
  text-align: center;
}

.co-empty-title {
  margin: 0;
  font-family: Unbounded, 'Arial Black', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: #F5E6C8;
}

.co-empty p {
  margin: 0;
  max-width: 420px;
  font-size: 16px;
  line-height: 1.55;
  color: #B8A58F;
}

/* Кнопки */
.co-btn {
  height: 58px;
  box-sizing: border-box;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  font: 800 16px Manrope, 'Noto Sans', sans-serif;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.co-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.co-btn:active:not(:disabled):not(.is-disabled) {
  transform: scale(0.98);
}

.co-page .co-btn-primary {
  background: #E8B96A;
  color: #1A0F0A;
}

.co-page .co-btn-primary:hover {
  background: #F5CB85;
  color: #1A0F0A;
}

.co-page .co-btn-primary:disabled,
.co-page .co-btn-primary.is-disabled {
  background: #3A2A20;
  color: #9A8672;
  cursor: not-allowed;
}

.co-page .co-btn-ghost {
  background: transparent;
  color: #F2E8DC;
  border: 1.5px solid rgba(242, 232, 220, 0.28);
  font-weight: 700;
}

.co-page .co-btn-ghost:hover {
  border-color: #E8B96A;
  color: #E8B96A;
}

.co-link-btn {
  height: 44px;
  padding: 0 16px;
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: #B8A58F;
  font: 700 14px Manrope, 'Noto Sans', sans-serif;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.co-link-btn:hover {
  background: #2B1911;
  color: #FF6B5E;
}

.co-clear {
  margin: 0;
  display: flex;
  padding: 4px 4px 0;
}

/* Позиция корзины */
.ci {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto 140px 44px;
  grid-template-areas: "thumb info qty total remove";
  align-items: center;
  gap: 28px;
  padding: 20px;
  background: #1E120C;
  border: 1px solid rgba(232, 185, 106, 0.16);
  border-radius: 22px;
}

.ci-thumb {
  grid-area: thumb;
  width: 112px;
  height: 112px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 60%, #4A2A16 0%, #1C120C 78%);
}

.ci-thumb img,
.cx-thumb img,
.co-line-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ci-info {
  grid-area: info;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ci-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: #B8A58F;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ci-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ci-name {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  color: #F5E6C8;
  overflow-wrap: anywhere;
}

.co-badge-adult {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 7px;
  background: #F2E8DC;
  color: #1A0F0A;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.ci-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 14px;
  color: #B8A58F;
}

.co-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #7FD18B;
}

.co-stock.is-low {
  color: #F0A04B;
}

.co-stock.is-out {
  color: #FF6B5E;
}

.co-stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.ci-warning {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #FF6B5E;
}

/* Степпер количества */
.ci-qty.qty-stepper {
  grid-area: qty;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #160A03;
  border: 1px solid rgba(232, 185, 106, 0.2);
  border-radius: 14px;
}

.ci-qty form {
  margin: 0;
  display: flex;
}

.ci-qty .ci-qty-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #2B1911;
  color: #F2E8DC;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ci-qty .ci-qty-btn svg {
  width: 16px;
  height: 16px;
}

.ci-qty .ci-qty-btn:hover:not(:disabled) {
  background: #3A2418;
  color: #E8B96A;
}

.ci-qty .ci-qty-btn:disabled {
  background: #2B1911;
  color: #F2E8DC;
  opacity: 0.35;
  cursor: not-allowed;
}

.ci-qty .ci-qty-value {
  width: 44px;
  min-width: 0;
  text-align: center;
  font-family: Unbounded, 'Arial Black', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #F5E6C8;
}

.ci-total {
  grid-area: total;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.ci-line {
  font-family: Unbounded, 'Arial Black', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #F5E6C8;
  white-space: nowrap;
}

.ci-multi {
  font-size: 13px;
  color: #B8A58F;
  white-space: nowrap;
}

.ci-multi[hidden] {
  display: none;
}

.ci-remove-form {
  grid-area: remove;
  margin: 0;
}

.ci-remove {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #B8A58F;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ci-remove svg {
  width: 20px;
  height: 20px;
}

.ci-remove:hover {
  background: #2B1911;
  color: #FF6B5E;
}

/* Плашка 18+ */
.co-adult-note {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: #2A1810;
  border: 1px solid rgba(240, 160, 75, 0.35);
  border-radius: 18px;
}

.co-adult-note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #F2E8DC;
}

.co-adult-note strong {
  color: #F5E6C8;
}

.co-adult-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #F2E8DC;
  color: #1A0F0A;
  font-size: 14px;
  font-weight: 800;
}

.co-adult-confirm {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 22px 24px;
  border-color: rgba(240, 160, 75, 0.4);
  border-radius: 22px;
}

.co-adult-confirm.has-error {
  border-color: #FF6B5E;
}

.co-adult-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.co-check {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 58px;
  font-size: 15px;
  font-weight: 700;
  color: #F5E6C8;
  cursor: pointer;
}

.co-check input,
.co-option input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #E8B96A;
  cursor: pointer;
}

/* «Часто берут вместе» */
.co-extras {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.co-eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E8B96A;
}

.co-eyebrow-line {
  width: 28px;
  height: 1px;
  background: #E8B96A;
}

.co-extras-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cx {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 16px 14px 14px;
  background: #1A0F0A;
  border: 1px solid rgba(232, 185, 106, 0.12);
  border-radius: 18px;
}

.cx-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 14px;
  overflow: hidden;
  background: #24140E;
}

.cx-info {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cx-name {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #F5E6C8;
  overflow-wrap: anywhere;
}

.cx-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cx-price span {
  font-family: Unbounded, 'Arial Black', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #F5E6C8;
}

.cx-price s {
  font-size: 13px;
  color: #B8A58F;
}

.cx-add {
  flex-shrink: 0;
  height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid rgba(242, 232, 220, 0.25);
  border-radius: 12px;
  background: transparent;
  color: #F2E8DC;
  font: 800 14px Manrope, 'Noto Sans', sans-serif;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.cx-add svg {
  width: 16px;
  height: 16px;
}

.cx-add:hover:not(:disabled) {
  border-color: #E8B96A;
  color: #E8B96A;
}

.cx-add:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* Итог справа */
.co-summary {
  position: sticky;
  top: 112px;
  flex-shrink: 0;
  width: 420px;
  box-sizing: border-box;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #1E120C;
  border: 1px solid rgba(232, 185, 106, 0.22);
  border-radius: 24px;
}

.co-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.co-summary-title {
  margin: 0;
  font-family: Unbounded, 'Arial Black', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #F5E6C8;
}

.co-page .co-summary-edit {
  font-size: 14px;
  font-weight: 700;
}

.co-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
}

.co-rows-top {
  padding-top: 18px;
  border-top: 1px solid rgba(232, 185, 106, 0.12);
}

.co-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.co-row > span {
  color: #CDBBA6;
}

.co-row strong {
  font-weight: 700;
  color: #F2E8DC;
  white-space: nowrap;
}

.co-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px dashed rgba(232, 185, 106, 0.35);
}

.co-total > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
  font-weight: 700;
  color: #F2E8DC;
}

.co-total small {
  font-size: 12px;
  font-weight: 600;
  color: #B8A58F;
}

.co-total-value {
  font-family: Unbounded, 'Arial Black', sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #E8B96A;
  white-space: nowrap;
}

.co-summary .co-btn {
  width: 100%;
}

.co-status {
  margin: -6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #CDBBA6;
}

.co-status:empty {
  display: none;
}

.co-status.is-warn::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #F0A04B;
  vertical-align: 1px;
}

.co-status.is-ready {
  color: #7FD18B;
}

.co-perks {
  margin: 0;
  padding: 16px 0 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(232, 185, 106, 0.12);
  font-size: 14px;
  color: #CDBBA6;
}

.co-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.co-perk-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(232, 185, 106, 0.12);
  color: #E8B96A;
}

.co-perk-icon svg {
  width: 16px;
  height: 16px;
}

/* Позиции в итоге оформления */
.co-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.co-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.co-line-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: #24140E;
}

.co-line-info {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.co-line-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #F5E6C8;
  overflow-wrap: anywhere;
}

.co-line-name .co-badge-adult {
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
}

.co-line-sub {
  font-size: 13px;
  color: #B8A58F;
}

.co-line-sum {
  font-size: 15px;
  font-weight: 800;
  color: #F2E8DC;
  white-space: nowrap;
}

/* Форма оформления */
.co-form {
  gap: 20px;
}

.co-fieldset {
  margin: 0;
  min-width: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #1E120C;
  border: 1px solid rgba(232, 185, 106, 0.16);
  border-radius: 22px;
}

.co-legend {
  float: left;
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: Unbounded, 'Arial Black', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: #F5E6C8;
}

.co-legend + * {
  clear: both;
}

.co-legend-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #E8B96A;
}

.co-fieldset-hint {
  margin: -8px 0 0;
  font-size: 14px;
  color: #B8A58F;
}

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

.co-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #CDBBA6;
}

.co-field[hidden] {
  display: none;
}

.co-input {
  width: 100%;
  height: 52px;
  box-sizing: border-box;
  padding: 0 16px;
  background: #160A03;
  border: 1px solid rgba(232, 185, 106, 0.2);
  border-radius: 12px;
  color: #F2E8DC;
  font: 600 16px Manrope, 'Noto Sans', sans-serif;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.co-input::placeholder {
  color: #8E7A66;
}

.co-input:focus {
  outline: none;
  border-color: #E8B96A;
  box-shadow: 0 0 0 3px rgba(232, 185, 106, 0.18);
}

/* Поля из профиля — только для чтения */
.co-input-lock {
  position: relative;
  display: flex;
}

.co-input-lock .co-input {
  padding-right: 44px;
  background: #1A0F0A;
  border-style: dashed;
  color: #F5E6C8;
  cursor: default;
}

.co-input-lock .co-input:focus {
  border-color: rgba(232, 185, 106, 0.45);
  box-shadow: none;
}

.co-input-lock svg {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  color: #8E7A66;
  pointer-events: none;
}

.co-input-prefix {
  position: relative;
  display: flex;
  align-items: center;
}

.co-input-prefix > span {
  position: absolute;
  left: 16px;
  font: 700 16px Manrope, 'Noto Sans', sans-serif;
  color: #8E7A66;
  pointer-events: none;
}

.co-input-prefix .co-input {
  padding-left: 34px;
}

.co-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.co-option {
  min-height: 64px;
  box-sizing: border-box;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #160A03;
  border: 1.5px solid rgba(232, 185, 106, 0.2);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  color: #F2E8DC;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.co-option:hover {
  border-color: rgba(232, 185, 106, 0.45);
}

.co-option:has(input:checked) {
  background: rgba(232, 185, 106, 0.08);
  border-color: #E8B96A;
}

.co-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.co-option-text span {
  font-size: 12px;
  font-weight: 600;
  color: #B8A58F;
}

.co-pay {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: rgba(232, 185, 106, 0.08);
  border: 1.5px solid #E8B96A;
  border-radius: 14px;
}

.co-pay-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #E8B96A;
  color: #1A0F0A;
}

.co-pay-icon svg {
  width: 22px;
  height: 22px;
}

.co-pay-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 16px;
  font-weight: 800;
  color: #F5E6C8;
}

.co-pay-text span {
  font-size: 14px;
  font-weight: 600;
  color: #CDBBA6;
}

/* Заказ принят */
.co-done {
  align-self: center;
  width: 100%;
  max-width: 720px;
  box-sizing: border-box;
  margin-top: 24px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #1E120C;
  border: 1px solid rgba(232, 185, 106, 0.22);
  border-radius: 28px;
  text-align: center;
}

.co-done-icon {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #E8B96A;
  color: #1A0F0A;
}

.co-done-icon svg {
  width: 40px;
  height: 40px;
}

.co-done-title {
  margin: 0;
  font-family: Unbounded, 'Arial Black', sans-serif;
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -0.035em;
  color: #F5E6C8;
}

.co-done-text {
  margin: 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.55;
  color: #CDBBA6;
}

.co-done-sum {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px dashed rgba(232, 185, 106, 0.35);
  border-radius: 18px;
  font-size: 15px;
  color: #CDBBA6;
  text-align: left;
}

.co-done-total {
  font-family: Unbounded, 'Arial Black', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: #E8B96A;
  white-space: nowrap;
}

.co-done-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.co-done-actions .co-btn {
  height: 56px;
  padding: 0 28px;
}

/* Адаптив */
@media (max-width: 1200px) {
  .co-page {
    padding: 32px 40px 64px;
  }

  .co-summary {
    width: 360px;
  }

  .ci {
    grid-template-columns: 96px minmax(0, 1fr) auto 44px;
    grid-template-areas:
      "thumb info info remove"
      "thumb qty total total";
    gap: 16px 20px;
  }

  .ci-thumb {
    width: 96px;
    height: 96px;
  }

  .ci-qty.qty-stepper {
    justify-self: start;
  }
}

@media (max-width: 1024px) {
  .co-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .co-summary {
    position: static;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .co-page {
    padding: 24px 16px 48px;
    gap: 24px;
  }

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

  .co-steps {
    gap: 8px;
    font-size: 13px;
  }

  .co-steps-line {
    width: 16px;
  }

  .co-title {
    font-size: 34px;
  }

  .co-count {
    font-size: 12px;
  }

  .ci {
    grid-template-columns: 80px minmax(0, 1fr) 44px;
    grid-template-areas:
      "thumb info remove"
      "qty qty total";
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
  }

  .ci-thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
  }

  .ci-name {
    font-size: 16px;
  }

  .ci-line {
    font-size: 19px;
  }

  .co-adult-note {
    align-items: flex-start;
    padding: 16px;
  }

  .co-adult-row {
    align-items: flex-start;
  }

  .co-check {
    padding-left: 0;
  }

  .co-extras-grid,
  .co-grid-2,
  .co-options {
    grid-template-columns: 1fr;
  }

  .cx {
    flex-wrap: wrap;
  }

  .cx-add {
    margin-left: auto;
  }

  .co-fieldset {
    padding: 20px 16px;
  }

  .co-legend {
    font-size: 18px;
  }

  .co-summary {
    padding: 22px 18px;
  }

  .co-total-value {
    font-size: 30px;
  }

  .co-done {
    margin-top: 0;
    padding: 32px 20px;
  }

  .co-done-title {
    font-size: 32px;
  }

  .co-done-sum {
    flex-direction: column;
    align-items: flex-start;
  }

  .co-done-actions .co-btn {
    flex: 1 1 100%;
  }
}

@media (hover: none) and (pointer: coarse) {
  .co-page .co-btn-primary:hover {
    background: #E8B96A;
  }

  .co-page .co-btn-ghost:hover {
    border-color: rgba(242, 232, 220, 0.28);
    color: #F2E8DC;
  }

  .ci-qty .ci-qty-btn:hover:not(:disabled) {
    background: #2B1911;
    color: #F2E8DC;
  }

  .ci-remove:hover,
  .co-link-btn:hover {
    background: transparent;
  }
}

/* ========== Вкусики (бонусы) и гостевое оформление ========== */
.co-check-plain {
  padding-left: 0;
  font-size: 14px;
  font-weight: 600;
}

.co-check-plain a {
  color: #E8B96A;
}

.co-form-error {
  margin: 0;
}

.co-bonus {
  margin-top: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #160A03;
  border: 1.5px solid rgba(232, 185, 106, 0.2);
  border-radius: 14px;
}

.co-bonus-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}

.co-bonus-title {
  font-family: Unbounded, 'Arial Black', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #F5E6C8;
}

.co-bonus-balance {
  font-size: 14px;
  color: #CDBBA6;
}

.co-bonus-balance strong {
  color: #E8B96A;
}

.co-bonus-hint,
.co-bonus-earn,
.co-done-bonus {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #B8A58F;
}

.co-bonus-earn {
  color: #E8B96A;
}

.co-bonus-earn a {
  color: inherit;
  text-decoration: underline;
}

.co-row-bonus strong {
  color: #7FD18B;
}

.co-done-bonus {
  max-width: 520px;
  font-size: 14px;
}

.pf-stat-wide {
  grid-column: 1 / -1;
}

.pf-stat-hint {
  font-size: 12px;
  line-height: 1.4;
  color: var(--pf-muted);
}

.pf-order-bonus {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  font-size: 13px;
  color: var(--pf-muted);
}
