/**
 * WooCommerce dark premium overrides — wins over default WC light styles.
 * Loaded site-wide at high priority.
 *
 * Tokens:
 *   page bg: #111111
 *   panels:  #141414 / #1e1e1e
 *   text:    #e0e0e0
 *   accent:  #e11d2e
 */

/* ========== Global page surfaces ========== */
/* Page canvas uses shared --mgp-page-fade (site-chrome.css). Wrappers stay transparent
   so the side red fade shows; panels/cards keep solid dark fills. */
body.woocommerce,
body.woocommerce-page,
body.woocommerce-cart,
body.woocommerce-checkout,
body.woocommerce-account,
body.single-product,
body.mgp-wc-endpoint,
body.mgp-theme.woocommerce,
html body {
	background: var(--mgp-page-fade, #121212) !important;
	background-attachment: fixed !important;
	background-color: #121212 !important;
	color: #e0e0e0 !important;
}

body.woocommerce #page,
body.woocommerce-page #page,
body.woocommerce #content,
body.woocommerce-page #content,
body.woocommerce .site-content,
body.woocommerce-page .site-content,
body.woocommerce .ast-container,
body.woocommerce-page .ast-container,
body.woocommerce .site-main,
body.woocommerce-page .site-main,
.mgp-wc-shell,
.mgp-single-product-shell {
	background: transparent !important;
	color: #e0e0e0 !important;
}

/* Kill white Astra/WC wrappers */
body.woocommerce .site-content > .ast-container,
body.woocommerce-page .site-content > .ast-container,
body.woocommerce #primary,
body.woocommerce-page #primary,
body.woocommerce .content-area,
body.woocommerce-page .content-area {
	background: transparent !important;
	color: #e0e0e0 !important;
	max-width: 100% !important;
}

/* ========== Cart / Checkout / Account panel ========== */
.mgp-wc-shell {
	min-height: 55vh;
	background: #111111 !important;
	color: #e0e0e0 !important;
}

.mgp-wc-shell__main {
	max-width: 1100px;
	margin: 0 auto;
	padding: 1.25rem 1rem 2.5rem;
}

.mgp-wc-shell__title {
	margin: 0 0 1rem !important;
	font-size: 1.6rem !important;
	font-weight: 800 !important;
	color: #ffffff !important;
}

.mgp-wc-panel,
.mgp-wc-panel.woocommerce,
.woocommerce .mgp-wc-panel {
	background: #141414 !important;
	border: 1px solid #2e2e2e !important;
	border-radius: 10px !important;
	padding: 1.15rem 1.1rem 1.35rem !important;
	color: #e0e0e0 !important;
	box-shadow: none !important;
}

/* Cart table */
.woocommerce table.shop_table,
.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table,
.mgp-wc-panel table.shop_table {
	background: #1e1e1e !important;
	border: 1px solid #2e2e2e !important;
	border-collapse: collapse !important;
	color: #e0e0e0 !important;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.mgp-wc-panel table.shop_table th,
.mgp-wc-panel table.shop_table td {
	background: #1e1e1e !important;
	border-color: #2e2e2e !important;
	color: #e0e0e0 !important;
	padding: 0.75rem !important;
}

.woocommerce table.shop_table thead th {
	background: #181818 !important;
	color: #ffffff !important;
	font-weight: 800 !important;
}

.woocommerce table.shop_table a {
	color: #e8e8e8 !important;
}

.woocommerce table.shop_table .product-name a:hover {
	color: #ffffff !important;
}

.woocommerce table.shop_table .amount,
.woocommerce .cart_totals .amount,
.woocommerce-cart .cart-subtotal .amount,
.woocommerce-cart .order-total .amount {
	color: #ffffff !important;
	font-weight: 800 !important;
}

/* Cart totals box */
.woocommerce .cart_totals,
.woocommerce-cart .cart-collaterals .cart_totals {
	background: #1e1e1e !important;
	border: 1px solid #2e2e2e !important;
	border-radius: 10px !important;
	padding: 1rem !important;
	color: #e0e0e0 !important;
	float: none !important;
	width: 100% !important;
	max-width: 420px;
	margin-left: auto;
}

.woocommerce .cart_totals h2 {
	color: #ffffff !important;
	font-size: 1.1rem !important;
}

.woocommerce .cart_totals table {
	background: transparent !important;
	border: 0 !important;
}

.woocommerce .cart_totals th,
.woocommerce .cart_totals td {
	background: transparent !important;
	border-color: #2e2e2e !important;
	color: #e0e0e0 !important;
}

/* Quantity inputs */
.woocommerce .quantity .qty,
.woocommerce input.qty {
	background: #141414 !important;
	border: 1px solid #3a3a3a !important;
	color: #e0e0e0 !important;
	border-radius: 6px !important;
}

/* Buttons — dark base + red primary */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce .button,
.mgp-wc-panel .button,
.mgp-wc-panel button,
.woocommerce-cart .button,
.woocommerce-checkout .button {
	background: #2b2b2b !important;
	border: 1px solid #3d3d3d !important;
	color: #e0e0e0 !important;
	border-radius: 6px !important;
	font-weight: 800 !important;
	text-shadow: none !important;
	box-shadow: none !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.mgp-wc-panel .button:hover {
	background: #333333 !important;
	border-color: #e11d2e !important;
	color: #ffffff !important;
}

/* Primary / checkout / place order */
.woocommerce a.checkout-button,
.woocommerce a.button.checkout-button,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #place_order,
.woocommerce .single_add_to_cart_button,
.woocommerce button.single_add_to_cart_button,
.mgp-wc-panel a.checkout-button,
.mgp-wc-panel .checkout-button {
	background: #e11d2e !important;
	border-color: #e11d2e !important;
	color: #ffffff !important;
}

.woocommerce a.checkout-button:hover,
.woocommerce button.button.alt:hover,
.woocommerce #place_order:hover,
.woocommerce .single_add_to_cart_button:hover {
	background: #c41828 !important;
	border-color: #c41828 !important;
	color: #ffffff !important;
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
	background: #1e1e1e !important;
	color: #e0e0e0 !important;
	border-top: 3px solid #e11d2e !important;
	box-shadow: none !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: #e11d2e !important;
}

/* Forms / checkout fields */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce form input[type="text"],
.woocommerce form input[type="email"],
.woocommerce form input[type="tel"],
.woocommerce form input[type="password"],
.woocommerce form input[type="number"],
.woocommerce form textarea,
.woocommerce form select,
.woocommerce-input-wrapper .select2-selection,
.select2-container--default .select2-selection--single {
	background: #1e1e1e !important;
	border: 1px solid #3a3a3a !important;
	color: #e0e0e0 !important;
	border-radius: 6px !important;
	box-shadow: none !important;
}

.woocommerce form .form-row label,
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3,
#order_review_heading,
.woocommerce-checkout h3 {
	color: #ffffff !important;
}

.select2-dropdown {
	background: #1e1e1e !important;
	border-color: #3a3a3a !important;
	color: #e0e0e0 !important;
}

.select2-results__option {
	background: #1e1e1e !important;
	color: #e0e0e0 !important;
}

.select2-results__option--highlighted {
	background: #2b2b2b !important;
	color: #fff !important;
}

/* Checkout order review */
.woocommerce-checkout-review-order,
#order_review {
	background: #1e1e1e !important;
	border: 1px solid #2e2e2e !important;
	border-radius: 10px !important;
	padding: 1rem !important;
	color: #e0e0e0 !important;
}

.woocommerce-checkout #payment {
	background: #181818 !important;
	border-radius: 8px !important;
	border: 1px solid #2e2e2e !important;
	color: #e0e0e0 !important;
}

.woocommerce-checkout #payment div.payment_box {
	background: #1e1e1e !important;
	color: #e0e0e0 !important;
}

