.shop__content{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  margin-top: 130px;
  @media(max-width: 999px){
    margin-top: 90px;
    gap: 20px;
  }
  @media(max-width: 768px){
    margin-top: 50px;
    grid-template-columns: repeat(1, 1fr);
  }
}

.shop__products-title{
  color: var(--text-color);
  font-size: 25px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%; /* 25px */
  @media(max-width: 768px){
    font-size: 22px;
  }
  @media(max-width: 550px){
    font-size: 20px;
  }
}

.shop__product-text{
  color: var(--text-color);
  font-size: 14px;
  font-style: normal;
  max-width: 512px;
  margin-top: 20px;
  font-weight: 400;
  line-height: 140%; /* 19.6px */
}

.shop__products-heading-wrapper{
  display: flex;
  justify-content: space-between;
  gap: 20px;
  @media(max-width: 768px){
    flex-direction: column;
    gap: 15px;
  }
}

.shop__products-heading {
  @media(max-width: 768px){
    margin-bottom: 0;
  }
}

.shop__product-text {
  @media(max-width: 768px){
    font-size: 13px;
    margin-top: 10px;
  }
  @media(max-width: 550px){
    font-size: 12px;
    margin-top: 8px;
  }
}

.shop__sort-label{
  cursor: pointer;
  color: rgba(255, 255, 255, 0.70);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%; /* 14px */
}

.shop__sort{
  position: relative;
  margin-top: 26px;
  min-width: 200px;
}

.shop__sort-dropdown{
  position: absolute;
  display: flex;
  transform: translateY(45%);
  flex-direction: column;
  left: 0;
  width: 100%;
  gap: 5px;
  opacity: 0;
  transition: .4s ease all;
  z-index: -1;
  visibility: hidden;
  background-color: transparent;
  bottom: -15px;
  background-color: transparent;
}

.shop__sort-option svg{
  transition: .4s ease all;
  opacity: 0;
}

.shop__sort-option {
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  background: #262626;
  transition: .4s ease all;
  color: rgba(255, 255, 255, 0.70);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%; /* 14px */
}

.shop__sort-option.is-active svg{
  opacity: 1;
}

.shop__sort-option.is-active {
  color: var(--text-color);
}

.shop__sort.is-active .shop__sort-dropdown{
  opacity: 1;
  visibility: visible;
  z-index: 10;
}

.shop__product{
  transition: .4s ease all;
  border: 1px solid transparent;
  border-radius: 15px;
  @media(max-width: 768px){
    border-radius: 10px;
  }
}

@media(hover: hover){
  .shop__product:hover{
    border-color: var(--text-color);
  }
}

.shop__products{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 30px;
  @media(max-width: 1200px){
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
  }
  @media(max-width: 850px){
    gap: 15px;
    grid-template-columns: repeat(2, 1fr);
  }
  @media(max-width: 768px){
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
  }
  @media(max-width: 550px){
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
  }
}

.shop__sort{
  @media(max-width: 999px){
    display: none;
  }
}

.shop__filters-form{
  border-radius: 15px;
  background: #262626;
  padding: 20px;
}

.shop__filters-group{
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.50);
}

.shop__filters-search-wrapper{
  position: relative;
}

.shop__filters-search-wrapper svg{
  position: absolute;
  top: 53%;
  right: 20px;
  transform: translateY(-50%);
}

.shop__filters-search{
  color: var(--text-color);
  font-size: 14px;
  appearance: none;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.50);
  background: #343434 !important;
  transition: .4s ease all;
  outline: none !important;
  padding: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%; /* 14px */
}

.shop__filters-search::placeholder{
  color: rgba(255, 255, 255, 0.70);
}

.shop__filters-search:focus{
  border-color: var(--accent);
}

.shop__filters-title,
.shop__filters-label{
  margin-bottom: 15px;
  display: block;
  color: var(--text-color);
  font-size: 18px;
  font-style: normal;
  font-family: var(--secound-font-family);
  font-weight: 400;
  line-height: 120%; /* 21.6px */
}

.shop__filters-title{
  margin-top: 20px;
}

.shop__filters-search svg path{
  fill: var(--accent);
}

.shop__filters-search:focus + svg path{
  fill: var(--accent);
}

.shop__filters-item label input{
  display: none;
}

.shop__filters-item label{
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.50);
  background: #343434;
  width: 100%;
}

.shop__filters-item label span{
  color: var(--text-color);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%; /* 14px */
}

.shop__filters-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop__filters-box{
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
  display: block;
  border-radius: 5px;
  transition: .4s ease all;
  border: 1px solid rgba(255, 255, 255, 0.50);
  background: #262626;
}

.shop__filters-rating-item label input{
  display: none;
}

.shop__filters-rating-item label{
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 10px;
  justify-content: space-between;
}

.shop__filters-item input:checked + .shop__filters-box{
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.50);
  background: linear-gradient(102deg, #F8E6A9 -44.68%, #BDA75D 175.28%), #262626;
}

.shop__filters-rating-item{
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.50);
  background: #343434;
}

