/* ================================================================
   Single Product + Reviews — scoped stylesheet
   Loaded only on is_product()
   ================================================================ */

/* ---- Product gallery ---- */
/* ---- Related products ---- */
.sc-related-section {
	margin-top: 3rem;
	padding-top: 2.5rem;
	border-top: 1px solid #f3f4f6;
}

.sc-related-section .sc-related-header { margin-bottom: 0; }

/* Suppress WooCommerce's own ul.products styles inside our grid */
.sc-related-section ul.products,
.sc-related-section .products { all: unset; display: contents; }

body.sc-single-product .woocommerce-product-gallery {
	background: #f9fafb;
	border: 1px solid #f3f4f6;
	border-radius: 1rem;
	overflow: hidden;
	margin-bottom: 0;
}

body.sc-single-product .woocommerce-product-gallery__wrapper {
	background: #f9fafb;
}

/* FlexSlider viewport — constrain height */
body.sc-single-product .woocommerce-product-gallery .flex-viewport {
	margin-bottom: 0 !important;
}

body.sc-single-product .woocommerce-product-gallery__image img {
	width: 100% !important;
	height: auto !important;
	max-height: 480px;
	object-fit: contain;
	display: block;
	background: #f9fafb;
}

/* Clear ALL float-based widths Storefront + WooCommerce inject */
body.sc-single-product div.product,
body.sc-single-product div.product .woocommerce-product-gallery,
body.sc-single-product div.product .summary,
body.sc-single-product div.product .images {
	width: 100% !important;
	float: none !important;
	margin-bottom: 0 !important;
	margin-top: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Thumbnail strip */
body.sc-single-product .flex-control-thumbs {
	display: flex;
	gap: 8px;
	padding: 0.75rem 1rem;
	background: #fff;
	border-top: 1px solid #f3f4f6;
	flex-wrap: wrap;
}

body.sc-single-product .flex-control-thumbs li {
	list-style: none;
	margin: 0;
	flex: 0 0 calc(25% - 6px);
}

body.sc-single-product .flex-control-thumbs li img {
	border-radius: 0.5rem;
	border: 2px solid transparent;
	cursor: pointer;
	width: 100%;
	transition: border-color 0.15s;
}

body.sc-single-product .flex-control-thumbs li img.flex-active,
body.sc-single-product .flex-control-thumbs li img:hover {
	border-color: #dc4a26;
}

/* Images open PhotoSwipe on click — show pointer as affordance */
body.sc-single-product .woocommerce-product-gallery__image {
	cursor: zoom-in;
}

body.sc-single-product span.onsale {
	top: 12px;
	left: 12px;
	background: #dc4a26;
	border-radius: 6px;
	min-height: auto;
	min-width: auto;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 4px 10px;
	line-height: 1;
}

/* Featured image — prevent GPU compositing blur from overflow:hidden + border-radius */
body.sc-single-product .sc-featured-image img {
	image-rendering: auto;
	transform: translateZ(0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

/* ---- Single product price ---- */
.sc-single-price p.price,
.sc-single-price span.price,
.woocommerce-variation-price span.price {
	font-size: 1.75rem !important;
	font-weight: 800 !important;
	color: #111827 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	line-height: 1.1 !important;
	display: flex !important;
	align-items: baseline;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.sc-single-price p.price del,
.sc-single-price span.price del,
.woocommerce-variation-price span.price del {
	font-size: 1.1rem !important;
	font-weight: 400 !important;
	color: #9ca3af !important;
	text-decoration: line-through !important;
	vertical-align: baseline;
}

.sc-single-price p.price ins,
.sc-single-price span.price ins,
.woocommerce-variation-price span.price ins {
	text-decoration: none !important;
	font-weight: 800 !important;
	color: #111827 !important;
	vertical-align: baseline;
}

/* Hide screen-reader-text spans from affecting flex layout */
.woocommerce-variation-price span.price .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0,0,0,0) !important;
	white-space: nowrap !important;
}

/* ---- Add to cart ---- */
body.sc-single-product .sc-add-to-cart form.cart {
	margin: 0 !important;
	padding: 0 !important;
}

/* quantity hidden — digital products don't need it */
body.sc-single-product .sc-add-to-cart .quantity {
	display: none !important;
}

body.sc-single-product .sc-add-to-cart .single_add_to_cart_button,
body.sc-single-product .sc-add-to-cart button.single_add_to_cart_button {
	display: block !important;
	width: 100% !important;
	background: #dc4a26 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 0.75rem !important;
	padding: 0.875rem 1.5rem !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	cursor: pointer !important;
	transition: background-color 0.15s !important;
	box-shadow: none !important;
}

body.sc-single-product .sc-add-to-cart .single_add_to_cart_button:hover {
	background: #c03d1c !important;
}

/* Keep button fully opaque even when variation not yet chosen */
body.sc-single-product .sc-add-to-cart .single_add_to_cart_button.disabled,
body.sc-single-product .sc-add-to-cart .single_add_to_cart_button:disabled {
	opacity: 1 !important;
	background: #e8896e !important;
	cursor: default !important;
}

/* ---- Variation form ---- */

/* Reset table layout — display as block stack */
body.sc-single-product .variations,
body.sc-single-product .variations tbody,
body.sc-single-product .variations tr {
	display: block !important;
	width: 100% !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.sc-single-product .variations {
	margin-bottom: 0.875rem !important;
}

body.sc-single-product .variations tr {
	margin-bottom: 1rem !important;
	position: relative !important;
}

body.sc-single-product .variations th.label,
body.sc-single-product .variations td {
	display: block !important;
	width: 100% !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
	text-align: left !important;
}

body.sc-single-product .variations th.label {
	margin-bottom: 0.7rem !important;
}

body.sc-single-product .variations label {
	font-size: 0.7rem;
	font-weight: 700;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	display: block;
}

/* Variation select dropdown */
body.sc-single-product .variations select {
	width: 100% !important;
	padding: 0.6rem 2rem 0.6rem 0.875rem !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 0.625rem !important;
	font-size: 0.9rem !important;
	font-family: inherit !important;
	color: #111827 !important;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.75rem center !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	outline: none !important;
	cursor: pointer !important;
	transition: border-color 0.15s, box-shadow 0.15s !important;
}

body.sc-single-product .variations select:focus {
	border-color: #dc4a26 !important;
	box-shadow: 0 0 0 3px rgba(220, 74, 38, 0.12) !important;
}

/* "Clear" link — absolutely positioned next to the label, no layout space */
body.sc-single-product .reset_variations {
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 0.2rem !important;
	font-size: 0.7rem !important;
	font-weight: 500 !important;
	color: #9ca3af !important;
	text-decoration: none !important;
	transition: color 0.15s !important;
	line-height: 1 !important;
	padding: 0.1rem 0 !important;
}

body.sc-single-product .reset_variations:hover {
	color: #dc4a26 !important;
}

/* Variation price — replaces the range price when a variation is chosen */
body.sc-single-product .woocommerce-variation-price {
	margin-top: 0.625rem;
	margin-bottom: 1rem;
}

body.sc-single-product .woocommerce-variation-price .price {
	font-size: 1.75rem !important;
	font-weight: 800 !important;
	color: #111827 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
}

/* Variation availability */
body.sc-single-product .woocommerce-variation-availability {
	font-size: 0.8rem;
	color: #6b7280;
	margin-bottom: 0.375rem;
}

/* Hide quantity everywhere in the purchase panel */
body.sc-single-product .woocommerce-variation-add-to-cart .quantity {
	display: none !important;
}

/* Add-to-cart wrapper for variable products */
body.sc-single-product .woocommerce-variation-add-to-cart {
	margin-top: 0;
}

/* ---- WooCommerce Product Add-Ons ---- */

body.sc-single-product .wc-pao-addons-container {
	border-top: 1px solid #f3f4f6;
	padding-top: 0.875rem;
	margin-top: 0;
	margin-bottom: 0;
}

body.sc-single-product .wc-pao-addon-container {
	margin-bottom: 0.5rem;
}

/* Section heading label */
body.sc-single-product label.wc-pao-addon-name {
	display: block !important;
	font-size: 0.7rem !important;
	font-weight: 700 !important;
	color: #6b7280 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.07em !important;
	margin-bottom: 0.5rem !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
	cursor: default !important;
}

/* Wrapper — flex column of item divs */
body.sc-single-product .wc-pao-addon-wrap {
	display: flex !important;
	flex-direction: column !important;
	gap: 0.375rem !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Each item is a div like .wc-pao-addon-12-0-0 */
body.sc-single-product .wc-pao-addon-wrap > div {
	display: flex !important;
	align-items: flex-start !important;
	gap: 0.5rem !important;
	padding: 0.5rem 0.625rem !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 0.5rem !important;
	background: #fff !important;
	cursor: pointer !important;
	transition: border-color 0.15s, background 0.15s !important;
	margin: 0 !important;
}

body.sc-single-product .wc-pao-addon-wrap > div:hover {
	border-color: #d1d5db !important;
	background: #fafafa !important;
}

body.sc-single-product .wc-pao-addon-wrap > div:has(input:checked) {
	border-color: #dc4a26 !important;
	background: #fff9f7 !important;
}

/* Checkbox/radio input */
body.sc-single-product .wc-pao-addon-wrap input[type="checkbox"],
body.sc-single-product .wc-pao-addon-wrap input[type="radio"] {
	width: 0.9rem !important;
	height: 0.9rem !important;
	min-width: 0.9rem !important;
	flex-shrink: 0 !important;
	accent-color: #dc4a26 !important;
	margin: 0 !important;
	cursor: pointer !important;
}

/* Label text (sibling to input, not wrapper) */
body.sc-single-product .wc-pao-addon-wrap label {
	font-size: 0.82rem !important;
	font-weight: 500 !important;
	color: #374151 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	line-height: 1.4 !important;
	cursor: pointer !important;
	display: inline !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
}

/* Price inside label e.g. (+₹60.00) */
body.sc-single-product .wc-pao-addon-wrap .wc-pao-addon-price {
	color: #6b7280 !important;
	font-weight: 600 !important;
}

/* ---- Product Add-Ons totals summary block ---- */

body.sc-single-product #product-addons-total {
	display: none;
	margin-top: 0.625rem !important;
	border: 1px solid #f3f4f6 !important;
	border-radius: 0.625rem !important;
	overflow: hidden !important;
	background: #f9fafb !important;
	margin-bottom: 1.5rem !important;
}

body.sc-single-product #product-addons-total.sc-pao-visible {
	display: block;
}

body.sc-single-product .product-addon-totals ul {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Shared row style — targets li, and orphaned divs (broken PAO markup) */
body.sc-single-product .product-addon-totals li:not(.wc-pao-subtotal-line),
body.sc-single-product .product-addon-totals ul > div {
	display: grid !important;
	grid-template-columns: 1fr auto !important;
	align-items: baseline !important;
	gap: 0.5rem !important;
	padding: 0.4375rem 0.75rem !important;
	border-bottom: 1px solid #f3f4f6 !important;
}

/* Left col */
body.sc-single-product .product-addon-totals .wc-pao-col1 {
	font-size: 0.8rem !important;
	color: #374151 !important;
	line-height: 1.4 !important;
}

body.sc-single-product .product-addon-totals .wc-pao-col1 strong {
	font-weight: 600 !important;
	color: #111827 !important;
}

/* Hide "Add Extended Support - " prefix, show only the value */
body.sc-single-product .product-addon-totals .wc-pao-col1 .wc-pao-addon-name {
	display: none !important;
}

/* The dash separator */
body.sc-single-product .product-addon-totals .wc-pao-col1 strong > :not(.wc-pao-addon-value) {
	display: none !important;
}

body.sc-single-product .product-addon-totals .wc-pao-col1 .wc-pao-addon-value {
	font-size: 0.8rem !important;
	font-weight: 500 !important;
	color: #6b7280 !important;
}

/* Right col */
body.sc-single-product .product-addon-totals .wc-pao-col2 {
	font-size: 0.8rem !important;
	font-weight: 600 !important;
	color: #111827 !important;
	white-space: nowrap !important;
	text-align: right !important;
}

/* Subtotal row */
body.sc-single-product .product-addon-totals .wc-pao-subtotal-line {
	display: block !important;
	background: #fff !important;
	border-bottom: none !important;
	padding: 0 !important;
}

body.sc-single-product .product-addon-totals .wc-pao-subtotal-line p.price {
	display: flex !important;
	align-items: baseline !important;
	justify-content: space-between !important;
	margin: 0 !important;
	padding: 0.5rem 0.75rem !important;
	font-size: 0.875rem !important;
	font-weight: 700 !important;
	color: #111827 !important;
	/* border-top: 1px solid #f3f4f6 !important; */
}

body.sc-single-product .product-addon-totals .wc-pao-subtotal-line .amount {
	font-size: 1rem !important;
	font-weight: 800 !important;
	color: #111827 !important;
}

/* ---- Tabs: override Storefront's float-column layout ---- */
body.sc-single-product .woocommerce-tabs {
	overflow: hidden !important;
	padding: 0 !important;
	clear: both;
	background: #fff;
	border: 1px solid #f3f4f6;
	border-radius: 1rem;
}

/* Kill floats and percentage widths */
body.sc-single-product .woocommerce-tabs ul.tabs,
body.sc-single-product .woocommerce-tabs .panel {
	float: none !important;
	width: 100% !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
}

/* Horizontal tab nav */
body.sc-single-product .woocommerce-tabs ul.tabs {
	display: flex !important;
	padding: 0 !important;
	margin: 0 !important;
	list-style: none !important;
	background: #f9fafb !important;
	border-top: none !important;
	border-bottom: 1px solid #f3f4f6 !important;
	border-radius: 1rem 1rem 0 0;
}

body.sc-single-product .woocommerce-tabs ul.tabs::before,
body.sc-single-product .woocommerce-tabs ul.tabs::after,
body.sc-single-product .woocommerce-tabs ul.tabs li::before,
body.sc-single-product .woocommerce-tabs ul.tabs li::after {
	display: none !important;
}

body.sc-single-product .woocommerce-tabs ul.tabs li {
	display: block !important;
	margin: 0 !important;
	border: none !important;
	position: static !important;
}

body.sc-single-product .woocommerce-tabs ul.tabs li a {
	display: block !important;
	padding: 0.875rem 1.375rem !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	color: #6b7280 !important;
	text-decoration: none !important;
	border: none !important;
	border-bottom: 2px solid transparent !important;
	background: transparent !important;
	transition: color 0.15s, border-color 0.15s;
	white-space: nowrap;
}

body.sc-single-product .woocommerce-tabs ul.tabs li.active a {
	color: #dc4a26 !important;
	border-bottom-color: #dc4a26 !important;
	background: #fff !important;
}

body.sc-single-product .woocommerce-tabs ul.tabs li a:hover {
	color: #dc4a26 !important;
}

/* Panel — do NOT set display here; WooCommerce JS controls show/hide */
body.sc-single-product .woocommerce-tabs .panel {
	padding: 1.75rem 1.5rem !important;
	margin: 0 !important;
	margin-bottom: 0 !important;
}

body.sc-single-product .woocommerce-tabs .panel h2:first-of-type {
	font-size: 1rem !important;
	font-weight: 700;
	color: #111827;
	margin-bottom: 1rem;
}

body.sc-single-product .woocommerce-tabs .panel h3,
body.sc-single-product .woocommerce-tabs .panel h4 {
	font-size: 0.95rem;
	font-weight: 700;
	color: #111827;
	margin-top: 1.25rem;
	margin-bottom: 0.5rem;
}

body.sc-single-product .woocommerce-tabs .panel p,
body.sc-single-product .woocommerce-tabs .panel li {
	font-size: 0.9rem;
	color: #4b5563;
	line-height: 1.8;
}

/* ---- Related products ---- */
body.sc-single-product .related.products,
body.sc-single-product .up-sells {
	margin-top: 2.5rem;
}

body.sc-single-product .related h2,
body.sc-single-product .up-sells h2 {
	font-size: 1.05rem;
	font-weight: 700;
	color: #111827;
	margin-bottom: 1.25rem;
}

body.sc-single-product .related ul.products,
body.sc-single-product .up-sells ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 1.25rem !important;
}

body.sc-single-product .related ul.products li.product,
body.sc-single-product .up-sells ul.products li.product {
	background: #fff;
	border: 1px solid #f3f4f6;
	border-radius: 1rem;
	overflow: hidden;
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
	transition: box-shadow 0.2s, border-color 0.2s;
}

body.sc-single-product .related ul.products li.product:hover,
body.sc-single-product .up-sells ul.products li.product:hover {
	border-color: #e5e7eb;
	box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
}

body.sc-single-product .related ul.products li.product a img,
body.sc-single-product .up-sells ul.products li.product a img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	display: block;
}

body.sc-single-product .related ul.products li.product .woocommerce-loop-product__title,
body.sc-single-product .up-sells ul.products li.product .woocommerce-loop-product__title {
	font-size: 0.875rem;
	font-weight: 600;
	color: #111827;
	padding: 0.75rem 1rem 0.25rem;
	margin: 0;
}

body.sc-single-product .related ul.products li.product .price,
body.sc-single-product .up-sells ul.products li.product .price {
	font-size: 0.9rem;
	font-weight: 700;
	color: #111827;
	padding: 0 1rem 0.75rem;
	margin: 0;
}

body.sc-single-product .related ul.products li.product .button,
body.sc-single-product .up-sells ul.products li.product .button {
	display: block;
	margin: 0 1rem 1rem;
	text-align: center;
	background: #dc4a26;
	color: #fff;
	border-radius: 0.5rem;
	padding: 0.5rem;
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s;
}

body.sc-single-product .related ul.products li.product .button:hover,
body.sc-single-product .up-sells ul.products li.product .button:hover {
	background: #c03d1c;
}

/* Hide product meta (SKU, cats) in summary */
body.sc-single-product .product_meta {
	display: none;
}

body.sc-single-product .woocommerce-product-details__short-description {
	display: none;
}

/* Hide rating from summary (shown separately) */
body.sc-single-product .woocommerce-product-rating {
	display: none;
}

/* ================================================================
   Reviews tab
   ================================================================ */

/* Hide redundant h2 — the tab label is sufficient */
body.sc-single-product .woocommerce-Reviews-title {
	display: none;
}

/* "No reviews yet" — replace WC's blue notice with a subtle hint */
body.sc-single-product .woocommerce-noreviews {
	background: #f9fafb !important;
	border: 1px solid #f3f4f6 !important;
	color: #6b7280 !important;
	font-size: 0.875rem !important;
	border-radius: 0.75rem !important;
	padding: 0.875rem 1.125rem !important;
	margin-bottom: 1.75rem !important;
}
body.sc-single-product .woocommerce-noreviews::before {
	display: none !important;
}

/* Existing review cards */
body.sc-single-product #comments ol.commentlist {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}
body.sc-single-product #comments ol.commentlist li {
	background: #f9fafb;
	border: 1px solid #f3f4f6;
	border-radius: 0.75rem;
	padding: 1.25rem 1.5rem;
	margin-bottom: 0.75rem;
}
body.sc-single-product #comments ol.commentlist li .meta {
	margin-bottom: 0.5rem;
}
body.sc-single-product #comments ol.commentlist li .woocommerce-review__author {
	font-size: 0.875rem;
	font-weight: 600;
	color: #111827;
}
body.sc-single-product #comments ol.commentlist li .woocommerce-review__dash,
body.sc-single-product #comments ol.commentlist li .woocommerce-review__published-date {
	font-size: 0.8rem;
	color: #9ca3af;
}
body.sc-single-product #comments ol.commentlist li .description p {
	font-size: 0.875rem;
	color: #4b5563;
	line-height: 1.75;
	margin: 0;
}