.woocommerce-checkout #payment ul.payment_methods {
	border-color: #2e2e2e !important;
}

/* My Account */
.woocommerce-account .woocommerce-MyAccount-navigation {
	background: #141414 !important;
	border: 1px solid #2e2e2e !important;
	border-radius: 10px !important;
	padding: 0.75rem !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: inline-block !important;
	padding: 0.5rem 0.8rem !important;
	background: #1e1e1e !important;
	border: 1px solid #3a3a3a !important;
	border-radius: 6px !important;
	color: #e0e0e0 !important;
	text-decoration: none !important;
	font-size: 0.8rem !important;
	font-weight: 700 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
	border-color: #e11d2e !important;
	color: #ffffff !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
	background: #141414 !important;
	border: 1px solid #2e2e2e !important;
	border-radius: 10px !important;
	padding: 1.15rem !important;
	color: #e0e0e0 !important;
	margin-top: 1rem;
}

.woocommerce-account .woocommerce-MyAccount-content a {
	color: #e8e8e8 !important;
}

/* Login form */
.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.lost_reset_password {
	background: #1e1e1e !important;
	border: 1px solid #2e2e2e !important;
	border-radius: 10px !important;
	padding: 1.15rem !important;
	color: #e0e0e0 !important;
}

/* ========== Single product ========== */
body.single-product,
body.single-product #page,
body.single-product .site-content,
body.single-product .ast-container {
	background: #111111 !important;
	color: #e0e0e0 !important;
}

