/* Utility: hide elements when count is zero */
.is-hidden { display: none !important; }

.blockOverlay {
  opacity: 1 !important;
  background: transparent !important;
}

.woocommerce-notices-wrapper {
  max-width: calc(var(--container) + 40px);
  margin: 0 auto;
  /*padding: 0 20px;*/
}

.woocommerce-info:before {
  display: none;
}

.woocommerce-info {
  padding-left: 50px;
}

.woocommerce-order-details,
.woocommerce-customer-details {
  display: none !important;
}

/* Cart updating state */
.woocommerce-cart-form.is-updating,
form.checkout.processing {
  pointer-events: none;
  opacity: 1;
  cursor: wait;
  position: relative;
}

.woocommerce-cart-form.is-updating::after,
form.checkout.processing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.7);
  z-index: 10;
  display: block;
  pointer-events: none;
}

.woocommerce-cart-form.is-updating::before,
form.checkout.processing::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 4px solid #cce0ff;
  border-top: 4px solid #1976d2;
  border-radius: 50%;
  animation: cart-spinner 0.8s linear infinite;
  z-index: 11;
  pointer-events: none;
}

@keyframes cart-spinner {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

/* Стили ошибок для полей чекаута */
.checkout-input.woocommerce-invalid .phone-field,
.checkout-input.woocommerce-invalid input,
.checkout-input.woocommerce-invalid textarea,
.checkout-input.woocommerce-invalid select {
  border: 1px solid #e53935 !important;
  background-color: #fff5f5 !important;
}

.checkout-input .woocommerce-error,
.checkout-input .form-error {
  color: #e53935;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.phone-field.field-error {
  border: 1px solid #e53935 !important;
  background-color: #fff5f5 !important;
}

.phone-input.field-error {
  color: #e53935;
}
/* скрываем старое уведоиление */
.woocommerce-message, .added_to_cart.wc-forward {
  display: none !important;
}

.wc-empty-cart-message {
  display: none !important;
}

/* === product card in grid === */
.product-swiper .swiper-slide {
  height: auto;
  max-height: 100%;
}

.product-card {
  padding: clamp(0.938rem, 0.781rem + 0.63vw, 1.25rem);
  background: var(--grey-light-grey);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cart__grid .product-card  {
  padding: clamp(0.938rem, 0.781rem + 0.63vw, 1.25rem) clamp(1.25rem, 1.094rem + 0.63vw, 1.563rem);
  height: auto;
  display: flex;
  flex-direction: row;
  gap: clamp(0.625rem, -0.313rem + 3.75vw, 2.5rem);
}

.cart__grid .product-card .product-card__title {
  margin-bottom: 0px;
}

.cart__grid .product-card .product-card__price {
  font-size: 14px;
  line-height: 120%;
  letter-spacing: -0.03em;
  text-align: right;
  color: var(--grey-grey);
}

.cart__grid .product-card .product-card__price > span {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.cart__grid .product-card .product-card__price bdi {
  font-weight: 500;
  font-size: clamp(1rem, 0.875rem + 0.5vw, 1.25rem);
  letter-spacing: -0.05em;
  color: var(--black-black);
}

.product-card__right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.product-card__subtotal {
  font-weight: 500;
  font-size: clamp(1.25rem, 1.094rem + 0.63vw, 1.563rem);
  letter-spacing: -0.05em;
  color: var(--black-black);
}

.product-card__remove a {
  line-height: 110%;
  letter-spacing: -0.03em;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  color: var(--black-black);
  opacity: 0.4;
  font-size: clamp(1rem, 0.938rem + 0.25vw, 1.125rem);
}

.product-card__top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card__remove a:hover {
  opacity: 1;
}

.product-card__preview {
  position: relative;
  max-width: 300px;
  width: 100%;
}

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

.product-card img {
  width: 100%;
  height: clamp(8.438rem, 6.719rem + 6.88vw, 11.875rem);
  object-fit: contain;
}

.product-card__info {
  display: flex;
  flex-direction: column;
  /* height: 100%; */
  flex: 1;
}

.product-card__title {
  display: block;
  font-size: clamp(1rem, 0.875rem + 0.5vw, 1.25rem);
  line-height: 130%;
  letter-spacing: -0.05em;
  font-weight: 400;
  color: var(--black-black) !important;
  margin-bottom: clamp(0.625rem, 0.313rem + 1.25vw, 1.25rem);
}

ul.products.product-view-mode-grid .product-card__title {
  flex: 1;
}

.product-card--list .product-card__info-wrapper {
  margin: 15px 0;
}

.product-card--list .product-card__title {
  margin: 0;
}

.product-card__price {
  display: flex;
  gap: 5px;
  align-items: flex-start;
  flex: 1;
}

.product-card__price-main {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: clamp(1.25rem, -0.568rem + 2.84vw, 1.563rem);
  line-height: 100%;
  letter-spacing: -0.05em;
  color: var(--black-black);
}

..product-card__price-main {

}

.product-card__price-sub {
  display: inline-block;
  font-size: clamp(0.75rem, 0.688rem + 0.25vw, 0.875rem);
  letter-spacing: -0.03em;
  color: var(--grey-grey);
}

.product-card__actions .cart {
  margin-top: 20px;

  display: flex;
  justify-content: space-between;
  flex-direction: row;
  gap: 10px;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.loading {
  padding-right: 18px;
}

.product-card button.add_to_cart_button {
  flex: 1;
  display: inline-block;
  background-color: var(--blue-blue) !important;
  color: #fff !important;
  padding: 10px 18px;

  font-size: clamp(1rem, 0.938rem + 0.25vw, 1.125rem);
  line-height: 110%;
  letter-spacing: -0.03em;
  color: var(--white-white);
  border: none;
  cursor: pointer;
}

.product-card button.add_to_cart_button:after {
  display: none;
}

.product-card button.add_to_cart_button:hover {
  background-color: var(--blue-dark-blue) !important;
}

.product-card .quantity-wrap {
  flex: 1;
  display: flex;
  justify-content: space-between;
  max-width: 200px;
  width: 100%;


  backdrop-filter: blur(10px);
  border: 1px solid var(--black-black-005);
  border-radius: 30px;
  padding: clamp(0.5rem, 0.42rem + 0.32vw, 0.625rem);
}

.product-card .qty-btn  {
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;

  outline: none;
  user-select: none;
  border: unset;
  padding: 0;
  background: var(--black-black-005);
  width: clamp(1.5rem, 1.26rem + 0.96vw, 1.875rem);
  height: clamp(1.5rem, 1.26rem + 0.96vw, 1.875rem);
  aspect-ratio: 1;
  border-radius: 50px;
  font-size: 0px;
}

.qty-btn--plus::after {
  content: url(../../images/plus.svg);
  font-size: 20px;
  line-height: 1;
  color: var(--black-black);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.qty-btn--minus::after {
  content: url(../../images/minus.svg);
  font-size: 20px;
  line-height: 1;
  color: var(--black-black);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.product-card__sku div {
  padding-right: 3px;
}

.product-card__sku div,
.product-card__sku span {
  opacity: 0.4;
}

.product-card__btn-copy-sku {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  margin-left: 5px;
}

.product-card__btn-copy-sku:hover {
  opacity: 1;
}

.product-card__btn-copy-sku:active {
  transform: scale(0.95);
}

.product-card__btn-copy-sku svg {
  transition: all 0.2s ease;
}

.product-card__btn-copy-sku:hover svg {
  transform: scale(1.1);
}

/* Стили для уведомления о копировании */
.copy-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgb(0, 54, 117);
  color: rgb(255, 255, 255);
  padding: 15px;
  border-radius: 5px;
  z-index: 9999;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 5px;
}

.wishlist-card {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.wishlist-card.in-wishlist {
  background: url(../images/icon/icon-heart-active.svg) center center no-repeat !important;
}

.input-text {
  /*background: var(--grey-light-grey);*/
  border: unset;
  outline: none;
  width: 100%;
  max-width: 100%;
  background: transparent;

  text-align: center;
  -webkit-appearance: none; /* Убирает стандартные стили в WebKit-браузерах */
  -moz-appearance: textfield; /* Убирает стрелки в Firefox */
  padding: 0; /* Убирает внутренние отступы, если нужно */
  line-height: normal; /* Нормализует высоту строки */
  padding-bottom: 0px !important;
}

.input-text.qty.text::-webkit-inner-spin-button,
.input-text.qty.text::-webkit-outer-spin-button {
    -webkit-appearance: none; /* Убирает стрелки в Chrome, Safari */
    margin: 0;
}

.product-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;

  padding: clamp(0.313rem, -0.088rem + 1.6vw, 0.938rem) 0;
  border-bottom: 1px solid var(--black-black-005);
  border-top: 1px solid var(--black-black-005);
  margin-bottom: clamp(0.625rem, 0.425rem + 0.8vw, 0.938rem);
}

.product-card__stock .in-stock,
.product-card__stock .out-of-stock {
  font-size: clamp(0.75rem, 0.67rem + 0.32vw, 0.875rem);
  line-height: 120%;
  letter-spacing: -0.03em;
}

.product-card__stock {
  line-height: 1;
}

.product-card__stock .in-stock {
  color: var(--additional-green);
}

.product-card__stock .out-of-stock {
  color: red;
}

div.product-card__rating {
  display: flex !important;
  align-items: center;
  gap: 5px;
  font-size: clamp(0.813rem, 0.612rem + 0.8vw, 1.125rem);
}

.product-card__rating .star {
  display: inline-block;
  width: clamp(0.813rem, 0.612rem + 0.8vw, 1.125rem);
  height: clamp(0.813rem, 0.612rem + 0.8vw, 1.125rem);
}

.product-card__rating .star svg {
  width: auto;
  height: auto;
  max-height: 100%;
  max-width: 100%; 
}

.product-card__rating .star.filled svg path,
.product-card .star.filled svg path {
  fill: #003675; /* Цвет заполненной звезды */
  stroke: #003675;
}

.compare-attrs-list .product-card__rating .star.filled svg path {
  fill: var(--black-black);
  stroke: var(--black-black);
}

.compare-attrs-list .product-card__price-sub {
  display: none;
}

.product-card__rating .star.half-filled {
  position: relative;
  overflow: hidden;
}

.product-card__rating .star.half-filled::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%; /* Половина звезды */
  height: 100%;
  background: #003675; /* Цвет заполнения полузвезды */
  z-index: 1;
}

.product-card__rating .star.empty svg path {
  fill: none; /* Пустая звезда */
  stroke: #003675;
}

.compare-attrs-list .star.empty svg path  {
  stroke: var(--black-black);
}

.product-card__rating .rating-value {
  font-size: clamp(0.75rem, 0.67rem + 0.32vw, 0.875rem);
  letter-spacing: -0.03em;
  line-height: 18px;
  color: var(--grey-grey);
  padding-left: 2px;
}

/* archive products */
.page-title {
  text-align: center;
  font-weight: 400;
  font-size: clamp(3.125rem, -0.313rem + 13.75vw, 10rem);
  line-height: 100%;
  padding: clamp(3.125rem, 2.188rem + 3.75vw, 5rem) 0;
  margin: 0px;
  letter-spacing: -0.05em;
  color: var(--black-black);
}

.grid-product {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 20px;
}

.user-wishlist-grid {
  margin-top: clamp(1.875rem, 1.648rem + 1.14vw, 2.5rem);
  grid-template-columns: repeat(4, 1fr);
}

.header__action.wishlist,
.header__action.compare,
.header__action.my-cart {
  position: relative;
}

.wishlist-count,
.compare-count,
.cart-count {
  font-size: 12px;
  letter-spacing: -0.03em;
  color: var(--white-white);

  position: absolute;
  bottom: -4.5px;
  right: -8px;
  border: 1px solid var(--white-white);
  display: inline-block;
  min-width: 24px;
  line-height: 1;
  text-align: center;
  background: var(--blue-blue);
  border-radius: 30px;
  aspect-ratio: 1 / 1;

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

.cart-count {
 
}

.search-no-results .wishlist-empty,
.page-id-230 .wishlist-empty,
.page-id-234 .wishlist-empty {
  padding-top: clamp(3.125rem, 2.188rem + 3.75vw, 5rem);
}

.wishlist-empty {
  padding-top: 40px;
  max-width: 490px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
}

h2.wishlist-empty__title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: clamp(1.375rem, 0.969rem + 1.63vw, 2.188rem);
  line-height: 120%;
  letter-spacing: -0.05em;
  color: var(--black-black);
  padding: 0;
  margin: 0;
  background-color: #fff;
  position: relative;
  z-index: 2;
}

p.wishlist-empty__text {
  margin: 0;
  padding: 0;
  padding-top: 15px;
  font-size: clamp(1rem, 0.875rem + 0.5vw, 1.25rem);
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--black-black);
  background-color: #fff;
}

.wishlist-empty__btn {
  margin: 0 auto;
  margin-top: clamp(1.563rem, 1.406rem + 0.63vw, 1.875rem);
}

.main-title-products {
  /*display: inline-flex;
  align-items: flex-start;*/
  position: relative;
  gap: 10px;
  margin-bottom: 0 !important;
  position: relative;
  max-width: min-content;
  padding-right: clamp(1.875rem, 1.563rem + 1.25vw, 2.5rem) !important;
  max-width: fit-content;
}

.cart-title,
.order-title {
  margin-bottom: clamp(1.563rem, 0.962rem + 2.4vw, 2.5rem) !important;
}

.search-product .main-title-products {
  width: 100%;
  margin-bottom: clamp(0.625rem, -0.313rem + 3.75vw, 2.5rem);
  /*max-width: 100%;*/
}

.main-title-products__count {
  font-size: clamp(1.25rem, 1.094rem + 0.63vw, 1.563rem);
  line-height: 100%;
  letter-spacing: -0.05em;
  color: var(--blue-blue);
  position: absolute;
  padding-left: 10px;
  white-space: nowrap;
  bottom: calc(clamp(2.188rem, 1.094rem + 4.38vw, 4.375rem) / 1.5);
}

.search-product {
  margin-top: var(--padding-block);
}

.product-card .compare {
  position: absolute;
  right: 20px;
  top: 65px;
  z-index: 10;
}

.product-card__actions .compare {
  top: unset !important;
}

.compare-header {
  display: flex;
  gap: 70px;
  align-items: flex-end;
}

.compare-header .section__title {
  margin-bottom: 0;
}

.compare-cards-grid {
  display: flex;
  gap: 20px;
  width: 100%;
}

.compare-row-flex {
  display: flex;
  gap: 20px;
}

.compare-attr-label {
  display: block;
  /*min-height: 33px;*/
  /*border-top: 1px solid var(--black-black-005);*/
  width: 100%;
  font-size: 14px;
  line-height: 120%;
  letter-spacing: -0.03em;
  color: var(--grey-grey);
  padding-bottom: 10px;
}

.compare-attr-value {
  /*padding: 10px 0 15px;*/
  /*padding-bottom: 10px;*/
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compare-attr-value:not(:last-child) {
  /*padding-right: 20px;*/
}

.compare-attr-value {
  display: block;
  font-size: 16px;
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--black-black);
}

.swiper-wrapper,
.swiper-container,
.compare-section {
  max-width: 100%;
  width: 100%;
}

.compare-section .product-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1em * 1.3 * 3); /* 3 строки, 1.2 line-height */
}

.compare-attrs-list {
  padding-top: clamp(0.938rem, 0.156rem + 3.13vw, 2.5rem);
}

.compare-attrs-list .attr {
  min-height: 80px;
  padding: clamp(0.938rem, 0.781rem + 0.63vw, 1.25rem);
  background: var(--grey-light-grey);
  margin-bottom: clamp(0.625rem, 0.313rem + 1.25vw, 1.25rem);
}

.compare-tabs__counter {
  color: var(--black-black-03) !important;
  padding-left: 10px !important;
}

.active .compare-tabs__counter {
  color: var(--white-white-07) !important;
}

.compare-availability {
  color: var(--additional-green);
}

.compare-not-availability {
  color: var(--additional-red);
}

.compare-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: clamp(0.938rem, 0.156rem + 3.13vw, 2.5rem);
  margin-bottom: 25px;
}

