/* Формы: чекбоксы и радио в стиле сайта (чёрный акцент) */
.form-check-input {
  border-color: #111;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: #111;
  border-color: #111;
}

.form-check-input:focus {
  border-color: #111;
  box-shadow: 0 0 0 0.2rem rgba(17, 17, 17, 0.15);
}

.form-check-input:active,
.form-check-input:focus {
  filter: none;
}

.form-check-label {
  cursor: pointer;
  color: #222;
}

/* Поля ввода: чёрный акцент вместо синего Bootstrap */
.form-control,
.form-select {
  border-color: #d6d6d6;
}

.form-control:focus,
.form-select:focus {
  border-color: #111;
  box-shadow: 0 0 0 0.2rem rgba(17, 17, 17, 0.12);
}

/* Согласие на обработку данных */
.privacy-consent-text {
  display: inline;
  color: #222;
  line-height: 1.5;
}

.privacy-consent-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #111;
  font: inherit;
  font-weight: 600;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  vertical-align: baseline;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.privacy-consent-link:hover,
.privacy-consent-link:focus,
.privacy-consent-link:focus-visible {
  color: #000;
  text-decoration: underline;
  outline: none;
  box-shadow: none;
}

.auth-consent.form-check {
  align-items: flex-start;
  gap: 0.55rem;
}

.auth-consent .form-check-input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.auth-consent .form-check-label {
  flex: 1;
  min-width: 0;
  line-height: 1.5;
}

/* Страница входа */
.auth-notice {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  color: #212529;
  font-size: 0.95rem;
  line-height: 1.45;
}

.auth-notice-error {
  background: #fff5f5;
  border-color: #f1caca;
  color: #842029;
}

.auth-actions .btn {
  min-height: 44px;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.auth-otp-input {
  border-color: #d6d6d6;
  border-radius: 0.5rem;
  letter-spacing: 0.35em;
  font-weight: 600;
  color: #111;
}

.auth-otp-input:focus {
  border-color: #111;
  box-shadow: 0 0 0 0.2rem rgba(17, 17, 17, 0.12);
}

/* Страница успешного заказа */
.order-success-shell {
  max-width: 560px;
}

.order-success-header {
  padding-top: 0.25rem;
}

.order-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  background: #fafafa;
  color: #111;
  font-size: 1.35rem;
}

.order-success-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.65rem, 4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #111;
}

.order-success-subtitle {
  color: #666;
  font-size: 0.98rem;
}

.order-success-number {
  color: #111;
  font-weight: 600;
}

.order-success-card {
  padding: 1.35rem 1.4rem;
}

.order-success-card-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111;
}

.order-success-details {
  display: grid;
  gap: 0.85rem;
}

.order-success-row {
  display: grid;
  grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
  gap: 0.75rem 1rem;
  align-items: start;
}

.order-success-label {
  color: #777;
  font-size: 0.92rem;
  line-height: 1.45;
}

.order-success-value {
  color: #111;
  font-size: 0.98rem;
  line-height: 1.45;
  text-align: right;
  word-break: break-word;
}

.order-success-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid #ececec;
}

.order-success-amount {
  color: #111;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.order-success-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
  color: #666;
  font-size: 0.92rem;
  line-height: 1.5;
}

.order-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.order-success-action {
  min-width: 220px;
  min-height: 44px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 575.98px) {
  .order-success-card {
    padding: 1.15rem 1.1rem;
  }

  .order-success-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .order-success-value {
    text-align: left;
  }

  .order-success-actions {
    flex-direction: column;
  }

  .order-success-action {
    width: 100%;
  }
}

/* Личный кабинет */
.account-shell {
  max-width: 920px;
}

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.account-title {
  font-size: clamp(1.55rem, 4.5vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-top: 0.15rem;
}

.account-link {
  position: relative;
  color: #111;
  border: 0;
  background: transparent;
  padding: 0;
  text-decoration: none;
  font-size: 0.95rem;
}

.account-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  background: #111;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .16s ease;
}

.account-link:hover,
.account-link:focus {
  color: #111;
}

.account-link:hover::after,
.account-link:focus::after {
  transform: scaleX(1);
}

.account-card {
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.5rem;
}

.account-card-title,
.account-section-title {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #111;
}

.account-section {
  margin-bottom: 0.5rem;
}

