.shop-page {
  background: #f4f4f4;
  color: #050505;
}

/* HERO */

.shop-hero {
  height: 330px;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.96) 0%,
      rgba(0, 0, 0, 0.9) 28%,
      rgba(0, 0, 0, 0.42) 58%,
      rgba(0, 0, 0, 0.05) 100%
    ),
    url("images/shop-background.png");
  background-size: cover;
  background-position: center right;
  color: #fff;
}

.shop-hero-inner {
  height: 100%;
  display: flex;
  align-items: center;
}

.shop-hero-content {
  width: 100%;
  max-width: 650px;
  padding-top: 4px;
}

.shop-hero h1 {
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  margin-bottom: 18px;
}

.shop-hero h3 {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 8px;
}

.shop-hero p {
  max-width: 340px;
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 28px;
}

.shop-hero-features {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  align-items: center;
  column-gap: 42px;
  width: max-content;
  max-width: 100%;
}

.shop-hero-features > div {
  display: grid;
  grid-template-columns: 34px max-content;
  align-items: center;
  column-gap: 12px;
  text-align: left;
}

.shop-hero-features img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.shop-hero-features span {
  display: block;
  max-width: 135px;
  font-size: 10.5px;
  line-height: 1.35;
  text-align: left;
}


/* CATEGORY TABS */

.shop-category-tabs {
  height: 90px;
  background: #fff;
  border-radius: 9px;
  margin-top: -28px;
  position: relative;
  z-index: 3;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.shop-category-tabs button {
  min-width: 0;
  padding: 0 14px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;

  border-right: 1px solid #d5d5d5;
  position: relative;
  transition: 0.25s ease;
}

.shop-category-tabs button:last-child {
  border-right: none;
}

.shop-category-tabs button.active::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 3px;
  background: var(--gold);
}

.shop-category-tabs img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.shop-category-tabs b {
  display: block;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 2px;
}

.shop-category-tabs span {
  display: block;
  font-size: 12px;
  color: var(--gold);
}

.shop-category-tabs button.active b {
  color: var(--gold);
}

/* MAIN LAYOUT */

.shop-main {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 34px;
  padding-top: 42px;
  padding-bottom: 34px;
}

/* FILTERS */

.shop-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.filter-title {
  height: 40px;
  background: #fff;
  border-radius: 8px;
  padding: 0 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-title b {
  font-size: 13px;
  font-weight: 900;
}

.filter-title button {
  font-size: 11px;
  color: var(--gold);
}

.filter-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px 14px 16px;
}

.filter-card h4 {
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 14px;
}

.filter-card label {
  display: flex;
  align-items: center;
  gap: 8px;

  font-size: 12px;
  color: #333;
  margin-bottom: 10px;
}

.filter-card input {
  accent-color: var(--gold);
}

.filter-card label span {
  margin-left: auto;
  min-width: 26px;
  height: 20px;
  border-radius: 20px;
  background: #f1f1f1;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 10px;
  color: #555;
}

.filter-card a {
  display: inline-block;
  margin-top: 3px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
}

.price-slider {
  height: 4px;
  background: #e5e5e5;
  border-radius: 10px;
  margin: 22px 10px 24px;
  position: relative;
}

.price-slider span {
  position: absolute;
  left: 5%;
  right: 28%;
  height: 100%;
  background: var(--gold);
  border-radius: 10px;
}

.price-slider::before,
.price-slider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateY(-50%);
}

.price-slider::before {
  left: 5%;
}

.price-slider::after {
  right: 28%;
}

.price-values {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
}

.price-values p {
  font-size: 11px;
  color: #555;
}

.price-values b {
  display: inline-flex;
  background: #f7f7f7;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 11px;
  color: #444;
}

.price-filter button {
  width: 100%;
  height: 38px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  transition: 0.25s ease;
}

.price-filter button:hover {
  background: var(--gold);
}

/* TOP */

.shop-content-top {
  height: 40px;
  margin-bottom: 22px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shop-content-top p {
  font-size: 13px;
  color: #333;
}

.sort-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-box span {
  font-size: 13px;
  font-weight: 800;
}

.sort-box select {
  height: 34px;
  border: none;
  background: #fff;
  border-radius: 7px;
  padding: 0 14px;
  font-weight: 800;
  outline: none;
}

/* PRODUCTS */

.shop-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.shop-product {
  background: #fff;
  min-height: 330px;
  padding: 12px;
  position: relative;
  transition: 0.25s ease;
}

.shop-product:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.11);
}

.product-label {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 20px;
  z-index: 2;
}

.product-img {
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

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

.product-small-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 10px;
}

.product-small-dots span {
  width: 5px;
  height: 5px;
  background: #d8d8d8;
  border-radius: 50%;
}

.product-small-dots span.active {
  background: var(--gold);
}

.shop-product h3 {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 500;
  min-height: 38px;
  margin-bottom: 8px;
}

.product-price {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 12px;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-bottom button {
  width: 112px;
  height: 30px;
  border: 1px solid var(--gold);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  transition: 0.25s ease;
}

.product-bottom button:hover {
  background: var(--gold);
}

.product-bottom img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* PAGINATION */

.shop-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 34px;
}