.compare-actions__filter {
  display: flex;
  align-items: center;
  flex: 1;
}

.compare-filter-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--black-black);
}

.compare-filter-label {
  cursor: pointer;
  user-select: none;
}

.compare-actions__btns {
  display: flex;
  align-items: center;
  gap: 15px;
}


.compare-actions__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;

  background: var(--blue-blue-005);
  outline: none;
  border: 0;
  border-radius: 70px;
  width: clamp(2.5rem, 2.188rem + 1.25vw, 3.125rem);
  height: clamp(2.5rem, 2.188rem + 1.25vw, 3.125rem);
  background-position: center;
  background-repeat: no-repeat;


  transition: all .25s linear;
}

.btn-add {
  background-image: url('../icon/plus.svg');
}

.btn-add:hover {
  background-color: var(--blue-blue);
  background-image: url('../icon/plus-hover.svg') !important;
}

.btn-share {
  background-image: url('../icon/share.svg');
}

.btn-share:hover {
  background-color: var(--blue-blue);
  background-image: url('../icon/share-hover.svg') !important;
}

.btn-print {
  background-image: url('../icon/print.svg');
}

.btn-print:hover {
  background-color: var(--blue-blue);
  background-image: url('../icon/print-hover.svg') !important;
}

.btn-print:active,
.btn-add:active,
.btn-share:active {
  background-color: var(--blue-dark-blue);
}

/* Скрытые атрибуты при фильтре различий */
.hidden-attr {
  display: none !important;
}

/* category page */
.parent-categories-container {
  max-width: 100%;
  max-width: calc(var(--container) + (clamp(0.625rem, 0.224rem + 1.6vw, 1.25rem) * 2));
  margin: 0 auto;
  padding: 0 clamp(0.625rem, 0.224rem + 1.6vw, 1.25rem);
  /*display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));*/
}

.parent-categories-grid  {
  padding: 2px 2px;
}

.parent-category-slide {
  height: auto;
}

.parent-category-card {
  display: flex;
  position: relative;
  padding: 10px 20px 10px 20px;
  justify-content: center;
  height: 100%;
}

.category-thumb {
  display: flex;
  justify-content: center;
  height: clamp(3.125rem, 1.875rem + 5vw, 5.625rem);
  width: 100%;
}

.category-thumb img {
  height: clamp(3.125rem, 1.875rem + 5vw, 5.625rem);
  width: 100%;
  max-height: 100%;
  display: block;
  object-position: center;
  object-fit: contain;
}

.category-name {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  font-weight: 500;
  font-size: clamp(1rem, 0.875rem + 0.5vw, 1.25rem);
  line-height: 100%;
  letter-spacing: -0.05em;
  color: var(--black-black);
  opacity: 0.4;
  text-align: center;

  transition: all .25s;
}

.parent-category-card:hover .category-name,
.parent-category-card.active .category-name {
  color: var(--blue-blue);
  opacity: 1;
}

.parent-category-card::before, .parent-category-card::after, .parent-category-card span::before, .parent-category-card span::after {
  display: block;
  content: "";
  width: 20px;
  height: 12px;
  position: absolute;

  transition: all .25s linear;
}

.parent-category-card::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--black-black-015);
  border-left: 1px solid var(--black-black-015);
}

.parent-category-card::after {
  top: -1px;
  right: -1px;
  border-top: 1px solid var(--black-black-015);
  border-right: 1px solid var(--black-black-015);
}

.parent-category-card span::before {
  bottom: -1px;
  left: -1px;
  border-bottom: 1px solid var(--black-black-015);
  border-left: 1px solid var(--black-black-015);
}

.parent-category-card span::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid var(--black-black-015);
  border-right: 1px solid var(--black-black-015);
}

.parent-category-card:hover::after,
.parent-category-card:hover::before,
.parent-category-card:hover span::before,
.parent-category-card:hover span::after,
.parent-category-card.active::after,
.parent-category-card.active::before,
.parent-category-card.active span::before,
.parent-category-card.active span::after  {
  border-color: var(--blue-blue);
}

.products-page-header__box {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;

  margin-bottom: clamp(2.5rem, 1.25rem + 5vw, 5rem);
}



.products-page-header__box .main-title-products,
.products-page-header__box .category-description {
  /*grid-column: span 3;*/
}

.products-page-header__box .category-description {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--grey-grey);
}


.shop-content {
  display: flex;
  flex-direction: row;
  gap: 60px;
}

.shop-content__sidebar {
  width: 400px;
  padding-right: 30px;


  /*background-color: var(--grey-light-grey);*/
}

.shop-content__sidebar-header {
  display: none;
}

.bapf_sfilter {
  border-top: 1px solid var(--black-black-015);
  margin-bottom: 0;
}

.bapf_body {
  padding-bottom: 15px;
}

h3.bapf_hascolarr {
  padding: 15px 0 !important;
  margin: 0 !important;

  font-weight: 500;
  font-size: clamp(1rem, 0.938rem + 0.25vw, 1.125rem);
  /*line-height: 100%;*/
  letter-spacing: -0.05em;
  color: var(--black-black);
  border-bottom: unset !important;
}

.bapf_sfilter.bapf_divi_button .bapf_button {
  padding: 0;
  margin: 0;
  background-color: transparent;
  outline: none;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: clamp(1rem, 0.938rem + 0.25vw, 1.125rem);
  line-height: 110%;
  letter-spacing: -0.03em;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  color: var(--grey-grey);
  text-align: left;
  margin-top: 30px;
  opacity: 0.5;
  border: unset;
  width: fit-content;
  max-width: fit-content;

  transition: all .25s;
}

.bapf_sfilter.bapf_divi_button .bapf_button:hover {
  opacity: 1;
  background-color: transparent;
  color: var(--black-black);
}

.bapf_ckbox_sqchck input[type=checkbox] {
  width: 15px;
  height: 15px;
  border: 1px solid var(--black-black-015) !important;
  background: var(--grey-light-grey);

}

.bapf_ckbox_sqchck input:checked[type=checkbox] {
  border-color: var(--blue-blue) !important;
}

.bapf_ckbox_sqchck input[type=checkbox]:checked:after {
  content: '';
  background-image: url('../icon/check.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 11px 9px;
  transform: unset;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  border: unset !important;
  background-color: var(--blue-blue);
}

.bapf_sfilter .bapf_body .mCSB_container>ul, .bapf_sfilter .bapf_body>ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bapf_sfilter.bapf_ckbox label,
.bapf_sfilter.bapf_ckbox label+span, 
.bapf_sfilter.bapf_ckbox label>span,
.roundpcs.pcs {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: clamp(0.875rem, 0.813rem + 0.25vw, 1rem);
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--black-black);
}

.roundpcs.pcs {
  opacity: 0.4;
  transition: all .25s;
  padding-left: 5px;
}