.account-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.5rem;
}

.account-info-item {
  min-width: 0;
  padding: 0.85rem 1rem;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
}

.account-info-label {
  color: #777;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.account-info-value {
  color: #111;
  font-weight: 500;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.account-info-value.is-muted {
  color: #888;
  font-weight: 400;
}

.account-empty {
  text-align: center;
  color: #777;
  padding: 2rem 1.25rem;
}

.account-orders-wrap {
  border: 1px solid #ececec;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
}

.account-orders-table {
  margin-bottom: 0;
}

.account-orders-table thead th {
  border-top: none;
  border-bottom-color: #ececec;
  background: #fafafa;
  color: #666;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85rem 1rem;
  white-space: nowrap;
}

.account-orders-table tbody td {
  padding: 0.95rem 1rem;
  border-color: #f0f0f0;
  vertical-align: middle;
}

.account-orders-table tbody tr:last-child td {
  border-bottom: none;
}

.account-orders-table tbody tr:hover {
  background: #fcfcfc;
}

.account-order-link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  color: #111;
  font-weight: 600;
  text-decoration: none;
}

.account-order-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #111;
  transition: width 0.3s ease;
}

.account-order-link:hover,
.account-order-link:focus {
  color: #111;
  text-decoration: none;
}

.account-order-link:hover::after,
.account-order-link:focus::after {
  width: 100%;
}

.account-order-card-number {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  font-weight: 600;
  color: #111;
}

.account-order-card-number::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #111;
  transition: width 0.3s ease;
}

.account-order-card:hover .account-order-card-number::after,
.account-order-card:focus .account-order-card-number::after {
  width: 100%;
}

.account-order-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4em 0.65em;
  border-radius: 999px;
}

.account-orders-cards {
  display: grid;
  gap: 0.75rem;
}

.account-order-card {
  display: block;
  padding: 1rem 1.05rem;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.account-order-card:hover,
.account-order-card:focus {
  border-color: #ddd;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  color: inherit;
}

.account-order-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.account-order-card-number {
  font-weight: 600;
  color: #111;
}

.account-order-card-meta {
  display: grid;
  gap: 0.35rem;
  color: #555;
  font-size: 0.92rem;
}

#settingsTabs .nav-link {
  color: #212529;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  border-bottom: 2px solid transparent;
  padding: .55rem .15rem .45rem;
  margin-right: 1.5rem;
  transition: border-color .15s ease, color .15s ease;
}

#settingsTabs .nav-link:hover {
  background: transparent;
  border-bottom-color: #d6d6d6;
}

#settingsTabs .nav-link.active {
  background: transparent;
  color: #111;
  border-bottom-color: #111;
}

#settingsTabs .nav-link:focus {
  outline: none;
  box-shadow: none;
}

#settingsTabs .nav-link,
#settingsTabs .nav-link:hover,
#settingsTabs .nav-link:focus,
#settingsTabs .nav-link.active {
  text-decoration: none !important;
}

#settingsModal .modal-content {
  position: relative;
  border: none;
  border-radius: 16px;
}

#settingsModal .settings-modal-header {
  border-bottom: none;
  padding: 1.25rem 3.5rem 0.5rem 1.25rem;
}

#settingsModal .settings-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

#settingsModal .settings-modal-close:focus,
#settingsModal .settings-modal-close:focus-visible,
#settingsModal .settings-modal-close:active {
  outline: none;
  box-shadow: none;
  border: none;
}

#settingsModal .form-control {
  border-radius: 8px;
}

