/* OpenCart-компоненты под дизайн «Особый выбор» */

body {
  padding-top: 0;
  background: var(--paper);
}

#menu {
  float: none;
  margin: 0;
  border: 0;
  background: transparent;
  min-height: 0;
}

#menu .navbar-collapse {
  padding: 0;
  border: 0;
}

#menu .navbar-nav {
  float: none;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

#menu .navbar-nav > li {
  float: none;
}

#menu .navbar-nav > li > a {
  padding: 8px 10px;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: transparent;
}

#menu .navbar-nav > li > a:hover,
#menu .navbar-nav > li.open > a {
  color: var(--wine);
  background: transparent;
}

#menu .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow-lift);
  background: var(--paper);
  padding: 8px;
}

#menu .dropdown-menu a {
  font-size: 12px;
  padding: 7px 10px;
  color: var(--ink-2);
}

#menu .dropdown-menu a:hover {
  color: var(--wine);
  background: var(--paper-2);
}

.os-menu {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 6px var(--pad) 10px calc(var(--pad) + 34px);
  border-top: 1px solid var(--line-soft);
}

#menu {
  float: none;
  margin: 0;
  border: 0;
  background: transparent;
  min-height: 0;
}

#menu .navbar-header {
  display: none;
}

#menu .navbar-collapse {
  padding: 0;
  border: 0;
}

#menu .navbar-nav {
  float: none;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

#menu .navbar-nav > li {
  float: none;
}

#menu .navbar-nav > li > a {
  padding: 6px 9px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: transparent;
}

#menu .navbar-nav > li > a:hover,
#menu .navbar-nav > li.open > a {
  color: var(--wine);
  background: transparent;
}

#menu .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow-lift);
  background: var(--paper);
  padding: 8px;
}

#menu .dropdown-menu a {
  font-size: 12px;
  padding: 7px 10px;
  color: var(--ink-2);
}

#menu .dropdown-menu a:hover {
  color: var(--wine);
  background: var(--paper-2);
}

/* Мобильное меню */
.pdp__options {
  margin: 20px 0 16px;
}

.pdp__option-title {
  display: block;
  margin-bottom: 7px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.pdp__radios {
  border-top: 1px solid var(--line);
}

.pdp__radio {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}

.pdp__radio:hover {
  background: rgba(109, 31, 44, 0.04);
}

.pdp__radio:has(input:checked) {
  background: rgba(109, 31, 44, 0.08);
}

.pdp__radio input {
  accent-color: var(--wine);
  flex: 0 0 auto;
}

.pdp__radio small {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.pdp__options label {
  display: flex;
  margin-bottom: 0;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.pdp__select {
  width: 100%;
  max-width: 420px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 12px;
  background: transparent;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
}

.pdp__qty {
  display: inline-flex;
  align-items: center;
  height: 48px;
  border: 1px solid var(--line);
  margin: 8px 0 14px;
}

.pdp__qty button {
  width: 38px;
  height: 46px;
  color: var(--muted);
  font-size: 16px;
}

.pdp__qty input {
  width: 58px;
  height: 46px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  background: transparent;
}

.pdp__buy .btn {
  width: 100%;
  max-width: 320px;
}

.pdp__desc {
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.pdp__desc .nav-tabs {
  border-bottom-color: var(--line);
}

.pdp__desc .nav-tabs > li > a {
  border: 0;
  border-bottom: 2px solid transparent;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-radius: 0;
}

.pdp__desc .nav-tabs > li.active > a,
.pdp__desc .nav-tabs > li.active > a:hover {
  border: 0;
  border-bottom-color: var(--wine);
  background: transparent;
  color: var(--ink);
}

.pdp__desc .tab-content {
  padding-top: 24px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
}

.pdp__desc .tab-content img {
  max-width: 100%;
  height: auto;
}

/* Информационные страницы */
#information-information {
  padding-bottom: 70px;
}

#information-information h1 {
  margin: 20px 0 26px;
  font-size: clamp(36px, 4vw, 58px);
}

#information-information .breadcrumb {
  margin-top: 26px;
}

.info-page__lead {
  max-width: 760px;
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0 30px;
}

.info-card {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--card);
}

.info-card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.info-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

@media (max-width: 900px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* Корзина */
.cart-page {
  padding: 42px 0 90px;
}

.cart-list {
  border-top: 1px solid var(--line);
}

.cart-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 190px 140px;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}

.cart-row__media {
  display: block;
  width: 100px;
  height: 130px;
  overflow: hidden;
  background: var(--paper-2);
}

.cart-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-row__name {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.2;
  color: var(--ink);
}

.cart-row__name:hover {
  color: var(--wine);
}

.cart-row__model,
.cart-row__option {
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
}

.cart-row__stock {
  margin-top: 6px;
  font-size: 11px;
  color: var(--wine);
}

.cart-row__qty label {
  display: block;
  margin-bottom: 6px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
}

.cart-qty input {
  width: 48px;
  height: 36px;
  border: 0;
  text-align: center;
  background: transparent;
  font-size: 12px;
}

.cart-qty button {
  width: 34px;
  height: 36px;
  border-left: 1px solid var(--line);
  color: var(--muted);
}

.cart-qty button:hover {
  color: var(--wine);
}

.cart-row__remove {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  color: var(--muted);
  text-decoration: underline;
}

.cart-row__remove:hover {
  color: var(--wine);
}

.cart-row__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.cart-row__price b {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}

.cart-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-top: 30px;
}

.cart-bottom__left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 460px;
}

.cart-modules .panel-group {
  margin: 0;
}

.cart-summary {
  width: min(100%, 380px);
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--card);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 0;
  font-size: 12px;
  color: var(--muted);
}

.cart-summary__row b {
  color: var(--ink);
}