li:has(.roundpcs.pcs):hover .roundpcs.pcs {
  opacity: 1;
}

.bapf_hideckbox li input+label, .bapf_hideckbox li input+label a {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: clamp(0.875rem, 0.813rem + 0.25vw, 1rem);
  line-height: 120%;
  letter-spacing: -0.05em;
  color: var(--black-black);
  opacity: 0.4;

  transition: all .25s;
}

.bapf_hideckbox li input:checked+label, .bapf_hideckbox li input:checked+label a {
  opacity: 1;
}

.bapf_hideckbox li input:checked+label:hover, .bapf_hideckbox li input:checked+label:hover a, .bapf_hideckbox li label:hover, .bapf_hideckbox li label:hover a {
  color: inherit;
  opacity: 1;
}


.berocket_single_filter_widget .bapf-clean-rounded ul {
  gap: 10px;
  flex-direction: row;
  flex-wrap: wrap;
}

.berocket_single_filter_widget .bapf-clean-rounded li label {
  border: 1px solid var(--black-black-015);
  border-radius: 50px;
  padding: 5px 25px;
  backdrop-filter: blur(10px);

  font-family: var(--font-family);
  font-weight: 400;
  font-size: clamp(0.875rem, 0.813rem + 0.25vw, 1rem);
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--black-black);
}

.berocket_single_filter_widget .bapf-clean-rounded li.checked label {
  background: var(--blue-blue-005);
  color: var(--blue-blue);
  border: 1px solid var(--blue-blue-005);

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

.berocket_single_filter_widget .bapf-clean-rounded li.checked label:before {
  display: none !important;
}

.berocket_single_filter_widget .bapf-clean-rounded li.checked label:after {
  content: url('../icon/close.svg');
  padding-left: 5px;
  width: 16px;
  height: 17px;
  border: none;
  position: relative;
}

.fa-chevron-up:before,
.fa-chevron-down:before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;

  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;

  transition: all .15s;
} 

.fa-chevron-down:before {
  background: url('../../images/plus.svg');
}

.fa-chevron-up:before {
  background: url('../../images/minus.svg');
}

.shop-content__body {
  flex: 1;
}

.product-tags-grid {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;

  margin-bottom: 30px;
}

.product-tag-card a,
.product-tag-card.active {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--black-black-015);
  border-radius: clamp(1.938rem, 1.531rem + 1.63vw, 2.75rem);
  padding: 8px clamp(1.25rem, 1.094rem + 0.63vw, 1.563rem);
  min-height: clamp(1.875rem, 1.437rem + 1.75vw, 2.75rem);
  color: unset;

  transition: all .25s linear;
}

.product-tag-card.active {
  background-color: var(--blue-blue);
  color: var(--white-white);
}

.product-tag-card svg {
  width: clamp(1rem, 0.75rem + 1vw, 1.5rem);
  height: clamp(1rem, 0.75rem + 1vw, 1.5rem);
}

.divi_slider_class .bapf_slidr_all .bapf_slidr_main.ui-slider .ui-slider-range {
  background-color: var(--blue-blue);
}

.divi_slider_class .bapf_slidr_all .bapf_slidr_main.ui-slider .ui-slider-handle,
.divi_slider_class .bapf_slidr_all .bapf_slidr_main.ui-slider .ui-slider-handle:hover {
  border-color: var(--blue-blue);
  background-color: var(--blue-blue);
}

.bapf_slidr_jqrui .bapf_from input, .bapf_slidr_jqrui .bapf_to input {
  background: var(--grey-light-grey);
  padding: 10px 20px;
  padding-left: 43px;
  width: 176px;
  height: 50px;
  border: unset;
  outline: unset;

  font-family: var(--font-family);
  font-weight: 400;
  font-size: clamp(0.875rem, 0.813rem + 0.25vw, 1rem);
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--grey-grey);
}

.bapf_sfilter ul li {
  display: flex;
  align-items: center;
}

.divi_slider_class .bapf_slidr_all .bapf_from, .divi_slider_class .bapf_slidr_all .bapf_to {
  position: relative;
}

.divi_slider_class .bapf_slidr_all .bapf_to::after,
.divi_slider_class .bapf_slidr_all .bapf_from::before {
  position: absolute;
  top: 50%;
  transform:translateY(-50%);
  left: 20px;

  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--black-black);
}

.divi_slider_class .bapf_slidr_all .bapf_to::after {
  content: 'до';
}

.divi_slider_class .bapf_slidr_all .bapf_from::before {
  content: 'от';
}

.product-tag-card:hover a,
.show-more-button a  {
background: var(--blue-blue);
}

.show-more-button:hover a {
  background: var(--blue-dark-blue);
}

.tag-name {
  line-height: 110%;
  letter-spacing: -0.03em;
  transition: all .25s linear;
}

.show-more-button .tag-name,
.product-tag-card:hover   {
  color: var(--white-white);
}

.tag-line {
  fill: #000;
  transition: all .25s linear;
}

.tag-arrow {
  stroke: #000;
  transition: all .25s linear;
}

.product-tag-card:hover .tag-line  {
  fill: #fff;
}

.product-tag-card:hover .tag-arrow {
  stroke: #fff;
}

.woocommerce .products ul, 
.woocommerce ul.products.product-view-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 20px;
}

.woocommerce ul.products.product-view-mode-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.product-card__attribute--more {
  display: none;
}

.show-more-attributes-btn {
  border: 0;
  padding: 0;
  margin-top: 5px;
  background-color: transparent;
  outline: none;
  cursor: pointer;
  font-size: 18px;
  letter-spacing: -0.03em;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  color: var(--black-black);
  display: flex;
  opacity: 0.5;

  transition: all .25s linear;
}

.show-more-attributes-btn:hover {
  opacity: 1;
}

.product-card__attributes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card__attribute-label,
.product-card__attribute-value {
  font-size: 16px;
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--grey-grey);
}

.product-card__attribute-value  {
  color: var(--black-black);
}

.product-card__sku {
  font-size: 16px;
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--black-black);
  margin-bottom: 10px;
  position: relative;
  display: flex;
  align-items: center;
}

.woocommerce .products ul::after, .woocommerce .products ul::before, .woocommerce ul.products::after, .woocommerce ul.products::before {
  display: none !important;
}

.product-card__info {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card--cart .product-card__info {
  justify-content: space-between;
  height: auto;
  gap: clamp(0.625rem, 0.313rem + 1.25vw, 1.25rem);
}

.product-card__info-wrapper {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-bottom: 15px;
}

.product-card--cart .wishlist-card {
  top: 0;
  right: 0;
}

.product-card--cart .compare {
  top: 50px !important;
  right: 0;
}

/* panel menu */
.products-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;

  margin-bottom: 25px;
}

.toolbar-filters__button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  cursor: pointer;
  border: none;
  outline: none;
  background: transparent;
  transition: all .25s linear;

  font-size: clamp(1rem, 0.938rem + 0.25vw, 1.125rem);
  line-height: 110%;
  letter-spacing: -0.03em;
  color: var(--black-black);
}

.toolbar-filters {
  display: none;
}

.view-mode-buttons {
  display: flex;
  gap: 10px;
  align-items: center;

  border-radius: 30px;
  padding: 5px;
  background: var(--grey-light-grey);
}

.view-mode-buttons .view-btn {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  outline: none;

  border-radius: 30px;
  padding: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  transition: all .25s linear;
  background-position: center;
  background-repeat: no-repeat;
}

.view-btn.grid-view {
  background-image: url('../icon/grid-icon.svg');
}

.view-btn.grid-view.active {
  background-image: url('../icon/grid-icon-active.svg');
}

.view-btn.list-view {
  background-image: url('../icon/list-icon.svg');
}

.view-btn.list-view.active {
  background-image: url('../icon/list-icon-active.svg');
}

.view-btn.view-btn.active {
  background-color: var(--blue-blue);
}

/* Инициализация вида — плавное появление */
#products-container {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Показываем контент, когда режим определён */
.product-view-mode-grid #products-container,
.product-view-mode-list #products-container {
    opacity: 1;
    visibility: visible;
}

/* Сетка */
.product-view-mode-grid #products-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Список */
.product-view-mode-list #products-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Стили карточки в режиме списка */
.product-view-mode-list .product-card {
  display: flex;
  gap: 22px;
  align-items: stretch;
  flex-direction: row;
}

.product-view-mode-list .product-card__img {
  flex-basis: 400px;
  position: relative;
}

.product-view-mode-list .product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-view-mode-list .product-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-view-mode-list .product-card__actions {
  margin-top: auto;
  margin-bottom: 0;
}

.product-view-mode-list .product-card__price {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  /*justify-content: flex-end;*/
  flex-direction: column;
}

.product-view-mode-list .wishlist-card,
.product-view-mode-list .product-card .compare {
  right: 0;
  top: 0;
}

.product-view-mode-list .product-card .compare {
  top: 45px;
}

.product-card__info-end {
  max-width: 337px;
}

/* Пагинация */
.woocommerce nav.woocommerce-pagination ul.page-numbers {
  margin-top: 30px;
  display: flex;
  align-items: center;
  border: unset !important;
}

.woocommerce nav.woocommerce-pagination .page-numbers li:has(.prev),
.woocommerce nav.woocommerce-pagination .page-numbers li:has(.next ) {
  flex: 1;
  border: unset;
  background-color: unset;
  max-width: 50%;
}

.woocommerce nav.woocommerce-pagination .page-numbers li .prev,
.woocommerce nav.woocommerce-pagination .page-numbers li .next {
  font-size: 18px;
  line-height: 110%;
  letter-spacing: -0.03em;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  color: var(--black-black);
  border: unset !important;
  padding: 0;
}

.woocommerce nav.woocommerce-pagination .page-numbers li span.prev,
.woocommerce nav.woocommerce-pagination .page-numbers li span.next {
  opacity: 0.3;
}

.woocommerce nav.woocommerce-pagination .page-numbers li .prev {
  display: flex;
  justify-content: flex-start;
}

.woocommerce nav.woocommerce-pagination .page-numbers li .next  {
  display: flex;
  justify-content: flex-end;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: unset !important;
}

.woocommerce nav.woocommerce-pagination ul li span,
.woocommerce nav.woocommerce-pagination ul li a {
  font-size: 18px;
  line-height: 110%;
  letter-spacing: -0.03em;
  color: var(--black-black);
  background-color: unset;
  border: unset !important;
  font-weight: 500;
}

a.page-numbers:not(.current,.prev,.next) {
  opacity: 0.4;
}

.woocommerce nav.woocommerce-pagination ul li a:focus, .woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li span.current {
  color: var(--black-black);
  opacity: 1;
  background-color: unset;
}

.woocommerce .woocommerce-ordering {
  margin: 0;
}

.custom-sorting {
  position: relative;
  display: inline-block;
}

.sort-button {
  font-size: clamp(1rem, 0.938rem + 0.25vw, 1.125rem);
  line-height: 110%;
  letter-spacing: -0.03em;
  color: var(--black-black);
  border: unset;
  background: transparent;

  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.sort-button:hover {
  /*background: #e9e9e9;*/
}

.arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.arrow.rotated {
  transform: rotate(180deg);
}

.sort-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  background: var(--white-white);
  border: 1px solid var(--black-black-015);
  border-radius: 0px;
  width: fit-content;
  z-index: 1000;
  display: none;
}

.sort-dropdown.show {
  display: block;
}