@media (max-width: 767.98px) {
  .account-shell.container {
    padding-top: 1.75rem !important;
    padding-bottom: 2rem !important;
  }

  .account-header {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 1.35rem;
  }

  .account-actions {
    justify-content: flex-start;
  }

  .account-card {
    padding: 1.1rem 1rem;
    border-radius: 10px;
  }

  .account-info-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .account-info-item {
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
  }

  .account-orders-wrap {
    border-radius: 10px;
  }

  .user-order-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .order-detail-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .order-detail-value {
    text-align: left;
  }

  .order-detail-item-inner {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .order-detail-total {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .order-detail-cancel {
    width: 100%;
  }
}

/* Страница заказа пользователя */
.user-order-back {
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}

.user-order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.user-order-header-main {
  min-width: 0;
}

.order-detail-rows {
  display: grid;
  gap: 0;
}

.order-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
  gap: 0.75rem 1rem;
  align-items: start;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.order-detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.order-detail-row:first-child {
  padding-top: 0;
}

.order-detail-label {
  color: #777;
  font-size: 0.92rem;
  line-height: 1.45;
}

.order-detail-value {
  color: #111;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: right;
  word-break: break-word;
}

.order-detail-value.is-muted {
  color: #888;
  font-weight: 400;
}

.order-detail-comment {
  white-space: pre-wrap;
}

.order-detail-cancel {
  margin-top: 1.15rem;
}

.order-detail-items {
  display: grid;
  gap: 0.85rem;
}

.order-detail-item {
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.order-detail-item-inner {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  align-items: center;
}

.order-detail-item-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-detail-item-image img {
  display: block;
  width: 100%;
  max-height: 108px;
  object-fit: cover;
  border-radius: 8px;
}

.order-detail-item-body {
  min-width: 0;
}

.order-detail-item-title {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.order-detail-item-meta {
  display: grid;
  gap: 0.3rem;
  color: #444;
  font-size: 0.92rem;
}

.order-detail-item-sum {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid #f0f0f0;
  font-weight: 600;
  color: #111;
}

.order-detail-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fafafa;
}

.order-detail-total-label {
  color: #666;
  font-size: 0.98rem;
}

.order-detail-total-value {
  color: #111;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.order-detail-empty {
  color: #777;
  text-align: center;
  padding: 1.5rem 1rem;
}

#cancelOrderModal .modal-content {
  border-radius: 16px;
}

.checkout-order-list {
  border-radius: 10px;
  overflow: hidden;
}

.checkout-order-list .list-group-item:first-child {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.checkout-order-list .list-group-item:last-child {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.checkout-order-item .checkout-remove-item {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  background: transparent;
  border: 0;
  padding: 0.15rem 0.4rem;
  color: #999;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.checkout-order-item .checkout-remove-item:hover {
  color: #111;
}

.checkout-limit-notice {
  padding: 1rem 1.1rem;
  background: #faf8f5;
  border: 1px solid #e8e4de;
  border-radius: 10px;
  color: #333;
}

.checkout-limit-notice-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.checkout-limit-notice-hint {
  margin: 0;
  font-size: 0.88rem;
  color: #666;
  line-height: 1.4;
}

.checkout-limit-notice-hint a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkout-limit-notice-hint a:hover {
  color: #000;
}

.checkout-order-item-layout {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: start;
  padding-right: 1.25rem;
}

.checkout-order-thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f3f3;
  flex-shrink: 0;
}

.checkout-order-thumb img {
  display: block;
  width: 72px;
  height: 90px;
  object-fit: cover;
}

.checkout-order-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 90px;
  padding: 0.35rem;
  font-size: 0.72rem;
  line-height: 1.2;
  text-align: center;
  color: #888;
}

.checkout-order-item-title {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  line-height: 1.35;
}

.checkout-order-item-title:hover {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkout-order-item-meta {
  line-height: 1.4;
  margin-bottom: 0.45rem;
}

.checkout-order-qty-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.checkout-order-qty-label {
  flex: 0 0 auto;
}

.checkout-qty-input {
  width: 108px;
  flex: 0 0 auto;
}

.checkout-qty-input .form-control {
  pointer-events: none;
  background: #fff;
}

.checkout-qty-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.checkout-order-item-busy {
  opacity: 0.65;
  pointer-events: none;
}

.checkout-order-price {
  white-space: nowrap;
}

.cdek-city-autocomplete {
  position: relative;
}

.cdek-city-suggest {
  position: absolute;
  z-index: 20;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 0.375rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.cdek-city-suggest-item {
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  color: #222;
  font-size: 0.95rem;
}

.cdek-city-suggest-item:hover,
.cdek-city-suggest-item.is-active {
  background: #f3f3f3;
}

@media (max-width: 575.98px) {
  .checkout-order-item-layout {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas:
      "thumb details"
      "thumb price";
  }

  .checkout-order-thumb,
  .checkout-order-thumb img,
  .checkout-order-thumb-placeholder {
    width: 64px;
  }

  .checkout-order-thumb img,
  .checkout-order-thumb-placeholder {
    height: 80px;
  }

  .checkout-order-thumb {
    grid-area: thumb;
  }

  .checkout-order-details {
    grid-area: details;
  }

  .checkout-order-price {
    grid-area: price;
    text-align: left !important;
    padding-left: calc(64px + 0.85rem);
  }
}

.checkout-field-group {
  margin-bottom: 1.25rem;
}

.checkout-field-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 0.75rem;
}

.checkout-option-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr);
}

.checkout-option-card {
  display: block;
  margin: 0;
  cursor: pointer;
}

.checkout-option-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.checkout-option-card-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  min-height: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 12px;
  background: #fafafa;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.checkout-option-card:hover .checkout-option-card-inner {
  border-color: rgba(17, 17, 17, 0.22);
  background: #fff;
}

