.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: 100%;
    margin: 0 auto;
  }
}


.custom-slider {
  max-width: 100%;
  width: 100%;
}

.product-top-l {
  flex: 1;
  min-width: 0;
}

.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%);
}


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;
}


@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: column;
    align-items: center;
    justify-content: center;
    row-gap: 10px;
  }


}


@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;
  }

}

/* Specifications Tab Styles */
.product-specifications {
  width: 100%;
}

.specifications-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.specifications-table tbody tr:nth-child(odd) {
  background-color: #f5f5f5;
}

.specifications-table tbody tr:nth-child(even) {
  background-color: #fff;
}

.specification-row td {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 150%;
}


.spec-name {
  color: #4F4F4F;
  font-weight: 600;
  width: 40%;
}

.spec-value {
  color: #0C1E13;
  font-weight: 400;
  width: 60%;
}

@media screen and (max-width: 600px) {
  .specification-row td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .spec-name {
    width: 45%;
  }

  .spec-value {
    width: 55%;
  }
}

/* WooCommerce Add to Cart Button Styles - Same as .btn checkout style */
.woocommerce .single_add_to_cart_button,
.woocommerce .add_to_cart_button,
.woocommerce a.button.add_to_cart_button,
.product-item .add_to_cart_button,
button.single_add_to_cart_button {
  font-size: clamp(1rem, 0.9393rem + 0.2589vw, 1.25rem) !important;
  font-weight: 700 !important;
  line-height: 120% !important;
  background-color: var(--Accent) !important;
  color: #F9F9F9 !important;
  border-radius: 20px !important;
  padding: 18px 50px !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  max-width: 380px;
  width: 100%;
  box-shadow: 0px 8px 8px 0px rgba(0, 0, 0, 0.15) !important;
  border: none !important;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  text-decoration: none !important;
  margin: 0;
}

.woocommerce .single_add_to_cart_button:hover,
.woocommerce .add_to_cart_button:hover,
.woocommerce a.button.add_to_cart_button:hover,
.product-item .add_to_cart_button:hover,
button.single_add_to_cart_button:hover {
  background-color: #0C5331 !important;
  color: #F9F9F9 !important;
  transform: translateY(-2px);
  box-shadow: 0px 12px 16px 0px rgba(0, 0, 0, 0.2) !important;
}

/* Disabled state */
.woocommerce .single_add_to_cart_button.disabled,
.woocommerce .add_to_cart_button.disabled,
button.single_add_to_cart_button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Loading state */
.woocommerce .add_to_cart_button.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* WooCommerce quantity input */
.woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  margin-bottom: 0;
}

.woocommerce div.product form.cart .quantity {
  margin-right: 0;
}

.woocommerce .quantity .qty {
  width: 80px;
  padding: 12px;
  border: 2px solid var(--Accent);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

/* Variable product form */
.woocommerce div.product form.cart .variations {
  margin-bottom: 15px;
  width: 100%;
}

.woocommerce div.product form.cart .variations select {
  padding: 12px 15px;
  border: 2px solid var(--Accent);
  border-radius: 12px;
  font-size: 14px;
  min-width: 200px;
}

.woocommerce div.product form.cart .variations td.label {
  padding-right: 15px;
  font-weight: 600;
}

.woocommerce div.product form.cart .single_variation_wrap {
  width: 100%;
}

.woocommerce div.product form.cart .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

/* Added to cart message */
.woocommerce a.added_to_cart {
  display: none;
}

/* Responsive styles for add to cart button */
@media screen and (max-width: 768px) {
  .woocommerce .single_add_to_cart_button,
  .woocommerce .add_to_cart_button,
  .product-item .add_to_cart_button,
  button.single_add_to_cart_button {
    max-width: 100%;
    padding: 16px 40px !important;
  }

  .woocommerce div.product form.cart {
    flex-direction: column;
    align-items: stretch;
  }

  .woocommerce div.product form.cart .quantity {
    width: 100%;
    margin-bottom: 10px;
  }

  .woocommerce .quantity .qty {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .woocommerce .single_add_to_cart_button,
  .woocommerce .add_to_cart_button,
  .product-item .add_to_cart_button,
  button.single_add_to_cart_button {
    padding: 14px 30px !important;
    font-size: 14px !important;
  }
}

/* ===== Price Row ===== */
.ww-price-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #E8E8E8;
}

.ww-price-row__left .product-price {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2.25rem);
  font-weight: 700;
  color: var(--Accent);
}

