.shop-spa .wrapper {
  width: 90%;
  max-width: 1300px;
  padding: 0 10px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.shop-spa .banner {
  position: relative;
  display: flex;
  align-items: stretch;
  background-color: #f3f4f6;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 0;
  margin-top: 0;
  margin-bottom: 20px;
  overflow: hidden;
}

.shop-spa .banner .left {
  width: 56px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;

  background-size: 100% auto;
}

.shop-spa .banner .left p {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 13px;
  color: #ce332d;
  margin: 0;
  line-height: 1;
  letter-spacing: 0.5px;
}

.product-banner-panel {
  display: flex;
  flex: 1;
  padding: 20px 20px;
  gap: 20px;
  font-size: 16px;
  text-align: center;
}

.product-banner-panel .product-item {
  flex: 1;
  min-height: 385px;
  background: #fff;
  border: 1px solid #eee;
  position: relative;
}

.product-banner-panel .product-item:not(:nth-child(4n + 1)) {
  margin-left: 0;
}

.product-banner-panel .product-item .text {
  margin-top: 10px;
}

.product-banner-panel .product-item .text .algorithm {
  margin-top: 8px;
}

.product-banner-panel .product-item .img {
  height: 135px;
  margin-top: 10px;
}

.product-banner-panel .product-item .bottom .price {
  margin-top: 10px;
}

.hot-product-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e8e8;
  text-decoration: none;
  color: inherit;
  text-align: center;
  padding: 20px 16px 0;
  min-height: 380px;
  transition: box-shadow 0.2s;
}

.hot-product-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.hot-card-text {
  flex-shrink: 0;
}

.hot-card-name {
  font-size: 16px;
  font-weight: 400;
  color: #111;
  line-height: 1.4;
}

.hot-card-algo {
  font-size: 14px;
  color: #555;
  margin-top: 6px;
}

.hot-card-params {
  font-size: 14px;
  color: #444;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.param-sep {
  color: #bbb;
  padding: 0 8px;
  font-weight: 300;
}

.hot-card-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
  overflow: hidden;
}

.hot-card-img-wrap img {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.hot-product-card:hover .hot-card-img-wrap img {
  transform: scale(1.06);
}

.hot-card-bottom {
  border-top: 1px solid #f0f0f0;
  padding: 20px 0 20px;
  flex-shrink: 0;
  margin-top: auto;
}

.hot-card-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--color-primary);
}

.hot-card-price .status {
  display: inline-block;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 0 6px;
  white-space: nowrap;
  line-height: 1.4;
  vertical-align: middle;
  letter-spacing: 0.3px;
}

.hot-card-price .status.spot {
  background: #2878ff;
}

.hot-card-price .status.futures {
  background: #00a870;
}

.hot-card-price .status.sold-out {
  background: #727272;
}

.hot-card-price .price-val {
  font-weight: 400;
  font-size: 18px;
  color: var(--color-primary);
}

.hot-card-price .price-sep {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: #ccc;
  margin: 0 6px;
  vertical-align: middle;
  flex-shrink: 0;
}

.hot-card-price .price-ht-label {
  color: #888;
  font-size: 13px;
}

.hot-card-price .price-ht-val {
  font-weight: 400;
  font-size: 17px;
  color: var(--color-primary);
  margin-left: 3px;
}