.sort-options {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sort-option {
  padding: 8px 10px;
  cursor: pointer;

  font-size: 16px;
  line-height: 110%;
  opacity: 0.4;
  letter-spacing: -0.03em;
  color: var(--black-black); 
  white-space: nowrap;
  transition: all .25s;
  background: transparent;
}

.sort-option:not(:last-child) {
  border-bottom: 1px solid var(--black-black-015);
}

.sort-option:hover {
  opacity: 1;
  background: var(--blue-blue);
  color: var(--white-white);
  /*border-color: var(--blue-blue);*/
}

.sort-option.active {
  opacity: 1;
}

.sort-option input {
  display: none;
}

.sort-option label {
  cursor: pointer;
  display: block;
  width: 100%;
}

/* === No Products Notification === */
.no-products-notification {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 60px 20px;
}

.no-products-content {
  text-align: center;
  max-width: 500px;
}

.no-products-icon {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.no-products-icon svg {
  width: 64px;
  height: 64px;
  opacity: 0.6;
}

.no-products-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.05em;
  color: var(--black-black);
  margin-bottom: 16px;
}

.no-products-description {
  font-size: 16px;
  line-height: 1.5;
  color: var(--grey-grey);
  margin-bottom: 32px;
}

.no-products-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.no-products-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.no-products-actions .btn-primary {
  background-color: var(--blue-blue);
  color: #fff;
}

.no-products-actions .btn-primary:hover {
  background-color: var(--blue-dark-blue);
}

.no-products-actions .btn-secondary {
  background-color: var(--grey-light-grey);
  color: var(--black-black);
  border: 1px solid var(--black-black-005);
}

.no-products-actions .btn-secondary:hover {
  background-color: var(--black-black-005);
}

@media (max-width: 768px) {
  .no-products-notification {
    min-height: 300px;
    padding: 40px 20px;
  }
  
  .no-products-title {
    font-size: 24px;
  }
  
  .no-products-description {
    font-size: 14px;
  }
  
  .no-products-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .no-products-actions .btn {
    width: 100%;
    max-width: 200px;
  }
}

/* Order Via */
.order-via-title {
  font-weight: 500;
  font-size: clamp(0.875rem, 0.75rem + 0.5vw, 1.125rem);
  line-height: 100%;
  letter-spacing: -0.05em;
  color: var(--black-black);

  margin-bottom: 15px;
}

.order-via-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.order-via-buttons a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: calc(50% - 10px);
  padding: 10px 25px;
  border-radius: 260px;
  padding: 10px 25px;
  background: var(--black-black-005);

  font-size: clamp(1rem, 0.938rem + 0.25vw, 1.125rem);
  line-height: 110%;
  letter-spacing: -0.03em;
  color: var(--black-black);
}

.order-via-buttons a:last-child {
  width: 100%;
}

/* Product Tabs */
.product-tabs-section {
  margin-top: 30px;
  /*grid-area: tabs;*/
}

.product-tabs-section .custom-tabs {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
}

.custom-tab-contents .tab-content { 
  display: none; 
}

.custom-tab-contents .tab-content.active {
  display: block; 
  background: var(--grey-light-grey);
  /*padding: 25px;*/
}

.custom-tab-contents .tab-content .tab-content__wrap p {
  padding: 0;
  margin: 0;
}

.custom-tab-contents .tab-content .tab-content__wrap  {
  margin-bottom: 40px;
}

/* Collapsible content in product description */
.collapsible-content {
  
  position: relative;
  overflow: hidden;
  max-height: var(--collapsed-height, 240px);
  transition: max-height 0.3s ease;
}

.collapsible-content.is-expanded {
  max-height: none;
}

.collapsible-content__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(248, 248, 248, 0), var(--grey-light-grey));
  pointer-events: none;
}

.content-toggle-btn {
  border: 0;
  padding: 0;
  margin-top: 10px;
  background: transparent;
  outline: none;
  cursor: pointer;
  font-size: clamp(1rem, 0.92rem + 0.32vw, 1.125rem);
  letter-spacing: -0.03em;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  color: var(--black-black);
  opacity: 0.6;
  transition: opacity .25s linear;
}

.content-toggle-btn:hover {
  opacity: 1;
}

.custom-tabs .tab-item {
  width: 25%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  height: 49px;

  line-height: 110%;
  letter-spacing: -0.03em;
  color: var(--black-black);
  border-right: 1px solid var(--black-black-015);
  border-top: 1px solid var(--black-black-015);

  transition: all .25s;
}

.custom-tabs .tab-item:first-child {
  border-left: 1px solid var(--black-black-015);
}

.custom-tabs .tab-item.active,
.custom-tabs .tab-item:hover { 
  background: var(--grey-light-grey);
  border-color: var(--grey-light-grey);
}

/* Desktop - hide accordion elements and restore tab functionality */
@media (min-width: 769px) {
  .tab-content::before,
  .tab-content::after {
    display: none !important;
  }

  .tab-content:not(.active) {
    display: none !important;
  }

  .tab-content.active {
    display: block !important;
  }

  .tab-content-inner {
    padding: 25px !important;
    max-height: none !important;
    overflow: visible !important;
    background: var(--grey-light-grey);
  }
}

/* Mobile accordion styles */
@media (max-width: 768px) {
  .product-tabs-section .custom-tabs {
    display: none !important;
  }

  .custom-tab-contents {
    display: block;
  }

  .tab-content {
    /*border: 1px solid var(--black-black-015);*/
    /*margin-bottom: 10px;*/
    border-radius: 0px;
    overflow: hidden;
    display: block;
    background: var(--grey-light-grey);
    position: relative;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
  }

  .tab-content:nth-child(odd) {
    background: var(--white);
    border-color: var(--black-black-005);
  }

  .tab-content:last-child {
    border-bottom: 1px solid var(--black-black-005);
  }

  .tab-content::before {
    content: attr(data-title);
    display: block;
    padding: 15px 50px 15px 10px;
    cursor: pointer;
    position: relative;
    font-weight: 400;
    font-size: 16px;
    line-height: 110%;
    color: var(--black-black);
    transition: background-color .25s;
    min-height: 19px;
    line-height: 1.2;
  }

  .tab-content::after {
    content: url('../icon/wc/plus-dark.svg');
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 20px;
    font-weight: bold;
    color: var(--black-black);
    transition: all .25s;
    line-height: 1;
    pointer-events: none;
    width: 20px;
    text-align: center;
  }

  .tab-content.accordion-open::after {
    content: url('../icon/wc/minus-dark.svg');
  }

  .tab-content:hover::before {
    /*background: var(--grey-light-grey);*/
  }

  .tab-content-inner {
    padding: 0 10px;
    background: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease-out, padding .3s ease-out;
  }

  .tab-content.accordion-open .tab-content-inner {
    max-height: 2000px;
    padding: 15px 10px;
    transition: max-height .3s ease-in, padding .3s ease-in;
  }

  /*.tab-content.accordion-open::before {
    border-bottom: 1px solid var(--black-black-015);
  }*/

  .tab-content:not(.accordion-open)::before {
    border-bottom: none;
  }
}


/* Quantity and Add to Cart */
.quantity {
  display: flex;
  align-items: center;
  gap: 15px;
}

.woocommerce .quantity .qty {
  padding: 0;
}

.quantity input {
  width: 80px;
  padding: 12px;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  border: 0;
}

.single_add_to_cart_button {
  width: 100%;
  padding: 16px 24px;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.single_add_to_cart_button:hover {
  background: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,102,204,0.3);
}

/* Product Page Styles */
.product-page {
  background: #fff;
}

.product-page .product-card--inline {
  background: transparent;
  padding: 0;
}

.product-page .product-card--inline .product-card__actions {
  margin-top: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px 15px;
  flex-wrap: wrap;
  align-items: center;
}

.product-page .product-card--inline .product-card__actions .quantity-wrap{
  max-width: fit-content;
}

.details__box form.cart .button {
  width: 100%;
  min-width: 100%;
  height: 50px;
}

.details__box .product-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.details__box .wishlist-card,
.details__box .compare {
  position: relative;
  top: unset;
  right: unset;
}

.product-breadcrumbs {
  padding: 20px 0;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 30px;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto ;
  /*grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;*/
  gap: 0 20px;
}

/* Product Images */
.product-images {
  /*grid-area: image;*/
  top: 20px;
  grid-row: span 3;
}

.woocommerce-product-gallery {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.woocommerce-product-gallery__wrapper {
  margin: 0;
}

.woocommerce-product-gallery__image {
  border-radius: 12px;
}

.woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Product Details */
.product-details {
  display: flex;
  /*grid-area: info;*/
  flex-direction: column;
}

.product-sku {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
}

.sku-label {
  font-weight: 500;
}

.sku-value {
  background: #f0f8ff;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 600;
  color: #0066cc;
}

.product-title {
  padding: 0;
  margin: 0;
  margin-bottom: 30px;
  font-weight: 500;
  font-size: clamp(1.25rem, 1.094rem + 0.63vw, 1.563rem);
  line-height: 100%;
  letter-spacing: -0.05em;
  color: var(--black-black);
}

.details-grid:has(.variation-selection-section) {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.details__box {
  background: var(--grey-light-grey);
  padding: 20px;
}

.variations-tabs {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.variation__row {
  display: none;
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
}

.variation__title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: -0.05em;
  color: var(--black-black);
}

.variation__more {
  border: 0;
  background-color: transparent;
  outline: none;
  cursor: pointer;
}

.variation-selector-wrapper .variation-tab-group {
	margin-bottom: 20px;
}

.variation-selector-wrapper .variation-label {
	display: block;
  font-weight: 500;
  font-size: clamp(0.875rem, 0.813rem + 0.25vw, 1rem);
  line-height: 100%;
  letter-spacing: -0.05em;
  color: var(--black-black);
  margin-bottom: 15px;
}

.variation-selector-wrapper .variation-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.variation-selector-wrapper .variation-tab {
	padding: 5px 25px;
	border: 0;
	background: var(--black-black-005);
  backdrop-filter: blur(10px);
  font-size: clamp(0.875rem, 0.813rem + 0.25vw, 1rem);
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--black-black);
	
  border-radius: 50px;
	cursor: pointer;
	transition: all 0.3s ease;
	min-width: 70px;
	text-align: center;
}

.variation-selector-wrapper .variation-tab:hover {
	background: var(--blue-dark-blue);
  color: var(--white-white);
}

.variation-selector-wrapper .variation-tab.active {
	background: var(--blue-blue);
  color: var(--white-white);
}

.variation-selector-wrapper .variation-tab:disabled,
.variation-selector-wrapper .variation-tab.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.variation-selector-wrapper .reset-variations-wrapper {
	margin-top: 15px;
}

.variation-selector-wrapper .reset_variations {
  opacity: 0.3;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: clamp(1rem, 0.938rem + 0.25vw, 1.125rem);
  line-height: 110%;
  letter-spacing: -0.03em;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  color: var(--black-black);
}

.variation-selector-wrapper .reset_variations:hover {
	opacity: 1;
}

/* Прячем стандартный UI вариаций — используем свой таб-селектор */
.product-page .variations_form .variations,
.product-page .variations_form .reset_variations,
.product-page .single_variation { 
  display: none !important;
}

/* Price Section */
.price-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: clamp(1.75rem, 1.219rem + 2.13vw, 2.813rem);
}

.product-price-section div.price-info > div > .price-from,
.product-price-section div.price-info > div > span.price {
  font-weight: 500;
  font-size: clamp(1.75rem, 1.219rem + 2.13vw, 2.813rem) !important;
  line-height: 100%;
  letter-spacing: -0.05em;
  color: var(--black-black) !important;
}