.shop__filters-item label{
  cursor: pointer;
}

.shop__filters-rating-item label{
  padding: 13px 15px;
}

.shop__filters-rating-label{
  display: flex;
  align-items: center;
  gap: 4px;
}

.shop__filters-rating-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop__filters-rating-item label input:checked + span + .shop__filters-box{
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.50);
  background: linear-gradient(102deg, #F8E6A9 -44.68%, #BDA75D 175.28%), #262626;
}

.shop__filters-rating-item label input:checked + .shop__filters-rating-label .shop__filters-star--filled path{
  fill: var(--accent);
  fill-opacity: 1;
}

.shop__filters-rating-item label input:checked + .shop__filters-rating-label .shop__filters-star--empty{
  fill-opacity: 1;
  stroke: var(--accent);
}

.shop__product-image{
  position: relative;
  display: block;
}

.shop__product-image img{
  aspect-ratio: 3 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
  height: auto;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  @media(max-width: 768px){
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }
}

.shop__product-body-content{
  padding: 20px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  background-color: #262626;
  @media(max-width: 768px){
    padding: 12px;
  }
  @media(max-width: 550px){
    padding: 10px;
  }
}

.shop__product-title {
  color: #FFF;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  margin-bottom: auto;
  line-height: 120%;
  @media(max-width: 768px){
    font-size: 14px;
    line-height: 1.3;
  }
  @media(max-width: 550px){
    font-size: 13px;
  }
}


.shop__product-category{
  margin-top: 5px;
  color: var(--text-color);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  @media(max-width: 768px){
    font-size: 12px;
    margin-top: 4px;
  }
  @media(max-width: 550px){
    font-size: 11px;
    margin-top: 3px;
  }
}

.shop__product-note{
  display: none;
}

.shop__product-rating {
  display: flex;
  margin-top: 10px;
  align-items: center;
  gap: 4px;
  @media(max-width: 768px){
    margin-top: 6px;
    gap: 2px;
  }
  @media(max-width: 550px){
    margin-top: 5px;
    gap: 1px;
  }
}

.shop__product-rating .shop__product-star {
  @media(max-width: 768px){
    width: 12px;
    height: 12px;
  }
  @media(max-width: 550px){
    width: 10px;
    height: 10px;
  }
}

.shop__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  border-radius: 7px;
  padding: 2px 6px;
  width: auto;
  white-space: nowrap;
  overflow: hidden;
}

.shop__badge--animated::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 30%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.2) 70%,
    transparent 100%
  );
  animation: shop-badge-glass-shine 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes shop-badge-glass-shine {
  0% {
    transform: translateX(-150%) skewX(-15deg);
    opacity: 0;
  }
  10% {
    transform: translateX(-150%) skewX(-15deg);
    opacity: 1;
  }
  40% {
    transform: translateX(250%) skewX(-15deg);
    opacity: 1;
  }
  45% {
    transform: translateX(250%) skewX(-15deg);
    opacity: 0;
  }
  100% {
    transform: translateX(250%) skewX(-15deg);
    opacity: 0;
  }
}

.shop__badge-content {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shop__badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  max-width: 14px;
  max-height: 14px;
  overflow: hidden;
}

.shop__badge-icon svg {
  width: 14px;
  height: 14px;
  max-width: 100%;
  max-height: 100%;
}

.shop__badge-text {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  @media(max-width: 768px){
    font-size: 10px;
  }
  @media(max-width: 550px){
    font-size: 9px;
  }
}

.shop__badge {
  @media(max-width: 768px){
    top: 6px;
    left: 6px;
    padding: 2px 5px;
    border-radius: 6px;
  }
  @media(max-width: 550px){
    top: 4px;
    left: 4px;
    padding: 1px 4px;
    border-radius: 5px;
  }
}

.shop__badge-icon {
  @media(max-width: 768px){
    max-width: 12px;
    max-height: 12px;
  }
  @media(max-width: 550px){
    max-width: 10px;
    max-height: 10px;
  }
}

.shop__badge-icon svg {
  @media(max-width: 768px){
    width: 12px;
    height: 12px;
  }
  @media(max-width: 550px){
    width: 10px;
    height: 10px;
  }
}

.shop__product-add {
  pointer-events: auto; 
  z-index: 2;
  @media(max-width: 768px){
    height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }
  @media(max-width: 550px){
    height: 35px;
    padding: 0 10px;
    font-size: 11px;
  }
}

.shop__product-body-content{
  display: flex;
  height: 100%;
  flex-direction: column;
}

.shop__product{
  display: flex;
  flex-direction: column;
  flex: auto 1;
}

.shop__product-prices{
  margin-top: 15px;
  display: flex;
  margin-bottom: 20px;
  align-items: center;
  gap: 6px;
  @media(max-width: 768px){
    margin-top: 10px;
    margin-bottom: 12px;
    gap: 4px;
  }
  @media(max-width: 550px){
    margin-top: 8px;
    margin-bottom: 10px;
    gap: 3px;
  }
}