.cart-summary__row--total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.cart-summary__row--total b {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.cart-summary__checkout {
  width: 100%;
  margin-top: 18px;
}

.cart-summary__checkout span {
  width: 100%;
  text-align: center;
}

@media (max-width: 900px) {
  .cart-row {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 16px;
  }

  .cart-row__media {
    width: 80px;
    height: 104px;
  }

  .cart-row__qty,
  .cart-row__price {
    grid-column: 2;
    align-items: flex-start;
  }

  .cart-bottom {
    flex-direction: column;
  }

  .cart-summary {
    width: 100%;
  }
}

/* Оформление заказа */
#checkout-checkout {
  padding: 38px 0 90px;
}

#checkout-checkout h1 {
  margin-bottom: 28px;
  font-size: clamp(36px, 4vw, 54px);
}

#checkout-checkout .panel {
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 10px;
  background: transparent;
}

#checkout-checkout .panel-heading {
  padding: 16px 18px;
  border: 0;
  background: var(--paper-2);
}

#checkout-checkout .panel-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#checkout-checkout .panel-title a {
  color: var(--ink);
}

#checkout-checkout .panel-body {
  padding: 22px 18px;
}

#checkout-checkout .form-control {
  border-radius: 0;
  border-color: var(--line);
  box-shadow: none;
  font-size: 13px;
}

#checkout-checkout .btn-primary {
  border-radius: 0;
}

#checkout-checkout .table {
  font-size: 12px;
}

#checkout-checkout .table > thead > tr > td {
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.theme-mobile {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: var(--paper);
  padding: 22px var(--pad) 36px;
  overflow-y: auto;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0.45s;
}

.theme-mobile.is-open {
  transform: none;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

.theme-mobile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.theme-mobile__search {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.theme-mobile__search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  border: 0;
  background: transparent;
  font-size: 13px;
  outline: none;
}

.theme-mobile__search button {
  flex: 0 0 38px;
  height: 42px;
  color: var(--muted);
  font-size: 14px;
}

.theme-mobile__search button:hover {
  color: var(--wine);
}

.theme-mobile__nav {
  display: grid;
  border-top: 1px solid var(--line);
}

.theme-mobile__nav a {
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
}

.theme-mobile__meta {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  font-size: 13px;
  line-height: 1.65;
}

.theme-mobile__meta b {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.drawer__close {
  font-size: 22px;
  color: var(--ink);
}

.os-search {
  width: 190px;
}

.os-search #search {
  margin: 0;
}

.os-search #search input {
  height: 38px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  box-shadow: none;
}

.os-search #search .btn {
  height: 38px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}

.os-search #search .btn:hover {
  color: var(--wine);
}

.os-cart #cart {
  margin: 0;
}

.os-cart #cart > .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: none;
}

.os-cart #cart > .btn:hover,
.os-cart #cart.open > .btn {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--paper);
}

.os-cart #cart .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  box-shadow: var(--shadow-lift);
}

.os-cart #cart .dropdown-menu {
  display: none !important;
}

.header__account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--ink-2);
}

.header__account:hover {
  color: var(--wine);
}

.topbar__ui {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar__ui form {
  margin: 0;
}

.topbar__ui .btn-link {
  padding: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  text-decoration: none;
}

.topbar__ui .btn-link:hover {
  color: var(--wine);
}

.topbar__ui .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
}

.topbar__ui img {
  width: 16px;
  height: 11px;
  object-fit: cover;
}

/* Карточки товаров OpenCart */
.product-thumb {
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background: var(--card);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-thumb .caption {
  flex: 1;
}

.product-thumb .caption p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
}

.home-modules {
  padding: 64px 0 20px;
}

.home-modules h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  margin: 0 0 24px;
}

#featured .shell > h3 {
  display: none;
}

.slideshow,
.carousel {
  display: none;
}

.product-thumb:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.product-thumb .image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
}

.product-thumb .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumb .caption {
  padding: 16px 16px 12px;
}

.product-thumb .caption h4 {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  min-height: 34px;
}

.product-thumb .caption h4 a {
  color: var(--ink);
}

.product-thumb .caption p {
  font-size: 11px;
  color: var(--muted);
}

.product-thumb .price {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
}

.product-thumb .button-group {
  border-top: 1px solid var(--line-soft);
  background: transparent;
}

.product-thumb .button-group button {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line-soft);
}

.product-thumb .button-group button:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Заголовки и контент */
#content h1,
#content h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
}

#content h1 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 22px 0 10px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breadcrumb > li + li:before {
  content: "/";
  color: var(--line);
}

.btn-primary,
.btn {
  border-radius: 0;
}

.btn,
.btn:hover,
.btn:focus,
.btn:active,
.btn:visited,
a.btn {
  text-decoration: none !important;
}

.btn:focus,
.btn:active {
  color: inherit;
}

button:focus,
button:active,
input[type="button"]:focus,
input[type="submit"]:focus,
input[type="button"]:active,
input[type="submit"]:active {
  text-decoration: none;
}

.btn-primary {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--paper);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
a.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  text-decoration: none !important;
}

.pagination > li > a,
.pagination > li > span {
  border-color: var(--line);
  color: var(--ink-2);
  border-radius: 0 !important;
}

.pagination > .active > a,
.pagination > .active > span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

footer.footer {
  margin-top: 0;
}

.os-mainnav {
  position: relative;
  border: 0;
  background: transparent;
  min-height: 0;
}

.os-mainnav__list {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.os-mainnav__catalog {
  position: static;
}

.os-mainnav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.os-mainnav__link:hover {
  color: var(--wine);
}

.os-mainnav__catalog {
  padding: 0;
}

.os-catalog-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: auto;
  transform: none;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  padding: 24px 26px 26px;
  display: none;
  z-index: 130;
}

.os-mainnav__catalog.is-open .os-catalog-panel,
.os-mainnav__catalog:hover .os-catalog-panel {
  display: block;
}

.os-catalog-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.os-catalog-panel__head a {
  color: var(--wine);
}

.os-catalog-panel__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 24px;
  max-height: 58vh;
  overflow: auto;
}

.os-catalog-panel__grid a {
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}

.os-catalog-panel__grid a:hover {
  color: var(--wine);
}

@media (max-width: 900px) {
  .os-mainnav {
    display: none;
  }
}