.hot-card-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.hot-card-buttons .bt-cart {
  flex: 1;
  max-width: 140px;
  height: 36px;
  line-height: 34px;
  border: 1px solid #ccc;
  color: #333;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.hot-card-buttons .bt-cart:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.hot-card-buttons .bt-buy {
  flex: 1;
  max-width: 140px;
  height: 36px;
  line-height: 34px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.hot-card-buttons .bt-buy:hover {
  background: var(--color-primary);
  color: #fff;
}

.filter {
  padding: 26px 0 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.filter .filter-link {
  white-space: nowrap;
  font-size: 18px;
  color: rgba(0, 0, 0, 0.7);
  height: 26px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

.filter .filter-link:hover {
  color: #3371ff;
  cursor: pointer;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  background: #fff;
  margin: 0 6px 4px 0;
  white-space: nowrap;
}

.filter-tag-x {
  cursor: pointer;
  color: #999;
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
}

.filter-tag-x:hover {
  color: #e74949;
}

.filter-tag-clear {
  cursor: pointer;
  border-color: #e74949;
  color: #e74949;
  font-size: 12px;
}

.filter-tag-clear:hover {
  background: #fef2f2;
}

.filter-tag-search {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #f0f5ff;
}

.filter-box {
  border: 1px solid #ddd;
  font-size: 14px;
  margin-bottom: 20px;
}

.filter-box .item {
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  padding: 20px;
  align-items: flex-start;
}

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

.filter-box .item.item-coin {
  padding-bottom: 10px;
}

.filter-box .item.item-soldout {
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
}

.filter-box .item.item-soldout input {
  width: 15px;
  height: 15px;
  accent-color: #2878ff;
  cursor: pointer;
}

.filter-box .item.item-soldout label {
  cursor: pointer;
  color: #3371ff;
}

.filter-box .item-title {
  min-width: 120px;
  margin-right: 15px;
  line-height: 32px;
  color: rgba(0, 0, 0, 0.7);
  flex-shrink: 0;
}

.filter-box .item-list {
  display: flex;
  flex-wrap: wrap;
}

.filter-box .options {
  transition: color 0.3s;
  font-size: 14px;
  color: #000;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 30px 8px 0;
  line-height: 32px;
  white-space: nowrap;
  cursor: pointer;
}

.filter-box .options:hover {
  color: #3371ff;
}

.filter-box .options.clr-selected {
  color: #3371ff;
}

.clr-black07 {
  color: rgba(0, 0, 0, 0.7);
}

.coin-icons {
  display: inline-flex;
  align-items: center;
  margin: -3px 5px 0 0;
  vertical-align: middle;
}

.coin-icons img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-left: -4px;
  vertical-align: middle;
}

.coin-icons img:first-child {
  margin-left: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  font-size: 16px;
  text-align: center;
}

.product-grid .product-item-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.product-grid .product-item {
  position: relative;
  padding: 10px;
  border: 1px solid #ddd;
  min-height: 385px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  background: #fff;
  text-decoration: none;
  color: #262626;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-grid .product-item:hover {
  border-color: #999;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.product-grid .product-item .mask {
  display: block;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s;
  z-index: 2;
  pointer-events: none;
}

.product-grid .product-item:hover .mask {
  background: rgba(0, 0, 0, 0.03);
}

.product-grid .product-item.sold-out-text {
  opacity: 0.6;
}

.product-grid .product-item .text {
  margin-top: 10px;
  transition: all 0.5s linear;
}

.product-grid .product-item .text .title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.product-grid .product-item .text .title .name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #262626;
  font-weight: 400;
  font-size: 16px;
}

.product-grid .product-item .text .algorithm {
  min-height: 21px;
  font-size: 14px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  color: #555;
}

.product-grid .product-item .text .parameter {
  font-size: 14px;
  min-height: 24px;
  margin: 8px 0 4px;
  color: #262626;
}

.product-grid .product-item .text .parameter span {
  position: relative;
  padding: 0 10px;
}

.product-grid .product-item .text .parameter span:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 1px;
  height: 13px;
  background-color: #000;
  opacity: 0.7;
  transform: scaleX(0.5);
}

.product-grid .product-item .img {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
  height: 135px;
  width: auto;
  max-width: 100%;
  margin: 10px auto 0;
  display: block;
  object-fit: contain;
}

.product-grid .product-item:hover .img {
  transform: scale(1.06);
}

.product-grid .product-item .bottom {
  position: relative;
  min-height: 31px;
  transition: all 0.5s linear;
  z-index: 4;
  margin-top: auto;
  padding-top: 16px;
}

.product-grid .product-item .bottom .status {
  display: inline-block;
  flex-shrink: 0;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 0 5px;
  line-height: 1.5;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.product-grid .product-item .bottom .status.spot {
  background: #2878ff;
}

.product-grid .product-item .bottom .status.futures {
  background: #00a870;
}

.product-grid .product-item .bottom .status.sold-out {
  background: #727272;
}

.product-grid .product-item .bottom .price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 10px;
  padding: 0 10px;
}

.product-grid .product-item .bottom .price-unit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-right: 12px;
}

.product-grid .product-item .bottom .price-unit span:not(.status) {
  font-size: 17px;
  font-weight: 400;
  color: #4273f6;
}

.product-grid .product-item .bottom .price-hs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding-left: 12px;
  border-left: 1px solid #ddd;
}