.product-page .woocommerce-Price-amount.amount {
  color: var(--black-black) !important;
  font-size: clamp(1.75rem, 1.219rem + 2.13vw, 2.813rem) !important;
}

/* === Reviews Section === */
.reviews-product .reviews-product__header {
  margin-bottom: 20px;
}

.reviews-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.reviews-summary:not(.is-form-expanded) .woocommerce-Reviews {
  grid-column: span 2;
}

.reviews-summary__left {
  background: var(--grey-light-grey);
  padding: 25px;

  display: flex;
  gap: clamp(1.125rem, 0.438rem + 2.75vw, 2.5rem);
  height: fit-content;
}

.avg-score {
  display: flex;
  gap: 5px; 

  margin-bottom: 10px;
}

.avg-score__right-now {
  font-size: clamp(2.188rem, 0.938rem + 5vw, 4.688rem);
  line-height: 100%;
  letter-spacing: -0.05em;
  color: var(--black-black);
}

.avg-score__max {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: clamp(1rem, 0.875rem + 0.5vw, 1.25rem);
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--grey-grey);
}

.reviews-summary .reviews-count {
  border: 1px solid var(--black-black-015);
  border-radius: 50px;
  padding: 0px 15px;
  backdrop-filter: blur(10px);
  background: var(--white-white);
  
  font-size: clamp(0.875rem, 0.813rem + 0.25vw, 1rem);
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--grey-grey);
}

.reviews-load-more-wrap { 
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reviews-load-more {
  border: 0;
  background-color: transparent;
  outline: none;
  letter-spacing: -0.03em;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  color: var(--black-black);
  cursor: pointer;
}

.reviews-load-more:hover { 
  opacity: .7;
}



.rating-distribution {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.rating-distribution__row {
  display: grid;
  grid-template-columns: 45px 1fr 45px;
  gap: 10px;
  align-items: center;
}

.rating-distribution__row .stars-label {
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: center;
}

.rating-distribution__row .stars-label span {
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.05em;
  color: var(--black-black);
}

.rating-distribution__row .bar {
  position: relative;
  border-radius: 20px;
  height: 15px;
  background: var(--black-black-005);
}

.rating-distribution__row .bar__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 20px;
  background: var(--blue-blue);
}

.rating-distribution__row .count-label {
  text-align: right;
  font-weight: 500;
  font-size: clamp(0.875rem, 0.75rem + 0.5vw, 1.125rem);
  letter-spacing: -0.05em;
  color: var(--grey-grey);
}

.reviews-summary__right .comment-respond {
  height: fit-content;
  width: 100%;
  border: 1px solid var(--black-black-015);
  padding: 25px;

  height: 100%;
}

.woocommerce-noreviews {
  padding: 0;
  margin: 0;
}

.reviews-summary__right.is-form-expanded {
  grid-row: span 2;
}

.already-reviewed-note {
  width: 100%;
  border: 1px solid var(--black-black-015);
  padding: 25px;
}

.comment-reply-title  {
  padding: 0;
  margin: 0;
  margin-bottom: 20px;
  font-weight: 500;
  font-size: clamp(1.375rem, 1.125rem + 1vw, 1.875rem);
  line-height: 120%;
  text-align: center;
  letter-spacing: -0.05em;
  color: var(--black-black);
}

.comment-form-rating p {
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-content: center;
  width: 100%;
}

.comment-form-rating p span {
  background: var(--blue-blue-005);
  border-radius: 50px;
  padding: 10px 25px;
}

.woocommerce p.stars a::before,
.woocommerce p.stars a {
  font-size: clamp(1.75rem, 1.563rem + 0.75vw, 2.125rem);
}

.comment-form-rating p span {
  display: flex;
  gap: 10px;
}

.woocommerce p.stars a {
  color: var(--blue-blue);
}

.comment-form-comment {
  padding: 0;
  margin: 0;
}

.is-form-expanded .comment-respond p.stars {
  margin-bottom: clamp(1.563rem, 1.094rem + 1.88vw, 2.5rem);
}

.row-comment-info {
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
}

.already-reviewed-note {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;

  font-weight: 500;
  font-size: 30px;
  line-height: 120%;
  color: var(--black-black);
  letter-spacing: -0.05em;
}

.comment-help-note {
  position: relative;
  margin-top: 24px;
  margin: 24px 0 13px;
  display: block;
  font-size: 16px;
  letter-spacing: -0.05em;
  color: #676767;
  cursor: help;
  max-width: fit-content;

  display: flex;
  align-items: center;
}

.comment-help-note::after {
  content: url('../icon/info-icon.svg');
  margin-left: 10px;
  width: 24px;
  height: 24px;
  display: inline-block;
}


.comment-help-note::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  background: var(--blue-blue) !important;
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 30;
}

.comment-help-note:focus::before,
.comment-help-note:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.comment-help-note:focus { outline: none; }


.comment-form-cookies-consent {
  padding: 0;
  display: block;
  margin: 12px 0 24px;
  color: #676767;
  font-size: 16px;
}

.comment-form-cookies-consent a {
  color: #676767;
  text-decoration: underline;
}

.comment-form-cookies-consent a:hover {
  color: var(--blue-blue);
}

.comment-form-author,
.comment-form-email {
  padding: 0;
  width: calc(50% - 5px);
}

textarea#comment,
.comment-form-author input,
.comment-form-email input {
  padding: 15px 20px;
  background-color: var(--blue-blue-005);
  outline: none;
  border: none;
  line-height: 110%;
  letter-spacing: -0.03em;
  color: var(--grey-grey);
  width: 100%;
}

textarea#comment {
  height: 180px;
}

textarea#comment::placeholder,
.comment-form-author input::placeholder,
.comment-form-email input::placeholder {
  opacity: 0.6;
}

p.form-submit {
  padding: 0;
  margin: 0;
}
.review__date {
  font-weight: 400;
  font-size: clamp(0.75rem, 0.688rem + 0.25vw, 0.875rem);
  letter-spacing: -0.03em;
  color: var(--grey-grey);
}

.woocommerce .star-rating span::before,
.woocommerce .star-rating::before,
.woocommerce .star-rating {
  font-size: 18px;
}

.woocommerce form.comment-form p.form-submit > input#submit {
  padding: 10px 20px !important;
  height: 50px !important;
  width: 100%;
  display: flex !important;
  justify-content: center;
  align-content: center;

  outline: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--white-white) !important;
  background: var(--blue-blue) !important;
}

/* comment form align */
.commentlist {
  padding: 0 !important;
  margin: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.is-form-expanded .commentlist {
  grid-template-columns: repeat(2, 1fr);
}

.woocommerce #reviews #comments ol.commentlist::after, .woocommerce #reviews #comments ol.commentlist::before {
  display: none !important;
}

.woocommerce #reviews #comments ol.commentlist li {
  margin: 0;
  padding: 20px;
  background: var(--grey-light-grey);
}

.review__content {
  flex: 1;
}

.review__content p {
  padding: 0;
  margin: 0;
  font-size: 16px;
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--black-black);
  margin-bottom: 5px;
}

.comment_container {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 15px;
}

.woocommerce .star-rating span::before {
  color: var(--blue-blue);
}

.woocommerce .star-rating {
  float: left;
}

.review__date {
  float: right;
}

.review__author {
  width: fit-content;
  border: 1px solid var(--black-black-015);
  border-radius: 50px;
  padding: 0px 15px;
  backdrop-filter: blur(10px);
  background: var(--white-white);
}


/* Order Info */
.product-layout .order-info {
  font-size: clamp(0.75rem, 0.625rem + 0.5vw, 1rem);
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--grey-grey);
  display: block;
  margin: 0;
  margin-bottom: 20px;

  padding: 0;
  background-color: transparent;
}

.price-unit {
  font-size: 14px;
  line-height: 120%;
  letter-spacing: -0.03em;
  text-align: right;
  color: var(--grey-grey);
}

.stock-status {
  margin: 10px 0 20px;

  font-size: clamp(0.875rem, 0.813rem + 0.25vw, 1rem);
  line-height: 130%;
  letter-spacing: -0.03em;
}

.stock-status.in-stock {
  color: var(--additional-green);
}

/* Product Configuration */
.product-configuration {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Variations */
.variations-container {
  display: none;
  flex-direction: column;
  gap: 25px;
}

.variations,
.variations-tabs,
.variation-selector-wrapper {
  height: 100%;
}

.variation-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.variation-label {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.variation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variation-option {
  padding: 10px 16px;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  background: white;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 60px;
  text-align: center;
}

.variation-option:hover {
  border-color: #0066cc;
  background: #f0f8ff;
}

.variation-option.selected {
  border-color: #0066cc;
  background: #0066cc;
  color: white;
}

.woocommerce table.shop_attributes {
  border: none;
  border-collapse: collapse;
  margin-bottom: 0;
}


.woocommerce table.shop_attributes tr th,
.woocommerce table.shop_attributes tr td {
  border-top: 1px solid var(--black-black-015);
}

.woocommerce table.shop_attributes tr:last-child th,
.woocommerce table.shop_attributes tr:last-child td {
  border-bottom: 1px solid var(--black-black-015);
}

.woocommerce table.shop_attributes th {
  width: 50%;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: clamp(0.875rem, 0.795rem + 0.32vw, 1rem);
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--black-black);
  padding: clamp(0.625rem, 0.425rem + 0.8vw, 0.938rem) 0;
  text-align: left;
  border-bottom: 0;
  border-right: 0;
  background-color: transparent !important;
}

.woocommerce table.shop_attributes td {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: clamp(0.875rem, 0.795rem + 0.32vw, 1rem);
  line-height: 130%;
  letter-spacing: -0.03em;
  border-bottom: 0;
  padding: clamp(0.625rem, 0.425rem + 0.8vw, 0.938rem) 0;
  font-style: normal;
  color: var(--grey-grey);
  border-right: 0;
  background-color: transparent !important;
}

.woocommerce table.shop_attributes td a {
  color: inherit;
  text-decoration: underline;
}

.woocommerce table.shop_attributes td a:hover {
  color: #000;
}

.pay__wrapper {
  margin-top: 18px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pay__title {
  font-weight: 500;
  font-size: clamp(1.25rem, -0.568rem + 2.84vw, 1.563rem);
  line-height: 100%;
  letter-spacing: -0.05em;
  color: var(--black-black);
  margin: 0;
  padding: 0;
}

.tab-content p,
.tab-content-inner p {
  padding: 0;
  margin: 0;
  opacity: 0.7;

  font-size: clamp(0.875rem, 0.813rem + 0.25vw, 1rem);
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--black-black);
}

.tab-content-inner p:not(:last-child),
.tab-content p:not(:last-child)  {
  margin-bottom: 15px;
}

.tab-content-inner p:empty,
.tab-content p:empty  {
  display: none;
}

.m-b-30 {
  margin-bottom: 30px;
}

.delivery__info {
  font-size: clamp(1rem, 0.875rem + 0.5vw, 1.25rem);
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--black-black);
  display: block;
  max-width: 440px;
}

.delivery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;

  width: 100%;
  max-width: 567px;

  margin: clamp(0.625rem, 0.425rem + 0.8vw, 0.938rem) 0 clamp(1.563rem, 0.962rem + 2.4vw, 2.5rem) ;
}

.delivery__item {
  height: 67px;
  padding: 8px;
  background: var(--white-white);
  border: 0.63px solid var(--white-white-015);
}