.shop-pagination button,
.shop-pagination span {
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 5px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 13px;
  font-weight: 700;
}

.shop-pagination button.active {
  background: var(--gold);
}

/* SERVICE ROW */

.shop-service-row {
  background: #fff;
  border-radius: 8px;
  min-height: 76px;
  margin-bottom: 34px;
  padding: 16px 24px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.shop-service-row div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-service-row img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.shop-service-row b {
  display: block;
  font-size: 13px;
  margin-bottom: 3px;
}

.shop-service-row span {
  display: block;
  font-size: 11px;
  color: #333;
}















.filter-options {
  max-height: 140px;
  overflow-y: auto;
  padding-right: 8px;
}

.filter-options::-webkit-scrollbar {
  width: 6px;
}

.filter-options::-webkit-scrollbar-track {
  background: #f3f3f3;
  border-radius: 20px;
}

.filter-options::-webkit-scrollbar-thumb {
  background: #d7d7d7;
  border-radius: 20px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.shop-category-tabs button.active {
  color: #D3922E;
}

.shop-category-tabs button.active::after {
  background: #D3922E;
}

.shop-product-image-wrap {
  position: relative;
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  touch-action: pan-y;
}

.shop-product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-small-dots button {
  width: 5px;
  height: 5px;
  background: #d8d8d8;
  border-radius: 50%;
}

.product-small-dots button.active {
  background: #D3922E;
}

.shop-product {
  min-height: 330px;
}











/* PRICE RANGE */

.range-slider {
  position: relative;
  height: 32px;
  margin: 20px 10px 22px;
}

.range-track,
.range-progress {
  position: absolute;
  top: 50%;
  height: 4px;
  border-radius: 20px;
  transform: translateY(-50%);
}

.range-track {
  left: 0;
  right: 0;
  background: #e4e4e4;
}

.range-progress {
  left: 0%;
  right: 0%;
  background: #D3922E;
}

.range-slider input {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  transform: translateY(-50%);
  pointer-events: none;
  appearance: none;
  background: none;
}

.range-slider input::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #D3922E;
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
}

.range-slider input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #D3922E;
  cursor: pointer;
  pointer-events: auto;
  border: none;
}

/* CUSTOM SORT */

.custom-sort {
  position: relative;
  width: 170px;
}

.sort-selected {
  width: 100%;
  height: 38px;
  background: #fff;
  border-radius: 9px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
}

.sort-arrow {
  color: #bdbdbd;
  font-size: 20px;
  transition: 0.25s ease;
}

.custom-sort.open .sort-arrow {
  transform: rotate(180deg);
}

.sort-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.16);
  z-index: 20;
  display: none;
}

.custom-sort.open .sort-dropdown {
  display: block;
}

.sort-dropdown button {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  text-align: left;
  font-size: 14px;
  transition: 0.2s ease;
}

.sort-dropdown button:hover,
.sort-dropdown button.active {
  background: rgba(211, 146, 46, 0.12);
  color: #D3922E;
}



/* МЕНЯЕТ цвет иконок в категориях сверху одежды, аксессуары, рамки, подарки */

.shop-category-tabs button b {
  color: #050505;
  transition: 0.25s ease;
}

.shop-category-tabs button span {
  color: #D3922E;
}

.shop-category-tabs button.active b,
.shop-category-tabs button.active span,
.shop-category-tabs button:hover b,
.shop-category-tabs button:hover span {
  color: #D3922E;
}

.shop-category-tabs button img {
  transition: 0.25s ease;
}

.shop-category-tabs button.active::after {
  background: #D3922E;
}















/* Корзина */


/* ===============================
   CART DRAWER
================================ */

.cart-open-btn {
  position: relative;
}

.cart-count-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff7a00;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  display: none;
  align-items: center;
  justify-content: center;
}

.cart-count-badge.show {
  display: flex;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  z-index: 9998;
  transition: 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 100vw;
  height: 100dvh;
  background: #f4f4f4;
  z-index: 9999;
  transform: translateX(105%);
  transition: 0.35s ease;
  box-shadow: -18px 0 45px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
  overflow: hidden;
}

.cart-drawer.active {
  transform: translateX(0);
}

body.cart-lock {
  overflow: hidden;
}