.mgp-single-product,
.mgp-single-product-shell {
	background: #111111 !important;
	color: #e0e0e0 !important;
}

.mgp-single-product .product,
.mgp-single-product .mgp-single-product-inner,
body.single-product div.product {
	background: #141414 !important;
	border: 1px solid #2e2e2e !important;
	border-radius: 12px !important;
	color: #e0e0e0 !important;
}

body.single-product .product_title,
.mgp-single-product .product_title {
	color: #ffffff !important;
}

body.single-product p.price,
body.single-product p.price .amount,
body.single-product span.price,
body.single-product span.price .amount,
.mgp-single-product .price,
.mgp-single-product .price .amount {
	color: #e0e0e0 !important;
	font-weight: 800 !important;
}

body.single-product .woocommerce-product-gallery,
.mgp-single-product .woocommerce-product-gallery {
	background: #1a1a1a !important;
	border-radius: 8px !important;
}

/* ------------------------------------------------------------------
   Product image empty state — replace gray “IMAGE COMING SOON”
   ------------------------------------------------------------------ */
.mgs-card__img--placeholder,
.mgp-no-photo,
.woocommerce-placeholder.mgp-no-photo,
.woocommerce-product-gallery__image--placeholder .mgp-no-photo,
.mgp-product-gallery--empty .mgp-no-photo,
.mgp-single-no-photo {
	display: flex !important;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	width: 100%;
	min-height: 160px;
	background:
		radial-gradient(ellipse at 50% 40%, rgba(225, 29, 46, 0.08) 0%, transparent 55%),
		linear-gradient(160deg, #1c1c1c 0%, #121212 100%) !important;
	border: 1px solid #2a2a2a;
	border-radius: 6px;
	color: #6a6a6a !important;
	box-sizing: border-box;
}

.mgp-product-gallery--empty {
	background: #141414 !important;
	border-radius: 8px;
	padding: 0.5rem;
}

.mgp-product-gallery__main img,
.mgp-product-gallery .wp-post-image,
.mgp-product-gallery .woocommerce-product-gallery__image img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: contain !important;
	background: #141414 !important;
	display: block;
}

/* FlexSlider thumbs (WC controlNav from data-thumb) + legacy custom class */
.mgp-product-gallery__thumbs,
.woocommerce-product-gallery .flex-control-thumbs,
.mgp-product-gallery .flex-control-nav.flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none !important;
	margin: 0.75rem 0 0 !important;
	padding: 0 !important;
}

.mgp-product-gallery__thumbs li,
.woocommerce-product-gallery .flex-control-thumbs li,
.mgp-product-gallery .flex-control-thumbs li {
	margin: 0 !important;
	padding: 0 !important;
	width: 64px;
	float: none !important;
	list-style: none !important;
}

.mgp-product-gallery__thumbs img,
.woocommerce-product-gallery .flex-control-thumbs img,
.mgp-product-gallery .flex-control-thumbs img {
	width: 64px !important;
	height: 64px !important;
	object-fit: contain !important;
	background: #1a1a1a !important;
	border: 1px solid #2e2e2e;
	border-radius: 4px;
	cursor: pointer;
	opacity: 0.72;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}

.woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.mgp-product-gallery .flex-control-thumbs li img.flex-active,
.woocommerce-product-gallery .flex-control-thumbs li img:hover,
.mgp-product-gallery .flex-control-thumbs li img:hover {
	opacity: 1;
	border-color: #c45c26;
}

