/**
 * GMP Theme — WooCommerce dark overrides
 * Lightweight skin over WC's default layout (general / layout / smallscreen).
 */

/* Page wrapper spacing under the fixed header */
.woocommerce-page .site-content,
.woocommerce-page main,
body.woocommerce-page {
	background-color: #121412;
	color: #e2e3df;
}

/* Product archive + single product containers */
.woocommerce,
.woocommerce-page {
	padding: 1.5rem 1.5rem 4rem;
	max-width: 1536px;
	margin: 0 auto;
}

/* Force 4-column product grid (Tailwind's CDN preflight wipes WC's float rules) */
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	list-style: none;
	padding: 0;
	margin: 1.5rem 0 2rem;
}

@media (min-width: 768px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

@media (min-width: 1024px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
	background: #1a1c1a;
	padding: 1rem;
	border: 1px solid #1e201e;
	transition: border-color 0.2s;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
	border-color: #c3f400;
}

.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin-bottom: 0.75rem;
}

/* Single product two-column layout */
.woocommerce div.product {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.woocommerce div.product {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 3rem;
	}
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
	float: none !important;
	width: auto !important;
}

.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .upsells {
	grid-column: 1 / -1;
}

/* Titles + prices */
.woocommerce .product_title,
.woocommerce-page .product_title {
	color: #ffffff;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: -0.02em;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce .price {
	color: #c3f400 !important;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
}

/* Loop product cards — subtle dark */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
	color: #e2e3df;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
	color: #c3f400 !important;
}

/* Buttons */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce .single_add_to_cart_button {
	background-color: #c3f400 !important;
	color: #161e00 !important;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 2px;
	padding: 0.75rem 1.25rem;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .single_add_to_cart_button:hover {
	background-color: #abd600 !important;
	color: #161e00 !important;
}

/* Forms */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.woocommerce-page form .form-row textarea {
	background-color: #1e201e;
	color: #e2e3df;
	border: 1px solid #444933;
	border-radius: 2px;
	padding: 0.75rem;
}

/* Tabs + meta */
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background: #1e201e;
	border-color: #444933;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	background: #292a28;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	color: #c4c9ac;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: #c3f400;
}

/* Notices */
.woocommerce-message,
.woocommerce-info {
	background-color: #1e201e;
	color: #e2e3df;
	border-top-color: #c3f400;
}

.woocommerce-error {
	background-color: #93000a;
	color: #ffdad6;
	border-top-color: #ffb4ab;
}

/* Cart + checkout tables */
.woocommerce table.shop_table {
	background: #1a1c1a;
	border: 1px solid #292a28;
	color: #e2e3df;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border-top-color: #292a28;
}

/* Result count + ordering */
.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count {
	color: #c4c9ac;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Breadcrumb */
.woocommerce-breadcrumb {
	color: #c4c9ac;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 1.5rem;
}

.woocommerce-breadcrumb a {
	color: #c3f400;
}