.checkout-option-input:checked + .checkout-option-card-inner {
  border-color: #111;
  background: #fff;
  box-shadow: 0 0 0 1px #111;
}

.checkout-option-input:focus-visible + .checkout-option-card-inner {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.checkout-option-title {
  display: block;
  font-weight: 600;
  color: #111;
  line-height: 1.35;
}

.checkout-option-text {
  display: block;
  color: #555;
  font-size: 0.92rem;
  line-height: 1.45;
}

.checkout-payment-grid .checkout-option-text {
  font-size: 0.875rem;
}

.checkout-bonus-box {
  padding: 1rem;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fafafa;
}

@media (min-width: 768px) {
  .checkout-pickup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 767.98px) {
  .checkout-payment-grid .checkout-option-card-inner {
    padding: 0.95rem 1rem;
  }
}

.contacts-addresses {
  margin-bottom: 1.25rem;
}

.contacts-addresses-label {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.contacts-address-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr);
}

.contacts-address-grid--count-2 {
  grid-template-columns: minmax(0, 1fr);
}

.contacts-address-capsule {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(92, 72, 48, 0.1);
  border-radius: 18px;
  background: #faf8f5;
}

.contacts-address-capsule-badge {
  display: inline-block;
  max-width: 100%;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: #f3ede6;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: #111;
}

.contacts-address-capsule-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

@media (min-width: 768px) {
  .contacts-address-grid--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .contacts-address-capsule {
    height: 100%;
    padding: 1.1rem 1.2rem;
  }
}

.contacts-gallery-shell {
  width: 100%;
}

.contacts-gallery-progress {
  width: 100%;
  height: 4px;
  background-color: #e0e0e0;
  border-radius: 2px;
  margin-top: 1rem;
  overflow: hidden;
}

.contacts-gallery-progress-bar {
  height: 100%;
  width: 0%;
  background-color: #000;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.contacts-gallery-title {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111;
}

.contacts-gallery-grid {
  display: grid;
  gap: 1rem;
}

.contacts-gallery-grid--count-1 {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.contacts-gallery-grid--count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contacts-gallery-grid--count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contacts-gallery-item {
  margin: 0;
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
}

.contacts-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: none;
  box-shadow: none;
}

