/* Stage 1: native auto-width horizontal thumbnails. No desktop rail or thumbnail height override. */
@media (max-width:1024px) {
 body.single-product.ab-product-presentation .elementor.elementor-6406 .wd-gallery-thumb .wd-carousel-item {width:82px;}
 body.single-product.ab-product-presentation .elementor.elementor-6406 .wd-gallery-thumb img {height:auto;aspect-ratio:1;object-fit:contain;}
 body.single-product.ab-product-presentation .elementor.elementor-6406 .wd-gallery-thumb .wd-thumb-active img {outline:1px solid #9a7b4e;outline-offset:-1px;}
 body.single-product.ab-product-presentation .elementor.elementor-6406 .wd-gallery-images .woocommerce-product-gallery__image img {max-height:min(400px,80vw);object-fit:contain;}
 body.single-product.ab-product-presentation .elementor.elementor-6406 .elementor-element-605408f > .e-con-inner {gap:16px;}
}
@media (max-width:430px) {
 body.single-product.ab-product-presentation .elementor.elementor-6406 .wd-gallery-images .woocommerce-product-gallery__image img {max-height:min(320px,80vw);}
}
/* Stage 2: compact, readable purchase and information areas; content is unchanged. */
@media (max-width:1024px) {
 body.single-product.ab-product-presentation .elementor.elementor-6406 .elementor-element-1809f45,
 body.single-product.ab-product-presentation .elementor.elementor-6406 .elementor-element-1809f45 > .e-con-inner {gap:10px;}
 body.single-product.ab-product-presentation .elementor.elementor-6406 .elementor-element-707334b .product_title {font-size:28px;line-height:1.14;max-width:100%;}
 body.single-product.ab-product-presentation .elementor.elementor-6406 .elementor-element-eaa6987 .price {font-size:24px!important;line-height:1.25;}
 body.single-product.ab-product-presentation .elementor.elementor-6406 .woocommerce-product-details__short-description {font-size:16px;line-height:1.5;}
 body.single-product.ab-product-presentation .elementor.elementor-6406 .woocommerce-product-details__short-description p {margin-bottom:6px;}
 body.single-product.ab-product-presentation .elementor.elementor-6406 .ab-product-summary {gap:8px;}
 body.single-product.ab-product-presentation .elementor.elementor-6406 .ab-product-facts > div {padding-block:5px;gap:10px;}
 body.single-product.ab-product-presentation .elementor.elementor-6406 .ab-personalization {padding:12px;gap:10px;margin-top:4px;}
 body.single-product.ab-product-presentation .elementor.elementor-6406 .ab-personalization legend {font-size:18px;line-height:1.3;}
 body.single-product.ab-product-presentation .elementor.elementor-6406 .ab-personalization :is(input,select) {font-size:16px;min-height:48px;max-width:100%;}
 body.single-product.ab-product-presentation .elementor.elementor-6406 .wd-single-add-cart .single_add_to_cart_button {min-height:48px;padding-block:13px;}
 body.single-product.ab-product-presentation .elementor.elementor-6406 .elementor-element-ebae9d4 {align-self:flex-start;margin:0;}
 body.single-product.ab-product-presentation .elementor.elementor-6406 .elementor-element-ebae9d4 a {min-height:44px;display:inline-flex;align-items:center;}
 body.single-product.ab-product-presentation .ab-product-information {padding-top:16px;margin-bottom:24px;}
 body.single-product.ab-product-presentation .ab-product-information .wd-accordion-title {min-height:50px;padding-block:12px;font-size:16px;line-height:1.5;}
 body.single-product.ab-product-presentation .ab-product-information #tab-description {font-size:16px;line-height:1.6;}
 body.single-product.ab-product-presentation .ab-product-information #tab-description :is(p,li) {font-size:16px;line-height:1.6;}
 body.single-product.ab-product-presentation .ab-product-information #tab-description p {margin-bottom:12px;}
 body.single-product.ab-product-presentation .ab-product-information #tab-description :is(h2,h3,h4,h5,h6) {font-size:21px;line-height:1.3;margin-block:18px 10px;}
 body.single-product.ab-product-presentation .ab-product-information #tab-description :is(ol,ul) {padding-inline-start:1.4em;margin-block:10px 14px;list-style-position:outside;}
 body.single-product.ab-product-presentation .ab-product-information #tab-description li {padding-inline-start:.2em;margin-bottom:8px;}
 body.single-product.ab-product-presentation .ab-product-information .shop_attributes :is(th,td) {padding:7px 10px;line-height:1.5;}
 body.single-product.ab-product-presentation .elementor.elementor-6406 .elementor-element-1ce9a55 {padding-top:20px;margin-bottom:24px;}
 body.single-product.ab-product-presentation .elementor.elementor-6406 .elementor-element-f4e714f .title {font-size:26px;line-height:1.2;}
}
@media (max-width:430px) {
 body.single-product.ab-product-presentation .elementor.elementor-6406 .wd-single-add-cart form.cart > .single_add_to_cart_button {grid-column:1/-1;width:100%;font-size:13px;}
 body.single-product.ab-product-presentation .elementor.elementor-6406 .elementor-element-f4e714f :is(.wd-product-img-link,.wd-product-img-hover) img {max-height:160px;}
}
/* Stage 3: restore the existing five-item toolbar to the bottom on product pages only. */
@media (max-width:767px) {
 body.single-product.artbijuta-design-active.ab-product-presentation {padding-bottom:calc(64px + env(safe-area-inset-bottom));}
 body.single-product.ab-product-presentation .artbijuta-mobile-nav.ab-mobile-nav-inline {position:fixed;inset:auto 0 0;z-index:300;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -4px 16px rgba(36,35,33,.08);}
 body.single-product.ab-product-presentation .scrollToTop {bottom:calc(80px + env(safe-area-inset-bottom));}
 body.single-product.ab-product-presentation .elementor.elementor-6406 :is(input,select,button,.wd-accordion-title) {scroll-margin-block:120px 90px;}
}

/* Mobile description readability; preserve all source HTML and native tab behavior. */
@media (max-width:768px) {
 body.single-product.ab-product-presentation .ab-product-information :is(#tab-description,#tab-additional_information,#tab-reviews) {
  box-sizing:border-box;padding:16px 18px 18px;min-width:0;overflow-wrap:break-word;
 }
 body.single-product.ab-product-presentation .ab-product-information #tab-description,
 body.single-product.ab-product-presentation .ab-product-information #tab-description :is(p,li) {
  font-size:16px;line-height:1.6;
 }
 body.single-product.ab-product-presentation .ab-product-information #tab-description p {margin:0 0 16px;}
 body.single-product.ab-product-presentation .ab-product-information #tab-description :is(h2,h3,h4,h5,h6),
 body.single-product.ab-product-presentation .ab-product-information #tab-description > p:first-child > :is(b,strong):only-child {
  display:block;font-size:21px;line-height:1.3;font-weight:600;margin:0 0 14px;
 }
 body.single-product.ab-product-presentation .ab-product-information #tab-description :is(ol,ul) {
  padding-inline-start:1.5em;margin:0 0 16px;list-style-position:outside;
 }
 body.single-product.ab-product-presentation .ab-product-information #tab-description li {
  padding-inline-start:.25em;margin:0 0 12px;text-indent:0;
 }
 body.single-product.ab-product-presentation .ab-product-information #tab-description li > p {margin-bottom:0;}
 body.single-product.ab-product-presentation .ab-product-information #tab-description > :last-child {margin-bottom:0;}
 body.single-product.ab-product-presentation .ab-product-information .wd-accordion-title {
  min-height:52px;padding:14px 18px;font-size:16px;line-height:24px;
 }
}