.delivery__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.certificates-list {
  padding: 0;
  margin: 0;
  list-style: none;

  display: flex;
  flex-direction: column;
  gap: 20px;
}

.certificate-item__link {
  padding: clamp(0.625rem, 0.425rem + 0.8vw, 0.938rem);
  background: var(--white-white);

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


.certificate-title {
  display: block;
  font-size: clamp(0.875rem, 0.813rem + 0.25vw, 1rem);
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--black-black);
  margin-bottom: 10px;
}

.certificate-meta {
  display: block;
  font-size: clamp(0.875rem, 0.813rem + 0.25vw, 1rem);
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--black-black);
  opacity: 0.4;
}

.certificate-item__link-btn {
  display: block;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  text-decoration: underline;
  line-height: 110%;
  letter-spacing: -0.03em;
  text-decoration-skip-ink: none;
  color: var(--black-black);
  padding: 0;
  font-size: 18px;

  color: var(--black-black);
}

.certificate-item__link:hover {
  opacity: 0.7;
}

.woocommerce div.product form.cart {
  margin-bottom: clamp(0.938rem, 0.156rem + 3.13vw, 2.5rem);
}

/* Скрываем мобильную версию на десктопе и наоборот */
@media (min-width: 1025px) {
  .gallery-mobile { 
    display: none;
  }


  .gallery-desktop { 
    display: flex; 
    flex-direction: column;
    gap: 10px; 

  }

  .gallery-desktop__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-desktop__main,
  .gallery-desktop__grid .grid-item {
    aspect-ratio: 1 / 1;
    background: var(--grey-light-grey);
    overflow: hidden;
  }

  .gallery-desktop__grid .grid-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
  }
}

@media (max-width: 1025px) {

  .variation__row {
    display: flex;
  }

  .gallery-desktop {
    display: none;
  }

  .gallery-mobile { 
    display: block;
    max-width: 100vw;
    overflow: hidden;
  }

  .product-layout {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.563rem, 0.962rem + 2.4vw, 2.5rem) 20px;
  }

  .product-tabs-section {
    width: 100%;
    margin-top: 0;
  }

  .product-images,
  .product-details {
    width: calc(50% - 10px);
  }

  .gallery-mobile .main-swiper {
    padding-top: clamp(2.188rem, 1.844rem + 1.38vw, 2.875rem);
  }

  .gallery-mobile .swiper-wrapper {
    height: auto;
    max-height: inherit;
  }

  .gallery-mobile .swiper-slide {
    height: auto;
    max-height: inherit;
    width: 100%;
    background: var(--grey-light-grey);
  }

  .main-swiper img {
    height: clamp(13.75rem, 9.744rem + 16.03vw, 20rem) !important;
  }
  
  /* Гарантируем, что картинки не растягиваются по высоте */
  .gallery-mobile .swiper-slide img {
    display: block;
    width: 100%;
    /* height: auto; */
    /* max-height: 80vh; */
    object-fit: contain;
    object-position: center;
    height: 100%;
  }

  .product-images {
    background: var(--grey-light-grey);
  }

  .thumbs-swiper {
    margin: 55px 20px 20px 20px !important;
    width: calc(100% - 40px) !important;
    max-width: calc(100% - 40px) !important;
  }

  .user-wishlist-grid,
  .recently-viewed-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .details__box {
    border: 1px solid var(--black-black-015);
    background-color: transparent;
  }

  .variation-selection-section {
    border: 0;
    background: var(--grey-light-grey);
  }

  .product-price-section div.price-info > div > .price-from, .product-price-section div.price-info > div > span.price,
  .product-page .woocommerce-Price-amount.amount {
    font-size: clamp(1.75rem, 1.47rem + 1.12vw, 2.188rem) !important;
  }

  .price-info-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;

    margin-bottom: 20px;
  }

  .stock-status {
    margin: 0;
  }
}

/* Базовые стили для слайдов - предотвращаем бесконечное растягивание */
.swiper {
  width: 100%;
  overflow: hidden;
  max-width: 100%;
}

.swiper-wrapper {
  max-width: 100%;
  max-height: inherit;
}

.swiper-slide {
  max-width: 100%;
  max-height: inherit;
}

/* Специальные стили для main-swiper */
.main-swiper {
  max-height: 80vh;
  height: auto;
}

.main-swiper .swiper-slide img {
  max-height: 80vh;
  object-fit: contain;
}

/*.swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}*/

.thumbs-swiper {
  margin-top: 10px;
}

.thumbs-swiper .swiper-slide {
  cursor: pointer;
  position: relative;
  padding: 3px;
}

.thumbs-swiper .swiper-slide::before, .thumbs-swiper .swiper-slide::after, .thumbs-swiper .swiper-slide__line::before, .thumbs-swiper .swiper-slide__line::after {
  display: block;
  content: "";
  width: 20px;
  height: 12px;
  position: absolute;
  z-index: 2;
  transition: all .25s linear;
}

.thumbs-swiper .swiper-slide::before {
  top: 2px;
  left: 2px;
  border-top: 1px solid var(--black-black-015);
  border-left: 1px solid var(--black-black-015);
}

.thumbs-swiper .swiper-slide::after {
  top: 2px;
  right: 2px;
  border-top: 1px solid var(--black-black-015);
  border-right: 1px solid var(--black-black-015);
}

.thumbs-swiper .swiper-slide__line::before {
  bottom: 1px;
  left: 1px;
  border-bottom: 1px solid var(--black-black-015);
  border-left: 1px solid var(--black-black-015);
}

.thumbs-swiper .swiper-slide__line::after {
  bottom: 2px;
  right: 2px;
  border-bottom: 1px solid var(--black-black-015);
  border-right: 1px solid var(--black-black-015);
}

.thumbs-swiper .swiper-slide:hover::before,
.thumbs-swiper .swiper-slide:hover::after,
.thumbs-swiper .swiper-slide:hover .swiper-slide__line::before,
.thumbs-swiper .swiper-slide:hover .swiper-slide__line::after,
.thumbs-swiper .swiper-slide-thumb-active.swiper-slide::before,
.thumbs-swiper .swiper-slide-thumb-active.swiper-slide::after,
.thumbs-swiper .swiper-slide-thumb-active .swiper-slide__line::before,
.thumbs-swiper .swiper-slide-thumb-active .swiper-slide__line::after {
  border-color: var(--black-black);
}

.thumbs-swiper .swiper-slide-thumb-active {
  opacity: 1;
}


/* Responsive Design */
@media (max-width: 768px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-images,
  .product-details {
    width: 100%;
  }

  .product-images {
    position: static;
  }

  .product-title {
    /*font-size: 24px;*/
  }

  .price {
    font-size: 28px;
  }

  .variation-options {
    justify-content: center;
  }

  .order-via-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .product-price-section {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .variation-option {
    min-width: 50px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .order-via-btn {
    padding: 10px 16px;
    font-size: 12px;
  }
}

.swiper-wrapper {
  max-width: 100% !important;
  width: 100% !important;
}

/* контролируем размеры слайдера, предотвращая бесконечное растягивание */
.gallery-mobile .main-swiper {
  width: 100% !important;
  max-height: 80vh !important;
  overflow: hidden;
}

.gallery-mobile .main-swiper .swiper-wrapper {
  width: 100% !important;
  height: auto !important;
  max-height: inherit;
}

.gallery-mobile .main-swiper .swiper-slide {
  width: 100% !important;
  height: auto !important;
  max-height: inherit;
  background: var(--grey-light-grey);
}

/* картинка — по содержимому с ограничением высоты */
.gallery-mobile .main-swiper .swiper-slide img {
  display: block;
  width: 100%;
  object-fit: contain;
}


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


/* корзина */
.cart__grid {
  display: flex;
  gap: 20px;
}

.cart__items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart__summary {
  flex-basis: 440px;
}

.woocommerce .cart-collaterals::after, .woocommerce .cart-collaterals::before, .woocommerce-page .cart-collaterals::after, .woocommerce-page .cart-collaterals::before {
  display: none;
}

.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals {
  float: unset;
  width: 100%;
  max-width: 100%;
}

.cart-totals {
  /*border-top: 1px solid var(--black-black-015);*/
}

.cart-totals__row {
  margin-top: 0;
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  gap:16px;
}

.cart-totals__row--items {
  /*margin-top: 20px;*/
  border-top: 1px solid var(--black-black-015);
  border-bottom: 1px solid var(--black-black-015);
  padding: 20px 0px;
  margin-bottom: 20px;

}

.cart-totals__row--items .cart-totals__label,
.cart-totals__value {
  /*font-size: 20px;*/
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--grey-grey);
}

.cart-totals__label {
  font-size: clamp(0.875rem, 0.813rem + 0.25vw, 1rem);
}

.cart-totals__value {
  font-size: clamp(1rem, 0.875rem + 0.5vw, 1.25rem);
}

.cart-totals__value--strong,
.cart-totals__label--strong {
font-size: clamp(1.375rem, 0.969rem + 1.63vw, 2.188rem);
}

.cart-totals__divider{
  height:1px; 
  background:var(--black-black-015); 
  margin: 20px 0
}

.cart-totals__label--strong,
.cart-totals__value--strong {
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.05em;
  color: var(--black-black);
}

.button--block{
  display:block; 
  width:100%; 
  text-align:center
}

.cart-totals__cta {
  margin-top: 30px
}

.cart-totals__cta a.checkout-button {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--blue-blue);
  padding: 10px 20px;
  height: 50px;

  letter-spacing: -0.03em;
  color: var(--white-white);
  transition: all 0.3s ease;
}

.cart-totals__cta a.checkout-button:hover {
  background: var(--blue-blue);
  color: var(--white-white);
}

.cart-totals__note {
  padding: 0;
  margin: 0;

  margin-top:15px; 
  font-size: clamp(0.875rem, 0.813rem + 0.25vw, 1rem);
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--grey-grey);
  max-width: 370px;
}

/* === CHECKOUT STYLES === */

/* Checkout Grid Layout */
.checkout__grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 60px;
  margin-top: 40px;
}

.checkout__form-section {
  flex: 1;
}

.checkout__order-review {
  background: var(--grey-light-grey);
  padding: 25px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.checkout__section-title {
  font-weight: 500;
  font-size: 25px;
  line-height: 100%;
  letter-spacing: -0.05em;
  color: var(--black-black);
  margin: 0 0 20px 0;
  padding: 0;
}

/* Form Fields */
.checkout__form-section .form-row {
  margin-bottom: 20px;
}

.checkout__form-section .form-row label {
  display: block;
  font-weight: 500;
  font-size: 16px;
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--black-black);
  margin-bottom: 8px;
}

.checkout__form-section .form-row input[type="text"],
.checkout__form-section .form-row input[type="email"],
.checkout__form-section .form-row input[type="tel"],
.checkout__form-section .form-row input[type="password"],
.checkout__form-section .form-row select,
.checkout__form-section .form-row textarea {
  width: 100%;
  padding: 15px 20px;
  background: var(--grey-light-grey);
  border: 1px solid var(--black-black-015);
  outline: none;
  font-size: 16px;
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--black-black);
  transition: all 0.3s ease;
}

.checkout__form-section .form-row input:focus,
.checkout__form-section .form-row select:focus,
.checkout__form-section .form-row textarea:focus {
  border-color: var(--blue-blue);
  background: var(--white-white);
}

.checkout__form-section .form-row input::placeholder,
.checkout__form-section .form-row textarea::placeholder {
  color: var(--grey-grey);
  opacity: 0.6;
}

/* Shipping Toggle */
.shipping-address-toggle {
  margin-bottom: 20px;
}

