/**
 * Modern Product Template Styles
 * Clean Tailwind integration for product pages
 */

/* Hide scrollbars for clean mockup */
.no-scrollbar::-webkit-scrollbar {
	display: none;
}
.no-scrollbar {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

/* Number input styling */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Brand colors for Tailwind */
:root {
	--brand-orange: #FF5C29;
	--brand-teal: #DDF4EE;
	--brand-blue: #0099cc;
	--brand-dark: #0F172A;
	--brand-light: #F8FAFC;
}

/* Make images larger and better quality */
.aspect-square img {
	object-fit: contain !important;
	max-height: 100%;
}

/* Override WooCommerce default form styles for product page */
.woocommerce div.product form.cart {
	margin: 0;
	padding: 0;
}

/* Style the variations form with Tailwind look */
.woocommerce div.product form.cart .variations {
	margin-bottom: 2rem;
	border: none;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
	display: block;
	border: none;
	padding: 0;
	margin: 0;
	background: transparent;
}

.woocommerce div.product form.cart .variations .label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}

.woocommerce div.product form.cart .variations .label label {
	font-size: 0.875rem;
	font-weight: 700;
	color: #0f172a;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0;
}

/* Variation selects hidden in HTML attribute, not CSS — WC JS must read them */

/* Quantity and Add to Cart row */
.woocommerce div.product form.cart .quantity {
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	padding: 0.75rem 1rem;
	width: 33.333%;
}

.woocommerce div.product form.cart .quantity input[type="number"] {
	width: 3rem;
	background: transparent;
	text-align: center;
	font-weight: 700;
	font-size: 1.125rem;
	color: #0f172a;
	border: none;
	outline: none;
	padding: 0;
	margin: 0 0.5rem;
	-moz-appearance: textfield;
}

/* ORANGE ADD TO CART BUTTON - FORCED */
.woocommerce div.product form.cart button.single_add_to_cart_button,
.woocommerce div.product form.cart button.single_add_to_cart_button.button,
.woocommerce div.product form.cart button.single_add_to_cart_button.alt {
	flex: 1 !important;
	background-color: #FF5C29 !important;
	background: #FF5C29 !important;
	color: white !important;
	font-weight: 700 !important;
	font-size: 1.125rem !important;
	padding: 1rem 1.5rem !important;
	border-radius: 0.75rem !important;
	border: none !important;
	box-shadow: 0 10px 15px -3px rgba(255, 92, 41, 0.25) !important;
	transition: all 0.2s !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.5rem !important;
	text-decoration: none !important;
}

.woocommerce div.product form.cart button.single_add_to_cart_button:hover,
.woocommerce div.product form.cart button.single_add_to_cart_button.button:hover,
.woocommerce div.product form.cart button.single_add_to_cart_button.alt:hover {
	background-color: #e64a19 !important;
	background: #e64a19 !important;
	box-shadow: 0 20px 25px -5px rgba(255, 92, 41, 0.4) !important;
	transform: translateY(-1px);
	color: white !important;
}

.woocommerce div.product form.cart button.single_add_to_cart_button:focus {
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(255, 92, 41, 0.5) !important;
}

.woocommerce div.product form.cart button.single_add_to_cart_button:before {
	content: '';
	display: inline-block;
	width: 1.25rem;
	height: 1.25rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M3 1a1 1 0 000 2h1.22l.305 1.222a.997.997 0 00.01.042l1.358 5.43-.893.892C3.74 11.846 4.632 14 6.414 14H15a1 1 0 000-2H6.414l1-1H14a1 1 0 00.894-.553l3-6A1 1 0 0017 3H6.28l-.31-1.243A1 1 0 005 1H3zM16 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM6.5 18a1.5 1.5 0 100-3 1.5 1.5 0 000 3z'/%3E%3C/svg%3E");
	background-size: contain;
	margin-right: 0.25rem;
}

