.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-item {
  width: 100%;
  position: relative;
}

.category-item::before {
  content: '';
  display: block;
  padding-top: 100%;
  /* Это создаст квадратную форму */
}

.category-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: clamp(0.625rem, 0.4733rem + 0.6472vw, 1.25rem);
}

/* .category-image::after {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    border-radius: inherit;
    z-index: 0;
    pointer-events: none;
} */

.category-title {
  display: block;
  font-size: clamp(1rem, 0.8786rem + 0.5178vw, 1.5rem);
  font-weight: 400;
  line-height: 140%;
  text-align: center;
  color: #F9F9F9;
  position: absolute;
  bottom: clamp(0.625rem, 0.4733rem + 0.6472vw, 1.25rem);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

span.category-title.blur-effect {
  width: calc(100% - clamp(0.625rem, 0.1699rem + 1.9417vw, 2.5rem));
  padding: 10px clamp(0.625rem, 0.1699rem + 1.9417vw, 2.5rem);
  border-radius: clamp(0.625rem, 0.4733rem + 0.6472vw, 1.25rem);
  min-height: clamp(2.875rem, 2.2075rem + 2.8479vw, 5.625rem);
}

.category-link:hover .category-image {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0px 20px 32px 0px rgba(0, 0, 0, 0.15), 0px 8px 8px 0px rgba(0, 0, 0, 0.15), 0px 4px 4px 0px rgba(0, 0, 0, 0.05);
}

a.category-link.custom-category-link {
  border-radius: clamp(0.625rem, 0.4733rem + 0.6472vw, 1.25rem);
  box-shadow: 0px 20px 32px 0px rgba(0, 0, 0, 0.15), 0px 8px 8px 0px rgba(0, 0, 0, 0.15), 0px 4px 4px 0px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-header h1.page-title {
  font-size: clamp(1.75rem, 1.6286rem + 0.5178vw, 2.25rem);
  line-height: 150%;
  text-transform: uppercase;
  color: #0C5331;
}

.category-header {
  margin-bottom: 30px;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb {
  margin-bottom: clamp(1.25rem, 2.5307rem + -5.4645vw, 1.875rem);
  color: #0F6038;
  font-size: 14px;
  display: flex;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb a {
  color: #0C1E13;
}

@media screen and (min-width: 1440px) {
  .content-area {
    max-width: 71%;
    margin: 0 auto;
  }
}


.custom-slider {
  max-width: 660px;
}

.woocommerce-page div.product div.summary {
  width: 100%;
}

.custom-slider__main img {
  width: 100%;
  display: block;
  border-radius: 4px;
}

.custom-slider__thumbs {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.custom-slider__thumbs-wrapper {
  flex: 1;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  /* IE+Edge */
  scrollbar-width: none;
  /* Firefox */
  margin: 0 14px;
}

.custom-slider__thumbs-wrapper::-webkit-scrollbar {
  display: none;
}

.custom-slider__thumb {
  width: 94px;
  flex-shrink: 0;
  opacity: 0.5;
  cursor: pointer;
  border-radius: 12px;
  transition: opacity .2s, transform .2s;
  padding: 4px;
}

.custom-slider__thumb.active,
.custom-slider__thumb:hover {
  opacity: 1;
  border: 2px solid #0F6038;
}

.custom-slider__arrow {
  background: #0F6038;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0px 4px 4px rgba(15, 96, 56, 0.05)) drop-shadow(0px 8px 8px rgba(15, 96, 56, 0.15)) drop-shadow(0px 20px 32px rgba(15, 96, 56, 0.25));
  opacity: 1;
  transition: 0.3s ease;
}

button.custom-slider__arrow {
  border: 2px solid transparent;
  transition: 0.3s ease;
}

button.custom-slider__arrow:hover {
  background: transparent;
  transition: 0.3s ease;
  border: 2px solid #0C5331;
  transition: 0.3s ease;
}

button.custom-slider__arrow:hover svg path {
  stroke: #0C5331;
  transition: 0.3s ease;
}

.custom-slider__arrow.disabled {
  background: #F9F9F9;
  filter: none;
  cursor: default;
  pointer-events: none;
}

.custom-slider__arrow.disabled svg path {
  stroke: #0F6038;
  fill: none;
}

.custom-slider__arrow svg path {
  fill: none;
}

.product-top {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 30px;
}

.custom-slider__main {
  border-radius: clamp(0.938rem, 0.7106rem + 0.9704vw, 1.875rem);
  overflow: hidden;
}

span.stocks {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 150%;
  background-color: #0F6038;
  border-radius: 4px;
  padding: 4px 25px;
  color: #fff;
  box-shadow: 0px 8px 8px 0px rgba(0, 0, 0, 0.15);
}

span.sku {
  display: none !important;
  color: #0C1E13;
  font-size: 14px;
  font-weight: 500;
  line-height: 140%;
  text-transform: uppercase;
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(1.25rem, 1.0983rem + 0.6472vw, 1.875rem);
}

h1.prod-title {
  color: #0C1E13;
  font-size: clamp(1.625rem, 1.5340rem + 0.3883vw, 2rem);
  line-height: 120%;
  margin-bottom: clamp(1.25rem, 1.0983rem + 0.6472vw, 1.875rem);
}

span.variations-title {
  display: block;
  color: #0C1E13;
  font-size: 14px;
  font-weight: 600;
  line-height: 140%;
  margin-bottom: 16px;
}

span.variation-item {
  align-items: center;
  border: 1px solid var(--Accent);
  cursor: pointer;
  border-radius: 12px;
  padding: 5px 8px;
  font-weight: 700;
  display: block;
}

span.variation-item:hover,
span.variation-item.active {
  background: var(--Accent);
  color: #F9F9F9;
  transition: 0.3s ease;
}

span.variation-item img {
  transition: 0.3s ease;
}

span.variation-item:hover img,
span.variation-item.active img {
  filter: brightness(0) saturate(100%) invert(100%);
  transition: 0.3s ease;
}

.variations-title-items {
  display: flex;
  align-items: center;
  column-gap: clamp(0.5rem, 0.4393rem + 0.2589vw, 0.75rem);
}
.summary-variations {
  margin-bottom: clamp(1.25rem, 1.0983rem + 0.6472vw, 1.875rem);
}

.product-badge {
  position: absolute;
  top: clamp(1.875rem, 1.5716rem + 1.2945vw, 3.125rem);
  left: 0;
  background: var(--Accent);
  color: #F9F9F9;
  padding: 4px clamp(0.5rem, 0.3937rem + 0.4536vw, 0.938rem);
  font-size: clamp(0.75rem, 0.7197rem + 0.1294vw, 0.875rem);
  border-radius: 0 12px 12px 0;
  text-transform: uppercase;
  z-index: 10;
  line-height: 160%;
}

span.product-desc {
  display: block;
  color: #4F4F4F;
  font-size: 14px;
  line-height: 150%;
}

.price-line {
  display: flex;
  align-items: center;
  column-gap: clamp(0.75rem, 0.7197rem + 0.1294vw, 0.875rem);
  margin-bottom: 0px;
}

p.variation-note {
  margin-top: 0;
  font-size: clamp(0.875rem, 0.8447rem + 0.1294vw, 1rem);
    font-size: 14px;
  color: #adadad;
}

span.woocommerce-Price-currencySymbol {
  display: inline-block;
  margin-right: 5px;
    font-size: 16px;
}
span.text-before-price {
  display: block;
  margin-bottom: 0; 
  font-size: 14px;
  color: #adadad;
}
.woocommerce div.product div.summary {
  margin-bottom: 0;
}
a.btn.open-popup.white-btn.stroke-btn {
  border: 2px solid var(--Accent);
  background-color: transparent;
  max-height: 60px;
  display: flex;
  align-items: center;
}

.summary.entry-summary a.btn.open-popup.white-btn.stroke-btn {
  margin-top: 20px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-size: clamp(1rem, 0.9393rem + 0.2589vw, 1.25rem);
  font-weight: 600;
  line-height: 120%;
  color: #4F4F4F;
  text-transform: uppercase;
  padding: 0 0 6px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: none;
  padding: 0;
  background-color: transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0;
  display: flex;
  align-items: center;
  column-gap: clamp(0.938rem, 0.4072rem + 2.2649vw, 3.125rem);
  margin: 0 0 clamp(1.25rem, 1.0983rem + 0.6472vw, 1.875rem);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  border-bottom: 2px solid var(--Accent);
  color: var(--Accent);
  transition: all 0.3s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  margin: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
  border: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before {
  border: none;
  width: 0;
  height: 0;
}

nav.woocommerce-breadcrumb {
  flex-wrap: wrap;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: inherit;
  color: inherit;
  z-index: 0;
  border-bottom-color: inherit;
}

div#floating-product-card .product-badge {
  display: none;
}

/* ///////// */
.floating-product-card {
  position: fixed;
  top: 20%;
  right: 30px;
  width: 280px;
  z-index: 22;

  /* Скрыто изначально через смещение и прозрачность */
  opacity: 0;
  transform: translateX(120%);
  transition: transform 0.4s ease, opacity 0.3s ease;
  pointer-events: none;
}

/* Активное состояние — видно и на месте */
.floating-product-card.show {
  opacity: 1;
  transform: translateX(0%);
  pointer-events: auto;
}

button.dop_l.custom-slider__arrow.custom-slider__arrow--prev,
span.dop_l.custom-slider__arrow.custom-slider__arrow--prev {
  position: absolute;
  z-index: 2;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

button.dop_r.custom-slider__arrow.custom-slider__arrow--next,
span.dop_r.custom-slider__arrow.custom-slider__arrow--next {
  position: absolute;
  z-index: 2;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.custom-text-image.image-right,
.custom-text-image.image-left {
  display: flex;
  gap: 40px;
  align-items: center;
  margin: 40px 0;
}

span.custom-slider__arrow {
  background-color: transparent;
  transition: 0.3s ease;
}

span.custom-slider__arrow svg path {
  stroke: transparent;
  fill: var(--Accent);
  transition: 0.3s ease;
}

span.custom-slider__arrow:hover svg path {
  transition: 0.3s ease;
  opacity: 0.8;
  box-shadow: 0px 8px 8px 0px rgba(0, 0, 0, 0.15);
}

span.dop_r svg path,
span.dop_l svg path,
.swiper-button-next svg path,
.swiper-button-prev svg path {
  fill: #fff;
}

/* === Clean bordered Additional Info & Specification Tables === */
.woocommerce-Tabs-panel--additional_information table.shop_attributes,
.woocommerce-Tabs-panel--specifications table.shop_attributes {
  width: 100%;
  border: 1px solid #0F6037;
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 16px;
  color: #222;
}

/* Чередование строк */
.woocommerce table.shop_attributes tr:nth-child(even) td,
.woocommerce table.shop_attributes tr:nth-child(even) th,
table tbody tr:nth-child(even) {
  background: transparent !important;
}

/* Основные ячейки */
.woocommerce-Tabs-panel--additional_information table.shop_attributes th,
.woocommerce-Tabs-panel--additional_information table.shop_attributes td,
.woocommerce-Tabs-panel--specifications table.shop_attributes th,
.woocommerce-Tabs-panel--specifications table.shop_attributes td {
  padding: 5px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #0F6037;
  border-right: 1px solid #0F6037;
  background: #fff;
}

/* Заголовки колонок */
.woocommerce-Tabs-panel--additional_information table.shop_attributes th,
.woocommerce-Tabs-panel--specifications table.shop_attributes th {
  width: 30%;
  font-weight: 600;
  color: #0F6037;
  vertical-align: middle;
}

/* Убираем нижнюю границу у последней строки */
.woocommerce-Tabs-panel--additional_information table.shop_attributes tr:last-child th,
.woocommerce-Tabs-panel--additional_information table.shop_attributes tr:last-child td,
.woocommerce-Tabs-panel--specifications table.shop_attributes tr:last-child th,
.woocommerce-Tabs-panel--specifications table.shop_attributes tr:last-child td {
  border-bottom: none;
}

/* Убираем правую границу у последнего столбца */
.woocommerce-Tabs-panel--additional_information table.shop_attributes tr th:last-child,
.woocommerce-Tabs-panel--additional_information table.shop_attributes tr td:last-child,
.woocommerce-Tabs-panel--specifications table.shop_attributes tr th:last-child,
.woocommerce-Tabs-panel--specifications table.shop_attributes tr td:last-child {
  border-right: none;
}

/* Убираем отступы <p> внутри ячеек */
.woocommerce-Tabs-panel--additional_information table.shop_attributes td p,
.woocommerce-Tabs-panel--specifications table.shop_attributes td p {
  margin: 0;
  padding: 0;
}

/* === Responsive container === */
@media screen and (min-width: 1440px) and (max-width: 1521px) {
  .woocommerce-tabs.wc-tabs-wrapper {
    max-width: 80%;
  }
}

/* === Optional: Table hover highlight for Specification === */
.woocommerce-Tabs-panel--specifications table.shop_attributes tr:hover {
  background-color: rgba(15, 96, 55, 0.05);
  transition: background 0.2s ease;
}


@media screen and (max-width: 1439px) {
  div#floating-product-card {
    top: auto;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    border: 2px solid var(--Accent);
    border-radius: clamp(0.625rem, 0.4733rem + 0.6472vw, 1.25rem);
    width: 40%;
  }

  .product-item.mob-item .product-image,
  .product-item.mob-item h3.product-title {
    display: none;
  }

  .product-item.mob-item .product-content-btn {
    margin: 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }


}


@media screen and (max-width: 600px) {
  @media (max-width: 800px) {
    .woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb {
        margin-bottom: 14px;
    }
}

  button.dop_l.custom-slider__arrow.custom-slider__arrow--prev,
  button.dop_r.custom-slider__arrow.custom-slider__arrow--next {
    display: none;
  }

  div#floating-product-card {
    width: 95%;
  }

  .product-item.mob-item .product-content-btn {
    margin: 10px;
  }

  .single-product .back_to_top {
    bottom: 135px;
  }

  .floating-product-card span.close-popup {
    top: -25px;
  }

}