/**
 * Starline Shop - Single Product Page
 * Full replacement stylesheet
 *
 * Replace the entire contents of:
 * assets/css/single-product.css
 */

/* PAGE */
body.single-product { background:#f7f9fc; }
.single-product .site-main { padding:22px 0 42px; }

.single-product .woocommerce-breadcrumb{
	max-width:1280px;
	margin:0 auto 18px!important;
	padding:0 15px;
	font-size:12px;
	line-height:1.6;
	color:#64748b;
	box-sizing:border-box;
}
.single-product .woocommerce-breadcrumb a{color:#475569;text-decoration:none;}
.single-product .woocommerce-breadcrumb a:hover{color:#2563eb;}

/* MAIN PRODUCT LAYOUT */
.single-product div.product{
	position:relative!important;
	display:grid!important;
	grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr)!important;
	grid-template-areas:
		"gallery summary"
		"tabs tabs"
		"related related";
	column-gap:28px!important;
	row-gap:26px!important;
	max-width:1280px!important;
	margin:0 auto!important;
	padding:0 15px!important;
	align-items:start!important;
	box-sizing:border-box;
}
.single-product div.product::before,
.single-product div.product::after{display:none!important;content:none!important;}

.single-product div.product>.woocommerce-product-gallery{grid-area:gallery!important;}
.single-product div.product>.summary{grid-area:summary!important;}
.single-product div.product>.woocommerce-tabs{grid-area:tabs!important;}
.single-product div.product>.related.products,
.single-product div.product>.up-sells.products{grid-area:related!important;}

/* SALE BADGE */
.single-product div.product>.onsale{
	position:absolute!important;
	top:12px!important;
	left:28px!important;
	right:auto!important;
	z-index:20!important;
	display:inline-flex!important;
	align-items:center;
	justify-content:center;
	width:auto!important;
	min-width:auto!important;
	min-height:auto!important;
	margin:0!important;
	padding:6px 9px!important;
	border-radius:6px!important;
	background:#dc2626!important;
	color:#fff!important;
	font-size:11px!important;
	line-height:1.2!important;
	font-weight:700!important;
}

/* PRODUCT GALLERY - KEEP WOOCOMMERCE/FLEXSLIDER NATIVE BEHAVIOR */
.single-product div.product .woocommerce-product-gallery{
	position:relative!important;
	top:auto!important;
	float:none!important;
	width:100%!important;
	margin:0!important;
	padding:12px!important;
	background:#fff!important;
	border:1px solid #e5e7eb;
	border-radius:12px;
	box-shadow:0 10px 28px rgba(15,23,42,.05);
	box-sizing:border-box;
	overflow:visible!important;
}

/*
 * IMPORTANT:
 * Do not force display:flex, slide width or a fixed slide height here.
 * WooCommerce FlexSlider calculates those values itself.
 */
.single-product .woocommerce-product-gallery__wrapper{
	margin:0!important;
	background:#fff!important;
}

.single-product .woocommerce-product-gallery .flex-viewport{
	background:#fff!important;
	border-radius:9px;
	overflow:hidden!important;
}

.single-product .woocommerce-product-gallery__image{
	background:#fff!important;
}

.single-product .woocommerce-product-gallery__image a{
	background:#fff!important;
}

.single-product .woocommerce-product-gallery__image img,
.single-product .woocommerce-product-gallery__image a img{
	display:block!important;
	width:100%!important;
	max-width:100%!important;
	height:auto!important;
	max-height:520px!important;
	margin:0 auto!important;
	object-fit:contain!important;
	object-position:center center!important;
	background:#fff!important;
	opacity:1!important;
	visibility:visible!important;
	filter:none!important;
}

.single-product .woocommerce-product-gallery__trigger{
	top:14px!important;
	right:14px!important;
	z-index:30!important;
	background:#fff!important;
	box-shadow:0 5px 16px rgba(15,23,42,.12);
}

/* GALLERY THUMBNAILS */
.single-product .flex-control-thumbs{
	display:grid!important;
	grid-template-columns:repeat(5,minmax(0,72px))!important;
	justify-content:start!important;
	gap:8px!important;
	margin:10px 0 0!important;
	padding:0!important;
	list-style:none!important;
}
.single-product .flex-control-thumbs::before,
.single-product .flex-control-thumbs::after{display:none!important;content:none!important;}
.single-product .flex-control-thumbs li{float:none!important;width:100%!important;margin:0!important;padding:0!important;}
.single-product .flex-control-thumbs img{
	display:block!important;
	width:72px!important;
	height:72px!important;
	padding:4px!important;
	object-fit:contain!important;
	background:#fff!important;
	border:1px solid #e2e8f0;
	border-radius:7px;
	opacity:.72;
	box-sizing:border-box;
	cursor:pointer;
	transition:border-color .2s ease,opacity .2s ease,box-shadow .2s ease;
}
.single-product .flex-control-thumbs img:hover,
.single-product .flex-control-thumbs img.flex-active{
	opacity:1!important;
	border-color:#2563eb;
	box-shadow:0 0 0 2px rgba(37,99,235,.08);
}

/* SUMMARY */
.single-product div.product .summary{
	float:none!important;
	width:100%!important;
	margin:0!important;
	padding:20px!important;
	background:#fff;
	border:1px solid #e5e7eb;
	border-radius:12px;
	box-shadow:0 10px 28px rgba(15,23,42,.05);
	box-sizing:border-box;
}
.single-product div.product .product_title{
	margin:0 0 10px!important;
	padding:0!important;
	font-size:21px!important;
	line-height:1.35!important;
	font-weight:700!important;
	letter-spacing:-.2px;
	color:#0f172a;
}
.single-product .woocommerce-product-rating{
	display:flex;
	align-items:center;
	flex-wrap:wrap;
	gap:8px;
	margin:0 0 10px!important;
}
.single-product .woocommerce-review-link{font-size:12px;color:#64748b;text-decoration:none;}

/* PRODUCT CODE / PRICE */
.starline-product-code{
	display:inline-flex;
	align-items:center;
	gap:6px;
	margin:0 0 12px;
	padding:6px 9px;
	background:#f8fafc;
	border:1px solid #e2e8f0;
	border-radius:6px;
	font-size:12px;
	color:#64748b;
}
.starline-product-code strong{color:#334155;}
.starline-single-price-box{
	display:grid;
	gap:7px;
	margin:0 0 14px;
	padding:12px 14px;
	background:#f8fafc;
	border:1px solid #e2e8f0;
	border-radius:8px;
}
.starline-price-row{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.starline-price-label{font-size:12px;font-weight:600;color:#64748b;}
.starline-regular-price{font-size:13px;color:#94a3b8;}
.starline-sale-price{font-size:21px;line-height:1.2;font-weight:800;color:#dc2626;}

/* SHORT DESCRIPTION */
.starline-short-details-title{
	position:relative;
	margin:0 0 8px;
	padding-left:10px;
	font-size:14px;
	line-height:1.4;
	font-weight:700;
	color:#111827;
}
.starline-short-details-title::before{
	content:"";
	position:absolute;
	top:2px;
	bottom:2px;
	left:0;
	width:3px;
	border-radius:4px;
	background:#2563eb;
}
.single-product .woocommerce-product-details__short-description{
	margin:0 0 14px;
	font-size:13px;
	line-height:1.7;
	color:#475569;
}
.single-product .woocommerce-product-details__short-description p:last-child{margin-bottom:0;}

/* VARIATIONS */
.single-product table.variations{width:100%!important;margin:0 0 12px!important;border:0!important;}
.single-product .variations tr,
.single-product .variations th,
.single-product .variations td{
	display:block;
	width:100%!important;
	border:0!important;
	padding:0!important;
	background:transparent!important;
}
.single-product .variations tr{margin-bottom:10px;}
.single-product .variations label{
	display:block;
	margin-bottom:5px;
	font-size:12px;
	font-weight:700;
	color:#334155;
}
.single-product .variations select{
	width:100%!important;
	min-height:42px;
	padding:0 36px 0 11px;
	background:#fff;
	border:1px solid #cbd5e1;
	border-radius:7px;
	outline:0;
	font-size:13px;
	color:#0f172a;
	box-sizing:border-box;
}
.single-product .variations select:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.1);}
.single-product .reset_variations{display:inline-block;margin-top:5px;font-size:11px;font-weight:600;color:#dc2626;}

/* CART / QUANTITY */
.single-product form.cart{
	display:block!important;
	width:100%!important;
	margin:0!important;
	padding:14px!important;
	background:#f8fafc;
	border:1px solid #e2e8f0;
	border-radius:9px;
	box-sizing:border-box;
}
.single-product form.cart::before,
.single-product form.cart::after{display:none!important;content:none!important;}
.single-product .quantity{
	display:flex!important;
	float:none!important;
	align-items:center;
	margin:0 0 10px!important;
}
.single-product .quantity .qty{
	width:76px!important;
	min-width:76px;
	height:42px;
	padding:5px 8px;
	background:#fff;
	border:1px solid #cbd5e1;
	border-radius:7px;
	outline:0;
	font-size:13px;
	font-weight:700;
	text-align:center;
	box-sizing:border-box;
}
.single-product .quantity .qty:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.1);}

/* ORDER NOW + ADD TO CART */
.single-product .starline-single-order-now,
.single-product form.cart .single_add_to_cart_button{
	display:flex!important;
	align-items:center!important;
	justify-content:center!important;
	float:none!important;
	width:100%!important;
	min-height:var(--sl-order-height,42px)!important;
	padding:9px 14px!important;
	border-radius:var(--sl-order-radius,6px)!important;
	font-size:var(--sl-order-font-size,13px)!important;
	line-height:1.2!important;
	font-weight:var(--sl-order-font-weight,700)!important;
	text-align:center!important;
	box-sizing:border-box;
	cursor:pointer;
}
.single-product .starline-single-order-now{
	margin:0 0 var(--sl-order-gap,7px)!important;
	background:var(--sl-order-bg,#ff6500)!important;
	border:1px solid var(--sl-order-bg,#ff6500)!important;
	color:var(--sl-order-color,#fff)!important;
}
.single-product .starline-single-order-now:hover{
	background:var(--sl-order-hover,#e85d00)!important;
	border-color:var(--sl-order-hover,#e85d00)!important;
	color:var(--sl-order-color,#fff)!important;
}
.single-product form.cart .single_add_to_cart_button{
	margin:0!important;
	background:#2563eb!important;
	border:1px solid #2563eb!important;
	color:#fff!important;
}
.single-product form.cart .single_add_to_cart_button:hover{
	background:#1d4ed8!important;
	border-color:#1d4ed8!important;
	color:#fff!important;
}

/* SUPPORT */
.single-product .starline-product-support{
	display:grid!important;
	grid-template-columns:repeat(2,minmax(0,1fr))!important;
	gap:8px!important;
	width:100%!important;
	margin-top:12px!important;
}
.single-product .starline-product-support a{
	display:flex;
	align-items:center;
	gap:8px;
	min-width:0!important;
	min-height:48px;
	padding:8px 10px;
	border-radius:8px;
	text-decoration:none!important;
	box-sizing:border-box;
}
.starline-support-phone{background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8!important;}
.starline-support-whatsapp{background:#f0fdf4;border:1px solid #bbf7d0;color:#15803d!important;}
.starline-support-icon{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	flex:0 0 30px;
	width:30px;
	height:30px;
	border-radius:50%;
	background:rgba(255,255,255,.88);
}
.starline-support-phone small{display:block;font-size:9px;line-height:1.2;color:#64748b;}
.starline-support-phone strong,
.starline-support-whatsapp{font-size:11px;font-weight:700;}

/* META */
.single-product .product_meta{
	display:flex;
	flex-wrap:wrap;
	gap:5px 16px;
	margin-top:12px;
	padding-top:11px;
	border-top:1px solid #e5e7eb;
	font-size:11px;
	line-height:1.6;
	color:#64748b;
}
.single-product .product_meta a{color:#475569;text-decoration:none;}

/* TABS */
.single-product div.product .woocommerce-tabs{
	width:100%!important;
	margin:0!important;
	padding:20px!important;
	background:#fff;
	border:1px solid #e5e7eb;
	border-radius:12px;
	box-shadow:0 10px 28px rgba(15,23,42,.04);
	box-sizing:border-box;
}
.single-product .woocommerce-tabs ul.tabs{
	display:flex!important;
	flex-wrap:wrap;
	gap:6px;
	margin:0 0 18px!important;
	padding:0 0 12px!important;
	border-bottom:1px solid #e5e7eb;
}
.single-product .woocommerce-tabs ul.tabs::before,
.single-product .woocommerce-tabs ul.tabs::after,
.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after{display:none!important;content:none!important;}
.single-product .woocommerce-tabs ul.tabs li{
	margin:0!important;
	padding:0!important;
	background:#f1f5f9!important;
	border:1px solid #e2e8f0!important;
	border-radius:6px!important;
}
.single-product .woocommerce-tabs ul.tabs li a{
	display:block;
	padding:8px 12px!important;
	font-size:12px;
	font-weight:700!important;
	color:#475569!important;
	text-decoration:none!important;
}
.single-product .woocommerce-tabs ul.tabs li.active{
	background:#2563eb!important;
	border-color:#2563eb!important;
}
.single-product .woocommerce-tabs ul.tabs li.active a{color:#fff!important;}
.single-product .woocommerce-Tabs-panel{
	width:100%!important;
	max-width:none!important;
	margin:0!important;
	padding:0!important;
	font-size:13px;
	line-height:1.75;
	color:#475569;
	box-sizing:border-box;
}
.single-product .woocommerce-Tabs-panel h2:first-child{
	margin:0 0 12px;
	font-size:18px;
	line-height:1.35;
	color:#111827;
}

/* RELATED PRODUCTS */
.single-product .related.products,
.single-product .up-sells.products{
	width:100%!important;
	margin:0!important;
	padding:0!important;
	clear:both!important;
}
.single-product .related.products>h2,
.single-product .up-sells.products>h2{
	position:relative;
	margin:0 0 16px!important;
	padding:0 0 10px;
	font-size:21px!important;
	line-height:1.3;
	font-weight:700;
	color:#111827;
}
.single-product .related.products>h2::after,
.single-product .up-sells.products>h2::after{
	content:"";
	position:absolute;
	left:0;
	bottom:0;
	width:45px;
	height:3px;
	border-radius:4px;
	background:#2563eb;
}
.single-product .related.products ul.products::before,
.single-product .related.products ul.products::after,
.single-product .up-sells.products ul.products::before,
.single-product .up-sells.products ul.products::after{display:none!important;content:none!important;}
.single-product .related.products ul.products,
.single-product .up-sells.products ul.products{
	display:grid!important;
	grid-template-columns:repeat(4,minmax(0,1fr))!important;
	gap:16px!important;
	width:100%!important;
	margin:0!important;
	padding:0!important;
	list-style:none!important;
}
.single-product .related.products ul.products li.product,
.single-product .up-sells.products ul.products li.product{
	position:relative!important;
	display:flex!important;
	flex-direction:column!important;
	float:none!important;
	clear:none!important;
	width:100%!important;
	max-width:none!important;
	min-width:0!important;
	height:100%!important;
	margin:0!important;
	padding:9px!important;
	background:#fff;
	border:1px solid #e5e7eb;
	border-radius:10px;
	box-shadow:0 4px 16px rgba(15,23,42,.04);
	box-sizing:border-box;
}
.single-product .related.products ul.products li.product.first,
.single-product .related.products ul.products li.product.last,
.single-product .up-sells.products ul.products li.product.first,
.single-product .up-sells.products ul.products li.product.last{
	clear:none!important;
	margin-left:0!important;
	margin-right:0!important;
}
.single-product .related.products ul.products li.product img,
.single-product .up-sells.products ul.products li.product img{
	display:block!important;
	width:100%!important;
	height:180px!important;
	margin:0 0 9px!important;
	padding:3px;
	object-fit:contain!important;
	background:#fff!important;
	border-radius:7px;
	box-sizing:border-box;
	opacity:1!important;
}
.single-product .related.products ul.products li.product .woocommerce-loop-product__title,
.single-product .up-sells.products ul.products li.product .woocommerce-loop-product__title{
	display:-webkit-box!important;
	-webkit-line-clamp:2;
	-webkit-box-orient:vertical;
	overflow:hidden!important;
	min-height:37px;
	margin:0 0 6px!important;
	padding:0!important;
	font-size:12px!important;
	line-height:1.45!important;
	font-weight:600!important;
	color:#111827!important;
}
.single-product .related.products ul.products li.product .price,
.single-product .up-sells.products ul.products li.product .price{
	margin-top:auto!important;
	margin-bottom:7px!important;
	min-height:21px;
	font-size:12px!important;
	font-weight:700;
	color:#dc2626!important;
}
.single-product .related.products ul.products li.product .price del,
.single-product .up-sells.products ul.products li.product .price del{
	font-size:10px;
	font-weight:400;
	color:#94a3b8;
	opacity:1;
}
.single-product .related.products ul.products li.product .price ins,
.single-product .up-sells.products ul.products li.product .price ins{
	text-decoration:none;
	color:#dc2626;
}

/* RELATED BUTTONS */
.single-product .starline-related-product-buttons{
	display:grid!important;
	grid-template-columns:1fr!important;
	gap:6px!important;
	width:100%!important;
	margin-top:auto!important;
}
.single-product .starline-related-product-buttons .button{
	display:flex!important;
	align-items:center!important;
	justify-content:center!important;
	width:100%!important;
	min-height:36px!important;
	margin:0!important;
	padding:7px 8px!important;
	border-radius:5px!important;
	font-size:11px!important;
	line-height:1.2!important;
	font-weight:600!important;
	text-align:center!important;
	box-sizing:border-box;
}
.single-product .starline-related-product-buttons .starline-related-order-now{
	background:var(--sl-order-bg,#ff6500)!important;
	border:1px solid var(--sl-order-bg,#ff6500)!important;
	color:var(--sl-order-color,#fff)!important;
}
.single-product .starline-related-product-buttons .starline-related-order-now:hover{
	background:var(--sl-order-hover,#e85d00)!important;
	border-color:var(--sl-order-hover,#e85d00)!important;
	color:var(--sl-order-color,#fff)!important;
}
.single-product .starline-related-product-buttons .add_to_cart_button,
.single-product .starline-related-product-buttons .product_type_simple,
.single-product .starline-related-product-buttons .product_type_variable,
.single-product .starline-related-product-buttons .product_type_grouped{
	background:#2563eb!important;
	border:1px solid #2563eb!important;
	color:#fff!important;
}

/* TABLET */
@media(max-width:991px){
	.single-product div.product{
		grid-template-columns:minmax(0,1fr) minmax(320px,.9fr)!important;
		column-gap:18px!important;
		row-gap:20px!important;
	}
	.single-product div.product .summary{padding:16px!important;}
	.single-product div.product .product_title{font-size:19px!important;}
	.single-product .related.products ul.products,
	.single-product .up-sells.products ul.products{
		grid-template-columns:repeat(3,minmax(0,1fr))!important;
		gap:13px!important;
	}
	.single-product .related.products ul.products li.product img,
	.single-product .up-sells.products ul.products li.product img{height:160px!important;}
}

/* MOBILE */
@media(max-width:767px){
	body.single-product{background:#fff;}
	.single-product .site-main{padding-top:10px;padding-bottom:30px;}
	.single-product .woocommerce-breadcrumb{margin-bottom:10px!important;padding:0 10px;font-size:10px;}
	.single-product div.product{
		display:flex!important;
		flex-direction:column!important;
		gap:12px!important;
		padding:0 10px!important;
	}
	.single-product div.product>.onsale{top:8px!important;left:18px!important;}
	.single-product div.product .woocommerce-product-gallery{
		order:1;
		position:relative!important;
		top:auto!important;
		width:100%!important;
		margin:0!important;
		padding:7px!important;
		box-shadow:none;
	}
	.single-product div.product .summary{
		order:2;
		width:100%!important;
		padding:13px!important;
		box-shadow:none;
	}
	.single-product div.product .woocommerce-tabs{
		order:3;
		width:100%!important;
		padding:13px!important;
		box-shadow:none;
	}
	.single-product div.product .related.products,
	.single-product div.product .up-sells.products{
		order:4;
		width:100%!important;
	}
	.single-product .woocommerce-product-gallery__image img{
		width:100%!important;
		height:auto!important;
		max-height:390px!important;
	}
	.single-product .flex-control-thumbs{
		grid-template-columns:repeat(5,minmax(0,58px))!important;
		gap:6px!important;
	}
	.single-product .flex-control-thumbs img{width:58px!important;height:58px!important;}
	.single-product div.product .product_title{font-size:17px!important;}
	.single-product .starline-product-support{grid-template-columns:1fr!important;}
	.single-product .related.products ul.products,
	.single-product .up-sells.products ul.products{
		grid-template-columns:repeat(2,minmax(0,1fr))!important;
		gap:9px!important;
	}
	.single-product .related.products ul.products li.product,
	.single-product .up-sells.products ul.products li.product{padding:7px!important;}
	.single-product .related.products ul.products li.product img,
	.single-product .up-sells.products ul.products li.product img{height:130px!important;}
	.single-product .related.products ul.products li.product .woocommerce-loop-product__title,
	.single-product .up-sells.products ul.products li.product .woocommerce-loop-product__title{
		font-size:10.5px!important;
		min-height:32px;
	}
	.single-product .starline-related-product-buttons .button{
		min-height:34px!important;
		padding:6px 5px!important;
		font-size:10px!important;
	}
}

@media(max-width:380px){
	.single-product .woocommerce-product-gallery__image img{max-height:340px!important;}
	.single-product .related.products ul.products,
	.single-product .up-sells.products ul.products{gap:7px!important;}
}

/* LIVE QUANTITY TOTAL */
.starline-total-price-row{
	margin-top:4px;
	padding-top:9px;
	border-top:1px dashed #cbd5e1;
}
.starline-total-price{
	font-size:20px;
	line-height:1.2;
	font-weight:800;
	color:#0f172a;
}
.starline-total-price-row.is-hidden{
	display:none!important;
}
/* Price rows single line */

.starline-single-price-box {
	display: flex !important;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.starline-price-row {
	display: flex !important;
	align-items: center;
	gap: 6px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.starline-price-label {
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
}

.starline-regular-price,
.starline-sale-price,
.starline-total-price {
	font-size: 14px !important;
	font-weight: 700;
	color: #111827;
}

.starline-sale-price {
	color: #dc2626;
}

.starline-total-price {
	color: #2563eb;
}


/* Mobile */
@media(max-width:767px){

	.starline-single-price-box {
		gap: 10px;
	}

	.starline-price-row {
		width:auto !important;
	}

	.starline-price-label {
		font-size:11px;
	}

	.starline-regular-price,
	.starline-sale-price,
	.starline-total-price {
		font-size:13px !important;
	}

}
/* ================================
   PREMIUM SINGLE PRODUCT DESIGN
================================ */


.single-product div.product .summary{

    padding:22px !important;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:12px;

}


/* Product title */

.single-product .product_title{

    font-size:24px !important;
    line-height:1.35 !important;
    font-weight:700 !important;
    color:#111827;

}


/* Price Box */

.starline-single-price-box{

    display:flex !important;
    flex-wrap:wrap;
    align-items:center;
    gap:15px;

    padding:12px 0 !important;
    background:none !important;
    border:none !important;

}


.starline-price-row{

    display:flex !important;
    align-items:center;
    gap:6px;

}


.starline-price-label{

    font-size:13px;
    color:#64748b;

}


.starline-regular-price{

    color:#94a3b8;
    font-size:18px;

}


.starline-sale-price{

    color:#111827;
    font-size:22px !important;
    font-weight:800;

}


/* Product code */

.starline-product-code{

    display:inline-flex;

    background:#3973d1;

    color:white;

    padding:7px 15px;

    border-radius:0;

    font-size:13px;

    position:relative;

}


.starline-product-code:after{

    content:"";

    position:absolute;

    right:-12px;

    top:0;

    border-top:18px solid transparent;

    border-bottom:18px solid transparent;

    border-left:12px solid #3973d1;

}



/* Quantity */

.single-product form.cart{

    background:none !important;
    padding:0 !important;
    border:none !important;

}


.single-product .quantity{

    margin-bottom:15px !important;

}


.single-product .quantity .qty{

    height:40px !important;

    border-radius:0 !important;

    width:55px !important;

}



.single-product .quantity{

    display:flex !important;

}



.single-product .quantity:before{

    content:"−";

    width:40px;

    height:40px;

    display:flex;

    justify-content:center;

    align-items:center;

    border:1px solid #ccc;

}



/* Buttons */


.single-product form.cart{

    display:flex !important;

    flex-wrap:wrap;

    gap:8px;

}



.single-product .single_add_to_cart_button,
.starline-single-order-now{


    width:calc(50% - 4px) !important;

    height:45px !important;

    border-radius:5px !important;

    font-size:15px !important;

}


.single-product .single_add_to_cart_button{

    background:#3973d1 !important;

}


.starline-single-order-now{

    background:#14395c !important;

}


/* Phone / Whatsapp */


.starline-product-support{

    display:flex !important;

    flex-direction:column;

    gap:10px;

}


.starline-support-phone,
.starline-support-whatsapp{


    height:45px;

    justify-content:center;

    border-radius:5px;

    font-size:14px !important;

}


/* Delivery box */

.starline-delivery-box{


    margin-top:12px;

    padding:18px;

    background:#d9f4fb;

    border-radius:5px;

    color:#075985;

    font-size:14px;

    line-height:1.8;

}



/* Gallery */


.single-product .woocommerce-product-gallery{

    border-radius:12px !important;

    overflow:hidden;

}


.single-product .woocommerce-product-gallery__image img{


    height:500px !important;

    object-fit:contain !important;


}


/* thumbnail */


.single-product .flex-control-thumbs img{


    height:75px !important;

    width:75px !important;

    border-radius:6px;

}



/* Mobile */


@media(max-width:767px){


.single-product div.product .summary{

padding:15px !important;

}


.single-product .product_title{

font-size:20px !important;

}


.single-product .single_add_to_cart_button,
.starline-single-order-now{

width:100% !important;

}


.single-product .woocommerce-product-gallery__image img{

height:350px !important;

}



}

/* =========================================================
   FINAL SINGLE PRODUCT OVERRIDES
   Requested product details / responsive fixes
   ========================================================= */

/* ---------------------------------------------------------
   1. RESPONSIVE PRODUCT TITLE
   Font sizes can still be controlled from the Customizer.
   These rules mainly prevent long titles from overflowing.
   --------------------------------------------------------- */
.single-product div.product .product_title{
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    min-height:0 !important;
    margin:0 0 10px !important;
    padding:0 !important;
    line-height:1.32 !important;
    overflow-wrap:anywhere !important;
    word-break:normal !important;
    white-space:normal !important;
    box-sizing:border-box !important;
}

/* ---------------------------------------------------------
   2. REGULAR PRICE + DISCOUNT PRICE
   The PHP enhancement file removes WooCommerce's default
   summary price and prints .starline-single-price-box.
   Keep that custom price box visible.
   --------------------------------------------------------- */
.single-product .starline-single-price-box{
    display:flex !important;
    align-items:center !important;
    flex-wrap:wrap !important;
    gap:8px 18px !important;
    width:100% !important;
    margin:0 0 14px !important;
    padding:0 0 13px !important;
    background:transparent !important;
    border:0 !important;
    border-bottom:1px solid #eef2f7 !important;
    border-radius:0 !important;
    box-sizing:border-box !important;
}

.single-product .starline-price-row{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:6px !important;
    width:auto !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
}

.single-product .starline-price-label{
    flex:0 0 auto !important;
    font-size:12px;
    line-height:1.35;
    font-weight:600;
    color:#64748b;
    white-space:nowrap;
}

.single-product .starline-regular-price{
    flex:0 0 auto;
    line-height:1.25 !important;
    color:#94a3b8;
    white-space:nowrap;
}

.single-product .starline-sale-price{
    flex:0 0 auto;
    line-height:1.25 !important;
    font-weight:800 !important;
    color:#dc2626;
    white-space:nowrap;
}

.single-product .starline-regular-price .woocommerce-Price-amount,
.single-product .starline-sale-price .woocommerce-Price-amount{
    font:inherit !important;
    color:inherit !important;
}

/* Total price is intentionally not shown. */
.single-product .starline-total-price-row,
.single-product .starline-total-price{
    display:none !important;
}

/* Avoid a duplicate WooCommerce summary price if another plugin restores it. */
.single-product div.product .summary > p.price{
    display:none !important;
}

/* Selected variable-product price can still appear below the selectors. */
.single-product .woocommerce-variation-price{
    margin:4px 0 10px !important;
}

.single-product .woocommerce-variation-price .price{
    display:flex !important;
    align-items:center !important;
    flex-wrap:wrap !important;
    gap:8px !important;
    margin:0 !important;
    font-size:17px !important;
    line-height:1.3 !important;
    font-weight:700 !important;
    color:#111827 !important;
}

.single-product .woocommerce-variation-price .price del{
    font-size:13px !important;
    color:#94a3b8 !important;
    opacity:1 !important;
}

.single-product .woocommerce-variation-price .price ins{
    text-decoration:none !important;
    color:#dc2626 !important;
    font-weight:800 !important;
}

/* ---------------------------------------------------------
   3. DESCRIPTION FROM WOOCOMMERCE PRODUCT EDIT PAGE
   Works for native short description and PHP fallback.
   --------------------------------------------------------- */
.single-product .starline-short-details-title{
    margin-top:2px !important;
}

.single-product .woocommerce-product-details__short-description,
.single-product .starline-description-fallback{
    width:100% !important;
    max-width:100% !important;
    margin:0 0 14px !important;
    overflow-wrap:anywhere;
    box-sizing:border-box;
}

.single-product .woocommerce-product-details__short-description p,
.single-product .starline-description-fallback p{
    margin-top:0;
    margin-bottom:8px;
}

.single-product .woocommerce-product-details__short-description p:last-child,
.single-product .starline-description-fallback p:last-child{
    margin-bottom:0;
}

.single-product .woocommerce-product-details__short-description img,
.single-product .starline-description-fallback img{
    max-width:100%;
    height:auto;
}

/* ---------------------------------------------------------
   4. PRODUCT ATTRIBUTES: SIZE / COLOR / BRAND / MATERIAL ETC.
   Non-variation attributes printed by the PHP enhancement.
   --------------------------------------------------------- */
.single-product .starline-single-summary-attributes{
    display:grid;
    gap:0;
    width:100%;
    margin:0 0 14px;
    padding:0;
    border:1px solid #e2e8f0;
    border-radius:8px;
    overflow:hidden;
    box-sizing:border-box;
}

.single-product .starline-summary-attribute-row{
    display:grid;
    grid-template-columns:minmax(90px,120px) minmax(0,1fr);
    align-items:center;
    gap:10px;
    min-width:0;
    padding:9px 11px;
    background:#fff;
    border-bottom:1px solid #eef2f7;
    box-sizing:border-box;
}

.single-product .starline-summary-attribute-row:last-child{
    border-bottom:0;
}

.single-product .starline-summary-attribute-label{
    font-size:12px;
    line-height:1.4;
    font-weight:700;
    color:#334155;
}

.single-product .starline-summary-attribute-value{
    min-width:0;
    font-size:12px;
    line-height:1.5;
    font-weight:500;
    color:#475569;
    overflow-wrap:anywhere;
}

/* WooCommerce variation fields from Product data > Attributes/Variations. */
.single-product table.variations{
    flex:0 0 100% !important;
    width:100% !important;
}

.single-product .variations select{
    width:100% !important;
    max-width:100% !important;
    cursor:pointer;
}

/* ---------------------------------------------------------
   5. QUANTITY + ORDER NOW + ADD TO CART
   Order Now keeps the selected quantity/variation because
   the existing PHP button submits the WooCommerce cart form.
   --------------------------------------------------------- */
.single-product form.cart{
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    gap:8px !important;
    width:100% !important;
    margin:0 !important;
    box-sizing:border-box !important;
}

.single-product form.cart > .quantity{
    flex:0 0 100% !important;
    width:100% !important;
    margin:0 0 4px !important;
}

.single-product form.cart > .starline-single-order-now,
.single-product form.cart > .single_add_to_cart_button{
    flex:1 1 calc(50% - 4px) !important;
    width:calc(50% - 4px) !important;
    min-width:0 !important;
    min-height:45px !important;
    margin:0 !important;
}

/* Variable products place the quantity/buttons inside this wrapper. */
.single-product form.variations_form .single_variation_wrap{
    flex:0 0 100% !important;
    width:100% !important;
}

.single-product form.variations_form .woocommerce-variation-add-to-cart{
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    gap:8px !important;
    width:100% !important;
}

.single-product form.variations_form .woocommerce-variation-add-to-cart .quantity{
    flex:0 0 100% !important;
    width:100% !important;
    margin:0 0 4px !important;
}

.single-product form.variations_form .woocommerce-variation-add-to-cart .starline-single-order-now,
.single-product form.variations_form .woocommerce-variation-add-to-cart .single_add_to_cart_button{
    flex:1 1 calc(50% - 4px) !important;
    width:calc(50% - 4px) !important;
    min-width:0 !important;
    min-height:45px !important;
    margin:0 !important;
}

/* ---------------------------------------------------------
   6. MOBILE NUMBER + WHATSAPP
   Both cards stay neat. Each card's content remains on one line.
   --------------------------------------------------------- */
.single-product .starline-product-support{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    align-items:stretch !important;
    gap:8px !important;
    width:100% !important;
    margin-top:12px !important;
}

.single-product .starline-product-support .starline-support-phone,
.single-product .starline-product-support .starline-support-whatsapp{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:7px !important;
    width:100% !important;
    min-width:0 !important;
    min-height:48px !important;
    height:auto !important;
    padding:8px 10px !important;
    border-radius:8px !important;
    box-sizing:border-box !important;
    overflow:hidden !important;
    text-decoration:none !important;
}

.single-product .starline-support-icon{
    flex:0 0 28px !important;
    width:28px !important;
    height:28px !important;
}

.single-product .starline-support-copy{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:6px !important;
    min-width:0 !important;
    white-space:nowrap !important;
}

.single-product .starline-support-phone small{
    display:inline !important;
    flex:0 0 auto;
    margin:0 !important;
    font-size:9px !important;
    line-height:1.2 !important;
    white-space:nowrap !important;
}

.single-product .starline-support-phone strong{
    display:inline !important;
    flex:0 0 auto;
    margin:0 !important;
    font-size:11px !important;
    line-height:1.2 !important;
    white-space:nowrap !important;
}

.single-product .starline-support-whatsapp{
    font-size:11px !important;
    font-weight:700 !important;
    line-height:1.2 !important;
    white-space:nowrap !important;
}

/* ---------------------------------------------------------
   7. TABLET
   --------------------------------------------------------- */
@media(max-width:991px){
    .single-product div.product .product_title{
        overflow-wrap:anywhere !important;
    }

    .single-product .starline-product-support .starline-support-phone,
    .single-product .starline-product-support .starline-support-whatsapp{
        padding-left:7px !important;
        padding-right:7px !important;
    }

    .single-product .starline-support-copy{
        gap:4px !important;
    }
}

/* ---------------------------------------------------------
   8. MOBILE
   --------------------------------------------------------- */
@media(max-width:767px){
    .single-product div.product .summary{
        min-width:0 !important;
    }

    .single-product div.product .product_title{
        width:100% !important;
        max-width:100% !important;
        line-height:1.35 !important;
        overflow-wrap:anywhere !important;
    }

    .single-product .starline-single-price-box{
        gap:7px 12px !important;
        padding-bottom:11px !important;
    }

    .single-product .starline-price-label{
        font-size:11px !important;
    }

    .single-product .starline-summary-attribute-row{
        grid-template-columns:minmax(78px,95px) minmax(0,1fr);
        gap:8px;
        padding:8px 9px;
    }

    /* Keep Order Now + Add to cart on one row. */
    .single-product form.cart > .starline-single-order-now,
    .single-product form.cart > .single_add_to_cart_button,
    .single-product form.variations_form .woocommerce-variation-add-to-cart .starline-single-order-now,
    .single-product form.variations_form .woocommerce-variation-add-to-cart .single_add_to_cart_button{
        flex:1 1 calc(50% - 4px) !important;
        width:calc(50% - 4px) !important;
        min-width:0 !important;
        font-size:13px !important;
        padding-left:7px !important;
        padding-right:7px !important;
    }

    /* On mobile the support cards stack, but the text inside each stays one line. */
    .single-product .starline-product-support{
        grid-template-columns:1fr !important;
    }

    .single-product .starline-product-support .starline-support-phone,
    .single-product .starline-product-support .starline-support-whatsapp{
        justify-content:center !important;
        min-height:46px !important;
        padding:8px 12px !important;
    }

    .single-product .starline-support-phone small{
        font-size:10px !important;
    }

    .single-product .starline-support-phone strong,
    .single-product .starline-support-whatsapp{
        font-size:12px !important;
    }
}

@media(max-width:380px){
    .single-product .starline-price-row{
        gap:4px !important;
    }

    .single-product .starline-price-label{
        font-size:10px !important;
    }

    .single-product form.cart > .starline-single-order-now,
    .single-product form.cart > .single_add_to_cart_button,
    .single-product form.variations_form .woocommerce-variation-add-to-cart .starline-single-order-now,
    .single-product form.variations_form .woocommerce-variation-add-to-cart .single_add_to_cart_button{
        font-size:12px !important;
        padding-left:5px !important;
        padding-right:5px !important;
    }
}