.shipping-address-toggle label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 16px;
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--black-black);
}

.shipping-address-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1px solid var(--black-black-015);
  background: var(--grey-light-grey);
  appearance: none;
  cursor: pointer;
  position: relative;
}

.shipping-address-toggle input[type="checkbox"]:checked {
  background: var(--blue-blue);
  border-color: var(--blue-blue);
}

.shipping-address-toggle input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Order Review */
.checkout-review__items {
  margin-bottom: 20px;
}

.checkout-review__item {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--black-black-015);
}

.checkout-review__item:last-child {
  border-bottom: none;
}

.checkout-review__item-image {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--white-white);
  border-radius: 8px;
  overflow: hidden;
}

.checkout-review__item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.checkout-review__item-details {
  flex: 1;
}

.checkout-review__item-name {
  font-size: 16px;
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--black-black);
  margin-bottom: 5px;
}

.checkout-review__quantity {
  font-size: 14px;
  color: var(--grey-grey);
}

.checkout-review__item-sku {
  font-size: 14px;
  line-height: 120%;
  letter-spacing: -0.03em;
  color: var(--grey-grey);
}

.checkout-review__item-sku .sku-label {
  opacity: 0.6;
}

.checkout-review__item-total {
  font-weight: 500;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: -0.05em;
  color: var(--black-black);
}

/* Totals */
.checkout-review__totals {
  margin-bottom: 30px;
}

.checkout-review__total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.checkout-review__total-label {
  font-size: 16px;
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--grey-grey);
}

.checkout-review__total-value {
  font-size: 16px;
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--black-black);
}

.checkout-review__total-label--strong {
  font-weight: 500;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: -0.05em;
  color: var(--black-black);
}

.checkout-review__total-value--strong {
  font-weight: 500;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: -0.05em;
  color: var(--black-black);
}

.checkout-review__divider {
  height: 1px;
  background: var(--black-black-015);
  margin: 20px 0;
}

/* Payment Methods */
.checkout-review__payment {
  margin-bottom: 20px;
}

.wc_payment_methods {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.wc_payment_methods li {
  margin-bottom: 10px;
  background: var(--white-white);
  border: 1px solid var(--black-black-015);
  border-radius: 8px;
  overflow: hidden;
}

.wc_payment_methods label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 16px;
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--black-black);
  margin: 0;
}

.wc_payment_methods input[type="radio"] {
  width: 18px;
  height: 18px;
  border: 1px solid var(--black-black-015);
  background: var(--grey-light-grey);
  appearance: none;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
}

.wc_payment_methods input[type="radio"]:checked {
  background: var(--blue-blue);
  border-color: var(--blue-blue);
}

.wc_payment_methods input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.payment_box {
  padding: 15px 20px;
  background: var(--grey-light-grey);
  border-top: 1px solid var(--black-black-015);
  font-size: 14px;
  line-height: 140%;
  color: var(--grey-grey);
}

/* Submit Button */
.checkout-submit-button {
  width: 100%;
  padding: 15px 25px;
  background: var(--blue-blue);
  color: var(--white-white);
  border: none;
  outline: none;
  font-size: 18px;
  line-height: 110%;
  letter-spacing: -0.03em;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.checkout-submit-button:hover {
  background: var(--blue-dark-blue);
}

.checkout-submit-button:active {
  transform: translateY(1px);
}

/* Terms and Conditions */
.woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 20px;
}

.woocommerce-terms-and-conditions-checkbox-text {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 140%;
  letter-spacing: -0.03em;
  color: var(--black-black);
}

.woocommerce-terms-and-conditions-checkbox-text input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
}

/* Order Notes */
.checkout-review__note {
  padding: 15px;
  background: var(--blue-blue-005);
  border-radius: 8px;
  margin-top: 20px;
}

.checkout-review__note p {
  margin: 0;
  font-size: 14px;
  line-height: 140%;
  letter-spacing: -0.03em;
  color: var(--grey-grey);
}

/* Responsive Design */
@media (max-width: 1025px) {
  .checkout__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .checkout__order-review {
    position: relative;
    top: auto;
  }
}

@media (max-width: 768px) {
  .checkout__grid {
    gap: 30px;
    margin-top: 30px;
  }

  .checkout__order-review {
    padding: 20px;
  }

  .checkout__section-title {
    font-size: 20px;
  }

  .checkout-review__item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .checkout-review__item-image {
    width: 80px;
    height: 80px;
  }

  .delivery__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
  }
}

/* WooCommerce specific overrides */
.woocommerce .col2-set {
  width: 100%;
}

.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2 {
  width: 100%;
  float: none;
  margin-right: 0;
}

.woocommerce-checkout .select2-container {
  width: 100% !important;
}

.woocommerce-checkout .select2-container .select2-selection--single {
  height: 52px;
  padding: 15px 20px;
  background: var(--grey-light-grey);
  border: 1px solid var(--black-black-015);
  border-radius: 0;
}

.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 22px;
  padding: 0;
  color: var(--black-black);
}

.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow {
  right: 15px;
  top: 15px;
}

/* Error Messages */
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
  background: var(--grey-light-grey);
  border: 1px solid var(--black-black-015);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--black-black);
}

.woocommerce ul.woocommerce-error {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
  /* margin: 0; */
  padding: 0;
}

.woocommerce .woocommerce-error {
  border-color: var(--additional-red);
  background: rgba(255, 0, 0, 0.05);
}

.woocommerce .woocommerce-info {
  border-color: var(--blue-blue);
  background: var(--blue-blue-005);
}

#payment {
  display: none;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 50px;
}

.checkout-section__title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.094rem + 0.63vw, 1.563rem);
  line-height: 100%;
  letter-spacing: -0.05em;
  color: var(--black-black);
  margin-bottom: 15px;
}

.checkout-grid .checkout-col--left .checkout-input__input {
  display: inline-block;
  width: 100%;
  border: none;
  outline: none;
  background: var(--blue-blue-005);
  padding: 15px 20px !important;
  letter-spacing: -0.03em;
  color: var(--black-black);
  text-align: left;
  height: 50px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.checkout-grid .checkout-col--left .checkout-input__input input::placeholder,
.checkout-grid .checkout-col--left .checkout-input__input textarea::placeholder {
  color: var(--grey-grey);
  opacity: 0.6;
}

.checkout-input {
  padding: 0;
  margin: 0;
  display: inline-block;
  width: 100%;
}

#order_comments_field,
#privacy_policy_field {
  max-width: 100%;
  width: 100%;
  grid-column: span 2;
}

#order_comments_field textarea {
  height: 205px;
}

.checkout-inline-error-message {
  display: none;
}

.place-order--left button {
  background: var(--blue-blue);
  color: var(--white-white);
  font-size: 18px;
  line-height: 110%;
  letter-spacing: -0.03em;
  padding: 15px 25px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
  width: 100%;
}

.place-order--left button:hover {
  background: var(--blue-dark-blue);
}

.checkout-inline-info {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: clamp(0.875rem, 0.813rem + 0.25vw, 1rem);
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--grey-grey);
  margin-top: clamp(1.563rem, 0.781rem + 3.13vw, 3.125rem);
  margin-bottom: clamp(0.625rem, 0.469rem + 0.63vw, 0.938rem);
}

.optional {
  display: none;
}

.woocommerce-terms-and-conditions-wrapper { display: none !important; }

#privacy_policy {
  display: inline;
  width: auto;

  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--black-black);

  width: 15px;
  height: 15px;
  padding: 0 !important;
}

.checkout-input__label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.checkout-input__label-text {
  padding-right: 5px;
  font-size: 16px;
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--black-black);
  opacity: 0.4;
}


.checkout-input__label a {
  text-decoration: underline;
  text-decoration-skip-ink: none;
  opacity: 1;
  font-size: 16px;
  line-height: 130%;
  letter-spacing: -0.03em;
  opacity: 0.4;
  color: var(--black-black) !important;
}

.checkout-input__label a:hover {
  opacity: 1;
}

.checkout__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.checkout-summary__title {
  padding: 0;
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.25rem, 1.094rem + 0.63vw, 1.563rem);
  line-height: 100%;
  letter-spacing: -0.05em;
  color: var(--black-black);
}

.checkout-summary__count {
  display: inline-block;
  padding-left: 5px;
  font-weight: 400;
  color: var(--blue-blue);
}

.checkout__header-right a {
  opacity: 0.4;
  line-height: 110%;
  letter-spacing: -0.03em;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  color: var(--black-black);
}

.checkout__header-right a:hover {
  opacity: 1;
}

.checkout-summary__items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;

  max-height: 595px;
  overflow-y: auto;
  padding-right: clamp(0.5rem, 0.22rem + 1.12vw, 0.938rem);
}

*::-webkit-scrollbar {
	width: clamp(0.5rem, 0.22rem + 1.12vw, 0.938rem);
	background: #e6e6e6;
	border-radius: 20px;
}

*::-webkit-scrollbar-thumb {
	background: var(--blue-blue);
	width: clamp(0.5rem, 0.22rem + 1.12vw, 0.938rem);
	border-radius: 20px;
}

.checkout-summary__items .checkout-item {
  display: flex;
  gap: 20px;
  background: var(--grey-light-grey);
  padding: clamp(0.938rem, 0.625rem + 1.25vw, 1.563rem);
}

.checkout-item__thumb {
  flex-basis: 300px;
  height: 135px;
}

.checkout-item__thumb img {
  object-fit: contain;
  object-position: center;
  width: 100%;
  height: 100%;
}

.checkout-item__info {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-item__name {
  flex: 1;
}

.checkout-item__name a {
  font-size: clamp(1rem, 0.875rem + 0.5vw, 1.25rem);
  line-height: 100%;
  letter-spacing: -0.05em;
  color: var(--black-black);
  text-decoration: none;
}

.checkout-item__name a:hover {
  text-decoration: underline;
}

.checkout-item__qty {
  font-size: clamp(0.875rem, 0.813rem + 0.25vw, 1rem);
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--grey-grey);
}

.checkout-item__price {
  font-weight: 500;
  font-size: clamp(1.25rem, 1.094rem + 0.63vw, 1.563rem);
  line-height: 100%;
  letter-spacing: -0.05em;
  color: var(--black-black);
}

.checkout-sum {
  margin-top: 25px;
}

.checkout-sum__col .checkout-sum__item {
  border-bottom: 1px solid var(--black-black-015);
  border-top: 1px solid var(--black-black-015);
  padding: clamp(0.75rem, 0.5rem + 1vw, 1.25rem) 0px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.checkout-sum__item-title {
  font-size: 16px;
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--grey-grey);
}

.checkout-sum__item-price {
  font-size: clamp(1rem, 0.875rem + 0.5vw, 1.25rem);
  line-height: 130%;
  letter-spacing: -0.03em;
  color: var(--grey-grey);
}

.checkout-sum__col .checkout-sum__item--total {
  padding: clamp(0.938rem, 0.625rem + 1.25vw, 1.563rem) 0;
  border-top: none;
}

.checkout-sum__item--total .checkout-sum__item-title,
.checkout-sum__item--total .checkout-sum__item-price  {
  font-weight: 500;
  font-size: clamp(1.375rem, 0.969rem + 1.63vw, 2.188rem);
  color: var(--black-black);
}

.checkout-grid .phone-field {
  display: inline-flex;
  margin-right: 15px;
  width: 100%;
}

.form-grid-order {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;

  margin-bottom: 40px;
}

#billing_email_field {
  margin-right: 0;
}

