html {
  scroll-behavior: smooth;
}

body {
  background: #f6f8fb;
  color: #192132;
}

.header__middle {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(25, 33, 50, 0.08);
  box-shadow: 0 10px 30px rgba(25, 33, 50, 0.08);
}

.header__middle-inner {
  gap: 14px;
}

.header__catalog-btn,
.search-component__btn,
.btn__icon-primary,
.kushchu-cart-checkout {
  background: #176b5d !important;
  border-color: #176b5d !important;
  color: #fff !important;
}

.header__catalog-btn:hover,
.search-component__btn:hover,
.btn__icon-primary:hover,
.kushchu-cart-checkout:hover {
  background: #0f5a4e !important;
}

.header__search-wrap {
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(25, 33, 50, 0.08);
}

@media (max-width: 600px) {
  #form-search.header__middle-search {
    display: block !important;
    order: 5;
    width: 100%;
  }
}

.main-slider,
.c-showcase-item,
.card__long,
.catalog__products-card {
  border-radius: 8px !important;
}

.card__long {
  border: 1px solid rgba(25, 33, 50, 0.08);
  box-shadow: 0 12px 32px rgba(25, 33, 50, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card__long:hover {
  border-color: rgba(23, 107, 93, 0.25);
  box-shadow: 0 18px 42px rgba(25, 33, 50, 0.13);
  transform: translateY(-3px);
}

.card__long-img {
  object-fit: contain;
  padding: 12px;
}

.card__long-title {
  color: #162033 !important;
  line-height: 1.35 !important;
}

.card__long-cost {
  color: #176b5d !important;
  font-weight: 700 !important;
}

.card__long-footer {
  position: relative;
  z-index: 6;
  margin-top: 14px;
}

.card__long-basket {
  position: relative;
  z-index: 7;
}

.card__long-inner {
  pointer-events: none;
}

#frfrfrf {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  transform: none !important;
}

#frfrfrf .carousel__component-slide {
  width: auto !important;
  height: auto !important;
}

.card__long-basket {
  min-width: 118px;
  border-radius: 8px !important;
  gap: 8px;
}

.card__long-basket.is-in-cart {
  background: #e34b4b !important;
  border-color: #e34b4b !important;
  color: #fff !important;
}

.card__long-basket.is-in-cart:hover {
  background: #c93636 !important;
  border-color: #c93636 !important;
}

.kushchu-cart-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  min-height: 46px;
  border: 1px solid rgba(25, 33, 50, 0.1);
  border-radius: 8px;
  background: #fff;
  color: #192132;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(25, 33, 50, 0.08);
}

.kushchu-cart-button svg {
  width: 22px;
  height: 22px;
}

.kushchu-cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e34b4b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.kushchu-cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  background: rgba(10, 18, 30, 0.48);
}

.kushchu-cart-backdrop.is-open {
  display: block;
}

.kushchu-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  height: 100vh;
  background: #fff;
  box-shadow: -18px 0 48px rgba(10, 18, 30, 0.24);
  transform: translateX(105%);
  transition: transform 0.22s ease;
}

.kushchu-cart-drawer.is-open {
  transform: translateX(0);
}

.kushchu-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid rgba(25, 33, 50, 0.1);
}

.kushchu-cart-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.kushchu-cart-close,
.kushchu-cart-remove,
.kushchu-qty-btn {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #edf1f6;
  color: #192132;
  cursor: pointer;
}

.kushchu-cart-close {
  width: 40px;
  height: 40px;
  font-size: 28px;
}

.kushchu-cart-list {
  flex: 1;
  overflow: auto;
  padding: 18px 20px;
}

.kushchu-cart-empty {
  padding: 36px 12px;
  color: #667085;
  text-align: center;
}

.kushchu-cart-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(25, 33, 50, 0.08);
}

.kushchu-cart-img {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  object-fit: contain;
  background: #f6f8fb;
}

.kushchu-cart-name {
  margin: 0 0 8px;
  font-weight: 700;
  line-height: 1.3;
}

.kushchu-cart-meta {
  color: #667085;
  font-size: 13px;
}

.kushchu-cart-line-total {
  margin-left: auto;
  color: #176b5d;
  font-weight: 800;
  white-space: nowrap;
}

.kushchu-cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

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

.kushchu-qty-btn {
  width: 32px;
  height: 32px;
  font-size: 18px;
}

.kushchu-qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
}

.kushchu-cart-remove {
  width: 32px;
  height: 32px;
  color: #e34b4b;
}

.kushchu-cart-foot {
  padding: 18px 20px 20px;
  border-top: 1px solid rgba(25, 33, 50, 0.1);
  background: #fbfcfe;
}