/* Form: "Be the first to review" heading */
body.sc-single-product .comment-reply-title {
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
	color: #111827;
	margin-bottom: 1.25rem;
	line-height: 1.4;
}
body.sc-single-product .comment-reply-title small { display: none; }

/* Email note */
body.sc-single-product p.comment-notes {
	font-size: 0.8rem;
	color: #9ca3af;
	margin-bottom: 1.25rem;
}

/* Field labels */
body.sc-single-product .comment-form-rating label,
body.sc-single-product .comment-form-comment label,
body.sc-single-product .comment-form-author label,
body.sc-single-product .comment-form-email label {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	color: #374151;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 0.5rem;
}

/* Star rating */
body.sc-single-product .comment-form-rating { margin-bottom: 1.25rem; }
body.sc-single-product #rating { display: none !important; }

body.sc-single-product p.stars { margin: 0; line-height: 1; }
body.sc-single-product p.stars a {
	font-size: 1.5rem !important;
	text-decoration: none !important;
}
body.sc-single-product p.stars a::before,
body.sc-single-product p.stars a:hover ~ a::before {
	color: #d1d5db !important;
}
body.sc-single-product p.stars:hover a::before {
	color: #f59e0b !important;
}
body.sc-single-product p.stars a:hover ~ a::before {
	color: #d1d5db !important;
}
body.sc-single-product p.stars.selected a.active::before,
body.sc-single-product p.stars.selected a:not(.active):not(.active ~ a)::before {
	color: #f59e0b !important;
}
body.sc-single-product p.stars.selected a.active ~ a::before {
	color: #d1d5db !important;
}