#billing_phone_field {
  display: none;
}

.checkout-grid p:empty {
  display: none;
}

.woocommerce-error::before {
  display: none;
}

.woocommerce .woocommerce-error {
  background-color: var(--blue-blue);
  line-height: normal;
  list-style: none;
  border: none;
  margin: 0;
  color: #fff;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 clamp(0.625rem, 0.224rem + 1.6vw, 1.25rem);
}

#billing_phone_custom_field {
  display: none;
}

.woocommerce .woocommerce-error li {
  margin: 0;
  padding: 0;
  background: var(--blue-blue);
  padding: clamp(0.625rem, 0.469rem + 0.63vw, 0.938rem);
  border-radius: 10px;
}


.woocommerce .woocommerce-error li a,
.woocommerce .woocommerce-error li {
  font-size: clamp(0.875rem, 0.813rem + 0.25vw, 1rem);
  line-height: 1.4;
  color: #fff;
}

/* Thank You Page Styles */
.thankyou-page {
  padding: 80px 0 150px;
}

.thankyou-wrapper {
  max-width: 470px;
  margin: 0 auto;
  text-align: center;
}

.thankyou-wrapper__title {
  font-weight: 500;
  font-size: clamp(1.375rem, 0.969rem + 1.63vw, 2.188rem);
  letter-spacing: -0.05em;
  text-align: center;
  color: var(--black-black);  
  margin-bottom: 15px;
  line-height: 120%;
}

.thankyou-wrapper__text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: clamp(1rem, 0.875rem + 0.5vw, 1.25rem);
  line-height: 130%;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--black-black);
}

.thankyou-wrapper__text span {
  color: var(--blue-blue);
}

.order-info {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

.order-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.order-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.order-info-item:last-child {
  border-bottom: none;
}

.order-info-item strong {
  color: #333;
  font-weight: 600;
}

.order-details,
.customer-details,
.payment-method {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.order-details h3,
.customer-details h3,
.payment-method h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.3rem;
}

.customer-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.billing-address address {
  font-style: normal;
  line-height: 1.6;
  color: #555;
}

.thankyou-actions {
  margin-top: 2rem;
}

.thankyou-message {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.thankyou-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.thankyou-buttons .button {
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.button-primary {
  background: var(--blue-blue);
  color: white;
}

.button-primary:hover {
  background: var(--blue-blue-hover, #0056b3);
  color: white;
}

.button-secondary {
  background: transparent;
  color: var(--blue-blue);
  border: 2px solid var(--blue-blue);
}

.button-secondary:hover {
  background: var(--blue-blue);
  color: white;
}

.thankyou-failed,
.thankyou-no-order {
  text-align: center;
  padding: 3rem 2rem;
}

.thankyou-failed h1,
.thankyou-no-order h1 {
  color: #d32f2f;
  margin-bottom: 1rem;
}

.thankyou-failed p,
.thankyou-no-order p {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.advantages-product__text {
  font-size: clamp(0.875rem, 0.688rem + 0.75vw, 1.25rem);
  line-height: 140%;
  letter-spacing: -0.03em;
  color: var(--grey-grey);
}

.advantages-product__text p:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}



@media (max-width: 1250px) {
  .details-grid:has(.variation-selection-section) {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }

  .product-view-mode-list .product-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .product-view-mode-list .product-card__img {
    grid-row: span 2;
  }

  .product-view-mode-list .product-card__price {
    align-self: flex-start;
  }

  .product-view-mode-list .product-card__price {
    flex-direction: row;
  }
}

@media (max-width: 1025px) {
  .variation__row  {
    display: flex;
  }
  /* Accordion styles for variations on mobile */
  .variation-selector-wrapper .variations {
    display: none;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .variation-selector-wrapper .variations.open {
    display: block;
    padding-top: 20px;
  }
  
  .variation-selector-wrapper .variation__more {
    transform: rotate(0deg);
    transition: all 0.3s ease;
    font-size: 20px;
    font-weight: bold;
    color: var(--black-black);
  }
  
  .variation-selector-wrapper.accordion-open .variation__more {
    transform: rotate(0deg);
  }

  .parent-categories-container {
    padding: 0;
    margin: 0;
    max-width: 100%;
  }

  .toolbar-filters {
    display: block;
    flex: 1;
  }

  .products-toolbar {
    justify-content: unset;
  }

  .shop-content__sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255 255 255);
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: all .25s linear;  
  }

  .shop-content__sidebar.open {
    transform: translateX(0);
  }

  .shop-content__sidebar-title {
    font-size: clamp(2.188rem, 1.719rem + 1.88vw, 3.125rem);
    line-height: 90%;
    letter-spacing: -0.05em;
    color: var(--black-black);
  }

  .shop-content__sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 5px;
    width: fit-content;
  }

  .shop-content__sidebar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    margin-bottom: 30px;
  }

  .variations, .variations-tabs, .variation-selector-wrapper {
    height: auto;
  }

  .product-page .product-card--inline .product-card__actions {
    flex-wrap: nowrap;
  }

  .details__box form.cart .button {
    width: unset;
    min-width: unset;
    order: 2;
  }

  .product-card .quantity-wrap {
    order: 1;
  }

  .product-actions {
    order: 3;
  }

  .reviews-summary {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .reviews-summary:not(.is-form-expanded) .woocommerce-Reviews {
    grid-column: span 1;
  }

  .reviews-summary__right {
    order: 1;
  }

  .commentlist {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-summary__right .comment-respond {
    padding: 50px 15px;
  }

  .similar-products .section__title {
    width: 100%;
  }

  .similar-products .section-row {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 25px;
  }

  .similar-products .swiper-nav {
    justify-content: flex-end;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout-col--left {
    order: 1;
  }

  .order-section-viewed {
    display: none;
  }

  .checkout-page .section {
    margin-bottom: 0;
  }

}

@media (max-width: 768px) {
  .thankyou-page {
    padding: 130px 0 160px;
  }
  
  .thankyou-title {
    font-size: 2rem;
  }
  
  .order-info-grid {
    grid-template-columns: 1fr;
  }
  
  .customer-details-grid {
    grid-template-columns: 1fr;
  }
  
  .thankyou-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .thankyou-buttons .button {
    width: 100%;
    max-width: 300px;
  }

  .user-wishlist-grid,
  .recently-viewed-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .compare-actions {
    margin-bottom: 32px;
    /*justify-content: flex-start;*/
  }

  .pay__wrapper {
    grid-template-columns: 1fr;
  }

  .pay__wrapper {
    row-gap: 10px;
  }

  .certificate-item__link-btn  {
    display: none;
  }

  .row-comment-info {
    flex-direction: column;
  }

  .comment-form-author, .comment-form-email {
    width: 100%;
  }

  .reviews-summary__right .comment-respond {
    padding-top: 15px;
  }

  .comment-reply-title {
    margin-bottom: ;
  }

  .comment-help-note {
    margin-top: 13px;
    font-size: 13px;
  }

  .comment-form-cookies-consent {
    margin: 13px 0;
    font-size: 13px;
  }

  .checkout-summary__items .checkout-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px 20px;

    padding: 10px 0;
  }

  .checkout-item__thumb {
    max-height: 100px;
  }

  .checkout-item__thumb {
    grid-column: span 1;
    grid-row: span 2;
  }

  .form-grid-order {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  #order_comments_field, #privacy_policy_field {
    grid-column: span 1;
  }
  
}

@media (max-width: 480px) {
  .product-card__rating .star:not(:first-child) {
    display: none;
  }

  .user-wishlist-grid,
  .recently-viewed-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .compare-section .product-card__title {
    font-size: 14px;
  }

  .compare-section .product-card__price {
    flex-wrap: wrap;
  }

  .compare-section .product-card__price-sub {
    width: 100%;
  }

  .compare-section .product-card__actions .cart {
    margin-top: 10px;
  }

  .compare-section  .wishlist-card {
    top: 15px;
    right: 15px;
  }

  .compare-section .product-card .compare {
    top: 50px;
    right: 15px;
  }

  .compare-section .product-card img {
    height: 90px;
  }

  .product-card .compare {
    top: 55px;
  }

  .main-title-products {
    word-break: unset;
  }

  .toolbar-right {
    display: none;
  }

  .woocommerce .products ul, .woocommerce ul.products.product-view-mode-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .thumbs-swiper {
    margin: 35px 20px 20px 20px !important;
  }

  .price-info-wrap {
    flex-direction: column;
    margin-bottom: 15px;
  }

  .product-page .product-card--inline .product-card__actions {
    flex-wrap: wrap;
  }

  .details__box .product-actions {
    order: 2;
  }

  .details__box form.cart .button {
    min-width: 100%;
    order: 3;
  }

  .product-card .quantity-wrap {
    max-width: fit-content;
  }

  .order-via-buttons {
    flex-direction: column;
    row-gap: 8px;
  }

  .order-via-btn {
    width: 100% !important;
  }

  .details__box {
    display: flex;
    flex-direction: column;
  }

  .product-price-section {
    order: 1;
  }

  .order-info {
    order: 3;
  }

  .add-to-cart {
    order: 2;
  }

  .order-via {
    order: 4;
  }

  .product-layout .order-info {
    margin-bottom: 25px;
  }

  .commentlist {
    grid-template-columns: repeat(1, 1fr);
  }
  
  .reviews-summary__left {
    flex-direction: column;
    row-gap: 15px;
  }

  .reviews-summary .reviews-count {
    max-width: fit-content;
  }

  .reviews-summary__avg {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .rating-distribution__row .bar {
    height: 10px;
  }

  .rating-distribution {
    gap: 5px;
  }

  .reviews-summary__left,
  .woocommerce #reviews #comments ol.commentlist li {
    padding: 15px;
  }

  .reviews-summary {
    row-gap: 25px;
  }

  .reviews-load-more-wrap {
    margin-top: 25px;
  }

  .similar-products .swiper-nav {
    width: 100%;
  }

  .similar-products .section-row {
    row-gap: 15px;
  }

  .similar-tabs {
    margin-top: 10px !important;
  }


  h2.wishlist-empty__title,
  p.wishlist-empty__text,
  .wishlist-empty__btn {
    text-align: left;
    margin-left: 0;
  }

  .main-title-products__count {
    bottom: 10px;
  }

  .woocommerce-checkout  .checkout-input__label-text,
  .woocommerce-checkout  .checkout-input__label a {
    font-size: 14px;
  }
}

/* Category Description Expand/Collapse */
.category-description-wrapper {
  position: relative;
}

.category-description {
  transition: max-height 0.3s ease;
  overflow: hidden;
}

.category-description.collapsed {
  max-height: 72px;
}

.category-description.collapsed:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 72px;
  z-index: 1;
  background: linear-gradient(180deg, rgb(255 255 255 / 0%) 23%, #ffffff 100%);
}

.category-description.expanded {
  max-height: none;
}

.expand-description-btn {
  margin-top: 10px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 110%;
  letter-spacing: -0.03em;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  color: var(--grey-grey);
  cursor: pointer;
  outline: none;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  position: relative;
  z-index: 2;
}

.expand-description-btn:hover {
  color: var(--blue-blue);
}

.expand-description-btn .expand-icon {
  transition: transform 0.3s ease;
}

.expand-description-btn.expanded .expand-icon {
  transform: rotate(180deg);
}

/* Active product tag styles */
.product-tag-card.active {
  background-color: var(--blue-blue, #007cba);
  color: white;
}

.product-tag-card.active:hover {
  background-color: var(--blue-blue, #007cba);
  opacity: 0.9;
}