/* ===== WOODERA — mobile fix for seeded pages ===== */

@media (max-width: 767px) {
  .woodera-seed-page,
  .woodera-seed-page * {
    box-sizing: border-box !important;
  }

  .woodera-seed-page section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .woodera-seed-page [style*="display:grid"] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  .woodera-seed-page [style*="display:flex"] {
    flex-wrap: wrap !important;
  }

  .woodera-seed-page [style*="min-height:620px"],
  .woodera-seed-page [style*="min-height:560px"],
  .woodera-seed-page [style*="min-height:440px"],
  .woodera-seed-page [style*="min-height:420px"],
  .woodera-seed-page [style*="min-height:360px"],
  .woodera-seed-page [style*="min-height:220px"] {
    min-height: auto !important;
  }

  .woodera-seed-page [style*="min-height:180px"] {
    min-height: 160px !important;
  }

  .woodera-seed-page h1,
  .woodera-seed-page h2,
  .woodera-seed-page h3,
  .woodera-seed-page [style*="font-family:'Lora',serif"] {
    max-width: 100% !important;
    width: 100% !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
  }

  .woodera-seed-page h1 {
    font-size: clamp(34px, 10vw, 48px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.01em !important;
  }

  .woodera-seed-page h2 {
    font-size: clamp(30px, 9vw, 40px) !important;
    line-height: 1.06 !important;
  }

  .woodera-seed-page h3,
  .woodera-seed-page [style*="font-size:30px"] {
    font-size: clamp(24px, 7vw, 30px) !important;
    line-height: 1.12 !important;
  }

  .woodera-seed-page p,
  .woodera-seed-page div,
  .woodera-seed-page span,
  .woodera-seed-page a {
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    max-width: 100% !important;
  }

  .woodera-seed-page [style*="border-radius:24px"],
  .woodera-seed-page [style*="border-radius:22px"],
  .woodera-seed-page [style*="border-radius:28px"] {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .woodera-seed-page [style*="aspect-ratio:16/10"],
  .woodera-seed-page [style*="aspect-ratio:4/3"] {
    min-height: 180px !important;
  }

  .woodera-seed-page [style*="aspect-ratio:3/4"] {
    min-height: 220px !important;
  }

  .woodera-seed-page [style*="position:absolute"][style*="inset:22px"],
  .woodera-seed-page [style*="position:absolute"][style*="inset:18px"] {
    inset: 14px !important;
  }

  .woodera-seed-page [style*="text-transform:uppercase"] {
    letter-spacing: .08em !important;
  }

  .woodera-seed-page a[style*="border-radius:999px"] {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ===== WOODERA — uppercase mobile drawer menu ===== */

@media (max-width: 1024px) {
  .drawer-navigation,
  .drawer-navigation *,
  .mobile-navigation,
  .mobile-navigation * {
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
  }
}

/* ===== WOODERA — WooCommerce catalog grid ===== */

body:not(.single-product) .woocommerce ul.products,
body:not(.single-product).woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 360px)) !important;
  justify-content: center !important;
  align-items: start !important;
  gap: 40px !important;

  width: 100% !important;
  margin: 28px 0 0 !important;
  padding: 34px !important;

  background: #ffffff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body:not(.single-product) .woocommerce ul.products::before,
body:not(.single-product) .woocommerce ul.products::after,
body:not(.single-product).woocommerce-page ul.products::before,
body:not(.single-product).woocommerce-page ul.products::after {
  display: none !important;
  content: none !important;
}

body:not(.single-product) .woocommerce ul.products li.product,
body:not(.single-product).woocommerce-page ul.products li.product {
  float: none !important;
  clear: none !important;
  width: auto !important;
  max-width: 360px !important;
  margin: 0 !important;
  padding: 0 !important;

  position: relative !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  transition: none !important;
}

body:not(.single-product) .woocommerce ul.products li.product:hover,
body:not(.single-product).woocommerce-page ul.products li.product:hover {
  transform: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

body:not(.single-product) .woocommerce ul.products li.product a.woocommerce-loop-product__link,
body:not(.single-product).woocommerce-page ul.products li.product a.woocommerce-loop-product__link {
  display: block !important;
  color: inherit !important;
  text-decoration: none !important;
}

/* Стиль только для основного изображения товара.
   Второе hover-изображение Kadence не трогаем, чтобы не ломать переключение при наведении. */
body:not(.single-product) .woocommerce ul.products li.product a.woocommerce-loop-product__link > img:first-of-type,
body:not(.single-product) .woocommerce ul.products li.product a.woocommerce-LoopProduct-link > img:first-of-type,
body:not(.single-product).woocommerce-page ul.products li.product a.woocommerce-loop-product__link > img:first-of-type,
body:not(.single-product).woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link > img:first-of-type {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 0 18px !important;
  padding: 0 !important;

  object-fit: contain !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body:not(.single-product) .woocommerce ul.products li.product .woocommerce-loop-product__title,
body:not(.single-product).woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  margin: 0 0 8px !important;
  padding: 0 !important;

  font-family: "Lora", serif !important;
  font-size: 19px !important;
  font-weight: 600 !important;
  line-height: 1.24 !important;
  letter-spacing: 0 !important;
  color: #1f1f1f !important;
}

body:not(.single-product) .woocommerce ul.products li.product .price,
body:not(.single-product).woocommerce-page ul.products li.product .price {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  margin: 0 !important;

  font-size: 15px !important;
  line-height: 1.3 !important;
  color: #1f1f1f !important;
}

body:not(.single-product) .woocommerce ul.products li.product .price del,
body:not(.single-product).woocommerce-page ul.products li.product .price del {
  color: #8a847d !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  opacity: 0.55 !important;
}

body:not(.single-product) .woocommerce ul.products li.product .price ins,
body:not(.single-product).woocommerce-page ul.products li.product .price ins {
  text-decoration: none !important;
  color: #1f1f1f !important;
  font-weight: 700 !important;
}

/* ===== WOODERA — WooCommerce compact sale badge and catalog button ===== */

/* Маленький спокойный бейдж скидки вместо крупного "Розпродаж!" */
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;

  margin: 0 !important;
  padding: 0 !important;

  border-radius: 50% !important;
  background: #8a6a45 !important;
  color: #ffffff !important;

  font-size: 0 !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;

  box-shadow: 0 2px 6px rgba(31, 31, 31, 0.12) !important;
}

.woocommerce span.onsale::after,
.woocommerce ul.products li.product .onsale::after {
  content: "%" !important;
  font-size: 14px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

body:not(.single-product) .woocommerce ul.products li.product .onsale,
body:not(.single-product).woocommerce-page ul.products li.product .onsale {
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
}

body:not(.single-product) .woocommerce ul.products li.product .button,
body:not(.single-product).woocommerce-page ul.products li.product .button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: auto !important;
  min-width: 126px !important;
  max-width: max-content !important;
  min-height: 34px !important;

  padding: 8px 15px !important;
  margin: 10px 0 0 !important;

  border-radius: 999px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;

  background: #8a6a45 !important;
  border: 1px solid #8a6a45 !important;
  color: #ffffff !important;

  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  text-align: center !important;
  box-shadow: none !important;
}

body:not(.single-product) .woocommerce ul.products li.product .button:hover,
body:not(.single-product).woocommerce-page ul.products li.product .button:hover {
  background: #6f5436 !important;
  border-color: #6f5436 !important;
  color: #ffffff !important;
}

/* ===== WOODERA — product category page spacing ===== */

body.page-id-275 .entry-content-wrap {
  padding: 34px 42px 48px !important;
}

body.page-id-275 .entry-content > p:first-of-type {
  max-width: 920px !important;
  margin: 0 0 24px !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
  color: #1f1f1f !important;
}

body.page-id-275 .woocommerce ul.products,
body.page-id-275.woocommerce-page ul.products {
  grid-template-columns: repeat(auto-fill, minmax(320px, 380px)) !important;
  gap: 42px !important;
  margin-top: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body.page-id-275 .woocommerce ul.products li.product,
body.page-id-275.woocommerce-page ul.products li.product {
  max-width: 380px !important;
}

body.page-id-275 .woocommerce ul.products li.product a img,
body.page-id-275.woocommerce-page ul.products li.product a img {
  margin-bottom: 16px !important;
}

/* ===== WOODERA — single product layout ===== */

@media (min-width: 1025px) {
  .single-product .content-container,
  .single-product .site-container,
  .single-product .entry-content-wrap {
    max-width: 1600px !important;
  }

  .single-product .entry-content-wrap {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }

  .single-product .woocommerce div.product {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 58%) minmax(420px, 42%) !important;
    column-gap: clamp(56px, 5vw, 86px) !important;
    row-gap: 46px !important;
    align-items: start !important;

    max-width: 1500px !important;
    margin: 0 auto !important;
  }

  .single-product .woocommerce div.product div.images,
  .single-product .woocommerce div.product div.summary {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .single-product .woocommerce div.product div.images {
    grid-column: 1 !important;
  }

  .single-product .woocommerce div.product div.summary {
    grid-column: 2 !important;
    padding-top: 18px !important;
  }

  .single-product .woocommerce-tabs,
  .single-product .related,
  .single-product .upsells,
  .single-product .cross-sells {
    grid-column: 1 / -1 !important;
    max-width: 1500px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ===== WOODERA — single product visual cleanup ===== */

.single-product .onsale,
.single-product span.onsale,
.single-product .product-label,
.single-product .product-badge,
.single-product .kadence-product-badge,
.single-product .wc-block-grid__product-onsale {
  display: none !important;
}

.single-product .product_meta .tagged_as {
  display: none !important;
}

.single-product .woocommerce div.product .product_title {
  max-width: 620px !important;
  margin: 0 0 18px !important;

  font-family: "Lora", serif !important;
  font-size: clamp(30px, 2vw, 36px) !important;
  font-weight: 600 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.01em !important;
  color: #1f1f1f !important;
}

.single-product .woocommerce div.product p.price,
.single-product .woocommerce div.product span.price {
  margin: 0 0 20px !important;
  color: #1f1f1f !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
}

.single-product .woocommerce div.product p.price del,
.single-product .woocommerce div.product span.price del {
  color: #8a847d !important;
  font-size: 16px !important;
  opacity: 0.55 !important;
}

.single-product .woocommerce div.product p.price ins,
.single-product .woocommerce div.product span.price ins {
  text-decoration: none !important;
  color: #1f1f1f !important;
  font-weight: 700 !important;
}

.single-product .woocommerce-product-details__short-description {
  max-width: 560px !important;
  margin-bottom: 22px !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
  color: #1f1f1f !important;
}

.single-product .woocommerce-product-details__short-description p {
  margin-bottom: 14px !important;
}

.single-product .woocommerce div.product form.cart {
  margin: 20px 0 24px !important;
}

.single-product .woocommerce div.product form.cart div.quantity {
  margin-right: 8px !important;
}

.single-product .woocommerce div.product form.cart .button {
  min-height: 42px !important;
  padding: 11px 22px !important;

  border-radius: 4px !important;
  background: #8a6a45 !important;
  border-color: #8a6a45 !important;
  color: #ffffff !important;

  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  box-shadow: none !important;
}

.single-product .woocommerce div.product form.cart .button:hover {
  background: #6f5436 !important;
  border-color: #6f5436 !important;
  color: #ffffff !important;
}

.single-product .woocommerce div.product .product_meta {
  color: #8a847d !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.single-product .woocommerce div.product .product_meta a {
  color: #6f675f !important;
}

.single-product .woocommerce-product-gallery {
  position: relative !important;
}

.single-product .woocommerce-product-gallery img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

/* ===== WOODERA — single product tabs and description ===== */

.single-product .woocommerce-tabs {
  margin-top: 30px !important;
}

.single-product .woocommerce-tabs ul.tabs {
  margin-bottom: 28px !important;
}

.single-product .woocommerce-tabs .panel {
  max-width: 1320px !important;
}

.single-product .woocommerce-tabs .panel h2 {
  margin: 0 0 18px !important;
  font-family: "Lora", serif !important;
  font-size: clamp(30px, 2.4vw, 38px) !important;
  font-weight: 500 !important;
  line-height: 1.14 !important;
  color: #1f1f1f !important;
}

.single-product .woocommerce-tabs .panel p {
  max-width: 1120px !important;
  margin: 0 0 16px !important;
  font-size: 16px !important;
  line-height: 1.72 !important;
  color: #1f1f1f !important;
}

/* ===== WOODERA — single product attributes table ===== */

.single-product .woocommerce-tabs table.shop_attributes {
  width: 100% !important;
  border-collapse: collapse !important;
  border-top: 1px solid rgba(31, 31, 31, 0.08) !important;
  margin-top: 18px !important;
}

.single-product .woocommerce-tabs table.shop_attributes th {
  width: 240px !important;
  min-width: 240px !important;
  padding: 12px 18px !important;
  text-align: left !important;
  vertical-align: top !important;
  white-space: nowrap !important;

  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #1f1f1f !important;
}

.single-product .woocommerce-tabs table.shop_attributes td {
  padding: 12px 18px !important;
  text-align: left !important;
  vertical-align: top !important;

  font-size: 15px !important;
  font-style: normal !important;
  line-height: 1.45 !important;
  color: #1f1f1f !important;
}

.single-product .woocommerce-tabs table.shop_attributes td p {
  margin: 0 !important;
  padding: 0 !important;
  font-style: normal !important;
}

.single-product .woocommerce-tabs table.shop_attributes tr {
  border-bottom: 1px solid rgba(31, 31, 31, 0.06) !important;
}

.single-product .woocommerce-tabs table.shop_attributes tr:nth-child(even) {
  background: #f6f4f1 !important;
}

.single-product .woocommerce-tabs table.shop_attributes tr:nth-child(odd) {
  background: #ffffff !important;
}

/* ===== WOODERA — responsive WooCommerce ===== */

@media (max-width: 1024px) {
  .single-product .woocommerce div.product {
    display: block !important;
    max-width: 100% !important;
  }

  .single-product .woocommerce div.product div.images,
  .single-product .woocommerce div.product div.summary {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .single-product .woocommerce div.product div.summary {
    padding-top: 26px !important;
  }

  .single-product .woocommerce div.product .product_title {
    max-width: 100% !important;
  }
}

@media (max-width: 767px) {
  body:not(.single-product) .woocommerce ul.products,
  body:not(.single-product).woocommerce-page ul.products {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
    padding: 18px !important;
  }

  body:not(.single-product) .woocommerce ul.products li.product,
  body:not(.single-product).woocommerce-page ul.products li.product {
    max-width: none !important;
  }

  body:not(.single-product) .woocommerce ul.products li.product a.woocommerce-loop-product__link > img:first-of-type,
  body:not(.single-product) .woocommerce ul.products li.product a.woocommerce-LoopProduct-link > img:first-of-type,
  body:not(.single-product).woocommerce-page ul.products li.product a.woocommerce-loop-product__link > img:first-of-type,
  body:not(.single-product).woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link > img:first-of-type {
    margin-bottom: 16px !important;
  }

  body:not(.single-product) .woocommerce ul.products li.product .woocommerce-loop-product__title,
  body:not(.single-product).woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    font-size: 17px !important;
    line-height: 1.24 !important;
  }

  body:not(.single-product) .woocommerce ul.products li.product .price,
  body:not(.single-product).woocommerce-page ul.products li.product .price {
    font-size: 15px !important;
  }

  body.page-id-275 .entry-content-wrap {
    padding: 22px 18px 32px !important;
  }

  body.page-id-275 .woocommerce ul.products,
  body.page-id-275.woocommerce-page ul.products {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.page-id-275 .woocommerce ul.products li.product,
  body.page-id-275.woocommerce-page ul.products li.product {
    max-width: none !important;
  }

  .single-product .entry-content-wrap {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .single-product .woocommerce div.product .product_title {
    font-size: clamp(32px, 9vw, 40px) !important;
    line-height: 1.06 !important;
  }

  .single-product .woocommerce-tabs .panel h2 {
    font-size: clamp(28px, 9vw, 36px) !important;
  }

  .single-product .woocommerce-tabs table.shop_attributes th {
    width: 42% !important;
    min-width: 0 !important;
    white-space: normal !important;
    padding: 11px 12px !important;
    font-size: 14px !important;
  }

  .single-product .woocommerce-tabs table.shop_attributes td {
    padding: 11px 12px !important;
    font-size: 14px !important;
  }
}

/* ===== WOODERA — product buttons: final clean correction ===== */

/*
  Этот блок заменяет все предыдущие попытки правки кнопок.
  Не добавляйте ниже другие блоки для .woodera-product-question-* и .woodera-loop-details-link.
*/

/* Реальный визуальный отступ перед кнопкой "Задати питання" */
body.single-product .woodera-product-question-row {
  display: block !important;
  clear: both !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  top: auto !important;
  transform: none !important;
}

body.single-product .woodera-product-question-row::before {
  content: "" !important;
  display: block !important;
  clear: both !important;
  width: 100% !important;
  height: 26px !important;
  min-height: 26px !important;
  line-height: 26px !important;
  font-size: 0 !important;
}

/* Если в плагине уже есть spacer, отключаем его, чтобы отступ не дублировался */
body.single-product .woodera-product-question-spacer {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  line-height: 0 !important;
}

/* Кнопку "Задати питання" не меняем по форме, только фиксируем стабильный вывод */
body.single-product .woocommerce div.product .summary .woodera-product-question-button,
body.single-product .woocommerce div.product .summary .product_meta .woodera-product-question-button {
  position: static !important;
  top: auto !important;
  transform: none !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* Кнопка "ДОКЛАДНІШЕ": меньше капсулы, но не прямоугольник */
body:not(.single-product) .woocommerce ul.products li.product .woodera-loop-details-link,
body:not(.single-product).woocommerce-page ul.products li.product .woodera-loop-details-link,
body:not(.single-product) .woocommerce ul.products li.product .button.woodera-loop-details-link,
body:not(.single-product).woocommerce-page ul.products li.product .button.woodera-loop-details-link {
  border-radius: 12px !important;
}
/* ===== WOODERA — collections page title position only ===== */

body.page-id-244 .woocommerce ul.products li.product-category .woocommerce-loop-category__title,
body.page-id-244 .woocommerce ul.products li.product.product-category .woocommerce-loop-category__title {
  display: block !important;
  width: 100% !important;
  margin: 14px 0 0 !important;
  padding: 0 !important;

  text-align: center !important;
  font-family: "Lora", serif !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: #1f1f1f !important;
}

body.page-id-244 .woocommerce ul.products li.product-category .woocommerce-loop-category__title .count,
body.page-id-244 .woocommerce ul.products li.product.product-category .woocommerce-loop-category__title .count,
body.page-id-244 .woocommerce ul.products li.product-category .woocommerce-loop-category__title mark.count,
body.page-id-244 .woocommerce ul.products li.product.product-category .woocommerce-loop-category__title mark.count {
  display: none !important;
}
/* ===== WOODERA — AR viewer height and QR correction ===== */

/* Высота зоны 3D-модели на странице товара */
body.single-product .we-product-ar-viewer {
  width: 100% !important;
  max-width: 980px !important;
  min-height: 560px !important;
  height: 560px !important;
  margin: 26px auto 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: both !important;
}

/* Не трогаем внутреннюю AR-логику, только высоту контейнера */
body.single-product .we-product-ar-viewer .ardisplay_viewer {
  width: 100% !important;
  min-height: 560px !important;
  height: 560px !important;
}

/* QR-код плагина: это button с background-image, а не img */
body.single-product button[id^="ar-qrcode_"],
body.single-product button[class*="ar-qrcode"] {
  width: 150px !important;
  height: 150px !important;
  min-width: 150px !important;
  min-height: 150px !important;
  padding: 0 !important;

  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: contain !important;

  border: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

/* Чтобы в увеличенном окне QR не повторялся 4 раза */
body.single-product button[id^="ar-qrcode_"][style*="background-image"],
body.single-product button[class*="ar-qrcode"][style*="background-image"] {
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: contain !important;
}

/* Мобильная версия */
@media (max-width: 767px) {
  body.single-product .we-product-ar-viewer {
    min-height: 460px !important;
    height: 460px !important;
  }

  body.single-product .we-product-ar-viewer .ardisplay_viewer {
    min-height: 460px !important;
    height: 460px !important;
  }

  body.single-product button[id^="ar-qrcode_"],
  body.single-product button[class*="ar-qrcode"] {
    width: 120px !important;
    height: 120px !important;
    min-width: 120px !important;
    min-height: 120px !important;
  }
}
/* ===== WOODERA — AR dimension markers correction ===== */

/* Не ломаем штатное включение/выключение размеров */
body.single-product .we-product-ar-viewer model-viewer button[slot^="hotspot"] {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  box-sizing: border-box !important;
}

/* Маленькие точки без белой заливки */
body.single-product .we-product-ar-viewer model-viewer button[slot^="hotspot"]:empty,
body.single-product .we-product-ar-viewer model-viewer .Hotspot:empty {
  width: 5px !important;
  height: 5px !important;
  min-width: 5px !important;
  min-height: 5px !important;
  max-width: 5px !important;
  max-height: 5px !important;

  padding: 0 !important;
  margin: 0 !important;

  border-radius: 50% !important;
  border: 1px solid #8A6A45 !important;
  background: transparent !important;
  box-shadow: none !important;

  font-size: 0 !important;
  line-height: 0 !important;
}

/* Подписи размеров — только внешний вид, без принудительного display */
body.single-product .we-product-ar-viewer model-viewer button[slot^="hotspot"]:not(:empty),
body.single-product .we-product-ar-viewer model-viewer .Hotspot:not(:empty) {
  width: auto !important;
  min-width: max-content !important;
  max-width: none !important;
  height: auto !important;

  padding: 3px 7px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(138, 106, 69, 0.38) !important;
  background: rgba(255, 255, 255, 0.92) !important;

  color: #1F1F1F !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;

  box-shadow: 0 1px 4px rgba(31, 31, 31, 0.12) !important;
}
/* ===== WOODERA — product AR block spacing ===== */

body.single-product .we-product-ar-section {
  margin-top: 48px !important;
  padding-top: 30px !important;
  border-top: 1px solid rgba(31, 31, 31, 0.08) !important;
}

body.single-product .we-product-ar-label {
  margin-bottom: 6px !important;
  color: #8A6A45 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

body.single-product .we-product-ar-guide h2 {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}

body.single-product .we-product-ar-guide p {
  max-width: 760px !important;
}
/* ===== WOODERA — AR badge near product title: narrow clickable area ===== */

/*
  Важно: стилизуем только реальную ссылку/кнопку 3D.
  Не стилизуем div/span-обёртки через :has(.dashicons-visibility),
  чтобы кликабельная зона не растягивалась на весь блок summary.
*/
body.single-product .summary a[href*="#we-product-3d"],
body.single-product .entry-summary a[href*="#we-product-3d"],
body.single-product .summary a:has(.dashicons-visibility),
body.single-product .entry-summary a:has(.dashicons-visibility),
body.single-product .summary button:has(.dashicons-visibility),
body.single-product .entry-summary button:has(.dashicons-visibility),
body.single-product .summary [role="button"]:has(.dashicons-visibility),
body.single-product .entry-summary [role="button"]:has(.dashicons-visibility) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;

  width: auto !important;
  min-width: 0 !important;
  max-width: max-content !important;
  height: auto !important;
  min-height: 0 !important;

  margin: 4px 0 22px 0 !important;
  padding: 4px 10px !important;

  position: relative !important;
  inset: auto !important;
  transform: none !important;

  border-radius: 999px !important;
  border: 1px solid rgba(183, 150, 110, 0.55) !important;
  background: rgba(246, 244, 241, 0.9) !important;

  color: #8A6A45 !important;
  font-family: "Manrope", sans-serif !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  text-transform: none !important;

  box-shadow: none !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
  pointer-events: auto !important;
  z-index: 3 !important;
}

body.single-product .summary a[href*="#we-product-3d"]:hover,
body.single-product .entry-summary a[href*="#we-product-3d"]:hover,
body.single-product .summary a:has(.dashicons-visibility):hover,
body.single-product .entry-summary a:has(.dashicons-visibility):hover,
body.single-product .summary button:has(.dashicons-visibility):hover,
body.single-product .entry-summary button:has(.dashicons-visibility):hover {
  background: #ffffff !important;
  color: #8A6A45 !important;
  border-color: rgba(138, 106, 69, 0.65) !important;
}

body.single-product .summary .dashicons-visibility,
body.single-product .entry-summary .dashicons-visibility {
  width: 13px !important;
  height: 13px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  color: #8A6A45 !important;
}

/* Обёртка вокруг 3D-кнопки не должна становиться большой кликабельной зоной. */
body.single-product .summary > *:has(a[href*="#we-product-3d"]),
body.single-product .entry-summary > *:has(a[href*="#we-product-3d"]),
body.single-product .summary > *:has(button .dashicons-visibility),
body.single-product .entry-summary > *:has(button .dashicons-visibility) {
  width: fit-content !important;
  max-width: max-content !important;
  min-height: 0 !important;
  height: auto !important;
}

/* ===== WOODERA — hide 3D badge in catalog product cards only ===== */

/*
  На архивных страницах и категориях скрываем только отдельную плашку 3D.
  Ссылку/обёртку товара с фото не трогаем.
*/
body:not(.single-product) .woocommerce ul.products li.product > a:not(.woocommerce-LoopProduct-link):not(.woocommerce-loop-product__link):has(.dashicons-visibility),
body:not(.single-product) .woocommerce ul.products li.product > span:has(.dashicons-visibility),
body:not(.single-product) .woocommerce ul.products li.product > div:has(.dashicons-visibility),
body:not(.single-product).woocommerce-page ul.products li.product > a:not(.woocommerce-LoopProduct-link):not(.woocommerce-loop-product__link):has(.dashicons-visibility),
body:not(.single-product).woocommerce-page ul.products li.product > span:has(.dashicons-visibility),
body:not(.single-product).woocommerce-page ul.products li.product > div:has(.dashicons-visibility) {
  display: none !important;
}

/* ===== WOODERA — product gallery thumbnails below main image: safe version ===== */

/*
  Важно: не трогаем .flex-viewport, .woocommerce-product-gallery__wrapper
  и .woocommerce-product-gallery__image. Эти элементы управляются WooCommerce/FlexSlider.
  Здесь стилизуем только ряд миниатюр, чтобы они были под основным фото.
*/

body.single-product .woocommerce-product-gallery {
  position: relative !important;
}

body.single-product .woocommerce-product-gallery__trigger {
  z-index: 5 !important;
}

body.single-product .woocommerce div.product div.images ol.flex-control-nav.flex-control-thumbs,
body.single-product .woocommerce div.product div.images .flex-control-nav.flex-control-thumbs,
body.single-product .woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs,
body.single-product .woocommerce-product-gallery .flex-control-thumbs {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  z-index: 2 !important;

  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;

  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 12px 0 0 !important;
  padding: 0 !important;

  list-style: none !important;
  background: transparent !important;
  border: 0 !important;
}

body.single-product .woocommerce div.product div.images ol.flex-control-nav.flex-control-thumbs li,
body.single-product .woocommerce div.product div.images .flex-control-thumbs li,
body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
  float: none !important;
  flex: 0 0 54px !important;
  width: 54px !important;
  height: 54px !important;
  max-width: 54px !important;
  max-height: 54px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.single-product .woocommerce div.product div.images ol.flex-control-nav.flex-control-thumbs li img,
body.single-product .woocommerce div.product div.images .flex-control-thumbs li img,
body.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
  display: block !important;
  width: 54px !important;
  height: 54px !important;
  max-width: 54px !important;
  max-height: 54px !important;
  object-fit: cover !important;
  opacity: 0.62 !important;
  border: 1px solid rgba(31, 31, 31, 0.12) !important;
  background: #ffffff !important;
  box-shadow: none !important;
  transition: opacity 0.2s ease, border-color 0.2s ease !important;
}

body.single-product .woocommerce div.product div.images ol.flex-control-nav.flex-control-thumbs li img:hover,
body.single-product .woocommerce div.product div.images ol.flex-control-nav.flex-control-thumbs li img.flex-active,
body.single-product .woocommerce div.product div.images .flex-control-thumbs li img:hover,
body.single-product .woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
body.single-product .woocommerce-product-gallery .flex-control-thumbs li img:hover,
body.single-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
  border-color: rgba(138, 106, 69, 0.55) !important;
}

@media (max-width: 767px) {
  body.single-product .woocommerce div.product div.images ol.flex-control-nav.flex-control-thumbs,
  body.single-product .woocommerce div.product div.images .flex-control-nav.flex-control-thumbs,
  body.single-product .woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs,
  body.single-product .woocommerce-product-gallery .flex-control-thumbs {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 6px !important;
  }

  body.single-product .woocommerce div.product div.images ol.flex-control-nav.flex-control-thumbs li,
  body.single-product .woocommerce div.product div.images .flex-control-thumbs li,
  body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
    flex-basis: 52px !important;
    width: 52px !important;
    height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
  }

  body.single-product .woocommerce div.product div.images ol.flex-control-nav.flex-control-thumbs li img,
  body.single-product .woocommerce div.product div.images .flex-control-thumbs li img,
  body.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
    width: 52px !important;
    height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
  }
}

/* ===== WOODERA — related products layout and safe 3D badge hiding ===== */

/* Сопутствующие товары оформляем как обычные товарные карточки */
body.single-product .related.products ul.products,
body.single-product .upsells.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 360px)) !important;
  justify-content: center !important;
  align-items: start !important;
  gap: 40px !important;

  width: 100% !important;
  margin: 28px 0 0 !important;
  padding: 34px !important;

  background: #ffffff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.single-product .related.products ul.products::before,
body.single-product .related.products ul.products::after,
body.single-product .upsells.products ul.products::before,
body.single-product .upsells.products ul.products::after {
  display: none !important;
  content: none !important;
}

body.single-product .related.products ul.products li.product,
body.single-product .upsells.products ul.products li.product {
  float: none !important;
  clear: none !important;
  width: auto !important;
  max-width: 360px !important;
  margin: 0 !important;
  padding: 0 !important;

  position: relative !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.single-product .related.products ul.products li.product .woocommerce-LoopProduct-link,
body.single-product .related.products ul.products li.product .woocommerce-loop-product__link,
body.single-product .upsells.products ul.products li.product .woocommerce-LoopProduct-link,
body.single-product .upsells.products ul.products li.product .woocommerce-loop-product__link {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: inherit !important;
  text-decoration: none !important;
}

/* Стиль только для основного изображения в сопутствующих товарах.
   Второе hover-изображение Kadence не трогаем. */
body.single-product .related.products ul.products li.product a.woocommerce-loop-product__link > img:first-of-type,
body.single-product .related.products ul.products li.product a.woocommerce-LoopProduct-link > img:first-of-type,
body.single-product .upsells.products ul.products li.product a.woocommerce-loop-product__link > img:first-of-type,
body.single-product .upsells.products ul.products li.product a.woocommerce-LoopProduct-link > img:first-of-type {
  display: block !important;

  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 0 18px !important;
  padding: 0 !important;

  object-fit: contain !important;
  border: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body.single-product .related.products ul.products li.product .woocommerce-loop-product__title,
body.single-product .upsells.products ul.products li.product .woocommerce-loop-product__title {
  margin: 0 0 8px !important;
  padding: 0 !important;

  font-family: "Lora", serif !important;
  font-size: 19px !important;
  font-weight: 600 !important;
  line-height: 1.24 !important;
  color: #1f1f1f !important;
}

body.single-product .related.products ul.products li.product .price,
body.single-product .upsells.products ul.products li.product .price {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  margin: 0 !important;

  font-size: 15px !important;
  line-height: 1.3 !important;
  color: #1f1f1f !important;
}

body.single-product .related.products ul.products li.product .price del,
body.single-product .upsells.products ul.products li.product .price del {
  color: #8a847d !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  opacity: 0.55 !important;
}

body.single-product .related.products ul.products li.product .price ins,
body.single-product .upsells.products ul.products li.product .price ins {
  text-decoration: none !important;
  color: #1f1f1f !important;
  font-weight: 700 !important;
}

/* Скрываем только отдельную 3D-плашку в сопутствующих товарах, не трогая фото */
body.single-product .related.products ul.products li.product > a:not(.woocommerce-LoopProduct-link):not(.woocommerce-loop-product__link):has(.dashicons-visibility),
body.single-product .related.products ul.products li.product > span:has(.dashicons-visibility),
body.single-product .related.products ul.products li.product > div:has(.dashicons-visibility),
body.single-product .upsells.products ul.products li.product > a:not(.woocommerce-LoopProduct-link):not(.woocommerce-loop-product__link):has(.dashicons-visibility),
body.single-product .upsells.products ul.products li.product > span:has(.dashicons-visibility),
body.single-product .upsells.products ul.products li.product > div:has(.dashicons-visibility) {
  display: none !important;
}

/* Если плашка вставлена внутрь ссылки товара отдельным span — скрываем только этот span */
body.single-product .related.products ul.products li.product .woocommerce-LoopProduct-link > span:has(.dashicons-visibility),
body.single-product .related.products ul.products li.product .woocommerce-loop-product__link > span:has(.dashicons-visibility),
body.single-product .upsells.products ul.products li.product .woocommerce-LoopProduct-link > span:has(.dashicons-visibility),
body.single-product .upsells.products ul.products li.product .woocommerce-loop-product__link > span:has(.dashicons-visibility) {
  display: none !important;
}

@media (max-width: 767px) {
  body.single-product .related.products ul.products,
  body.single-product .upsells.products ul.products {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
    padding: 18px !important;
  }

  body.single-product .related.products ul.products li.product,
  body.single-product .upsells.products ul.products li.product {
    max-width: none !important;
  }
}

/* ===== WOODERA — hide 3D badge in catalog cards safely, without touching product images ===== */

/*
  Важно: здесь не задаём display/opacity для изображений товара.
  Иначе ломается Kadence-переключатель фото при наведении.
*/
body:not(.single-product) ul.products li.product a:has(.dashicons-visibility):not(:has(img)),
body:not(.single-product) ul.products li.product span:has(.dashicons-visibility):not(:has(img)),
body:not(.single-product) ul.products li.product div:has(.dashicons-visibility):not(:has(img)),
body:not(.single-product) ul.products li.product button:has(.dashicons-visibility):not(:has(img)),

body.single-product .related.products ul.products li.product a:has(.dashicons-visibility):not(:has(img)),
body.single-product .related.products ul.products li.product span:has(.dashicons-visibility):not(:has(img)),
body.single-product .related.products ul.products li.product div:has(.dashicons-visibility):not(:has(img)),
body.single-product .related.products ul.products li.product button:has(.dashicons-visibility):not(:has(img)),

body.single-product .upsells.products ul.products li.product a:has(.dashicons-visibility):not(:has(img)),
body.single-product .upsells.products ul.products li.product span:has(.dashicons-visibility):not(:has(img)),
body.single-product .upsells.products ul.products li.product div:has(.dashicons-visibility):not(:has(img)),
body.single-product .upsells.products ul.products li.product button:has(.dashicons-visibility):not(:has(img)) {
  display: none !important;
}

/* Если бейдж 3D вставлен отдельным элементом внутри ссылки товара */
body:not(.single-product) ul.products li.product a.woocommerce-loop-product__link > span:has(.dashicons-visibility),
body:not(.single-product) ul.products li.product a.woocommerce-LoopProduct-link > span:has(.dashicons-visibility),
body:not(.single-product) ul.products li.product a.woocommerce-loop-product__link > div:has(.dashicons-visibility),
body:not(.single-product) ul.products li.product a.woocommerce-LoopProduct-link > div:has(.dashicons-visibility),

body.single-product .related.products ul.products li.product a.woocommerce-loop-product__link > span:has(.dashicons-visibility),
body.single-product .related.products ul.products li.product a.woocommerce-LoopProduct-link > span:has(.dashicons-visibility),
body.single-product .related.products ul.products li.product a.woocommerce-loop-product__link > div:has(.dashicons-visibility),
body.single-product .related.products ul.products li.product a.woocommerce-LoopProduct-link > div:has(.dashicons-visibility),

body.single-product .upsells.products ul.products li.product a.woocommerce-loop-product__link > span:has(.dashicons-visibility),
body.single-product .upsells.products ul.products li.product a.woocommerce-LoopProduct-link > span:has(.dashicons-visibility),
body.single-product .upsells.products ul.products li.product a.woocommerce-loop-product__link > div:has(.dashicons-visibility),
body.single-product .upsells.products ul.products li.product a.woocommerce-LoopProduct-link > div:has(.dashicons-visibility) {
  display: none !important;
}
/* WOODERA — hide Jetpack related posts on WooCommerce product pages */
body.single-product #jp-relatedposts,
body.single-product .jp-relatedposts,
body.single-product .jp-relatedposts-post {
  display: none !important;
}

/* ===== WOODERA — product card buttons: catalog and related products ===== */

body.woocommerce ul.products li.product a.button,
body.woocommerce-page ul.products li.product a.button,
body.woocommerce ul.products li.product a.woodera-loop-details-link,
body.woocommerce-page ul.products li.product a.woodera-loop-details-link,
body.single-product .related.products ul.products li.product a.button,
body.single-product .upsells.products ul.products li.product a.button,
body.single-product .related.products ul.products li.product a.woodera-loop-details-link,
body.single-product .upsells.products ul.products li.product a.woodera-loop-details-link,
body.single-product .related ul.products li.product a.button,
body.single-product .upsells ul.products li.product a.button,
body.single-product .related ul.products li.product a.woodera-loop-details-link,
body.single-product .upsells ul.products li.product a.woodera-loop-details-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: auto !important;
  min-width: 126px !important;
  max-width: max-content !important;
  min-height: 34px !important;

  padding: 8px 15px !important;
  margin: 12px 0 0 !important;

  border-radius: 12px !important;
  background: #8A6A45 !important;
  border: 1px solid #8A6A45 !important;
  color: #ffffff !important;

  font-family: "Manrope", sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: 0.01em !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;

  box-shadow: none !important;
}

body.woocommerce ul.products li.product a.button:hover,
body.woocommerce-page ul.products li.product a.button:hover,
body.woocommerce ul.products li.product a.woodera-loop-details-link:hover,
body.woocommerce-page ul.products li.product a.woodera-loop-details-link:hover,
body.single-product .related.products ul.products li.product a.button:hover,
body.single-product .upsells.products ul.products li.product a.button:hover,
body.single-product .related.products ul.products li.product a.woodera-loop-details-link:hover,
body.single-product .upsells.products ul.products li.product a.woodera-loop-details-link:hover,
body.single-product .related ul.products li.product a.button:hover,
body.single-product .upsells ul.products li.product a.button:hover,
body.single-product .related ul.products li.product a.woodera-loop-details-link:hover,
body.single-product .upsells ul.products li.product a.woodera-loop-details-link:hover {
  background: #6F5436 !important;
  border-color: #6F5436 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* ===== WOODERA — mobile collection/category cards: centered title, no counter ===== */

@media (max-width: 767px) {
  .woocommerce ul.products li.product-category,
  .woocommerce-page ul.products li.product-category {
    text-align: center !important;
  }

  .woocommerce ul.products li.product-category a,
  .woocommerce-page ul.products li.product-category a {
    display: block !important;
    text-align: center !important;
  }

  .woocommerce ul.products li.product-category img,
  .woocommerce-page ul.products li.product-category img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .woocommerce ul.products li.product-category .woocommerce-loop-category__title,
  .woocommerce-page ul.products li.product-category .woocommerce-loop-category__title {
    display: block !important;
    width: 100% !important;
    margin: 18px auto 0 !important;
    padding: 0 !important;
    text-align: center !important;
  }

  .woocommerce ul.products li.product-category .woocommerce-loop-category__title .count,
  .woocommerce ul.products li.product-category mark.count,
  .woocommerce ul.products li.product-category .count,
  .woocommerce-page ul.products li.product-category .woocommerce-loop-category__title .count,
  .woocommerce-page ul.products li.product-category mark.count,
  .woocommerce-page ul.products li.product-category .count {
    display: none !important;
  }
}

/* ===== WOODERA — mobile product gallery pre-init layout fix ===== */

/*
  Mobile only. Before WooCommerce/FlexSlider initializes, the gallery images are
  plain stacked blocks. This keeps the first image visible and formats the rest
  as small thumbnails, without hiding the whole gallery.
*/
@media (max-width: 767px) {
  body.single-product .woocommerce-product-gallery:not(:has(.flex-viewport)) {
    opacity: 1 !important;
    visibility: visible !important;
    overflow: hidden !important;
  }

  body.single-product .woocommerce-product-gallery:not(:has(.flex-viewport))
  .woocommerce-product-gallery__wrapper {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: start !important;
  }

  body.single-product .woocommerce-product-gallery:not(:has(.flex-viewport))
  .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child {
    grid-column: 1 / -1 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.single-product .woocommerce-product-gallery:not(:has(.flex-viewport))
  .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:not(:first-child) {
    grid-column: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(31, 31, 31, 0.12) !important;
    background: #ffffff !important;
  }

  body.single-product .woocommerce-product-gallery:not(:has(.flex-viewport))
  .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  body.single-product .woocommerce-product-gallery:not(:has(.flex-viewport))
  .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  body.single-product .woocommerce-product-gallery:not(:has(.flex-viewport))
  .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:not(:first-child) img {
    display: block !important;
    width: 100% !important;
    height: 52px !important;
    object-fit: cover !important;
  }
}