.kushchu-cart-summary {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-weight: 800;
}

.kushchu-cart-sum {
  padding-top: 12px;
  border-top: 1px solid rgba(25, 33, 50, 0.08);
  color: #176b5d;
  font-size: 18px;
}

.kushchu-cart-checkout {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 14px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.kushchu-search-results {
  display: grid;
  gap: 8px;
  min-width: min(620px, calc(100vw - 30px));
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(25, 33, 50, 0.18);
}

.kushchu-search-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  color: #192132;
  text-decoration: none;
}

.kushchu-search-item:hover {
  background: #f3f7f6;
}

.kushchu-search-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  background: #f6f8fb;
}

.kushchu-search-title {
  font-weight: 700;
  line-height: 1.25;
}

.kushchu-search-cat {
  color: #667085;
  font-size: 13px;
}

.kushchu-search-empty {
  padding: 18px;
  color: #667085;
  text-align: center;
}

.kushchu-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10000;
  padding: 13px 16px;
  border-radius: 8px;
  background: #192132;
  color: #fff;
  box-shadow: 0 14px 38px rgba(10, 18, 30, 0.22);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.kushchu-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.kushchu-catalog-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr) auto minmax(180px, 0.9fr) auto;
  align-items: end;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid rgba(25, 33, 50, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(25, 33, 50, 0.08);
}