.catalog__main {
  min-width: 0;
}

.filters__price-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filters__price-row input {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0 8px;
  font-size: 12px;
}

.filters__price-row span {
  flex: 0 0 auto;
  color: var(--muted);
}

.filters__check {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0;
  font-size: 11px;
  color: var(--ink-2);
  cursor: pointer;
}

.filters__check input {
  accent-color: var(--wine);
}

.filters__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filters__actions .btn {
  height: 34px;
  padding: 0 14px;
  font-size: 8px;
}

.filters__search {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.filters__search input {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 0;
  background: transparent;
  font-size: 12px;
  outline: none;
}

.filters__search button {
  width: 30px;
  height: 38px;
  color: var(--muted);
}

.filters__search button:hover {
  color: var(--wine);
}

.prod-card__buy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.prod-card__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

.prod-card__qty button {
  width: 28px;
  height: 34px;
  color: var(--muted);
  font-size: 14px;
}

.prod-card__qty button:hover {
  color: var(--wine);
}

.prod-card__qty input {
  width: 40px;
  height: 34px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: transparent;
  text-align: center;
  font-size: 11px;
}

.prod-card__buy .prod-card__add {
  position: static;
  width: auto;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prod-card__buy .prod-card__add:hover {
  background: var(--wine);
  border-color: var(--wine);
}

.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 130;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 520px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.cookie-banner.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-banner p {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted);
}

.cookie-banner a {
  color: var(--wine);
  text-decoration: underline;
}

.cookie-banner button {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cookie-banner button:hover {
  background: var(--wine);
}

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 140;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s, color 0.2s;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--paper);
}

.scroll-top svg {
  width: 17px;
  height: 17px;
}

.fly-to-cart {
  position: fixed;
  z-index: 400;
  object-fit: cover;
  pointer-events: none;
  border-radius: 2px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1), opacity 0.8s ease;
}

#cart.cart-bump > .btn {
  animation: cartBump 0.45s ease;
}

.header-cart.cart-bump,
.mobile-cart.cart-bump {
  animation: cartBump 0.45s ease;
}

@keyframes cartBump {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.12); background: var(--wine); border-color: var(--wine); }
  70% { transform: scale(0.97); }
}

.search-page__form {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.search-page__main {
  display: flex;
  flex: 1 1 360px;
  min-width: 0;
}

.search-page__main input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-right: 0;
  background: transparent;
  font-size: 13px;
  outline: none;
}

.search-page__main input:focus {
  border-color: var(--wine);
}

.search-page__main .btn {
  height: 44px;
  flex: 0 0 auto;
}

.search-page__filters {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.search-page__check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}

.search-page__check input {
  accent-color: var(--wine);
}

.catalog--search .catalog__count {
  margin: 0;
}

.catalog--search .prod-card__meta {
  min-height: 0;
}

.legacy-product {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding-block: 20px 60px;
}

.legacy-product__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.legacy-product__note {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

.legacy-product__desc {
  max-width: 660px;
  margin-bottom: 20px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
}

.legacy-product__cats {
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--muted);
}

.legacy-product__cats a {
  color: var(--wine);
}

@media (max-width: 900px) {
  .legacy-product {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .legacy-product__media img {
    max-width: 320px;
  }
}

.error-page {
  padding-block: 10px 80px;
}

.error-page__body {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.error-page__code {
  font-family: var(--serif);
  font-size: clamp(90px, 14vw, 170px);
  line-height: 0.8;
  color: var(--wine);
  opacity: 0.35;
}

.error-page__lead {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: 16px;
  color: var(--ink-2);
}

.error-page__search {
  display: flex;
  max-width: 560px;
  margin-bottom: 20px;
}

.error-page__search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-right: 0;
  background: transparent;
  font-size: 13px;
}

.error-page__search .btn {
  flex: 0 0 auto;
  height: 44px;
}

.error-page__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .error-page__body {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .error-page__code {
    font-size: 96px;
  }

  .error-page__search {
    flex-direction: column;
    gap: 8px;
  }

  .error-page__search input {
    border-right: 1px solid var(--line);
  }
}

.success-page {
  padding-block: 10px 80px;
}

.success-page__box {
  max-width: 760px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.success-page__lead {
  margin-bottom: 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}

.success-page__lead a {
  color: var(--wine);
  text-decoration: underline;
}

.success-page__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.success-page__note {
  font-size: 11px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .success-page__box {
    padding: 20px 16px;
  }
}

.theme-subcats {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.theme-subcats__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.theme-subcats__list a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-2);
}

.theme-subcats__list a:hover {
  border-color: var(--wine);
  color: var(--wine);
}

.theme-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.theme-select select {
  border: 1px solid var(--line);
  background: transparent;
  padding: 7px 8px;
  font-size: 11px;
  color: var(--ink);
  max-width: 180px;
}

.prod-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.prod-card__actions button {
  color: var(--muted);
  font-size: 13px;
}

.prod-card__actions button:hover {
  color: var(--wine);
}

.prod-card__bottom s {
  font-size: 12px;
  color: var(--muted);
  margin-left: 6px;
}

.theme-pagination {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.theme-pagination .pagination {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.theme-pagination .pagination a,
.theme-pagination .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  font-size: 11px;
}

.theme-pagination .pagination .active a,
.theme-pagination .pagination .active span {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.filters__list--catalog {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.filters__tree {
  max-height: 62vh;
  overflow-y: auto;
  padding-right: 6px;
}

.filters__list--colors {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 8px;
}

.filters__group + .filters__group {
  margin-top: 14px;
}

.filters__group-title {
  margin: 0 0 4px;
  padding: 12px 0 6px;
  border-top: 1px solid var(--line-soft);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.filters__list--nested {
  gap: 0;
}

.filters__node {
  list-style: none;
}

.filters__row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.filters__row .filters__item {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
}

.filters__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-left: 2px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--wine);
  font-size: 13px;
  transition: transform 0.25s var(--ease), color 0.2s, background 0.2s;
}

.filters__toggle:hover {
  color: var(--wine);
}

.filters__toggle.is-open i {
  transform: rotate(180deg);
}

.filters__toggle i {
  transition: transform 0.25s var(--ease);
}

.filters__submenu {
  margin-left: 9px;
  padding-left: 8px;
  border-left: 1px solid var(--line-soft);
}

.filters__submenu[hidden] {
  display: none !important;
}

.filters__item.is-active {
  background: rgba(109, 31, 44, 0.09);
  color: var(--wine);
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 2px;
}

.filters__item.is-active small {
  color: var(--wine);
}

.filters__item.is-active:hover {
  padding-left: 8px;
}

.catalog__active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
  font-size: 11px;
  color: var(--muted);
}

.catalog__active-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 8px;
}

.catalog__active-filter {
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-2);
}