/* Textarea */
body.sc-single-product .comment-form-comment { margin-bottom: 1.25rem; }
body.sc-single-product .comment-form-comment textarea {
	width: 100%;
	min-height: 120px;
	padding: 0.75rem 1rem;
	border: 1px solid #e5e7eb;
	border-radius: 0.625rem;
	font-size: 0.9rem;
	color: #111827;
	background: #fff;
	resize: vertical;
	font-family: inherit;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}
body.sc-single-product .comment-form-comment textarea:focus {
	border-color: #dc4a26;
	box-shadow: 0 0 0 3px rgba(220, 74, 38, 0.1);
}

/* Name / email inputs */
body.sc-single-product .comment-form-author,
body.sc-single-product .comment-form-email { margin-bottom: 1rem; }
body.sc-single-product .comment-form-author input,
body.sc-single-product .comment-form-email input {
	width: 100%;
	padding: 0.625rem 0.875rem;
	border: 1px solid #e5e7eb;
	border-radius: 0.625rem;
	font-size: 0.9rem;
	color: #111827;
	background: #fff;
	outline: none;
	font-family: inherit;
	transition: border-color 0.15s, box-shadow 0.15s;
}
body.sc-single-product .comment-form-author input:focus,
body.sc-single-product .comment-form-email input:focus {
	border-color: #dc4a26;
	box-shadow: 0 0 0 3px rgba(220, 74, 38, 0.1);
}