.cart-header {
  min-height: 82px;
  padding: 28px 24px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #f4f4f4;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

.cart-header h2 {
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  margin: 0 0 8px;
}

.cart-header p {
  font-size: 14px;
  color: #111;
  margin: 0;
}

.cart-close-btn {
  font-size: 36px;
  line-height: 1;
  font-weight: 300;
  color: #050505;
  transition: 0.2s ease;
}

.cart-close-btn:hover {
  color: #ff7a00;
  transform: rotate(90deg);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 18px 18px;
  background: #f4f4f4;
}

.cart-body::-webkit-scrollbar {
  width: 6px;
}

.cart-body::-webkit-scrollbar-track {
  background: #eeeeee;
}

.cart-body::-webkit-scrollbar-thumb {
  background: #bdbdbd;
  border-radius: 20px;
}

.cart-empty {
  min-height: calc(100dvh - 90px);
  padding: 4px 6px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cart-empty-visual {
  width: 165px;
  height: auto;
  margin: 0 auto 0px;
  object-fit: contain;

}

.cart-empty-title {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 12px;
  text-align: center;
}

.cart-empty-text {
  max-width: 210px;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 20px;
}

.cart-main-btn {
  width: 100%;
  height: 46px;
  border-radius: 6px;
  background: #ff7a00;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  transition: 0.25s ease;
}

.cart-main-btn:hover {
  background: #d3922e;
}

.cart-pay-title {
  width: 100%;
  margin: 14px 0 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
}

.cart-pay-title::before,
.cart-pay-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d9d9d9;
}

.cart-pay-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  margin-bottom: 18px;
}

.cart-pay-card {
  height: 40px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-pay-card img {
  width: auto;
  height: 20px;
  max-width: 75%;
  object-fit: contain;
  display: block;
}

.cart-benefits {
  width: 100%;
  margin-bottom: 22px;
}

.cart-benefit {
  min-height: 58px;
  border-top: 1px solid #d9d9d9;
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-benefit:last-child {
  border-bottom: 1px solid #d9d9d9;
}

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

.cart-benefit-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-benefit b {
  display: block;
  font-size: 11px;
  margin-bottom: 3px;
}

.cart-benefit span {
  display: block;
  font-size: 10px;
}

.cart-gift-banner {
  width: 100%;
  min-height: 95px;
  border-radius: 7px;
  background: #fff0e4;
  display: grid;
  grid-template-columns: 62px 1fr 24px;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.cart-gift-icon {
  width: 40px;
  height: 40px;
}

.cart-gift-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-gift-banner b {
  color: #ff7a00;
  font-size: 12px;
}

.cart-gift-banner p {
  font-size: 11px;
  line-height: 1.35;
  margin-top: 6px;
}

.cart-safe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  color: #555;
  text-align: center;
  margin-top: 8px;
}

.cart-safe img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.cart-items {
  padding-bottom: 12px;
}

.cart-item {
  background: #fff;
  border-radius: 10px;
  padding: 14px 10px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 22px 92px 1fr 18px;
  gap: 10px;
  align-items: center;
}

.cart-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #d7d7d7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-check.active {
  background: #ff7a00;
  border-color: #ff7a00;
}

.cart-check img {
  width: 9px;
  height: 9px;
  object-fit: contain;
}

.cart-item-img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.cart-item-title {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 10px;
}

.cart-item-size {
  font-size: 11px;
  color: #999;
  margin-bottom: 10px;
}

.cart-item-price {
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
}

.cart-qty {
  display: inline-grid;
  grid-template-columns: 30px 34px 30px;
  height: 27px;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  overflow: hidden;
}

.cart-qty button,
.cart-qty span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: #fff;
}

.cart-qty span {
  border-left: 1px solid #d8d8d8;
  border-right: 1px solid #d8d8d8;
  font-weight: 900;
}

.cart-remove {
  align-self: flex-start;
  width: 18px;
  height: 18px;
  opacity: 0.55;
  transition: 0.2s ease;
}

.cart-remove img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-remove:hover {
  opacity: 1;
}

.cart-summary {
  position: sticky;
  bottom: -1px;
  z-index: 5;
  background: #f4f4f4;
  padding: 14px 0 2px;
  box-shadow: 0 -18px 24px rgba(244, 244, 244, 0.96);
}

.cart-summary::before {
  content: "";
  position: absolute;
  left: -18px;
  right: -18px;
  bottom: -30px;
  height: calc(100% + 48px);
  background: #f4f4f4;
  z-index: -1;
}

.cart-delivery,
.cart-promo,
.cart-total-box {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 8px;
}

.cart-delivery {
  padding: 14px;
}

.cart-delivery-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

.cart-delivery-limit {
  text-align: right;
}

.cart-progress {
  height: 5px;
  background: #ddd;
  border-radius: 20px;
  overflow: hidden;
}

.cart-progress span {
  display: block;
  height: 100%;
  background: #ff7a00;
}

.cart-promo {
  overflow: hidden;
}

.cart-promo-head {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 18px 1fr auto 18px;
  align-items: center;
  gap: 8px;
}

.cart-promo-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.cart-promo-label {
  font-size: 13px;
  color: #777;
}

.cart-promo-apply-text {
  font-size: 12px;
  font-weight: 900;
  color: #ff7a00;
}

.cart-promo-arrow {
  width: 14px;
  height: 14px;
  object-fit: contain;
  transition: 0.25s ease;
}

.cart-promo.open .cart-promo-arrow {
  transform: rotate(180deg);
}

.cart-promo-form {
  display: none;
  padding: 0 12px 12px;
  grid-template-columns: 1fr 104px;
  gap: 10px;
}

.cart-promo.open .cart-promo-form {
  display: grid;
}

.cart-promo-form input {
  height: 40px;
  border: 1px solid #dedede;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 12px;
  outline: none;
}