.catalog__active-reset {
  margin-left: auto;
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-featured__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .home-featured__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.catalog__results {
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

@media (max-width: 1180px) {
  .os-search {
    display: none;
  }
}

@media (max-width: 900px) {
  .os-menu {
    display: none;
  }

  .header__phone {
    display: none;
  }

  .os-cart #cart > .btn {
    padding: 0 10px;
  }
}

/* Меню в одну строку с логотипом, как в исходном макете */
header.header .header__in {
  align-items: center;
}

.os-menu {
  flex: 0 0 auto;
  margin: 0 14px;
  padding: 0;
  border: 0;
}

.os-mainnav {
  position: static;
}

.os-mainnav__catalog {
  position: static;
}

.os-mainnav__list {
  gap: 18px;
}

.os-mainnav__link {
  font-size: 12px;
  white-space: nowrap;
}

.os-catalog-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  right: auto;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  padding: 0;
  display: none;
  z-index: 140;
}

.os-mainnav__catalog.is-open .os-catalog-panel,
.os-mainnav__catalog:hover .os-catalog-panel {
  display: block;
}

.os-catalog-panel__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 28px var(--pad) 26px;
}

.os-catalog-panel__groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.os-catalog-panel__group h4 {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
}

.os-catalog-panel__group a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}

.os-catalog-panel__group a:hover {
  color: var(--wine);
}

.os-catalog-panel__promo {
  position: relative;
  display: block;
  min-height: 320px;
  overflow: hidden;
  background: var(--ink);
}

.os-catalog-panel__promo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.6s var(--ease);
}

.os-catalog-panel__promo:hover img {
  transform: scale(1.04);
}

.os-catalog-panel__promo-text {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--paper);
}

.os-catalog-panel__promo-text b {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}

.os-catalog-panel__promo-text small {
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
}

.os-catalog-panel__foot {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px var(--pad) 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.os-catalog-panel__foot a {
  color: var(--ink-2);
}

.os-catalog-panel__foot a:hover {
  color: var(--wine);
}

@media (max-width: 1180px) {
  .os-catalog-panel__body {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 24px;
    padding: 24px;
  }

  .os-catalog-panel__groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .header__phone {
    display: none;
  }
}

a:focus,
a:active,
a:visited {
  text-decoration: none;
}

header a:focus,
header a:active,
.mega a:focus,
.mega a:active,
.theme-mobile a:focus,
.theme-mobile a:active {
  color: inherit;
  text-decoration: none;
}

.os-mainnav a:focus,
.os-mainnav a:active,
.os-mainnav__link:focus,
.os-mainnav__link:active {
  color: var(--ink);
  text-decoration: none;
}

.mobile-menu-text {
  display: none;
}

.mobile-cart {
  display: none;
}

@media (max-width: 900px) {
  body {
    overflow-x: hidden;
  }

  .mobile-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 145;
    width: 54px;
    height: 54px;
    border: 1px solid var(--wine);
    border-radius: 50%;
    background: var(--wine);
    color: var(--paper);
    box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.55);
  }

  .mobile-cart i {
    font-size: 20px;
  }

  .mobile-cart span {
    position: absolute;
    top: -3px;
    right: -3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 1px solid var(--wine);
    border-radius: 10px;
    background: var(--paper);
    color: var(--wine);
    font-family: var(--sans);
    font-size: 9px;
    line-height: 1;
  }

  .mobile-cart span:empty {
    display: none;
  }

  .scroll-top {
    right: 18px;
    bottom: 88px;
  }

  .shell {
    width: 100%;
    padding-inline: 16px;
  }

  .header__in {
    gap: 8px;
  }

  .os-cart #cart > .btn {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 0;
  }

  .os-cart #cart > .btn i {
    margin: 0;
    font-size: 16px;
  }

  .os-cart #cart-total {
    display: none;
  }

  .os-cart {
    display: none;
  }

  .header__account {
    display: none;
  }

  .burger {
    display: none;
  }

  .mobile-menu-text {
    display: inline-flex;
    position: fixed;
    top: 68px;
    right: 16px;
    z-index: 251;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 18px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--sans);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .burger span,
  .burger span::before,
  .burger span::after {
    height: 2px;
    background: var(--paper);
  }

  .filters {
    display: block;
  }

  #checkout-checkout.container {
    width: 100% !important;
    max-width: 100%;
    padding-inline: 16px;
  }

  #checkout-checkout h1 {
    font-size: clamp(30px, 9vw, 48px);
    line-height: 1.06;
    overflow-wrap: anywhere;
    margin-top: 16px;
  }

  #checkout-checkout .panel-group {
    margin-bottom: 18px;
  }

  #checkout-checkout .panel-heading {
    padding: 14px 16px;
  }

  #checkout-checkout .panel-body {
    padding: 16px;
  }

  #checkout-checkout .btn {
    max-width: 100%;
    white-space: normal;
  }

  .search-page__form {
    display: block;
  }

  .search-page__main {
    width: 100%;
  }

  .search-page__filters {
    margin-top: 14px;
  }

  .search-page__filters .theme-select {
    width: 100%;
  }

  .hero__lead,
  .page-hero__lead {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .catalog__tools {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }

  .catalog__tools .theme-select {
    width: 100%;
  }
  .page-hero {
    padding-block: 34px 28px;
  }

  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(30px, 9vw, 54px);
    line-height: 1.06;
    overflow-wrap: anywhere;
  }

  .page-hero__lead {
    font-size: 14px;
  }

  .catalog__layout {
    display: block;
  }

  .filters {
    position: static;
    margin-bottom: 22px;
  }

  .filters__tree {
    max-height: 240px;
  }

  .catalog__toolbar {
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
  }

  .catalog__tools {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .catalog__tools .theme-select {
    width: 100%;
  }

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

  .prod-card__name {
    font-size: 13px;
    line-height: 1.3;
  }

  .prod-card__meta {
    display: none;
  }

  .prod-card__buy {
    flex-wrap: wrap;
  }

  .prod-card__qty {
    flex: 1 1 100px;
  }

  .prod-card__buy .prod-card__add {
    flex: 1 1 auto;
    min-width: 0;
  }

  .theme-subcats__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .scroll-top {
    right: 18px;
    bottom: 88px;
  }
}