.ww-price-row__left .variation-note.non-price {
  margin: 0;
}

/* ===== Quantity Controls ===== */
.ww-qty-controls {
  display: flex;
  align-items: center;
  background: #F2F4F3;
  border-radius: 10px;
  overflow: hidden;
}

.ww-qty-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--Accent);
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  line-height: 1;
}

.ww-qty-btn:hover {
  background: rgba(15, 96, 56, 0.1);
}

.ww-qty-value {
  font-size: 16px;
  font-weight: 600;
  min-width: 32px;
  text-align: center;
  color: #0C1E13;
  line-height: 44px;
}

/* Hide default WooCommerce quantity in single product */
.single-product .summary form.cart .quantity {
  display: none !important;
}

/* ===== Buttons Row (horizontal) ===== */
.ww-buttons-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ww-buttons-row form.cart {
  flex: 1;
  margin-bottom: 0 !important;
}

.ww-buttons-row .single_add_to_cart_button {
  width: 100% !important;
  max-width: none !important;
  height: 52px !important;
  max-height: 52px !important;
  padding: 0 30px !important;
  box-sizing: border-box;
  border-radius: 12px !important;
}

.ww-buttons-row a.btn.open-popup.white-btn.stroke-btn {
  flex: 1;
  margin-top: 0 !important;
  justify-content: center;
  box-sizing: border-box;
  height: 52px;
  max-height: 52px;
  padding: 0 30px;
  border-radius: 12px;
  text-align: center;
}

.summary.entry-summary .ww-buttons-row a.btn.open-popup.white-btn.stroke-btn {
  margin-top: 0;
}

/* ===== Sub-accordion (price note) ===== */
.ww-sub-accordion {
  margin-bottom: 0;
  border-bottom: 1px solid #D4D4D4;
}

.ww-sub-accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 10px 0;
}

.ww-sub-accordion__text {
  font-size: 14px;
  color: #4F4F4F;
  line-height: 140%;
}

.ww-sub-accordion__chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 10px;
}

.ww-sub-accordion.is-open .ww-sub-accordion__chevron {
  transform: rotate(180deg);
}

/* ===== Summary Accordions (Delivery, Payment, Price) ===== */
.ww-summary-accordion {
  border: none;
  border-bottom: 1px solid #D4D4D4;
  border-radius: 0;
  margin-top: 0;
  overflow: hidden;
}

.ww-summary-accordion__header {
  display: flex;
  align-items: center;
  padding: 10px 0;
  cursor: pointer;
  gap: 10px;
}

.ww-summary-accordion__header:hover {
  opacity: 0.7;
}

.ww-summary-accordion__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.ww-summary-accordion__title {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: #0C1E13;
  line-height: 140%;
}

.ww-summary-accordion__chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.ww-summary-accordion.is-open .ww-summary-accordion__chevron {
  transform: rotate(180deg);
}

.ww-summary-accordion__body {
  padding: 0 0 10px;
}

.ww-summary-accordion__body .product-builder {
  margin: 0;
}

@media screen and (max-width: 768px) {
  .ww-qty-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .ww-qty-value {
    font-size: 15px;
    line-height: 40px;
  }

  .ww-summary-accordion__body {
    padding: 0 0 10px;
  }
}

/* ─── Description Read More ─────────────────────────────────── */
.ww-desc-wrap {
  position: relative;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ww-desc-wrap.is-collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ww-desc-wrap:not(.is-collapsed)::after {
  opacity: 0;
}

.ww-desc-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px auto 0;
  padding: 10px 24px;
  background: none;
  border: 1.5px solid var(--Accent, #0F6038);
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--Accent, #0F6038);
  transition: opacity 0.2s ease;
}

.ww-desc-toggle:hover {
  opacity: 0.7;
}

.ww-desc-toggle svg {
  transition: transform 0.3s ease;
}

.ww-desc-toggle.is-expanded svg {
  transform: rotate(180deg);
}

/* ─── Price Unit ─────────────────────────────────────────────── */
.product-price-unit {
  font-size: 14px;
  font-weight: 700;
  color: var(--Accent, #0F6038);
}