/* Product gallery presented as one self-contained card on every product page. */
.bio-site.single-product .bio-gallery-ready .woocommerce-product-gallery__wrapper { display: block; width: 100% !important; transform: none !important; margin: 0 !important; }
.bio-site.single-product .bio-gallery-ready .woocommerce-product-gallery__image { width: 100% !important; float: none !important; margin: 0 !important; }
.bio-site.single-product .bio-gallery-ready .woocommerce-product-gallery__image[hidden] { display: none !important; }
.bio-site.single-product .bio-gallery-thumbnails { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; padding-top: 24px !important; clear: both; }
.bio-site.single-product .bio-gallery-thumbnails button { padding: 4px; border: 1px solid #dce3d5; border-radius: 12px; background: #fff; cursor: pointer; overflow: hidden; }
.bio-site.single-product .bio-gallery-thumbnails button[aria-pressed=true] { border: 2px solid #64864d; padding: 3px; background: #eef3e7; }
.bio-site.single-product .bio-gallery-thumbnails img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 8px; }
.bio-site.single-product .bio-gallery-pause { display: block; margin: 14px auto 0; padding: 6px 12px; background: transparent; color: var(--green); border: 0; font-size: 12px; text-decoration: underline; cursor: pointer; }
@media(max-width:480px) { .bio-site.single-product .bio-gallery-thumbnails { padding-top: 18px !important; gap: 8px; } }
.bio-site.single-product .woocommerce-product-gallery {
 padding: 14px;
 border: 1px solid #dce3d5;
 border-radius: 24px !important;
 background: #fffdf8;
 box-shadow: 0 16px 40px rgba(37, 60, 44, .10);
 overflow: hidden;
}

.bio-site.single-product .woocommerce-product-gallery .flex-viewport,
.bio-site.single-product .woocommerce-product-gallery__wrapper,
.bio-site.single-product .woocommerce-product-gallery__image,
.bio-site.single-product .woocommerce-product-gallery__image > a {
 border-radius: 16px !important;
 overflow: hidden;
}

.bio-site.single-product .woocommerce-product-gallery__image {
 aspect-ratio: 1 / 1;
 background: #f0f3eb;
}

.bio-site.single-product .woocommerce-product-gallery__image > a {
 display: grid !important;
 width: 100%;
 height: 100%;
 place-items: center;
 cursor: default;
}

.bio-site.single-product .woocommerce-product-gallery__image img {
 display: block;
 width: 100% !important;
 height: 100% !important;
 border-radius: 16px !important;
 object-fit: contain !important;
 object-position: center;
 background: #f0f3eb;
 transform: none !important;
}

.bio-site.single-product .woocommerce-product-gallery .flex-control-thumbs {
 display: grid;
 grid-template-columns: repeat(5, minmax(0, 1fr));
 gap: 10px;
 margin: 0 !important;
 padding: 24px 0 0 !important;
 position: relative;
 z-index: 3;
}

.bio-site.single-product .woocommerce-product-gallery .flex-control-thumbs li {
 width: auto !important;
 min-width: 0;
 padding: 3px;
 border: 1px solid #d8dfd1;
 border-radius: 11px;
 background: #f7f8f3;
 overflow: hidden;
}

.bio-site.single-product .woocommerce-product-gallery .flex-control-thumbs img {
 display: block;
 width: 100% !important;
 height: auto !important;
 aspect-ratio: 1 / 1;
 border-radius: 8px !important;
 object-fit: cover;
 opacity: .68;
 cursor: pointer;
 pointer-events: auto;
 transition: opacity .2s ease, transform .2s ease;
}

.bio-site.single-product .woocommerce-product-gallery .flex-control-thumbs img:hover,
.bio-site.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
 opacity: 1;
 transform: scale(1.03);
}

.bio-site.single-product .woocommerce-product-gallery .flex-control-thumbs li:has(img.flex-active) {
 border-color: #71945a;
 box-shadow: 0 0 0 1px #71945a;
}

@media (max-width: 900px) {
 .bio-site.single-product .woocommerce-product-gallery {
  width: min(100%, 520px) !important;
  padding: 10px;
  border-radius: 19px !important;
 }
 .bio-site.single-product .woocommerce-product-gallery .flex-viewport,
 .bio-site.single-product .woocommerce-product-gallery__wrapper,
 .bio-site.single-product .woocommerce-product-gallery__image,
 .bio-site.single-product .woocommerce-product-gallery__image > a,
 .bio-site.single-product .woocommerce-product-gallery__image img { border-radius: 13px !important; }
}

@media (max-width: 480px) {
 .bio-site.single-product .woocommerce-product-gallery .flex-control-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; padding-top: 18px !important; }
}