@media (max-width: 480px) {
  .prod-card__qty input {
    width: 30px;
  }

  .prod-card__qty button {
    width: 23px;
  }

  .prod-card__buy .prod-card__add {
    padding-inline: 6px;
  }

  .prod-card__buy .prod-card__add span {
    font-size: 8px;
  }
}

@media (max-width: 900px) {
  .cart-row {
    grid-template-columns: 80px minmax(0, 1fr) 94px;
    grid-template-areas:
      "media body price"
      "media qty price";
    gap: 10px 12px;
    align-items: start;
    padding: 18px 0;
  }

  .cart-row__media {
    grid-area: media;
    width: 80px;
    height: 104px;
  }

  .cart-row__body {
    grid-area: body;
    min-width: 0;
  }

  .cart-row__name {
    font-size: 17px;
    line-height: 1.25;
  }

  .cart-row__qty {
    grid-area: qty;
    align-items: flex-start;
    min-width: 0;
  }

  .cart-row__qty label {
    margin-bottom: 5px;
  }

  .cart-row__price {
    grid-area: price;
    align-items: flex-end;
    gap: 4px;
    padding-top: 2px;
  }

  .cart-row__price b {
    font-size: 18px;
    white-space: nowrap;
  }

  .cart-row__price span {
    display: none;
  }

  .cart-row__remove {
    margin-top: 6px;
  }

  .cart-qty {
    max-width: 100%;
  }

  .cart-qty input {
    width: 40px;
  }

  .cart-qty button {
    width: 30px;
  }
}

/* Плавные состояния как в исходном макете */
.os-cart #cart > .btn {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.os-cart #cart > .btn i {
  color: var(--wine);
}

.os-cart #cart > .btn:hover,
.os-cart #cart.open > .btn {
  border-color: var(--wine);
  background: var(--paper);
  color: var(--wine);
}

#cart-total {
  color: inherit;
}

.btn {
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease), transform 0.3s var(--ease);
}

.btn:active {
  transform: translateY(1px) scale(0.995);
}

.os-mainnav__link {
  position: relative;
  transition: color 0.25s;
}

.os-mainnav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 1px;
  background: var(--wine);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.os-mainnav__link:hover::after,
.os-mainnav__link:focus::after,
.os-mainnav__link.is-active::after {
  transform: scaleX(1);
}

/* Плавное раскрытие мега-меню */
.os-catalog-panel {
  display: block !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -10px);
  transition: opacity 0.3s, transform 0.35s var(--ease), visibility 0.3s;
}

.os-mainnav__catalog.is-open .os-catalog-panel,
.os-mainnav__catalog:hover .os-catalog-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

/* Корзина: светлая кнопка с бейджем */
.os-cart #cart > .btn {
  gap: 9px;
  border-color: var(--line) !important;
  background-color: var(--paper) !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--ink) !important;
  transition: border-color 0.25s, background-color 0.25s, color 0.25s, transform 0.3s var(--ease);
}

.os-cart #cart > .btn:hover,
.os-cart #cart > .btn:focus,
.os-cart #cart > .btn:active,
.os-cart #cart > .btn.active,
.os-cart #cart.open > .btn {
  border-color: var(--wine) !important;
  background-color: var(--paper) !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--ink) !important;
  transform: translateY(-1px) scale(1.02);
}

.os-cart #cart > .btn:hover i,
.os-cart #cart.open > .btn i {
  color: var(--wine);
}

.cart-btn__label {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cart-btn__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--wine);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 9px;
  line-height: 1;
}

.cart-total-hidden {
  display: none !important;
}

/* Собственная кнопка корзины, без стилей Bootstrap */
.os-cart #cart {
  display: none !important;
}

.header-cart {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  transition: border-color 0.25s, color 0.25s, transform 0.3s var(--ease), background 0.25s;
}

.header-cart:hover,
.header-cart:focus,
.header-cart:active {
  border-color: var(--wine);
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-1px) scale(1.02);
}

.header-cart i {
  color: var(--wine);
  font-size: 14px;
}

.header-cart__label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header-cart__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--wine);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 9px;
  line-height: 1;
}

.os-search #search .btn,
.os-search #search .btn:hover,
.os-search #search .btn:focus,
.os-search #search .btn:active {
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--muted) !important;
}

.os-search #search .btn:hover,
.os-search #search .btn:focus {
  color: var(--wine) !important;
}

.header__phone,
.header__phone:hover,
.header__phone:focus,
.header__phone:active {
  color: var(--ink);
  text-decoration: none;
}

.header__phone:hover {
  color: var(--wine);
}

.os-search #search .btn::before {
  display: none !important;
}

.prod-card__buy .prod-card__add {
  border-color: var(--wine) !important;
  background: var(--wine) !important;
  color: var(--paper) !important;
}

.prod-card__buy .prod-card__add:hover {
  border-color: var(--wine-deep) !important;
  background: var(--wine-deep) !important;
  color: var(--paper) !important;
  transform: translateY(-1px);
}

