/* LabGlass v1.5 - loaded last.
   1) no sideways scroll / white strip on the right on phones
   2) product card titles are never cut
   3) fully responsive product page (variations, add to cart, WhatsApp)
   4) proper WhatsApp floating button */

/* ===== 1. NO HORIZONTAL OVERFLOW ===== */
html{overflow-x:hidden;max-width:100%}
@supports (overflow:clip){
	html{overflow-x:visible}
	body.lg-body{overflow-x:clip}
}
body.lg-body{max-width:100%;position:relative}
.lg-body img,.lg-body video,.lg-body iframe,.lg-body svg{max-width:100%}
.lg-body table{max-width:100%}
.lg-body pre{max-width:100%;overflow:auto}
.lg-body .lg-main{max-width:100%}
/* grid columns may shrink below their content (stops long words / chips pushing the page wider) */
.lg-body ul.products,.lg-body .lg-sec ul.products{grid-template-columns:repeat(var(--lg-cols,4),minmax(0,1fr))}
.lg-body .lg-sec ul.products{grid-template-columns:repeat(4,minmax(0,1fr))}
.lg-card,.lg-card__body{min-width:0}
@media (max-width:1100px){
	.lg-body ul.products,.lg-body .lg-sec ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:560px){
	.lg-body ul.products,.lg-body .lg-sec ul.products,.lg-body .lg-deal__products ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* side-reveal animations start 36px to the side: on phones use a vertical reveal so they never widen the page */
@media (max-width:860px){
	.lg-js [data-lgr="left"],.lg-js [data-lgr="right"]{transform:translateY(24px)}
	.lg-js [data-lgr].is-in{transform:none}
}
.lg-shop__main,.lg-sidebar,.lg-wrap>*{min-width:0}

/* ===== 2. PRODUCT CARD TEXT NOT CUT ===== */
.lg-body .lg-card__title,.lg-body .lg-card--v14 .lg-card__title{
	display:block;-webkit-line-clamp:unset;-webkit-box-orient:initial;overflow:visible;
	min-height:0;line-height:1.4;padding-bottom:3px;overflow-wrap:break-word;word-break:normal;hyphens:auto
}
.lg-body .lg-card__title a{display:inline;padding-bottom:1px}
.lg-card__specs span,.lg-card__opts i{max-width:100%;overflow-wrap:anywhere}
.lg-body .lg-card__btn .button,.lg-body .lg-card--v14 .lg-card__cta{
	white-space:normal;text-align:center;line-height:1.25;min-height:42px
}
.lg-card--v14 .lg-card__price{overflow-wrap:anywhere}
@media (max-width:560px){
	.lg-body .lg-card__title,.lg-body .lg-card--v14 .lg-card__title{font-size:13.5px}
	.lg-card--v14 .lg-card__price{font-size:15px}
	.lg-card--v14 .lg-card__price small{display:block;font-size:11px}
}

/* ===== 3. PRODUCT PAGE ===== */
.lg-body.single-product div.product{
	display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:36px;align-items:start;width:100%;max-width:100%;
	float:none;margin:0
}
.lg-body.single-product div.product>*{min-width:0;max-width:100%}
.lg-body.single-product div.product>.woocommerce-product-gallery{grid-column:1;grid-row:1}
.lg-body.single-product div.product>.summary{grid-column:2;grid-row:1}
.lg-body.single-product div.product>.woocommerce-tabs,
.lg-body.single-product div.product>.related,
.lg-body.single-product div.product>.upsells,
.lg-body.single-product div.product>section{grid-column:1/-1;grid-row:auto}
.lg-body.single-product .woocommerce-product-gallery{width:100%!important;max-width:100%;float:none!important;margin:0}
.lg-body.single-product .woocommerce-product-gallery__wrapper,.lg-body.single-product .flex-viewport{max-width:100%}
.lg-body.single-product .woocommerce-product-gallery__image img,.lg-body.single-product .woocommerce-product-gallery img{width:100%;height:auto;max-width:100%}
.lg-body.single-product .summary{width:100%!important;max-width:100%;float:none!important;margin:0}
.lg-body.single-product .product_title{overflow-wrap:break-word}
.lg-body.single-product .lg-specs{table-layout:fixed;word-break:break-word}
.lg-body.single-product .woocommerce-tabs table{display:block;max-width:100%;overflow-x:auto}
.lg-body.single-product .woocommerce-Tabs-panel{max-width:100%;overflow-wrap:break-word}

/* form: qty + Add to cart (+ Buy now) always visible and wrapping nicely */
.lg-body.single-product form.cart{display:block;margin:16px 0}
.lg-body.single-product form.cart:not(.variations_form),
.lg-body.single-product .woocommerce-variation-add-to-cart{
	display:flex!important;flex-wrap:wrap;gap:10px;align-items:stretch;width:100%
}
.lg-body.single-product .single_variation_wrap{width:100%;display:block}
.lg-body.single-product .woocommerce-variation-add-to-cart .quantity,
.lg-body.single-product form.cart:not(.variations_form) .quantity{flex:0 0 auto}
.lg-body.single-product .single_add_to_cart_button{
	display:inline-flex!important;align-items:center;justify-content:center;flex:1 1 170px;min-width:0;
	border-radius:99px;padding:14px 22px;font-size:16px;white-space:normal;visibility:visible!important;opacity:1
}
.lg-body.single-product .single_add_to_cart_button.disabled,
.lg-body.single-product .single_add_to_cart_button.wc-variation-selection-needed,
.lg-body.single-product .single_add_to_cart_button.wc-variation-is-unavailable{opacity:.55;cursor:not-allowed}
.lg-body.single-product .lg-buynow{flex:1 1 140px;min-width:0}
.lg-body.single-product .variations_form .variations{width:100%;table-layout:auto}
.lg-body.single-product .variations_form .variations td,.lg-body.single-product .variations_form .variations th{width:100%}
.lg-body.single-product .lg-pills{gap:8px}
.lg-body.single-product .lg-pill{padding:9px 14px;font-size:14px;min-width:56px;justify-content:center}
.lg-body.single-product .woocommerce-variation-price .price,.lg-body.single-product .single_variation .price{font-size:24px;font-weight:800;color:var(--lg-dark)}
.lg-body.single-product .lg-buybox .lg-btn--wa{display:inline-flex;gap:8px}
.lg-wa-ic{flex:none}

@media (max-width:860px){
	.lg-body.single-product div.product{grid-template-columns:minmax(0,1fr);gap:18px}
	.lg-body.single-product div.product>.woocommerce-product-gallery,
	.lg-body.single-product div.product>.summary{grid-column:1;grid-row:auto}
	.lg-body.single-product .woocommerce-product-gallery{padding:8px}
	.lg-body.single-product .product_title{font-size:23px;line-height:1.25}
	.lg-body.single-product .summary .price{font-size:24px}
	.lg-body.single-product .woocommerce-tabs ul.tabs{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;gap:4px}
	.lg-body.single-product .woocommerce-tabs ul.tabs li{flex:none}
	.lg-body.single-product .woocommerce-tabs{margin-top:24px}
	.lg-body.single-product .related>h2,.lg-body.single-product .upsells>h2{font-size:20px;margin:28px 0 14px}
	/* room for the sticky add-to-cart bar */
	.single-product .lg-footer{padding-bottom:74px}
}
@media (max-width:560px){
	.lg-body.single-product .flex-control-thumbs{grid-template-columns:repeat(4,minmax(0,1fr))}
	.lg-body.single-product .lg-specs th,.lg-body.single-product .lg-specs td{padding:8px 10px;font-size:13.5px}
	.lg-body.single-product .lg-specs th{width:40%}
	.lg-body.single-product .lg-ptrust{grid-template-columns:1fr}
	.lg-body.single-product .lg-pill{padding:8px 12px;font-size:13.5px;min-width:50px}
	.lg-body.single-product .single_add_to_cart_button{flex-basis:100%}
	.lg-body.single-product .lg-buynow{flex-basis:100%}
	.lg-body.single-product .woocommerce-variation-add-to-cart .quantity{flex:1 1 100%;justify-content:center}
	.lg-body.single-product .lg-crumb{overflow-wrap:anywhere;font-size:13px}
}

/* ===== 4. FLOATING WHATSAPP ===== */
.lg-body .lg-wafloat,body .lg-wafloat{
	position:fixed;right:16px;bottom:calc(18px + env(safe-area-inset-bottom));width:58px;height:58px;border-radius:50%;
	background:#25d366;color:#fff!important;display:grid;place-items:center;z-index:950;
	box-shadow:0 8px 24px rgba(37,211,102,.45),0 2px 8px rgba(0,0,0,.18)
}
.lg-wafloat:hover{background:#1ebe5b;color:#fff!important}
.lg-wafloat svg{width:30px;height:30px;display:block}
.lg-wafloat__tip{
	position:absolute;right:70px;top:50%;transform:translateY(-50%);white-space:nowrap;background:#fff;color:#1F3446;
	font:600 13px var(--lg-fb);padding:7px 12px;border-radius:99px;box-shadow:0 6px 18px rgba(0,0,0,.18);
	opacity:0;pointer-events:none;transition:opacity .2s
}
.lg-wafloat:hover .lg-wafloat__tip{opacity:1}
@media (hover:none){.lg-wafloat__tip{display:none}}
/* back-to-top sits above the WhatsApp button, never on top of it */
body .lg-totop{right:20px;bottom:90px!important}
@media (max-width:820px){
	body .lg-wafloat{bottom:calc(18px + env(safe-area-inset-bottom))!important}
	body .lg-totop{right:19px;bottom:calc(86px + env(safe-area-inset-bottom))!important}
	body.single-product .lg-wafloat{bottom:calc(84px + env(safe-area-inset-bottom))!important}
	body.single-product .lg-totop{bottom:calc(152px + env(safe-area-inset-bottom))!important}
}
@media (max-width:560px){
	.lg-body .lg-wafloat,body .lg-wafloat{width:54px;height:54px;right:12px}
	body .lg-totop{right:15px}
}

/* ===== 5. PURCHASE BOX (sizes, price, qty, Add to cart) ===== */
.lg-body .woocommerce-product-gallery{opacity:1!important}
.lg15-form{display:block!important;margin:18px 0}
.lg15-attr{margin:0 0 14px}
.lg15-attr__l{display:block;font-weight:700;color:var(--lg-dark);font-size:14px;margin:0 0 8px}
.lg15-pills{display:flex;flex-wrap:wrap;gap:8px}
.lg15-pill{min-width:56px;padding:9px 14px;border:2px solid var(--lg-border);border-radius:11px;background:#fff;font:600 14px var(--lg-fb);color:var(--lg-dark);cursor:pointer;transition:.18s;text-align:center}
.lg15-pill:hover{border-color:var(--lg-primary)}
.lg15-pill.is-on{border-color:var(--lg-primary);background:var(--lg-soft);box-shadow:0 0 0 3px rgba(43,164,222,.18)}
.lg15-pill.is-off{opacity:.38;text-decoration:line-through;cursor:not-allowed}
.lg15-price{font-size:26px;font-weight:800;color:var(--lg-dark);margin:6px 0 14px;line-height:1.2}
.lg15-price del{font-size:17px;font-weight:500;color:#8fa6b5}
.lg15-price ins{text-decoration:none;color:var(--lg-accent)}
.lg15-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:stretch;width:100%}
.lg15-actions .quantity{flex:0 0 auto}
.lg15-actions .single_add_to_cart_button{flex:1 1 170px;min-width:0;display:inline-flex;align-items:center;justify-content:center;border-radius:99px;padding:14px 22px;font-size:16px}
.lg15-actions .single_add_to_cart_button.disabled{opacity:.6;cursor:not-allowed}
.lg15-actions .lg-buynow{flex:1 1 140px;min-width:0}
.lg15-oos{margin:14px 0;padding:12px 14px;border-radius:10px;background:#fdecec;color:#b32d2e}
.lg-qv .lg15-price{font-size:22px}
@media (max-width:560px){
	.lg15-pill{padding:8px 12px;font-size:13.5px;min-width:50px}
	.lg15-price{font-size:23px}
	.lg15-actions .quantity{flex:1 1 100%;justify-content:center}
	.lg15-actions .single_add_to_cart_button,.lg15-actions .lg-buynow{flex-basis:100%}
}

/* ===== 6. LONG DESCRIPTION + BULK BUTTON ===== */
.lg-longdesc{grid-column:1/-1;margin:34px 0 0;padding:26px;background:#fff;border:1px solid var(--lg-border);border-radius:var(--lg-radius);overflow-wrap:break-word;min-width:0}
.lg-longdesc>h2{font-size:22px;margin:0 0 14px}
.lg-longdesc__body{color:#3a5a70}
.lg-longdesc__body h3{font-size:17px;margin:20px 0 6px}
.lg-longdesc__body ul{list-style:disc;padding-left:22px;margin:0 0 10px;columns:2;column-gap:30px}
.lg-longdesc__body p{margin:0 0 12px}
.lg-longdesc__body img{height:auto}
@media (max-width:560px){.lg-longdesc{padding:18px 16px}.lg-longdesc__body ul{columns:1}}
.lg-buybox .lg-btn--bulk{width:100%;margin-bottom:12px}

/* ===== 7. PRODUCT TRUST ICONS (own class, no clash with the home trust strip) ===== */
.lg-ptrust{list-style:none;margin:16px 0 0;padding:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;background:var(--lg-soft);border-radius:14px}
@media (max-width:420px){.lg-ptrust{grid-template-columns:1fr}}
/* home trust strip: full width, 4 equal columns / 2 on tablets / 1 on phones */
.lg-body section.lg-trust{display:block;width:100%;padding:0;background:#fff;border-radius:0}
.lg-body .lg-trust__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.lg-body .lg-trust__item{min-width:0}
.lg-body .lg-trust__item>div{min-width:0}
@media (max-width:1100px){.lg-body .lg-trust__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.lg-body .lg-trust__grid{grid-template-columns:1fr;gap:12px}}