/* PhotoSwipe chrome stays dark on dark storefront */
.pswp__bg {
	background: #0a0a0a !important;
}
.pswp__ui--fit .pswp__top-bar,
.pswp__ui--fit .pswp__caption {
	background-color: rgba(0, 0, 0, 0.55) !important;
}

.mgp-no-photo__label {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #7a7a7a !important;
	opacity: 0.85;
	padding: 0.5rem 0.75rem;
	border: 1px solid #333;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.35);
}

/* Kill native WC placeholder art everywhere (src contains placeholder/coming) */
.woocommerce-product-gallery__image--placeholder img,
.woocommerce-product-gallery img[src*="placeholder"],
.woocommerce-product-gallery img[src*="coming-soon"],
.woocommerce-product-gallery img[src*="coming_soon"],
.woocommerce-product-gallery img[src*="woocommerce-placeholder"],
ul.products li.product img[src*="woocommerce-placeholder"],
ul.products li.product img[src*="placeholder"],
ul.products li.product img[src*="coming-soon"],
.mgs-card__media img[src*="woocommerce-placeholder"],
.mgs-card__media img[src*="placeholder"],
.mgs-card__media img[src*="coming-soon"],
.woocommerce-product-gallery img[src^="data:image/gif"],
body.mgp-theme img.woocommerce-placeholder,
body.mgp-theme img.wp-post-image[src*="placeholder"] {
	opacity: 0 !important;
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
}