.cart-promo-form input:focus {
  border-color: #ff7a00;
}

.cart-promo-form button {
  height: 40px;
  border-radius: 6px;
  background: #ff7a00;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.cart-promo-message {
  display: none;
  padding: 0 12px 12px;
  font-size: 11px;
  font-weight: 800;
}

.cart-promo-message.success {
  display: block;
  color: #168a3a;
}

.cart-promo-message.error {
  display: block;
  color: #d33;
}

.cart-total-box {
  padding: 14px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 10px;
}

.cart-total-row b {
  white-space: nowrap;
}

.cart-final-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ddd;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 12px;
  align-items: stretch;
}

.cart-final-price-box {
  min-width: 0;
  background: #f7f7f7;
  border-radius: 8px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cart-final-price-box span {
  font-size: 11px;
  color: #555;
  margin-bottom: 3px;
}

.cart-final-price-box b {
  font-size: clamp(14px, 4vw, 20px);
  line-height: 1;
  font-weight: 700;
  white-space: normal;
  word-break: break-word;
}

.cart-checkout-btn {
  min-width: 0;
  height: 58px;
  border-radius: 8px;
  background: #ff7a00;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  transition: 0.25s ease;
}

.cart-checkout-btn:hover {
  background: #d3922e;
}

.cart-mini-pay {
  margin-top: 14px;
  border-top: 1px solid #ddd;
  padding-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 8px;
}

.cart-mini-pay img {
  justify-self: center;
  width: auto;
  height: 16px;
  max-width: 58px;
  object-fit: contain;
  display: block;
}

@media (max-width: 420px) {
  .cart-drawer {
    width: 100vw;
    border-radius: 0;
  }

  .cart-final-panel {
    grid-template-columns: 1fr;
  }

  .cart-checkout-btn {
    height: 48px;
  }
}










.product-bottom {
  gap: 8px;
}

.product-bottom .add-to-cart-btn {
  flex: 1;
}

.product-whatsapp-btn {
  height: 30px;
  padding: 0 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  background: #25d366;
  color: #fff;

  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;

  transition: 0.25s ease;
}

.product-whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.32);
}

.product-whatsapp-btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.product-heart-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}





/* WhatsApp правый нижний угол */

.whatsapp-floating {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 9999;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 24px;
  border-radius: 999px;

  background: #25d366;
  color: #fff;
  text-decoration: none;

  font-size: 12px;
  font-weight: 900;

  box-shadow: 0 18px 45px rgba(37, 211, 102, 0.35);
}

.whatsapp-floating img {
  width: 30px;
  height: 30px;
  display: block;
}

.whatsapp-floating:hover {
  transform: translateY(-3px);
}












/* ===============================
   SEARCH MODAL
================================ */

.search-open-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

.search-open-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(8px);
  z-index: 9500;

  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-modal {
  position: fixed;
  left: 50%;
  top: 90px;
  transform: translateX(-50%) translateY(-20px);

  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 130px);

  background: #fff;
  color: #050505;
  border-radius: 24px;
  padding: 26px;

  z-index: 9501;

  opacity: 0;
  visibility: hidden;
  transition: .25s ease;

  box-shadow: 0 28px 90px rgba(0,0,0,.35);
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.search-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.search-modal-head h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 6px;
}

.search-modal-head p {
  color: #777;
}

.search-modal-head button {
  border: none;
  background: transparent;
  font-size: 34px;
  font-weight: 900;
  cursor: pointer;
}

.search-input-box {
  height: 60px;
  border: 1px solid #e4e4e4;
  border-radius: 16px;
  padding: 0 18px;

  display: flex;
  align-items: center;
  gap: 14px;
}

.search-input-box img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.search-input-box input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;

  font-size: 17px;
  font-weight: 700;
}

.search-results {
  margin-top: 20px;
  display: grid;
  gap: 12px;

  max-height: 430px;
  overflow-y: auto;
  padding-right: 6px;
}

.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-thumb {
  background: #cfcfcf;
  border-radius: 999px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 16px;
  align-items: center;

  padding: 14px;
  border: 1px solid #ececec;
  border-radius: 18px;

  color: #050505;
  text-decoration: none;
  transition: .2s ease;
}

.search-result-card:hover {
  border-color: #d99a28;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.search-result-card img {
  width: 82px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: #f8f8f8;
}

.search-result-card h3 {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 5px;
}

.search-result-card p {
  color: #777;
  font-size: 13px;
  margin-bottom: 6px;
}

.search-result-card b {
  color: #d99a28;
  font-size: 17px;
}

.search-result-arrow {
  font-size: 26px;
  color: #d99a28;
}

.search-empty {
  padding: 28px;
  text-align: center;
  color: #777;
  border: 1px dashed #ddd;
  border-radius: 18px;
}










.product-card-link,
.product-title-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.product-card-link {
  cursor: pointer;
}

.product-title-link h3 {
  transition: 0.2s ease;
}

.product-title-link:hover h3 {
  color: var(--gold);
}


















/* СЕРДЕЧКО ДОБАВЛЯЕТ В АДМИН СТРАНИЦУ  */


