/* DentPro Storefront v1.2.1 live-layout corrections. */
.dentpro-category-nav{position:relative;z-index:100!important;display:flex;align-items:center;gap:9px;overflow:visible;white-space:nowrap}
.dentpro-category-more{position:relative;z-index:101;flex:0 0 auto}
.dentpro-category-more summary{display:flex;align-items:center;gap:8px;padding:11px 16px;border:1px solid var(--dps-border);border-radius:999px;color:var(--dps-text);background:#fff;font-size:13px;font-weight:750;line-height:1;cursor:pointer;list-style:none}
.dentpro-category-more summary::-webkit-details-marker{display:none}
.dentpro-category-more[open] summary{color:#fff;border-color:var(--dps-blue);background:var(--dps-blue)}
.dentpro-category-more summary span{font-size:15px;font-weight:500;transition:transform .2s ease}
.dentpro-category-more[open] summary span{transform:rotate(45deg)}
.dentpro-category-more>div{position:absolute;z-index:102;top:calc(100% + 10px);right:0;display:grid;grid-template-columns:repeat(2,minmax(170px,1fr));gap:3px 22px;min-width:390px;padding:17px;border:1px solid var(--dps-border);background:#fff;box-shadow:0 20px 45px rgba(8,42,67,.14)}
.dentpro-category-more>div a{padding:10px 11px;border:0;border-radius:0;font-size:12px;white-space:normal}

.dentpro-storefront-active ul.products.dentpro-products-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px}
.dentpro-storefront-active ul.products.dentpro-products-grid li.product{display:flex;height:100%;flex-direction:column}
.dentpro-storefront-active ul.products li.product .woocommerce-LoopProduct-link{display:flex;flex:1 1 auto;flex-direction:column;width:100%}
.dentpro-storefront-active ul.products li.product a img{aspect-ratio:1/.88;padding:18px}
.dentpro-storefront-active ul.products li.product .price{margin-top:auto!important}
.dentpro-storefront-active ul.products li.product .button{align-self:stretch;width:calc(100% - 36px);margin:0 18px 18px!important}
.dentpro-storefront-active ul.products li.product .added_to_cart{margin:0 18px 15px}
.dentpro-loop-description{display:block!important;min-height:3.9em;margin-top:8px;color:#61717c;font-size:12px;line-height:1.55}
.dentpro-storefront-active .woocommerce-result-count,
.dentpro-storefront-active .woocommerce-ordering,
.dentpro-storefront-active ul.products.dentpro-products-grid{z-index:1!important}

/* Keep checkout quantities aligned instead of leaving a lone × 5 line. */
.dentpro-checkout-page .woocommerce-checkout-review-order-table td.product-name{
	position:relative;
	padding-right:52px!important;
}
.dentpro-checkout-page .woocommerce-checkout-review-order-table .product-quantity{
	position:absolute;
	top:12px;
	right:0;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	min-width:34px;
	padding:3px 7px;
	border-radius:999px;
	color:var(--dps-blue);
	background:rgba(239,107,67,.09);
	font-size:10px;
	font-weight:850;
	line-height:1.35;
	white-space:nowrap;
}

.dentpro-single-product #secondary{display:none!important}
.dentpro-single-product #primary,
.dentpro-single-product .content-area,
.dentpro-single-product .ast-woocommerce-container,
.dentpro-single-product .site-main,
.dentpro-single-product .site-content>.ast-container{float:none!important;width:100%!important;max-width:none!important;margin:0!important;padding-right:0!important;padding-left:0!important;border:0!important}
.dentpro-single-product div.product{grid-template-columns:minmax(0,1fr) minmax(390px,.82fr)!important;width:min(calc(100% - 64px),1260px)!important;margin:58px auto 0!important}
.dentpro-single-product .related.products ul.products.dentpro-products-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px}

@media(max-width:1100px){
	.dentpro-category-nav{overflow-x:auto;overflow-y:hidden;padding-bottom:4px;scrollbar-width:none}
	.dentpro-category-nav::-webkit-scrollbar{display:none}
	.dentpro-category-more>div{position:fixed;right:24px;left:24px;min-width:0}
	.dentpro-storefront-active ul.products.dentpro-products-grid,
	.dentpro-single-product .related.products ul.products.dentpro-products-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:767px){
	.dentpro-storefront-active ul.products.dentpro-products-grid,
	.dentpro-single-product .related.products ul.products.dentpro-products-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
	.dentpro-storefront-active ul.products li.product a img{aspect-ratio:1/1;padding:10px}
	.dentpro-single-product div.product{grid-template-columns:1fr!important;width:calc(100% - 28px)!important;margin-top:28px!important}
	.dentpro-category-more>div{grid-template-columns:1fr}
}
@media(max-width:390px){
	.dentpro-storefront-active ul.products.dentpro-products-grid,
	.dentpro-single-product .related.products ul.products.dentpro-products-grid{grid-template-columns:1fr!important}
}

/* Final review-layout reset: Astra/Woo legacy floats must not compress review text. */
.dentpro-single-product #reviews,
.dentpro-single-product #reviews #comments,
.dentpro-single-product #reviews #comments ol.commentlist,
.dentpro-single-product #reviews #comments ol.commentlist>li,
.dentpro-single-product #reviews .comment_container{
	float:none!important;
	clear:both!important;
	display:block!important;
	width:100%!important;
	max-width:none!important;
	min-width:0!important;
}

.dentpro-single-product #reviews #comments ol.commentlist>li{
	position:relative!important;
}

.dentpro-single-product #reviews #comments ol.commentlist li img.avatar{
	position:absolute!important;
	top:0!important;
	left:0!important;
	float:none!important;
	display:block!important;
	width:48px!important;
	height:48px!important;
	max-width:48px!important;
	margin:0!important;
}

.dentpro-single-product #reviews #comments ol.commentlist li .comment-text{
	float:none!important;
	display:block!important;
	width:auto!important;
	max-width:none!important;
	min-width:0!important;
	margin:0 0 0 64px!important;
	padding:0!important;
}

.dentpro-single-product #reviews .comment-text p.meta,
.dentpro-single-product #reviews .comment-text .description,
.dentpro-single-product #reviews .comment-text .description p{
	float:none!important;
	display:block!important;
	width:100%!important;
	max-width:none!important;
	min-width:0!important;
	white-space:normal!important;
	word-break:normal!important;
	overflow-wrap:break-word!important;
}

@media(max-width:767px){
	.dentpro-single-product #reviews #comments ol.commentlist li img.avatar{
		width:40px!important;
		height:40px!important;
		max-width:40px!important;
	}

	.dentpro-single-product #reviews #comments ol.commentlist li .comment-text{
		margin-left:52px!important;
	}
}