/* Авторизация */
.account-auth {
  padding-block: 10px 80px;
}

.account-auth__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 980px;
}

.account-card {
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--card);
}

.account-card .eyebrow {
  display: block;
  margin-bottom: 18px;
}

.account-card h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.1;
}

.account-card > p {
  max-width: 380px;
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.account-card__action {
  min-width: 190px;
}

.account-form {
  margin-top: 22px;
}

.account-form label {
  display: block;
  margin: 0 0 7px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.account-form input {
  width: 100%;
  height: 46px;
  margin-bottom: 16px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper-2);
  font-size: 13px;
  outline: none;
}

.account-form input:focus {
  border-color: var(--wine);
}

.account-forgot {
  display: inline-block;
  margin: 0 0 20px;
  font-size: 11px;
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-submit {
  width: 100%;
}

#account-login input:-webkit-autofill,
#account-login input:-webkit-autofill:hover,
#account-login input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--paper-2) inset;
  -webkit-text-fill-color: var(--ink);
  transition: background-color 9999s ease-out;
}

@media (max-width: 900px) {
  .account-auth__grid {
    grid-template-columns: 1fr;
  }

  .account-card {
    padding: 24px 18px;
  }
}

@media (max-width: 900px) {
  .header-cart {
    display: none;
  }
}

/* Галерея товара */
.pdp__main {
  cursor: zoom-in;
}

.pdp__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(245, 240, 231, 0.55);
  background: rgba(26, 21, 18, 0.45);
  color: var(--paper);
}

.pdp__zoom svg {
  width: 18px;
  height: 18px;
}

.pdp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 12, 8, 0.92);
  padding: 48px;
}

.pdp-lightbox.is-open {
  display: flex;
}

.pdp-lightbox__figure {
  margin: 0;
  width: min(88vw, 1200px);
  height: min(82vh, 860px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-lightbox__figure img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pdp-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(245, 240, 231, 0.35);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  font-size: 26px;
  line-height: 1;
}

.pdp-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(245, 240, 231, 0.35);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  font-size: 34px;
  line-height: 1;
}

.pdp-lightbox__nav--prev { left: 20px; }
.pdp-lightbox__nav--next { right: 20px; }

.pdp-lightbox__nav:hover,
.pdp-lightbox__close:hover {
  background: var(--wine);
  border-color: var(--wine);
}

.pdp-lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  color: rgba(245, 240, 231, 0.7);
  font-size: 10px;
  letter-spacing: 0.16em;
}

body.gallery-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .pdp__main {
    aspect-ratio: 4 / 5;
  }

  .pdp-lightbox {
    padding: 16px;
  }

  .pdp-lightbox__figure {
    width: 100%;
    height: 78vh;
  }

  .pdp-lightbox__nav {
    top: auto;
    bottom: 18px;
    transform: none;
    width: 40px;
    height: 40px;
  }

  .pdp-lightbox__nav--prev { left: 16px; }
  .pdp-lightbox__nav--next { right: 16px; }
}

/* Контакты и мессенджеры */
.footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(245, 240, 231, 0.25);
  color: var(--paper);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__social-link:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.footer__social-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-dialog {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 12, 8, 0.62);
  padding: 20px;
}

.contact-dialog.is-open {
  display: flex;
}

.contact-dialog__panel {
  position: relative;
  width: min(480px, 100%);
  padding: 34px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-dialog__panel h3 {
  margin: 12px 0 10px;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
}

.contact-dialog__panel p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.contact-dialog__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.contact-dialog__actions {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.contact-dialog__actions .btn {
  width: 100%;
}

.contact-dialog__note {
  margin: 18px 0 0;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-fab {
  position: fixed;
  left: 24px;
  bottom: 88px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border: 1px solid var(--wine);
  border-radius: 999px;
  background: var(--wine);
  color: var(--paper);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px -12px rgba(109, 31, 44, 0.7);
}

.contact-fab:hover {
  background: var(--wine-deep);
  border-color: var(--wine-deep);
  color: var(--paper);
}

.contact-fab__icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 7px;
}

body.contact-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .contact-fab {
    left: 14px;
    bottom: 84px;
    padding: 9px 12px;
  }
}

/* На мобильном не перекрываем корзину стрелкой «наверх» */
@media (max-width: 900px) {
  .scroll-top {
    display: none !important;
  }
}

.prod-card__add-btn {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--wine);
  border-radius: 0;
  background: var(--wine);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.prod-card__add-btn:hover {
  border-color: var(--wine-deep);
  background: var(--wine-deep);
  color: var(--paper);
}

@media (max-width: 900px) {
  .prod-card__add-btn {
    flex: 1 1 auto;
    min-width: 0;
    padding-inline: 6px;
    font-size: 8px;
  }
}

.custom-order-teaser {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.custom-order-teaser__in {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  padding-block: 50px;
  align-items: start;
}

.custom-order-teaser__text p {
  max-width: 540px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.custom-order-teaser__text ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
  font-size: 12px;
}

.custom-order-teaser__text li::before {
  content: '—';
  margin-right: 8px;
  color: var(--wine);
}

@media (max-width: 900px) {
  .custom-order-teaser__in {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 34px;
  }

  .custom-order-teaser__text ul {
    grid-template-columns: 1fr;
  }
}

/* Вход и регистрация на checkout */
.checkout-auth {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 22px;
  align-items: start;
}

.checkout-auth__main,
.checkout-auth__login {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--card);
}

.checkout-auth__main h2 {
  margin: 12px 0 8px;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 500;
  line-height: 1;
}

.checkout-auth__main > p {
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.checkout-choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px;
  margin-bottom: 9px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  cursor: pointer;
}

.checkout-choice:has(input:checked) {
  border-color: var(--wine);
  background: var(--paper);
}

.checkout-choice input {
  margin-top: 3px;
  accent-color: var(--wine);
}

.checkout-choice b {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.checkout-choice small {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted);
}

.checkout-auth__main #button-account {
  width: 100%;
  margin-top: 18px;
}