.product-bottom {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 10px;
  align-items: center;
}

.product-bottom .add-to-cart-btn {
  width: 100%;
  height: 34px;
}

.product-bottom .product-heart-btn {
  width: 44px !important;
  height: 34px !important;
  min-width: 44px;

  border: none;
  background: transparent;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  cursor: pointer;
}

.product-bottom .product-heart-btn:hover {
  background: transparent;
}

.product-bottom .product-heart-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.22s ease;
}

.product-bottom .product-heart-btn.active img {
  transform: scale(1.12);
}









/* ===============================
   SHOP MOBILE DESIGN
================================ */

@media (max-width: 768px) {
  .shop-page {
    background: #f4f4f4;
  }

  .shop-hero {
    height: 255px;
    margin-top: 0;
    background:
      linear-gradient(90deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.72) 48%, rgba(0,0,0,.18) 100%),
      url("images/shop-background-mobile.png");
    background-size: cover;
    background-position: center right;
  }

  .shop-hero-inner {
    width: calc(100% - 24px);
  }

  .shop-hero-content {
    padding-top: 26px;
  }

  .shop-hero h1 {
    font-size: 33px;
    margin-bottom: 10px;
  }

  .shop-hero h3 {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .shop-hero p {
    max-width: 300px;
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 22px;
  }

  .shop-hero-features {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .shop-hero-features div {
    display: block;
  }

  .shop-hero-features img {
    width: 24px;
    height: 24px;
    margin-bottom: 6px;
  }

  .shop-hero-features span {
    font-size: 8px;
    line-height: 1.25;
  }

  .shop-category-tabs {
    width: calc(100% - 16px);
    height: 100px;
    margin-top: -16px;
    border-radius: 8px 8px 0 0;
    grid-template-columns: repeat(4, 1fr);
    box-shadow: none;
  }

  .shop-category-tabs button {
    flex-direction: column;
    gap: 7px;
    border-right: 1px solid #ddd;
  }

  .shop-category-tabs img {
    width: 24px;
    height: 24px;
  }

  .shop-category-tabs b {
    font-size: 11px;
  }

  .shop-category-tabs span {
    font-size: 10px;
  }

  .shop-category-tabs button.active::after {
    left: 10px;
    right: 10px;
    height: 3px;
    background: #f0a21a;
  }

  .shop-main {
    width: calc(100% - 16px);
    display: block;
    padding-top: 18px;
  }

  .shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(360px, 86vw);
    height: 100vh;
    background: #fff;
    z-index: 9999;
    padding: 22px;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: .3s ease;
    box-shadow: 20px 0 60px rgba(0,0,0,.25);
  }

  .shop-sidebar.active {
    transform: translateX(0);
  }

  .mobile-filter-close {
    display: inline-flex;
    font-size: 26px;
    color: #111;
    margin-left: 10px;
  }

  .shop-content-top {
    height: auto;
    display: block;
    margin-bottom: 16px;
  }

  .mobile-shop-actions {
    display: grid;
    grid-template-columns: 1fr 1.55fr;
    gap: 12px;
    margin-bottom: 18px;
  }

  .mobile-shop-actions > button {
    height: 42px;
    border: 1px solid #111;
    border-radius: 5px;
    background: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .mobile-shop-actions > button img {
    width: 16px;
    height: 16px;
  }

  .sort-box {
    gap: 0;
    width: 100%;
  }

  .sort-box span {
    display: none;
  }

  .custom-sort {
    width: 100%;
  }

  .sort-selected {
    width: 100%;
    height: 42px;
    border: 1px solid #111;
    border-radius: 5px;
    background: #fff;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
  }

  .sort-selected::before {
    content: "Сортировка по: ";
    font-weight: 500;
  }

  .sort-dropdown {
    width: 100%;
  }

  .mobile-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-result-row p {
    font-size: 11px;
    color: #111;
  }

  .mobile-view-toggle {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
  }

  .mobile-view-toggle button {
    width: 34px;
    height: 30px;
    display: grid;
    place-items: center;
  }

  .mobile-view-toggle button + button {
    border-left: 1px solid #ddd;
  }

  .mobile-view-toggle img {
    width: 16px;
    height: 16px;
  }

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

  .shop-product {
    min-height: 222px;
    padding: 10px;
    border-radius: 7px;
    background: #fff;
  }

  .product-label {
    left: 10px;
    top: 10px;
    font-size: 8px;
    padding: 4px 8px;
    background: #f0a21a;
  }

  .shop-product-image-wrap {
    height: 122px;
  }

  .shop-product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .product-small-dots {
    margin: 4px 0 8px;
  }

  .product-small-dots button {
    width: 5px;
    height: 5px;
  }

  .shop-product h3 {
    font-size: 11px;
    line-height: 1.35;
    min-height: 32px;
    margin-bottom: 8px;
    font-weight: 500;
  }

  .product-price {
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 10px;
  }

  .product-bottom {
    grid-template-columns: 1fr 34px;
    gap: 8px;
  }

  .add-to-cart-btn {
    height: 28px;
    border-radius: 4px;
    font-size: 10px;
    border: 1px solid #f67b12;
    background: #fff;
  }

  .product-heart-btn {
    width: 30px;
    height: 30px;
  }

  .product-heart-icon {
    width: 22px;
    height: 22px;
  }

  .shop-pagination {
    margin-top: 26px;
    justify-content: center;
  }

  .shop-pagination button {
    width: 36px;
    height: 36px;
    border-radius: 7px;
  }

  .shop-service-row {
    width: calc(100% - 16px);
    margin-top: 24px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 28px;
  }

  .shop-service-row div {
    justify-content: flex-start;
  }

  .shop-service-row img {
    width: 32px;
    height: 32px;
  }

  .whatsapp-float {
    width: 300px;
    max-width: calc(100% - 34px);
    height: 64px;
    border-radius: 999px;
    bottom: 28px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    font-size: 15px;
  }

  .whatsapp-float img {
    width: 30px;
    height: 30px;
  }
}

@media (min-width: 769px) {
  .mobile-shop-actions,
  .mobile-result-row,
  .mobile-filter-close {
    display: none !important;
  }
}








.filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(4px);
  z-index: 9997;

  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
}