.shop__product-discount {
  padding: 5px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: var(--buttons-gradient);
  color: var(--accent-dark);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%; /* 12px */
  @media(max-width: 768px){
    padding: 3px 5px;
    font-size: 11px;
  }
  @media(max-width: 550px){
    padding: 2px 4px;
    font-size: 10px;
  }
}

.shop__product-price-current,
.shop__product-price-current bdi span,
.shop__product-price-current bdi,
.shop__product-price-current span,
.shop__product-price-current {
  color: var(--text-color);
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 100%; /* 24px */
  @media(max-width: 768px){
    font-size: 16px;
  }
  @media(max-width: 550px){
    font-size: 14px;
  }
}

.shop__product-price-old span,
.shop__product-price-old bdi,
.shop__product-price-old span,
.shop__product-price-old {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-style: normal;
  font-weight: 600;
  line-height: 100%; /* 14px */
  text-decoration-line: line-through;
  @media(max-width: 768px){
    font-size: 12px;
  }
  @media(max-width: 550px){
    font-size: 11px;
  }
}

.shop{
  margin-bottom: 165px;
  @media(max-width: 999px){
    margin-bottom: 80px;
  }
  @media(max-width: 768px){
    margin-bottom: 50px;
  }
}

.shop__no-products{
  color: var(--text-color);
  font-size: 18px;
  font-style: normal;
  margin-top: 20px;
  font-weight: 400;
  line-height: 140%;
}

.shop__product-loader{

}

.shop__product-loader {
  width: 16px;
  display: block;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.6);
  border-top-color: #fff;
  animation: main-article-spinner 0.6s linear infinite;
}

.shop__product-loader-wrapper{
  position: absolute;
  left: 50%;
  width: 16px;
  opacity: 0;
  min-width: 16px;
  min-height: 16px;
  transition: .4s ease all;
  height: 16px;
  top: 50%;
  transform: translate(-50%, -50%);
}

@keyframes main-article-spinner {
  to {
    transform: rotate(360deg);
  }
}

.shop__product-add.is-loading .shop__product-loader-wrapper{
  opacity: 1;
}

.shop__product-add.is-loading .shop__product-add-text{
  opacity: 0;
}

.shop__content{
  position: relative;
  z-index: 2;
}

.shop__filters{
  @media(max-width: 768px){
    display: none;
  }
}

/* Мобильный фильтр */
.shop__mobile-filters-toggle {
  display: none;
  @media(max-width: 768px){
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #262626;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }
}

@media (hover: hover) {
  .shop__mobile-filters-toggle:hover {
    border-color: var(--accent);
    background: #2d2d2d;
  }
}

.shop__mobile-filters-toggle svg {
  width: 20px;
  height: 20px;
}

.shop__mobile-filters {
  @media(min-width: 769px){
    display: none;
  }
  @media(max-width: 768px){
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
}

.shop__mobile-filters.is-active {
  @media(max-width: 768px){
    opacity: 1;
    visibility: visible;
  }
}

.shop__mobile-filters-content {
  @media(max-width: 768px){
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    background: #262626;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 20px;
  }
}

.shop__mobile-filters.is-active .shop__mobile-filters-content {
  @media(max-width: 768px){
    transform: translateX(0);
  }
}

.shop__mobile-filters-header {
  @media(max-width: 768px){
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  @media(min-width: 769px){
    display: none;
  }
}

.shop__mobile-filters-header h3 {
  @media(max-width: 768px){
    color: var(--text-color);
    font-size: 20px;
    font-weight: 400;
    margin: 0;
  }
}

.shop__mobile-filters-close {
  @media(max-width: 768px){
    display: flex;
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
  }
  @media(min-width: 769px){
    display: none;
  }
}

.shop__mobile-filters-close:hover {
  @media(max-width: 768px){
    color: var(--accent);
  }
}

.shop__mobile-filters-close svg {
  width: 24px;
  height: 24px;
}

/* Блокировка скролла при открытом мобильном фильтре */
body.shop-filters-open {
  overflow: hidden;
}

.shop__product-add.disabled{
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.shop__products-inner {
  position: relative;
}

/* Центруем лоадер */
.shop__products-loader {
  position: absolute;
  inset: 0;
  width: 40px;
  height: 40px;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.shop__products-inner.is-loading .shop__products-loader {
  opacity: 1;
  pointer-events: auto;
}

.shop__products-inner.is-loading .shop__products {
  opacity: 0.3;
  pointer-events: none;
}

.shop__products-spinner {
  width: 40px;
  display: block;
  height: 40px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #F8E6A9; 
  animation: shop-products-spinner 0.8s linear infinite;
}

@keyframes shop-products-spinner {
  to {
    transform: rotate(360deg);
  }
}

.shop__products-inner{
  height: 100%;
}

.shop__load-more{
  margin-right: auto;
  margin-left: auto;
  margin-top: 30px;
  display: none;
  @media(max-width: 768px){
    margin-top: 20px;
    width: 100%;
  }
}