/**
 * Single product page – scoped styles; header/footer use global theme CSS.
 */

body.andalos-single-product-page #content.site-content {
	max-width: none;
	padding: 0;
	margin: 0;
	background: transparent;
}

body.andalos-single-product-page .sticky.top-8 {
	top: 6rem;
}

body.andalos-single-product-page ::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

body.andalos-single-product-page ::-webkit-scrollbar-track {
	background: #181111;
}

body.andalos-single-product-page ::-webkit-scrollbar-thumb {
	background: #392828;
	border-radius: 4px;
}

body.andalos-single-product-page ::-webkit-scrollbar-thumb:hover {
	background: #543b3b;
}

body.andalos-single-product-page .persian-num {
	font-feature-settings: 'ss01';
	font-variant-numeric: tabular-nums;
}

/* Hide number input spinners */
body.andalos-single-product-page .sp-qty-input::-webkit-outer-spin-button,
body.andalos-single-product-page .sp-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

body.andalos-single-product-page .sp-qty-input {
	-moz-appearance: textfield;
}

/* Tabs */
body.andalos-single-product-page .single-product-tab-panel:not(.active) {
	display: none;
}

/* Variable product */
body.andalos-single-product-page .single-product-variable-form .variations {
	width: 100%;
	margin-bottom: 1rem;
}

body.andalos-single-product-page .single-product-variable-form .variations td {
	display: block;
	padding: 0.25rem 0;
}

body.andalos-single-product-page .single-product-variable-form .variations label {
	color: #fff;
	font-weight: 500;
	margin-bottom: 0.25rem;
	display: block;
}

body.andalos-single-product-page .single-product-variable-form .variations select {
	width: 100%;
	background: #181111;
	border: 1px solid #392828;
	color: #fff;
	border-radius: 0.5rem;
	padding: 0.5rem 0.75rem;
}

body.andalos-single-product-page .single-product-variable-form .woocommerce-variation-price .sp-price-block,
body.andalos-single-product-page .single-product-variable-form .woocommerce-variation-price .price {
	margin-bottom: 1rem;
}

body.andalos-single-product-page .single-product-variable-form .single_add_to_cart_button {
	width: 100%;
	background: #f20d0d;
	color: #fff;
	font-weight: 700;
	font-size: 1.125rem;
	padding: 1rem;
	border-radius: 0.5rem;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

body.andalos-single-product-page .single-product-variable-form .single_add_to_cart_button:hover {
	background: #dc2626;
}

body.andalos-single-product-page .single-product-variable-form .quantity {
	display: flex;
	align-items: center;
	background: #181111;
	border-radius: 0.5rem;
	border: 1px solid #392828;
}

body.andalos-single-product-page .single-product-variable-form .quantity .qty {
	width: 3rem;
	height: 2.5rem;
	background: transparent;
	text-align: center;
	color: #fff;
	border: none;
	box-shadow: none;
	padding: 0;
	font-size: 1.125rem;
}

/* Reviews */
body.andalos-single-product-page #reviews .commentlist,
body.andalos-single-product-page #reviews .comment-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

body.andalos-single-product-page #reviews .commentlist li,
body.andalos-single-product-page #reviews .comment-list li {
	border-bottom: 1px solid #392828;
	padding: 1rem 0;
}

body.andalos-single-product-page #reviews .comment-form input,
body.andalos-single-product-page #reviews .comment-form textarea {
	background: #241a1a;
	border: 1px solid #392828;
	color: #fff;
	border-radius: 0.5rem;
}

body.andalos-single-product-page #reviews .comment-form .form-submit input[type='submit'],
body.andalos-single-product-page #reviews #submit {
	background: #f20d0d;
	color: #fff;
	border: none;
	border-radius: 0.5rem;
	padding: 0.75rem 1.5rem;
	font-weight: 700;
	cursor: pointer;
}

body.andalos-single-product-page #reviews .comment-form .form-submit input[type='submit']:hover,
body.andalos-single-product-page #reviews #submit:hover {
	background: #dc2626;
}

body.andalos-single-product-page .woocommerce-message,
body.andalos-single-product-page .woocommerce-info,
body.andalos-single-product-page .woocommerce-error {
	margin-bottom: 1rem;
}

/* Related products horizontal scroll on small screens */
@media (max-width: 1023px) {
	body.andalos-single-product-page .sp-related-grid {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 1.5rem;
		padding-bottom: 0.5rem;
	}

	body.andalos-single-product-page .sp-related-grid > article {
		flex: 0 0 75%;
		scroll-snap-align: start;
	}
}