.filter-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.filter-lock {
  overflow: hidden;
}

body.filter-lock .whatsapp-floating {
  display: none;
}

.mobile-filter-close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-filter-close img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}




/* =================================
   FRAME TYPE TABS
================================= */

.frame-type-tabs {
  margin-top: 28px;
}

.frame-type-tabs[hidden] {
  display: none;
}

.frame-type-tabs-track {
  display: flex;
  gap: 12px;

  overflow-x: auto;
  overflow-y: hidden;

  padding: 3px 2px 15px;

  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.frame-type-tabs-track::-webkit-scrollbar {
  display: none;
}

.frame-type-tab {
  flex: 0 0 205px;
  min-height: 76px;

  display: flex;
  align-items: center;
  gap: 14px;

  padding: 12px 16px;

  border: 1px solid transparent;
  border-radius: 8px;

  background: #ffffff;
  color: #111111;

  text-align: left;
  transition: 0.2s ease;
}

.frame-type-tab:hover {
  border-color: #e3e3e3;
  transform: translateY(-2px);
}

.frame-type-tab.active {
  border-color: var(--gold);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.06);
}

.frame-type-tab img {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  object-fit: contain;
}

.frame-type-tab b,
.frame-type-tab span {
  display: block;
}

.frame-type-tab b {
  margin-bottom: 5px;

  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;

  white-space: nowrap;
}

.frame-type-tab span {
  color: #777;
  font-size: 10px;
}

.frame-type-tab.active b {
  color: var(--gold);
}

.frame-type-tab.active span {
  color: var(--gold);
}




/* =================================
   FRAMES MODE IN SHOP
================================= */

body.frames-shop-mode .shop-main {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

body.frames-shop-mode .shop-sidebar {
  display: none;
}

body.frames-shop-mode .filter-overlay {
  display: none !important;
}

body.frames-shop-mode .shop-content {
  width: 100%;
  min-width: 0;
}

body.frames-shop-mode .shop-products {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}




@media (max-width: 1250px) {
  body.frames-shop-mode .shop-products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  body.frames-shop-mode .shop-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .frame-type-tabs {
    width: calc(100% - 16px);
    margin-top: 18px;
  }

  .frame-type-tabs-track {
    gap: 9px;
    padding-bottom: 12px;
  }

  .frame-type-tab {
    flex-basis: 142px;
    min-height: 67px;
    gap: 9px;
    padding: 9px 11px;
  }

  .frame-type-tab img {
    width: 29px;
    height: 29px;
  }

  .frame-type-tab b {
    max-width: 88px;
    font-size: 10px;
    white-space: normal;
  }

  .frame-type-tab span {
    font-size: 8px;
  }

  body.frames-shop-mode .shop-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.frames-shop-mode #mobileFilterOpen {
    display: none;
  }

  body.frames-shop-mode .mobile-shop-actions {
    grid-template-columns: 1fr;
  }
}




/* =================================
   FRAME SHOP HEADING
================================= */

.frames-shop-heading {
  width: 100%;
  min-height: 76px;
  margin-bottom: 26px;

  display: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

body.frames-shop-mode .frames-shop-heading {
  display: flex;
}

.frames-shop-heading-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.frames-shop-heading-info > span {
  width: 24px;
  height: 3px;
  margin-top: 13px;
  background: #ef151f;
  flex-shrink: 0;
}

.frames-shop-heading h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.frames-shop-heading p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #777;
}

.frames-shop-view-all {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  margin-top: 8px;
  flex-shrink: 0;

  color: #333;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;

  transition: 0.2s ease;
}

.frames-shop-view-all span {
  color: #ef151f;
  font-size: 19px;
  line-height: 1;
  transition: 0.2s ease;
}

.frames-shop-view-all:hover {
  color: #ef151f;
}

.frames-shop-view-all:hover span {
  transform: translateX(4px);
}