/* Submit button */
body.sc-single-product #respond .form-submit { margin: 0; }
body.sc-single-product #respond #submit {
	display: inline-flex !important;
	align-items: center;
	background: #dc4a26 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 0.625rem !important;
	padding: 0.7rem 1.5rem !important;
	font-size: 0.9rem !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	cursor: pointer !important;
	transition: background 0.15s !important;
	box-shadow: none !important;
}
body.sc-single-product #respond #submit:hover {
	background: #c03d1c !important;
}

/* ---- Responsive ---- */
@media (max-width: 1023px) {
	body.sc-single-product .related ul.products,
	body.sc-single-product .up-sells ul.products {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 640px) {
	body.sc-single-product .related ul.products,
	body.sc-single-product .up-sells ul.products {
		grid-template-columns: 1fr !important;
	}

	body.sc-single-product .woocommerce-tabs .panel {
		padding: 1.25rem !important;
	}
}



.wc-tab p{
	margin-bottom: 1rem !important;
}
.wc-tab .wp-block-list{
	padding-left: 1rem !important;
	position: relative !important;
}
.wc-tab .wp-block-list li{
	margin-bottom: 0.5rem !important;
}
.wc-tab .wp-block-list li:last-child{
	margin-bottom: 0 !important;
}
.wc-tab .wp-block-list li::before{
	content: "•" !important;
	position: absolute !important;
	left: 0 !important;
}
.wc-tab pre.wp-block-preformatted{
	overflow: visible;
    overflow-y: hidden;
    padding: 0 0 0 4px !important;
	background-size: 38px 38px !important;
    border: 1px solid #d4d4d4 !important;
    display: block;
    line-height: 19px !important;
	background-color: whitesmoke !important;
	background-image: linear-gradient(whitesmoke 50%, #e6e6e6 50%) !important;
	color: #333333 !important;
	font-size: 11px !important;
    font-family:  Monaco, "Courier New", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", monospace !important;
}
.wc-tab .mb-0, .mb-0{
	margin-bottom: 0 !important;
}
.wc-tab .wp-block-table{
	margin: 1rem 0;
}
.wc-tab .wp-block-table{
	overflow: hidden;
	border: 1px solid #e5e7eb !important;
	border-radius: 0.75rem;
}
.wc-tab .wp-block-table table{
	border-collapse: collapse;
	width: 100%;
	font-size: 0.875rem;
	border: none !important;
	margin: 0;
}
.wc-tab .wp-block-table thead th,
.wc-tab .wp-block-table tbody td{
	border: none !important;
	border-bottom: 1px solid #f3f4f6 !important;
	border-right: 1px solid #f3f4f6 !important;
	padding: 0.75rem 1rem !important;
	vertical-align: top;
}
.wc-tab .wp-block-table thead th{
	background: #f9fafb;
	font-weight: 600;
	color: #111827;
	text-align: left;
	border-bottom-color: #e5e7eb !important;
}
.wc-tab .wp-block-table thead th:last-child,
.wc-tab .wp-block-table tbody td:last-child{
	border-right: none !important;
}
.wc-tab .wp-block-table tbody td{
	color: #374151;
}
.wc-tab .wp-block-table tbody tr:last-child td{
	border-bottom: none !important;
}
.wc-pao-addons-container .wc-pao-fieldset{
	margin-bottom: 1.5rem !important;
}

.wc-pao-addons-container .wc-pao-legend{
	padding-left: 0;
}

/* ---- PAO subtotal panel on single product ---- */
body.sc-single-product div.product-addon-totals{
	border: 0;
    margin: 5px 0 0px 0;
    padding: 0px 0 0 0;
}
body.sc-single-product div.product-addon-totals .wc-pao-subtotal-line{
	border-top: 0;
	margin-top: 0;
}

/* ================================================================
   Floating Add-to-Cart bar
   Shown when the main Add-to-Cart scrolls out of view
   ================================================================ */
.sc-sticky-buy {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 80;
	background: #fff;
	border-top: 1px solid #e5e7eb;
	box-shadow: 0 -8px 24px rgba(16, 24, 40, 0.08);
	transform: translateY(100%);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.sc-sticky-buy.is-visible {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

.sc-sticky-buy__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: 1130px;
	margin: 0 auto;
	padding: 0.75rem 1.25rem;
}

.sc-sticky-buy__thumb {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	border-radius: 0.5rem;
	overflow: hidden;
	background: #f9fafb;
	border: 1px solid #f3f4f6;
}

.sc-sticky-buy__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sc-sticky-buy__info {
	flex: 1;
	min-width: 0;
}

.sc-sticky-buy__title {
	font-size: 0.9rem;
	font-weight: 600;
	color: #111827;
	margin: 0;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sc-sticky-buy__price {
	font-size: 0.875rem;
	color: #6b7280;
	margin: 0.1rem 0 0;
	line-height: 1.3;
}

.sc-sticky-buy__price .amount,
.sc-sticky-buy__price ins .amount {
	color: #111827;
	font-weight: 600;
	text-decoration: none;
}

.sc-sticky-buy__price del {
	color: #9ca3af;
	margin-right: 0.35rem;
}

.sc-sticky-buy__cta {
	flex-shrink: 0;
	background: #dc4a26 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 0.625rem !important;
	padding: 0.65rem 1.25rem !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	font-family: inherit;
	cursor: pointer;
	box-shadow: none !important;
	text-shadow: none !important;
	outline: none;
	transition: background 0.15s !important;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	white-space: nowrap;
	line-height: 1.2;
}

.sc-sticky-buy__cta:hover,
.sc-sticky-buy__cta:focus,
.sc-sticky-buy__cta:active {
	background: #c03d1c !important;
	color: #fff !important;
	border: none !important;
	box-shadow: none !important;
}

.sc-sticky-buy__cta:focus-visible {
	outline: 2px solid rgba(220, 74, 38, 0.45);
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.sc-sticky-buy__inner {
		padding: 0.6rem 0.9rem;
		gap: 0.75rem;
	}
	.sc-sticky-buy__thumb {
		width: 40px;
		height: 40px;
	}
	.sc-sticky-buy__title {
		font-size: 0.85rem;
	}
	.sc-sticky-buy__price {
		font-size: 0.8rem;
	}
	.sc-sticky-buy__cta {
		padding: 0.55rem 1rem;
		font-size: 0.85rem;
	}
}

/* Pulse highlight on the real Add-to-Cart when the floating CTA is clicked */
@keyframes sc-sticky-buy-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(220, 74, 38, 0); }
	50%      { box-shadow: 0 0 0 8px rgba(220, 74, 38, 0.22); }
}

.sc-add-to-cart.is-pulsing button.single_add_to_cart_button,
.single_add_to_cart_button.is-pulsing {
	animation: sc-sticky-buy-pulse 0.8s ease-in-out 2;
}