/* Gallery frame still shows dark surface when placeholder is suppressed */
.woocommerce-product-gallery__image--placeholder {
	background: #141414 !important;
	min-height: 280px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.woocommerce-product-gallery__image--placeholder::after {
	content: "Photo pending";
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #7a7a7a;
	padding: 0.5rem 0.85rem;
	border: 1px solid #333;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.35);
	z-index: 1;
}

/* Real product photos: dark contain framing */
.mgs-card__media img.mgs-card__img,
body.mgp-theme ul.products li.product img.mgs-card__img,
body.mgp-theme .woocommerce-product-gallery__image img,
body.mgp-theme .mgp-product-gallery img {
	background: #141414 !important;
	object-fit: contain !important;
}

body.single-product .woocommerce-tabs,
.mgp-single-product .woocommerce-tabs {
	background: #141414 !important;
	border: 1px solid #2e2e2e !important;
	border-radius: 10px !important;
	color: #e0e0e0 !important;
	padding: 1rem !important;
	margin-top: 1.25rem !important;
}

body.single-product .woocommerce-tabs ul.tabs {
	background: transparent !important;
	padding: 0 !important;
	margin: 0 0 1rem !important;
	border-bottom: 1px solid #2e2e2e !important;
}

body.single-product .woocommerce-tabs ul.tabs li {
	background: #1e1e1e !important;
	border: 1px solid #3a3a3a !important;
	border-radius: 6px 6px 0 0 !important;
	margin: 0 0.35rem 0 0 !important;
}

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

body.single-product .woocommerce-tabs ul.tabs li.active {
	background: #2b2b2b !important;
	border-color: #e11d2e !important;
}

body.single-product .woocommerce-Tabs-panel {
	background: transparent !important;
	color: #e0e0e0 !important;
}

body.single-product table.shop_attributes,
body.single-product .woocommerce-product-attributes {
	background: #1e1e1e !important;
	border-color: #2e2e2e !important;
	color: #e0e0e0 !important;
}

body.single-product table.shop_attributes th,
body.single-product table.shop_attributes td,
body.single-product .woocommerce-product-attributes th,
body.single-product .woocommerce-product-attributes td {
	background: #1e1e1e !important;
	border-color: #2e2e2e !important;
	color: #e0e0e0 !important;
}

body.single-product .related.products,
body.single-product .upsells.products {
	background: transparent !important;
	margin-top: 2rem !important;
	width: 100% !important;
	max-width: 100% !important;
	overflow-x: hidden !important;
	box-sizing: border-box !important;
}

body.single-product .related > h2,
body.single-product .upsells > h2 {
	color: #ffffff !important;
}

body.single-product .related ul.products li.product,
body.single-product .upsells ul.products li.product {
	background: #1e1e1e !important;
	border: 1px solid #2e2e2e !important;
	border-radius: 8px !important;
	color: #e0e0e0 !important;
	overflow: hidden !important;
	min-width: 0 !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

body.single-product .related .mgs-card__sku,
body.single-product .upsells .mgs-card__sku {
	display: none !important;
}

body.single-product .related .mgp-save,
body.single-product .upsells .mgp-save,
body.woocommerce ul.products li.product .mgp-save {
	color: #6ddea0 !important;
	border-color: rgba(109, 222, 160, 0.35) !important;
	background: rgba(109, 222, 160, 0.12) !important;
	white-space: nowrap !important;
}

body.single-product .related .mgp-save__full,
body.single-product .upsells .mgp-save__full,
body.woocommerce ul.products li.product .mgp-save__full {
	display: none !important;
}

body.single-product .related .mgp-save__short,
body.single-product .upsells .mgp-save__short,
body.woocommerce ul.products li.product .mgp-save__short {
	display: inline !important;
}

/* ========== Shop archive product cards ========== */
body.woocommerce ul.products li.product,
body.post-type-archive-product ul.products li.product,
.mgp-shop-page ul.products li.product {
	background: #1e1e1e !important;
	border: 1px solid #2e2e2e !important;
	border-radius: 8px !important;
	color: #e0e0e0 !important;
	box-shadow: none !important;
}

body.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.woocommerce ul.products li.product .price,
body.woocommerce ul.products li.product .price .amount,
body.woocommerce ul.products li.product a {
	color: #e0e0e0 !important;
}

/* Empty cart */
.woocommerce-cart .cart-empty,
.cart-empty.woocommerce-info {
	background: #1e1e1e !important;
	color: #e0e0e0 !important;
}

.return-to-shop .button {
	background: #e11d2e !important;
	border-color: #e11d2e !important;
	color: #fff !important;
}

/* Coupon */
.woocommerce-cart table.cart td.actions .coupon .input-text {
	background: #141414 !important;
	border: 1px solid #3a3a3a !important;
	color: #e0e0e0 !important;
}

/* Breadcrumbs */
.woocommerce-breadcrumb,
.woocommerce .woocommerce-breadcrumb a {
	color: #9a9a9a !important;
}

/* Force remove white box-shadows from Astra */
body.woocommerce .ast-woocommerce-container,
body.woocommerce-page .ast-woocommerce-container {
	background: transparent !important;
	box-shadow: none !important;
	padding: 0 !important;
}

/* Astra light surfaces that still leak white */
body.mgp-theme .ast-separate-container .ast-article-single,
body.mgp-theme .ast-separate-container .ast-article-post,
body.mgp-theme .ast-article-single,
body.mgp-theme article.hentry,
body.mgp-theme .entry-content,
body.mgp-theme .woocommerce-page .entry-content,
body.woocommerce-cart .entry-content,
body.woocommerce-checkout .entry-content,
body.woocommerce-account .entry-content,
body.single-product .entry-content {
	background: transparent !important;
	color: #e0e0e0 !important;
	box-shadow: none !important;
	border: 0 !important;
}

/* WC Blocks cart/checkout (if ever switched on) */
.wc-block-cart,
.wc-block-checkout,
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
	background: #141414 !important;
	color: #e0e0e0 !important;
}

.wc-block-components-sidebar,
.wc-block-cart__sidebar,
.wc-block-components-totals-wrapper {
	background: #1e1e1e !important;
	color: #e0e0e0 !important;
	border-color: #2e2e2e !important;
}

/* Shop filters panel dark lock */
.mgp-shop-sidebar,
.mgp-filters,
.mgp-filters details,
.widget_layered_nav,
.woocommerce-widget-layered-nav {
	background: #141414 !important;
	color: #e0e0e0 !important;
	border-color: #2e2e2e !important;
}

.mgp-shop-sidebar a,
.mgp-filters a {
	color: #e0e0e0 !important;
}

/* Ordering dropdown on shop */
.woocommerce-ordering select,
.woocommerce .woocommerce-ordering select {
	background: #1e1e1e !important;
	border: 1px solid #3a3a3a !important;
	color: #e0e0e0 !important;
}

/* Result count */
.woocommerce-result-count {
	color: #cfcfcf !important;
}