@media (max-width: 768px) {
  .frames-shop-heading {
    min-height: auto;
    margin-bottom: 20px;
    align-items: flex-start;
    gap: 12px;
  }

  .frames-shop-heading-info {
    gap: 10px;
  }

  .frames-shop-heading-info > span {
    width: 18px;
    margin-top: 9px;
  }

  .frames-shop-heading h2 {
    font-size: 17px;
    line-height: 1.25;
  }

  .frames-shop-heading p {
    font-size: 11px;
    line-height: 1.4;
  }

  .frames-shop-view-all {
    margin-top: 3px;
    gap: 7px;
    font-size: 11px;
    white-space: nowrap;
  }

  .frames-shop-view-all span {
    font-size: 15px;
  }
}






/* =================================
   SETS TEAM FILTER
================================= */

.sets-team-section {
  position: relative;

  margin-top: 26px;
  padding: 0 42px;

  align-items: center;
}

.sets-team-section:not([hidden]) {
  display: flex;
}

.sets-team-slider {
  width: 100%;

  display: flex;
  align-items: stretch;
  gap: 12px;

  overflow-x: auto;
  overflow-y: hidden;

  padding: 4px 2px 16px;

  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;

  cursor: grab;
  user-select: none;
}

.sets-team-slider:active {
  cursor: grabbing;
}

.sets-team-slider::-webkit-scrollbar {
  display: none;
}

.sets-team-card {
  flex: 0 0 176px;
  min-height: 78px;

  display: flex;
  align-items: center;
  gap: 13px;

  padding: 11px 14px;

  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 8px;

  scroll-snap-align: start;

  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.sets-team-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}

.sets-team-card.active {
  border-color: #ed111b;
  box-shadow: 0 8px 22px rgba(237, 17, 27, 0.08);
}

.sets-team-card img {
  width: 42px;
  height: 42px;

  flex-shrink: 0;
  object-fit: contain;
}

.sets-team-card span {
  min-width: 0;
  text-align: left;
}

.sets-team-card b,
.sets-team-card small {
  display: block;
}

.sets-team-card b {
  color: #111111;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 900;
}

.sets-team-card small {
  margin-top: 5px;

  color: #888888;
  font-size: 9px;
}

.sets-team-card.active b {
  color: #ed111b;
}

.sets-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;

  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #e3e3e3;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.96);
  color: #111111;

  font-size: 25px;
  line-height: 1;

  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);

  transform: translateY(-65%);
  transition: 0.2s ease;
}

.sets-slider-arrow:hover {
  border-color: #ed111b;
  background: #ed111b;
  color: #ffffff;
}

.sets-slider-arrow-left {
  left: 0;
}

.sets-slider-arrow-right {
  right: 0;
}


/* =================================
   SETS MODE
================================= */

body.sets-shop-mode .shop-main {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

body.sets-shop-mode .shop-sidebar {
  display: none;
}

body.sets-shop-mode .filter-overlay {
  display: none !important;
}

body.sets-shop-mode .shop-content {
  width: 100%;
  min-width: 0;
}

body.sets-shop-mode .shop-products {
  display: block;
}




/* =================================
   SET PRODUCT SECTIONS
================================= */

.set-products-section {
  width: 100%;
  margin-bottom: 46px;
}

.set-products-section:last-child {
  margin-bottom: 0;
}


/* TITLE */

.set-section-heading {
  width: 100%;

  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  gap: 24px;

  margin-bottom: 18px;
}


.set-section-title {
  display: flex;

  align-items: center;

  gap: 10px;

  min-width: 0;
}




.set-section-view-all {
  flex-shrink: 0;

  color: #555;

  font-size: 15px;

  font-weight: 400;

  text-decoration: none;

  white-space: nowrap;

  transition:
    color 0.2s ease;
}

.set-section-view-all span {
  margin-left: 8px;

  color: #ed111b;
}

.set-section-view-all:hover {
  color: #ed111b;
}



/* =================================
   SETS SLIDER PROGRESS
================================= */

.set-slider-progress {
  width: 75px;
  height: 4px;

  margin:
    16px auto 0;

  background: #e4e4e4;

  border-radius: 20px;

  overflow: hidden;
}

.set-slider-progress span {
  display: block;

  width: 28%;
  height: 100%;

  background: #ed111b;

  border-radius: inherit;

  transition:
    transform 0.08s linear;

  will-change: transform;
}


/*
  Если товаров <= 5,
  indicator вообще не нужен.
*/

.set-slider-progress.hidden {
  display: none;
}



.set-section-line {
  width: 13px;
  height: 3px;

  flex-shrink: 0;

  background: #ed111b;
}

.set-section-heading h2 {
  margin: 0;

  color: #171717;

  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;

  letter-spacing: 2.1px;
}


/* PRODUCTS */

.set-section-products {
  width: 100%;

  display: grid;

  grid-auto-flow: column;

  /*
    РОВНО 5 товаров одновременно.
    4 промежутка × 18px = 72px.
  */
  grid-auto-columns:
    calc((100% - 72px) / 5);

  gap: 18px;

  overflow-x: auto;
  overflow-y: hidden;

  /*
    После прокрутки карточка
    становится ровно по левому краю.
  */
  scroll-snap-type: x mandatory;

  /*
    Более плавная прокрутка
  */
  scroll-behavior: smooth;

  /*
    Скрываем обычный scrollbar
  */
  scrollbar-width: none;

  padding: 3px 0 12px;
}




.set-section-products::-webkit-scrollbar {
  display: none;
}


.set-section-products .shop-product {
  min-width: 0;

  scroll-snap-align: start;

  scroll-snap-stop: always;
}


/* EMPTY */

.sets-empty {
  padding: 60px 20px;

  text-align: center;

  color: #777;
  font-size: 14px;

  background: #fff;
}




body.sets-shop-mode #mobileFilterOpen {
  display: none;
}