@media (max-width: 767.98px) {
  .contacts-gallery-grid--count-2,
  .contacts-gallery-grid--count-3 {
    display: flex;
    overflow-x: auto;
    gap: 0;
    padding: 0;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .contacts-gallery-grid--count-2::-webkit-scrollbar,
  .contacts-gallery-grid--count-3::-webkit-scrollbar {
    display: none;
  }

  .contacts-gallery-grid--count-2 .contacts-gallery-item,
  .contacts-gallery-grid--count-3 .contacts-gallery-item {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .contacts-gallery-grid--count-1 .contacts-gallery-item img {
    aspect-ratio: 16 / 10;
  }

  .contacts-gallery-progress {
    display: block;
  }
}

@media (min-width: 768px) {
  .contacts-gallery-progress {
    display: none;
  }
}

/* Выпадающее меню профиля в шапке */
.user-menu-dropdown {
  border: 1px solid #eee;
  border-radius: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  padding: 0.4rem;
}

.user-menu-dropdown .dropdown-item {
  border-radius: 0;
  color: #222;
  padding: 0.65rem 0.85rem;
  -webkit-tap-highlight-color: transparent;
}

.user-menu-dropdown .dropdown-item:hover,
.user-menu-dropdown .dropdown-item:focus,
.user-menu-dropdown .dropdown-item:active,
.user-menu-dropdown .dropdown-item.active {
  background-color: #f3f3f3;
  color: #111;
}

.user-menu-dropdown .dropdown-item.text-danger {
  color: #b42318;
}

.user-menu-dropdown .dropdown-item.text-danger:hover,
.user-menu-dropdown .dropdown-item.text-danger:focus,
.user-menu-dropdown .dropdown-item.text-danger:active,
.user-menu-dropdown .dropdown-item.text-danger.active {
  background-color: #f3f3f3;
  color: #991b1b;
}

/* Небольшое уведомление о cookies */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 1080;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  width: min(560px, calc(100vw - 2rem));
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
  color: #111;
  opacity: 0;
  transform: translate(-50%, 24px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cookie-banner.is-hiding {
  opacity: 0;
  transform: translate(-50%, 24px);
}

.cookie-banner__content {
  padding-right: 1.5rem;
}

.cookie-banner__title {
  margin: 0 0 0.25rem;
  font-weight: 700;
  font-size: 0.98rem;
}

.cookie-banner__text {
  margin: 0;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.45;
}

.cookie-banner__text a {
  color: #111;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__accept {
  min-width: 74px;
  height: 40px;
  padding: 0 1rem;
  border: 0;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.cookie-banner__accept:hover,
.cookie-banner__accept:focus {
  background: #2a2a2a;
}

.cookie-banner__accept:active {
  transform: scale(0.98);
}

.cookie-banner__close {
  position: absolute;
  top: 0.45rem;
  right: 0.65rem;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #555;
  font-size: 1.45rem;
  line-height: 1;
  padding: 0;
}

.cookie-banner__close:hover,
.cookie-banner__close:focus {
  color: #111;
}

@media (max-width: 575.98px) {
  .cookie-banner {
    bottom: 0.5rem;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    width: calc(100vw - 1rem);
    padding: 0.7rem 0.75rem;
    border-radius: 10px;
  }

  .cookie-banner__content {
    padding-right: 0;
  }

  .cookie-banner__title {
    display: none;
  }

  .cookie-banner__text {
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .cookie-banner__accept {
    align-self: stretch;
    height: auto;
    min-height: 36px;
    min-width: 52px;
    padding: 0 0.65rem;
    font-size: 0.78rem;
  }
}

.product-brand-link {
  color: #a06767;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-brand-link:hover,
.product-brand-link:focus-visible {
  color: #1a1a1a;
  text-decoration: none;
}

.text-more-link {
  display: inline;
  margin: 0 0 0 0.35em;
  padding: 0;
  border: 0;
  background: none;
  color: #a06767;
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
  text-decoration: none;
  cursor: pointer;
  vertical-align: baseline;
  transition: color 0.3s ease;
}

.text-more-link:hover,
.text-more-link:focus-visible {
  color: #1a1a1a;
  text-decoration: none;
}

/* Кликабельный UI: без «текстового» курсора при клике в Chrome */
.ff-card,
.ff-card *,
.scroll-item .card,
.scroll-item .card *,
.product-header-brand,
.product-header-name,
.product-header-article,
#priceContainer,
.product-section-title,
.custom-cart-block,
.sizes-scroll-wrapper,
.product-size-notice,
.slide-overlay,
.slide-title,
.slide-subtitle,
.home-page-container h1,
.home-page-container h2,
.home-page-container h3,
.home-intro-title,
.home-intro-lead,
.home-brands-heading,
.home-brands-all-link,
.home-brands-header,
.home-brand-card,
.home-brand-card *,
a:has(.ff-card),
.scroll-item > a {
  -webkit-user-select: none;
  user-select: none;
}

a:has(.ff-card),
.scroll-item > a,
.ff-card,
.nav-link,
.navbar-brand,
.product-brand-link,
.home-brands-all-link,
.home-brands-heading,
.text-more-link,
.btn,
.size-option {
  cursor: pointer;
}

/* Текст, который пользователь может выделить и скопировать */
.product-description-text,
.product-description-text *,
.product-attributes-table,
.product-attributes-table *,
.privacy-consent-text,
input,
textarea,
select,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

.product-description-text .text-more-link {
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
}

.home-welcome-promo {
  --home-welcome-promo-bg: #f5efe6;
}

.home-welcome-promo-mobile {
  display: block;
}

.home-welcome-promo-desktop {
  display: none;
}

.home-welcome-promo .home-brand-card.home-welcome-promo-card {
  background: var(--home-welcome-promo-bg);
  border-color: rgba(92, 72, 48, 0.12);
}

.home-welcome-promo-card .home-brand-card-body.home-welcome-promo-body {
  background: var(--home-welcome-promo-bg);
  border-top-color: rgba(92, 72, 48, 0.1);
}

.home-welcome-promo-card {
  width: 100%;
}

.home-welcome-promo-card .home-brand-card-media::after {
  display: none;
}

.home-welcome-promo-body {
  gap: 0;
}

.home-welcome-promo-title {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #111;
}

.home-welcome-promo-text {
  margin-bottom: 0.75rem;
  color: #333;
  line-height: 1.55;
}

.home-welcome-promo-action {
  margin-top: 1rem;
}

.home-welcome-promo-btn {
  min-width: 220px;
  border-radius: 8px;
  font-weight: 600;
}

.home-welcome-promo-banner {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(92, 72, 48, 0.12);
  border-radius: 14px;
  background: var(--home-welcome-promo-bg, #f5efe6);
  box-shadow: 0 2px 14px rgba(92, 72, 48, 0.08);
}

.home-welcome-promo-banner-media {
  flex: 0 0 min(42%, 440px);
  min-width: 280px;
  min-height: 260px;
  overflow: hidden;
  background: var(--home-welcome-promo-bg, #f5efe6);
  line-height: 0;
}

.home-welcome-promo-banner-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: center;
}

.home-welcome-promo-banner-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2.25rem;
  min-width: 0;
  background: var(--home-welcome-promo-bg, #f5efe6);
}

@media (max-width: 767.98px) {
  .home-welcome-promo-action {
    display: flex;
    justify-content: center;
  }

  .home-welcome-promo-btn {
    width: 100%;
    min-width: 0;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .home-welcome-promo-mobile {
    display: none;
  }

  .home-welcome-promo-desktop {
    display: block;
  }

  .home-welcome-promo-banner--no-image .home-welcome-promo-banner-body {
    padding: 2.5rem 2.75rem;
  }
}

/* Bottom sheet отмены заказа (мобилка) — как сортировка в каталоге */
.order-cancel-sheet.ff-sheet {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: block;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 0.3s;
}

.order-cancel-sheet.ff-sheet.is-open {
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

.order-cancel-sheet .ff-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.order-cancel-sheet.is-open .ff-sheet-backdrop {
  opacity: 1;
}

.order-cancel-sheet .ff-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: auto;
  bottom: 0;
  width: 100%;
  max-width: none;
  max-height: min(92dvh, 760px);
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(calc(100% + 80px));
  transition: transform 0.3s ease;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}

.order-cancel-sheet.is-open .ff-sheet-panel {
  transform: translateY(0);
}

.order-cancel-sheet .menu-drag-handle {
  touch-action: none;
  flex-shrink: 0;
  min-height: 36px;
  padding: 10px 16px 6px;
  cursor: grab;
}

.order-cancel-sheet .menu-close-button {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-cancel-sheet .ff-sheet-header {
  padding: 0.5rem 3rem 14px 16px;
  touch-action: none;
  flex-shrink: 0;
  user-select: none;
  border-bottom: 1px solid #f2f2f2;
}

.order-cancel-sheet .ff-sheet-title {
  font-size: 1.18rem;
  font-weight: 600;
  margin: 0;
  color: #111;
}

.order-cancel-sheet .ff-sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  overscroll-behavior: contain;
  padding: 1rem 16px 0.5rem;
}

.order-cancel-sheet-footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 16px calc(1rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #f2f2f2;
}

@media (min-width: 992px) {
  .order-cancel-sheet {
    display: none !important;
  }
}

.welcome-bonus-bar {
  display: block;
  padding: 0.42rem 1rem;
  background: #cc723c;
  color: #fff8f2;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.welcome-bonus-bar:hover,
.welcome-bonus-bar:focus {
  background: #be6836;
  color: #fff8f2;
  text-decoration: none;
}

@media (max-width: 575.98px) {
  .welcome-bonus-bar {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }
}