.kushchu-field,
.kushchu-check {
  display: grid;
  gap: 6px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.kushchu-field input,
.kushchu-field select {
  width: 100%;
  height: 44px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid rgba(25, 33, 50, 0.14);
  border-radius: 8px;
  background: #fbfcfe;
  color: #192132;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.kushchu-field input:focus,
.kushchu-field select:focus {
  border-color: #176b5d;
  outline: 2px solid rgba(23, 107, 93, 0.16);
}

.kushchu-check {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid rgba(25, 33, 50, 0.12);
  border-radius: 8px;
  background: #fbfcfe;
  color: #192132;
  white-space: nowrap;
}

.kushchu-check input {
  width: 18px;
  height: 18px;
  accent-color: #176b5d;
}

.kushchu-filter-reset {
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(25, 33, 50, 0.12);
  border-radius: 8px;
  background: #edf1f6;
  color: #192132;
  font-weight: 800;
  cursor: pointer;
}

.kushchu-filter-reset:hover {
  background: #e3e9f0;
}

.kushchu-catalog-count {
  grid-column: 1 / -1;
  color: #667085;
  font-size: 14px;
  font-weight: 700;
}

.kushchu-catalog-empty {
  grid-column: 1 / -1;
  padding: 34px 16px;
  border: 1px dashed rgba(25, 33, 50, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #667085;
  text-align: center;
}

.kushchu-img-fallback {
  padding: 24px !important;
  opacity: 0.65;
}

.kushchu-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: 22px;
  align-items: start;
  margin: 18px 0 46px;
}

.kushchu-detail-loading,
.kushchu-detail-empty {
  grid-column: 1 / -1;
  padding: 42px 18px;
  border-radius: 8px;
  background: #fff;
  color: #667085;
  text-align: center;
  box-shadow: 0 12px 32px rgba(25, 33, 50, 0.08);
}

.kushchu-detail-media,
.kushchu-detail-info {
  border: 1px solid rgba(25, 33, 50, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(25, 33, 50, 0.08);
}

.kushchu-detail-media {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 24px;
}

.kushchu-detail-img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.kushchu-detail-info {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.kushchu-detail-category {
  color: #176b5d;
  font-weight: 800;
  text-decoration: none;
}

.kushchu-detail-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.18;
}

.kushchu-detail-meta,
.kushchu-detail-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.kushchu-detail-meta {
  color: #667085;
  font-size: 14px;
}

.kushchu-detail-badge {
  padding: 5px 9px;
  border-radius: 8px;
  background: #edf7f4;
  color: #176b5d;
  font-weight: 800;
}

.kushchu-detail-price .card__long-cost {
  font-size: 28px;
}

.kushchu-detail-buy {
  width: min(260px, 100%);
  min-height: 52px;
}

.kushchu-detail-note,
.kushchu-detail-description {
  padding: 14px;
  border-radius: 8px;
  background: #f6f8fb;
  color: #344054;
  line-height: 1.55;
}

.kushchu-detail-description h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.kushchu-detail-description p {
  margin: 0;
}

.kushchu-detail-specs {
  display: grid;
  gap: 8px;
  margin: 0;
}

.kushchu-detail-specs div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(25, 33, 50, 0.08);
}

.kushchu-detail-specs dt {
  color: #667085;
  font-weight: 700;
}

.kushchu-detail-specs dd {
  margin: 0;
  color: #192132;
  font-weight: 700;
}

.catalog__products-card[hidden],
.kushchu-catalog-empty[hidden] {
  display: none !important;
}

@media (max-width: 1199px) {
  .kushchu-catalog-tools {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .kushchu-catalog-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 6px;
    padding: 10px;
  }

  .kushchu-catalog-tools .kushchu-field:first-child,
  .kushchu-field--sort,
  .kushchu-catalog-count {
    grid-column: 1 / -1;
  }

  .kushchu-field,
  .kushchu-check {
    gap: 4px;
    font-size: 11px;
  }

  .kushchu-check,
  .kushchu-filter-reset,
  .kushchu-field input,
  .kushchu-field select {
    height: 38px;
  }

  .kushchu-detail {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
  }

  .kushchu-detail-media {
    min-height: 280px;
    padding: 16px;
  }

  .kushchu-detail-info {
    padding: 16px;
  }

  .kushchu-detail-title {
    font-size: 23px;
  }

  .kushchu-detail-price .card__long-cost {
    font-size: 24px;
  }

  .kushchu-detail-buy {
    width: 100%;
  }

  .kushchu-detail-specs div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .header__middle {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .header__middle-inner.container {
    display: grid !important;
    grid-template-columns: 56px minmax(82px, 1fr) 56px 56px;
    align-items: center;
    gap: 8px;
    width: 100% !important;
    min-height: 72px;
    padding: 8px 12px !important;
  }

  .header__middle-catalog {
    order: 1;
    min-width: 0;
  }

  .header__middle-logo {
    display: none !important;
  }

  .logoMob {
    order: 2;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }

  .logoMob .header__logo-img {
    width: auto !important;
    max-width: 88px;
    max-height: 48px;
    object-fit: contain;
  }

  #form-search.header__middle-search {
    order: 3;
    display: block !important;
    width: 56px;
    min-width: 0;
  }

  .header__middle-basket {
    order: 4;
    display: block !important;
    margin-left: 0 !important;
    min-width: 0;
  }

  .header__catalog-btn,
  .kushchu-cart-button,
  .header__middle-basket-active {
    width: 56px !important;
    height: 56px !important;
    min-height: 56px;
    padding: 0 !important;
    border-radius: 8px !important;
  }

  .header__catalog-btn {
    display: flex !important;
  }

  .header__catalog-decor {
    width: 24px !important;
  }

  .header__catalog-decor:before {
    top: -8px !important;
  }

  .header__catalog-decor:after {
    top: 8px !important;
  }

  .header__catalog-text,
  .header__middle-basket .header__middle-item-text {
    display: none !important;
  }

  .header__middle-state,
  .header__middle-icon {
    margin: 0 !important;
  }

  .kushchu-cart-button {
    justify-content: center;
    box-shadow: none;
  }

  .kushchu-cart-count {
    top: -5px;
    right: -5px;
  }

  .header__search-wrap {
    width: 56px;
    height: 56px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: none;
  }

  .header__search-group {
    width: 100%;
    height: 100%;
    padding: 0 !important;
    background: transparent !important;
  }

  .header__search-input {
    width: 0;
    min-width: 0;
    height: 56px !important;
    padding: 0 !important;
    border: 0;
    opacity: 0;
  }

  .header__search .search-component__btn {
    inset: 0 auto auto 0 !important;
    width: 56px !important;
    height: 56px !important;
    padding: 16px !important;
    border-radius: 8px !important;
    transform: none !important;
  }

  .header__search-open .header__search-wrap {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    display: block;
    width: calc(100vw - 16px);
    height: 56px;
    overflow: visible;
    background: #fff;
    box-shadow: 0 14px 40px rgba(25, 33, 50, 0.18);
  }

  .header__search-open .header__search-group {
    display: grid !important;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
  }

  .header__search-open .header__search-input {
    grid-column: 2;
    width: 100%;
    opacity: 1;
    padding: 0 10px !important;
  }

  .header__search-open .search-component__btn {
    position: static !important;
    grid-column: 1;
    grid-row: 1;
  }

  .header__search-open .header__search-cancel {
    display: block !important;
    grid-column: 3;
    margin: 0;
    padding: 0 12px;
    white-space: nowrap;
  }

  .header__search-panel {
    top: 72px !important;
    left: 8px;
    width: calc(100vw - 16px);
  }

  #frfrfrf {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .kushchu-cart-button .header__middle-item-text {
    display: none;
  }

  .kushchu-search-item {
    grid-template-columns: 48px 1fr;
  }

  .kushchu-search-cat {
    display: none;
  }
}