body.sets-shop-mode .mobile-shop-actions {
  grid-template-columns: 1fr;
}


/* =================================
   SETS RESPONSIVE
================================= */

@media (max-width: 1050px) {
  .shop-category-tabs {
    overflow-x: auto;

    grid-template-columns:
      repeat(
        4,
        minmax(190px, 1fr)
      );
  }

  .set-section-products {
    grid-auto-columns:
      calc((100% - 36px) / 3);
  }

}


@media (max-width: 768px) {
  .sets-team-section {
    width: calc(100% - 16px);
    margin-top: 18px;
    padding: 0;
  }

  .sets-team-slider {
    gap: 9px;
    padding-bottom: 12px;
  }

  .sets-team-card {
    flex-basis: 145px;
    min-height: 68px;
    padding: 9px 11px;
    gap: 9px;
  }

  .sets-team-card img {
    width: 31px;
    height: 31px;
  }

  .sets-team-card b {
    font-size: 10px;
  }

  .sets-team-card small {
    font-size: 8px;
  }

  .sets-slider-arrow {
    display: none;
  }

  .set-section-products {
    grid-auto-columns:
      calc((100% - 12px) / 2);

    gap: 12px;

    scroll-snap-type: x proximity;

    -webkit-overflow-scrolling: touch;

    overscroll-behavior-x: contain;

    touch-action: pan-x pan-y;
  }

  .set-section-products .shop-product {
    scroll-snap-stop: normal;
  }

  .set-products-section {
    margin-bottom: 34px;
  }

  .set-section-heading {
    gap: 8px;
    margin-bottom: 14px;
  }

  .set-section-line {
    width: 11px;
    height: 2px;
  }

  .set-section-heading h2 {
    font-size: 11px;
    line-height: 1.45;

    letter-spacing: 1.6px;
  }


  .set-section-heading {
    align-items: center;

    gap: 12px;
  }

  .set-section-title {
    min-width: 0;
  }

  .set-section-view-all {
    font-size: 10px;
  }

  .set-section-view-all span {
    margin-left: 4px;
  }


}


@media (max-width: 480px) {

  .set-section-products {
    grid-auto-columns:
      calc((100% - 10px) / 2);

    gap: 10px;
  }

  .set-products-section {
    margin-bottom: 30px;
  }

  .set-section-heading h2 {
    font-size: 10px;
    letter-spacing: 1.2px;
  }

}




@media (max-width: 420px) {
  .shop-category-tabs {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
  }

  .shop-category-tabs button {
    gap: 9px;
    padding: 0 10px;
  }

  .shop-category-tabs img {
    width: 29px;
    height: 29px;
  }

  .shop-category-tabs b {
    font-size: 13px;
  }

  .shop-category-tabs span {
    font-size: 10px;
  }
}




/* =================================
   FRAME TYPE HORIZONTAL SLIDER
================================= */

.frame-type-tabs {
  position: relative;
  padding-left: 42px;
  padding-right: 42px;
  align-items: center;
}

.frame-type-tabs:not([hidden]) {
  display: flex;
}

.frame-type-tabs-track {
  width: 100%;
  min-width: 0;

  display: flex;
  align-items: stretch;
  gap: 12px;

  overflow-x: auto;
  overflow-y: hidden;

  padding: 4px 2px 16px;

  scroll-behavior: smooth;
  scroll-snap-type: x proximity;

  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.frame-type-tabs-track::-webkit-scrollbar {
  display: none;
}

.frame-type-tabs-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.frame-type-tab {
  flex-shrink: 0;
  scroll-snap-align: start;
}

.frame-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 8;

  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #e3e3e3;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.97);
  color: #111;

  font-size: 25px;
  line-height: 1;

  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);

  transform: translateY(-62%);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.frame-slider-arrow:hover {
  border-color: #d3922e;
  background: #d3922e;
  color: #fff;
}

.frame-slider-arrow-left {
  left: 0;
}

.frame-slider-arrow-right {
  right: 0;
}

.frame-slider-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}


/* Телефон */

@media (max-width: 768px) {
  .frame-type-tabs {
    width: calc(100% - 16px);
    padding-left: 0;
    padding-right: 0;
  }

  .frame-slider-arrow {
    display: none;
  }

  .frame-type-tabs-track {
    gap: 9px;
    padding-bottom: 12px;
  }
}