/* Flex container for quantity + button */
.woocommerce div.product form.cart > div:last-child {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 0.5rem;
}

@media (min-width: 640px) {
	.woocommerce div.product form.cart > div:last-child {
		flex-direction: row;
	}
}

/* Hide default WooCommerce elements we don't want */
.woocommerce div.product .woocommerce-product-rating {
	display: none;
}

.woocommerce div.product .product_meta {
	display: none;
}

/* Breadcrumb styling */
.woocommerce-breadcrumb {
	color: #94a3b8;
	font-size: 0.875rem;
	font-weight: 500;
}

.woocommerce-breadcrumb a {
	color: #94a3b8;
	text-decoration: none;
	transition: color 0.2s;
}

.woocommerce-breadcrumb a:hover {
	color: #FF5C29;
}

/* Reset list styles in accordions */
.prose ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.prose li {
	display: flex;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
	color: #64748b;
	align-items: flex-start;
}

.prose li:before {
	content: '✓';
	color: #FF5C29;
	font-weight: 600;
	flex-shrink: 0;
	margin-top: 0.125rem;
}

/* Price styling */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: #0f172a;
	font-weight: 700;
	font-size: 1.875rem;
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
	opacity: 0.5;
	font-size: 1.5rem;
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
	text-decoration: none;
}

/* ── Shopify-style product page polish ── */

/* Smoother gallery image area */
.mpg-main {
	background: #f8fafc !important;
	border-radius: 20px !important;
}

/* Ensure the image panel is white/light, not a grey box */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
	background: transparent !important;
}

/* Add to Cart button — larger, pill-like on desktop */
.woocommerce div.product form.cart button.single_add_to_cart_button,
.woocommerce div.product form.cart button.single_add_to_cart_button.button,
.woocommerce div.product form.cart button.single_add_to_cart_button.alt,
#mod-atc-btn {
	border-radius: 0.875rem !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	letter-spacing: -0.01em !important;
	padding: 1rem 1.75rem !important;
}

/* Quantity box: match the reference's clean pill style */
.woocommerce div.product form.cart .quantity {
	border-radius: 0.875rem !important;
	background: #f8fafc !important;
	border: 1.5px solid #e2e8f0 !important;
}

/* Qty input spinner removal */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}

/* Color swatch: slightly more refined size */
.mod-color-swatch {
	transition: box-shadow 0.15s, transform 0.12s !important;
}
.mod-color-swatch:hover {
	transform: scale(1.08) !important;
}

/* Size button hover */
.mod-size-btn:hover {
	border-color: #FF5C29 !important;
	color: #FF5C29 !important;
}

/* Divider line thinner */
.mpi-divider {
	border-top-color: #f1f5f9 !important;
	margin: 1rem 0 !important;
}

/* Accordion: flat row style — no card borders */
.mpi-accs {
	border-top: 1px solid #e2e8f0 !important;
	gap: 0 !important;
}
.mpi-acc {
	border: none !important;
	border-bottom: 1px solid #e2e8f0 !important;
	border-radius: 0 !important;
	background: #fff !important;
}
.mpi-acc.is-open {
	background: #fff !important;
}
.mpi-acc-btn {
	padding: 1rem 0 !important;
	font-size: 0.9375rem !important;
	font-weight: 700 !important;
	color: #0a1628 !important;
	letter-spacing: -0.01em !important;
}
.mpi-acc-body {
	padding: 0 0 1.1rem 0 !important;
}

/* Variation price info area - cleaner */
.woocommerce-variation-price {
	font-size: 1rem !important;
	color: #64748b !important;
}

/* Product info column: no extra top gap */
.mpw-grid > div:last-child {
	padding-top: 0 !important;
}

/* Ensure .mpw has a white bg on page so product stands out from rest */
.mpw {
	background: #fff !important;
	padding-bottom: 2rem !important;
	border-bottom: 1px solid #f1f5f9 !important;
}