.checkout-auth__login {
  background: var(--paper-2);
}

.checkout-login-toggle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--ink);
}

.checkout-login-toggle span {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.checkout-login-toggle b {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
}

.checkout-login-toggle::after {
  content: '+';
  position: absolute;
  right: 28px;
  font-size: 22px;
  color: var(--wine);
}

.checkout-auth__login {
  position: relative;
}

.checkout-login-panel {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.checkout-login-panel > p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

.checkout-login-panel .form-group {
  margin-bottom: 14px;
}

.checkout-login-panel .control-label {
  display: block;
  margin-bottom: 6px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.checkout-login-panel .form-control {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
}

.checkout-login-panel #button-login {
  width: 100%;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .checkout-auth {
    grid-template-columns: 1fr;
  }

  .checkout-auth__main,
  .checkout-auth__login {
    padding: 20px 16px;
  }
}

/* Единый алгоритм кнопок: solid — вино, ghost — светлая */
.btn--solid,
.btn--solid:visited,
.btn--solid:hover,
.btn--solid:focus,
.btn--solid:active,
.btn-primary,
a.btn-primary {
  border-color: var(--wine) !important;
  background: var(--wine) !important;
  background-image: none !important;
  color: var(--paper) !important;
}

.btn--solid::before,
.btn-primary::before {
  background: var(--wine-deep) !important;
}

.btn--solid:hover,
.btn--solid:focus,
.btn-primary:hover,
a.btn-primary:hover {
  border-color: var(--wine-deep) !important;
  background: var(--wine-deep) !important;
  color: var(--paper) !important;
}

.btn--ghost,
.btn--ghost:visited,
a.btn--ghost {
  border-color: var(--line) !important;
  background: transparent !important;
  background-image: none !important;
  color: var(--ink) !important;
}

.btn--ghost::before {
  background: var(--paper) !important;
}

.btn--ghost:hover,
.btn--ghost:focus {
  border-color: var(--wine) !important;
  background: var(--paper) !important;
  color: var(--wine) !important;
}

/* Единая типографика информационных страниц */
.btn {
  min-height: 44px;
  padding: 0 24px;
}

.btn--sm {
  min-height: 34px;
  padding: 0 14px;
  font-size: 9px;
}

.info-page {
  padding-block: 8px 80px;
}

.info-page__content {
  max-width: 980px;
}

.info-page__content h2 {
  margin: 34px 0 12px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.08;
}

.info-page__content h3 {
  margin: 26px 0 8px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.15;
}

.info-page__content p,
.info-page__content li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
}

.info-page__content p {
  margin: 0 0 14px;
}

.info-page__content ul,
.info-page__content ol {
  margin: 0 0 18px;
  padding-left: 20px;
}

.info-page__content li {
  margin-bottom: 4px;
}

.info-page__content .info-page__lead {
  max-width: 760px;
  margin-bottom: 30px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}

.info-page__content .info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-page__content .info-card {
  padding: 24px;
}

.info-page__content .info-card h3 {
  margin-top: 0;
}

.info-page__content .btn {
  margin-top: 8px;
}

.cart-empty-state {
  max-width: 620px;
  margin: 0 auto;
  padding: 40px 0 20px;
  text-align: center;
}

.cart-empty-state h2 {
  margin: 14px 0 10px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1;
}

.cart-empty-state p {
  max-width: 430px;
  margin: 0 auto 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.cart-empty-state__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cart-empty-page {
  padding-block: 22px 80px;
}

.cart-empty-card {
  max-width: 680px;
  margin: 54px auto 0;
  text-align: center;
}

.cart-empty-card h1 {
  margin: 14px 0 16px;
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.cart-empty-card__lead {
  max-width: 470px;
  margin: 0 auto 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.cart-empty-card__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cart-empty-card__note {
  margin: 26px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

.cart-empty-card__note a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Ссылки в оформлении заказа — в стиле сайта, не синие */
#checkout-checkout a,
#checkout-cart a,
#account-login a,
#account-register a {
  color: var(--wine);
}

#checkout-checkout a:hover,
#checkout-checkout a:focus,
#checkout-cart a:hover,
#checkout-cart a:focus,
#account-login a:hover,
#account-login a:focus,
#account-register a:hover,
#account-register a:focus {
  color: var(--wine-deep);
}

.payment-method__terms {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--muted);
  white-space: normal;
}

.pickup-choice {
  margin-bottom: 20px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.pickup-choice label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  cursor: pointer;
}

.pickup-choice input {
  margin-top: 3px;
  accent-color: var(--wine);
}

.pickup-choice b {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.pickup-choice small {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* Личный кабинет */
.account-page {
  padding-block: 22px 80px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: start;
  margin-top: 28px;
}

.account-head h1 {
  margin: 12px 0 10px;
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 500;
  line-height: 0.98;
}

.account-head p {
  max-width: 560px;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.account-success {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--wine);
  background: var(--paper-2);
  color: var(--wine);
  font-size: 12px;
}

.account-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.account-card {
  display: flex;
  flex-direction: column;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s;
}

.account-card:hover {
  border-color: var(--wine);
  color: var(--ink);
  transform: translateY(-2px);
}

.account-card__num {
  margin-bottom: auto;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--wine);
}

.account-card b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.05;
}

.account-card small {
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted);
}

.account-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.account-note p {
  margin: 0 0 7px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

.account-note a {
  color: var(--wine);
}

.account-side #column-right {
  display: block !important;
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
}

.account-nav {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--card);
}

.account-nav a {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.account-nav a:last-child {
  border-bottom: 0;
}

.account-nav a:hover {
  background: var(--paper-2);
  color: var(--wine);
}

.account-nav__logout {
  color: var(--wine) !important;
}

@media (max-width: 900px) {
  .account-page {
    padding-block: 18px 56px;
  }

  .account-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 20px;
  }

  .account-side {
    order: -1;
  }

  .account-cards {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .account-card {
    min-height: 108px;
  }

  .account-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-nav a {
    border-right: 1px solid var(--line);
  }

  .account-nav a:nth-child(2n) {
    border-right: 0;
  }
}

/* Остальные страницы кабинета — та же типографика */
#account-edit,
#account-password,
#account-address,
#account-order,
#account-wishlist,
#account-return,
#account-transaction,
#account-newsletter,
#account-recurring,
#account-affiliate,
#account-download {
  padding-block: 22px 70px;
}