.product-grid .product-item .bottom .price-hs span {
  font-size: 16px;
  font-weight: 400;
  color: #4273f6;
}

.product-grid .product-item .bottom .price-hs span:first-child {
  font-size: 13px;
  color: #888;
}

.product-grid .product-item .bottom .button {
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 0 6px;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
}

.product-grid .product-item .bottom .button .bt-primary {
  min-width: 115px;
  width: 40%;
  padding: 8px 0 6px;
  background-color: #fff;
  border-radius: 0;
  transition: all 0.5s;
  border: 1px solid #ddd;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  display: inline-block;
}

.product-grid .product-item .bottom .button .bt-primary:first-child {
  color: #000;
  border: 1px solid #ddd;
}

.product-grid .product-item .bottom .button .bt-primary:first-child:hover {
  color: #000;
  background-color: #e8e8e8;
}

.product-grid .product-item .bottom .button .bt-primary:last-child {
  color: #4273f6;
  border: 1px solid #4273f6;
}

.product-grid .product-item .bottom .button .bt-primary:last-child:hover {
  color: #fff;
  background-color: #4273f6;
}

.product-grid .product-item .bottom .button .bt-blue {
  padding: 8px 20px 6px;
  color: #4273f6;
  border: 1px solid #4273f6;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  display: inline-block;
}

.product-grid .product-item .bottom .button .bt-blue:hover {
  background: #4273f6;
  color: #fff;
}

.no-products {
  width: 100%;
  text-align: center;
  padding: 60px;
  color: #aaa;
  font-size: 15px;
}

.shop-loading {
  width: 100%;
  text-align: center;
  padding: 60px;
  color: #999;
  font-size: 14px;
  display: none;
}

.shop-spa .pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.shop-spa .pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #ddd;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  background: #fff;
}

.shop-spa .pg-btn:hover {
  border-color: #2878ff;
  color: #2878ff;
}

.shop-spa .pg-btn.active {
  background: #2878ff;
  color: #fff;
  border-color: #2878ff;
}

@media (max-width: 1290px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .product-banner-panel {
    flex-wrap: wrap;
    padding: 20px 20px 20px 20px;
    gap: 20px;
  }

  .hot-product-card {
    flex: 1 1 calc(50% - 10px);
    min-width: calc(50% - 10px);
    min-height: auto;
  }

  .filter-box .item {
    flex-direction: column;
    gap: 8px;
  }

  .filter-box .item-title {
    min-width: auto;
    line-height: 1.5;
  }
}

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

@media (max-width: 700px) {
  .shop-spa .banner {
    flex-direction: column;
    background-color: transparent;
    border: none;
    gap: 0;
  }

  .shop-spa .banner .left {
    display: none;
  }

  .product-banner-panel::before {
    content: "🔥 HOT";
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(90deg, #ce332d 0%, #e8501a 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 2px;
    box-sizing: border-box;
    order: -1;
    flex-shrink: 0;
  }

  .product-banner-panel {
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 16px 0 0 0;
    gap: 12px;
    border: none;
    overflow: visible;
  }

  .hot-product-card {
    flex: 1 1 100%;
    min-width: 100%;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
  }

  .hot-product-card:last-child {
    border-bottom: 1px solid #e8e8e8;
  }
}

.shop-spa-banner .banner .left {
  background-image: image-set(
    url("/assets/images/shop/hot-banner.webp") type("image/webp"),
    url("/assets/images/shop/hot-banner.png") type("image/png")
  );
  background-position: top center;
  background-repeat: no-repeat;
  margin-left: 18px;
}

.product-item-clickable {
  cursor: pointer;
}


.filter-box .cat-parent.clr-partial {
  color: #3371ff;
  opacity: 0.7;
}

.filter-box .item-subcategory[hidden] {
  display: none;
}

.filter-box .item-subcategory {
  animation: subRowIn 0.2s ease;
}

@keyframes subRowIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.filter-box .item-subcategory .item-title {
  color: rgba(0, 0, 0, 0.55);
}

.filter-box .cat-sub {
  font-size: 14px;
  color: #333;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 30px 8px 0;
  line-height: 32px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s;
}

.filter-box .cat-sub:hover {
  color: #3371ff;
}

.filter-box .cat-sub.clr-selected {
  color: #3371ff;
}