#account-edit h1,
#account-password h1,
#account-address h1,
#account-order h1,
#account-wishlist h1,
#account-return h1,
#account-transaction h1,
#account-newsletter h1,
#account-recurring h1,
#account-affiliate h1,
#account-download h1 {
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  line-height: 1;
}

#account-edit h2,
#account-password h2,
#account-address h2,
#account-order h2,
#account-wishlist h2 {
  font-family: var(--serif);
  font-weight: 500;
}

/* Подтверждение заказа */
#collapse-checkout-confirm {
  font-family: var(--sans);
  color: var(--ink);
}

#collapse-checkout-confirm .table {
  margin: 0;
  border-color: var(--line);
}

#collapse-checkout-confirm .table > thead > tr > td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line) !important;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#collapse-checkout-confirm .table > tbody > tr > td,
#collapse-checkout-confirm .table > tfoot > tr > td {
  padding: 12px;
  border-color: var(--line) !important;
  font-size: 12px;
  vertical-align: middle;
}

#collapse-checkout-confirm .table a {
  color: var(--ink);
  text-decoration: none;
}

#collapse-checkout-confirm .table a:hover {
  color: var(--wine);
}

#collapse-checkout-confirm .checkout-payment-note {
  margin: 18px 0 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

#collapse-checkout-confirm .checkout-payment-note p {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-2);
}

#collapse-checkout-confirm .checkout-payment-note p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

#collapse-checkout-confirm .buttons {
  margin-top: 18px;
}

.checkout-ajax-error {
  margin: 14px 0;
  border-radius: 0;
  font-size: 12px;
  line-height: 1.6;
}

/* Ссылки в информационных разделах и контактах — в винной гамме */
.info-page__content a:not(.btn),
#information-information a:not(.btn),
#information-contact a:not(.btn),
.contact-page a:not(.btn),
.contact-page__grid a:not(.btn) {
  color: var(--wine);
  text-decoration-color: rgba(122, 42, 54, 0.35);
  text-underline-offset: 3px;
}

.info-page__content a:not(.btn):hover,
.info-page__content a:not(.btn):focus,
#information-information a:not(.btn):hover,
#information-information a:not(.btn):focus,
#information-contact a:not(.btn):hover,
#information-contact a:not(.btn):focus,
.contact-page a:not(.btn):hover,
.contact-page a:not(.btn):focus {
  color: var(--wine-deep);
  text-decoration-color: var(--wine-deep);
}

@media (max-width: 900px) {
  .cart-empty-page {
    padding-block: 18px 56px;
  }

  .cart-empty-card {
    margin-top: 34px;
  }

  .cart-empty-card h1 {
    font-size: 48px;
  }

  .cart-empty-card__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cart-empty-card__actions .btn {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .info-page {
    padding-block: 8px 56px;
  }

  .info-page__content .info-grid {
    grid-template-columns: 1fr;
  }

  .info-page__content h2 {
    margin-top: 26px;
  }
}

/* Поиск: одна линия, одинаковая высота поля и лупы */
.os-search #search {
  display: flex;
  align-items: stretch;
}

.os-search #search input {
  flex: 1 1 auto;
  width: 100%;
  min-height: 38px;
  height: 38px;
  padding: 0 4px;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 12px;
}

.os-search #search .input-group-btn {
  display: flex;
  width: auto;
}

.os-search #search .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-height: 38px;
  height: 38px;
  padding: 0;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--muted) !important;
  line-height: 1;
}

.os-search #search .btn:hover,
.os-search #search .btn:focus {
  color: var(--wine) !important;
}

.os-search #search input:-webkit-autofill,
.os-search #search input:-webkit-autofill:hover,
.os-search #search input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--paper) inset !important;
  -webkit-text-fill-color: var(--ink) !important;
  caret-color: var(--ink);
  transition: background-color 9999s ease-in-out 0s;
}

/* Страница контактов */
.contact-page {
  padding-block: 8px 80px;
}

.contact-page__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}

.contact-card {
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--card);
}

.contact-card--accent {
  background: var(--paper-2);
}

.contact-card h2 {
  margin: 12px 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.08;
}

.contact-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.contact-card__list {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
}

.contact-card__list dt {
  margin-bottom: 4px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-card__list dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.contact-card__list a,
.contact-card__actions a {
  color: var(--ink);
}

.contact-card__actions {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.contact-card__actions .btn {
  width: 100%;
}

.contact-card__note {
  margin-top: 18px;
  font-size: 10px !important;
  letter-spacing: 0.04em;
}

.contact-map {
  position: relative;
  height: 430px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  background: var(--sand);
  overflow: hidden;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.8) contrast(0.95);
}

.contact-map__route {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  background: var(--paper);
}

.contact-page__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 22px;
}

.contact-form-card {
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--card);
}

.contact-form-card h2 {
  margin: 12px 0 22px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1;
}

.contact-form label {
  display: block;
  margin: 0 0 6px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper-2);
  font-family: var(--sans);
  font-size: 13px;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--wine);
}

.contact-form__error {
  margin: -8px 0 12px;
  font-size: 11px;
  color: var(--wine);
}

.contact-form__submit {
  min-width: 190px;
  margin-top: 4px;
}

.contact-side {
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.contact-side p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.contact-side a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-page__extra {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

@media (max-width: 900px) {
  .contact-page__grid,
  .contact-page__bottom,
  .contact-page__extra {
    grid-template-columns: 1fr;
  }

  .contact-card,
  .contact-form-card,
  .contact-side {
    padding: 22px 18px;
  }

  .contact-map {
    height: 340px;
  }
}
