/* Mr Everything Pool Table — Astra site-wide brand redesign.
   Black canvas, white text, orange links, logo green purchase actions.
   Maintains light product-image mats to show darker items clearly. */
:root{--mep-bg:#070909;--mep-surface:#111717;--mep-raised:#171d1c;--mep-line:#34413d;--mep-fg:#f7f8f7;--mep-muted:#b9c5be;--mep-orange:#ff941f;--mep-green:#16843a;--mep-green-hover:#106a2c}
html, body, body.ast-plain-container, .site, .site-content, .site-main, #content, #primary, #secondary, .ast-container, .ast-woocommerce-container {background-color:var(--mep-bg);color:var(--mep-fg)}
body, body.woocommerce, body.woocommerce-page, p, li, dd, dt, .entry-content, .entry-summary, .woocommerce, .woocommerce-page{color:var(--mep-fg)}
h1,h2,h3,h4,h5,h6,.entry-title,.page-title,.product_title,.woocommerce-loop-product__title,.site-title,.woocommerce div.product .product_title,.woocommerce-tabs h2{color:var(--mep-fg)!important}
a, .entry-content a, .woocommerce a:not(.button):not(.add_to_cart_button), .woocommerce .woocommerce-breadcrumb a, .woocommerce div.product .product_meta a{color:var(--mep-orange)}
a:hover,.entry-content a:hover,.woocommerce a:not(.button):not(.add_to_cart_button):hover{color:#ffb962}
/* Header and navigation, including pre-existing homepage-specific rules */
#masthead, #ast-desktop-header, #ast-mobile-header, #masthead .ast-primary-header-bar, #masthead .ast-primary-header-bar .site-primary-header-wrap, #masthead .main-header-bar, #masthead .ast-builder-grid-row-container, #masthead .ast-builder-grid-row, #masthead .ast-mobile-header-wrap, #masthead .ast-mobile-header-content, #masthead .ast-above-header-wrap, #masthead .ast-below-header-wrap{background:#080c0b!important;color:var(--mep-fg)!important;border-color:#2c3a34!important}
#masthead .main-header-menu .menu-link, #masthead .main-header-menu a, #masthead .ast-header-navigation-arrow, #masthead .main-header-menu .dropdown-menu-toggle, #masthead .main-header-menu .ast-icon, #masthead .ast-button-wrap .menu-toggle, #ast-desktop-header #ast-hf-menu-1>.menu-item>.menu-link, body.ast-desktop #ast-desktop-header #ast-hf-menu-1>.menu-item>.menu-link, #masthead .site-title a{color:#f6f8f5!important}
#masthead .main-header-menu .menu-link:hover,#masthead .main-header-menu .current-menu-item>.menu-link,#ast-desktop-header #ast-hf-menu-1>.menu-item>.menu-link:hover{color:var(--mep-orange)!important}
#masthead .main-header-menu .sub-menu,#masthead .main-header-menu .sub-menu .menu-link,#masthead .ast-mobile-popup-inner{background:var(--mep-surface)!important;color:var(--mep-fg)!important;border-color:var(--mep-line)!important}
#masthead .main-header-menu .sub-menu .menu-link:hover{color:var(--mep-orange)!important;background:#1d2622!important}
/* Page structure, search, sidebar, breadcrumbs, notices */
.ast-separate-container .ast-article-single,.ast-separate-container .ast-article-post,.ast-separate-container .ast-woocommerce-container,.ast-separate-container .ast-archive-description,.entry-content .wp-block-group:not(.has-background){background:transparent;color:var(--mep-fg)}
.ast-archive-description,.woocommerce-breadcrumb,.woocommerce .woocommerce-breadcrumb,.woocommerce .woocommerce-result-count,.woocommerce div.product .product_meta,.woocommerce div.product .stock,.woocommerce-review-link{color:var(--mep-muted)!important}
.woocommerce .woocommerce-breadcrumb a{color:var(--mep-orange)!important}
hr,.woocommerce div.product .woocommerce-tabs ul.tabs,.woocommerce div.product .product_meta, .widget{border-color:var(--mep-line)!important}
select,input[type=text],input[type=email],input[type=search],input[type=tel],input[type=number],input[type=password],textarea,.woocommerce select,.woocommerce .quantity input.qty,.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce .select2-container--default .select2-selection--single{background:#1a2220!important;color:#fff!important;border:1px solid #526158!important;border-radius:7px!important}
select option{background:#17201b;color:#fff}
input::placeholder,textarea::placeholder{color:#c0c9c3!important}
input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:2px solid var(--mep-orange);outline-offset:2px}
/* All regular buttons: deep logo green, disabled stays obvious */
button,.button,input[type=submit],.wp-block-button__link,.ast-button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,.woocommerce div.product form.cart .button,.woocommerce ul.products li.product .button,body.single-product .woocommerce div.product .single_add_to_cart_button{background:var(--mep-green)!important;border-color:var(--mep-green)!important;color:#fff!important;border-radius:8px!important;font-weight:750!important}
button:hover,.button:hover,input[type=submit]:hover,.wp-block-button__link:hover,.ast-button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,.woocommerce div.product form.cart .button:hover{background:var(--mep-green-hover)!important;border-color:var(--mep-green-hover)!important;color:#fff!important}
button:disabled,.button:disabled,.woocommerce button.button:disabled,.woocommerce button.button:disabled[disabled]{opacity:.55!important;cursor:not-allowed}
/* WooCommerce catalog product cards */
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{background:var(--mep-surface)!important;border:1px solid var(--mep-line)!important;box-shadow:0 8px 22px rgba(0,0,0,.15)!important}
.woocommerce ul.products li.product .woocommerce-loop-product__title,.woocommerce ul.products li.product h2,.woocommerce ul.products li.product .ast-woo-product-category{color:#fff!important}
.woocommerce ul.products li.product .price,.woocommerce ul.products li.product .price span,.woocommerce div.product p.price,.woocommerce div.product span.price{color:#75d993!important}
.woocommerce ul.products li.product a img{background:#fff!important;border-radius:6px!important}
.woocommerce .woocommerce-ordering select{background:var(--mep-raised)!important;color:#fff!important}
.woocommerce span.onsale,.ast-onsale-card{background:var(--mep-green)!important;color:#fff!important}
/* WooCommerce single product panels and variation fields */
body.single-product .woocommerce div.product,body.single-product .ast-article-single,body.single-product .woocommerce div.product .summary,body.single-product .woocommerce div.product .woocommerce-tabs,body.single-product .woocommerce div.product .woocommerce-tabs .panel{background:var(--mep-surface)!important;color:#f6f8f6!important}
body.single-product .woocommerce div.product .woocommerce-product-gallery{background:#fff;border-radius:12px;padding:12px}
body.single-product .woocommerce div.product .woocommerce-product-gallery img{background:#fff!important}
.woocommerce div.product form.cart .variations label,.woocommerce div.product .woocommerce-tabs ul.tabs li a,.woocommerce div.product .woocommerce-tabs .panel,.woocommerce div.product .woocommerce-product-details__short-description{color:var(--mep-fg)!important}
.woocommerce div.product .woocommerce-tabs ul.tabs li,.woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:var(--mep-raised)!important;border-color:var(--mep-line)!important}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--mep-orange)!important}
.woocommerce div.product form.cart .variations select{color:#fff!important;background:#1a2220!important}
/* Cart and checkout: dark surfaces, readable totals and form labels */
.woocommerce table.shop_table,.woocommerce table.shop_table td,.woocommerce table.shop_table th,.woocommerce-cart .cart-collaterals .cart_totals,.woocommerce-checkout #order_review,.woocommerce-checkout .woocommerce-checkout-review-order-table,.woocommerce-checkout .woocommerce-billing-fields,.woocommerce-checkout .woocommerce-shipping-fields,.woocommerce-checkout .woocommerce-additional-fields,.woocommerce-checkout #payment,.woocommerce-checkout #payment div.payment_box{background:var(--mep-surface)!important;color:#fff!important;border-color:var(--mep-line)!important}
.woocommerce-checkout #payment div.payment_box:before{border-bottom-color:var(--mep-surface)!important}
.woocommerce form .form-row label,.woocommerce-checkout h3,.woocommerce-cart .cart_totals h2,.woocommerce table.shop_table th{color:#fff!important}
.woocommerce .woocommerce-message,.woocommerce .woocommerce-info,.woocommerce .woocommerce-error{background:#1d2823!important;color:#fff!important;border-top-color:var(--mep-green)!important}
.woocommerce .woocommerce-message a,.woocommerce .woocommerce-info a{color:var(--mep-orange)!important}
/* Footer and widget blocks */
#colophon,.site-footer,.ast-footer-overlay,.site-primary-footer-wrap,.site-below-footer-wrap,.site-above-footer-wrap,.footer-widget-area{background:#080c0b!important;color:#fff!important;border-color:#2c3a34!important}
#colophon a,.site-footer a{color:var(--mep-orange)!important}
#colophon p,#colophon li,.site-footer p,.site-footer li,.site-footer h2,.site-footer h3{color:#fff!important}
/* Trust badges: actual WooCommerce HTML, no fragile ::after generated text */
.mep-product-trust{display:block;clear:both;padding:16px 18px;margin:22px 0 26px;background:#0c1511;border:1px solid #305840;border-radius:12px}
.mep-product-trust__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 12px}
.mep-product-trust__item{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;line-height:1.4;color:#f7faf7}
.mep-product-trust__icon{font-size:21px;line-height:1;flex-shrink:0}
/* Remove previously saved but unused pseudo content, in case it becomes active */
body.single-product .woocommerce div.product[class*="product_cat-custom-pool-table-felt"] form.cart::after,body.single-product .woocommerce div.product[class*="product_cat-animal-wildlife-custom-felt"] form.cart::after,body.single-product .woocommerce div.product[class*="product_cat-design-your-own-felt"] form.cart::after,body.single-product .woocommerce div.product[class*="product_cat-sports-team-custom-felt"] form.cart::after,body.single-product .woocommerce div.product[class*="product_cat-business-logo-custom-felt"] form.cart::after{content:none!important;display:none!important}
@media(max-width:767px){.mep-product-trust__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 10px}.mep-product-trust{padding:14px 12px}.mep-product-trust__item{font-size:11px}.woocommerce ul.products li.product a img{padding:7px!important}}

/* v1.0.1 – Force legible WHITE Astra navigation on black header, site-wide. */
body #masthead #ast-desktop-header .ast-primary-header-bar #ast-hf-menu-1 > li.menu-item > a.menu-link,
body.ast-desktop #masthead #ast-desktop-header .ast-primary-header-bar #ast-hf-menu-1 > li.menu-item > a.menu-link,
body.home.ast-desktop #masthead #ast-desktop-header .ast-primary-header-bar #ast-hf-menu-1 > li.menu-item > a.menu-link,
body #masthead #ast-desktop-header .main-header-menu > li.menu-item > a,
body #masthead #ast-desktop-header .main-header-menu > li.menu-item > .menu-link,
body #masthead .main-header-menu > li.menu-item > a.menu-link,
body #masthead .main-header-menu > li.menu-item > .menu-link,
body #masthead .main-header-menu .sub-menu li.menu-item > a.menu-link,
body #masthead .main-header-menu .sub-menu li.menu-item > a,
body #masthead #ast-mobile-header .main-header-menu li.menu-item > a.menu-link,
body #masthead #ast-mobile-header .main-header-menu li.menu-item > a,
body #masthead .ast-mobile-popup-content .menu-item > a,
body #masthead .ast-mobile-popup-content .menu-item > .menu-link,
body #masthead .ast-button-wrap .menu-toggle,
body #masthead .ast-button-wrap .menu-toggle .ast-mobile-svg,
body #masthead .main-header-menu .dropdown-menu-toggle,
body #masthead .main-header-menu .dropdown-menu-toggle .ast-icon {
  color:#fff !important;
  fill:#fff !important;
  -webkit-text-fill-color:#fff !important;
  opacity:1 !important;
}
body #masthead #ast-desktop-header .main-header-menu a:hover,
body #masthead #ast-desktop-header .main-header-menu a:focus-visible,
body #masthead #ast-desktop-header .main-header-menu .current-menu-item > a,
body #masthead .main-header-menu .sub-menu a:hover,
body #masthead #ast-mobile-header .main-header-menu a:hover {
  color:#ff8b2c !important;
  -webkit-text-fill-color:#ff8b2c !important;
}
body #masthead .main-header-menu .sub-menu,
body #masthead #ast-mobile-header .ast-mobile-header-content,
body #masthead .ast-mobile-popup-inner {background:#111916!important;}

/* MEP white storefront — surface and text overrides. */
@layer mepLight {
:root {--mep-bg:#fff!important;--mep-surface:#fff!important;--mep-raised:#fff!important;--mep-fg:#111!important;--mep-muted:#454545!important;--mep-line:#d4d8d5!important;color-scheme:light}
html,body,#page,#content,#primary,#secondary,main,.site,.site-content,.ast-container,.ast-article-single,.ast-article-post,.ast-archive-description,.ast-woocommerce-container,.woocommerce-cart .cart_totals,.woocommerce-checkout #payment,.woocommerce-checkout .payment_box,.woocommerce-checkout #order_review,.woocommerce table.shop_table :is(th,td),.wc-block-components-totals-wrapper,.wc-block-components-sidebar,.wp-block-woocommerce-checkout,.wp-block-woocommerce-cart,.woocommerce-account .woocommerce-MyAccount-content,.woocommerce-cart-form,.woocommerce-tabs,.woocommerce-Tabs-panel,.woocommerce .summary,.woocommerce ul.products li.product,.woocommerce .woocommerce-info,.woocommerce .woocommerce-message,.woocommerce .woocommerce-error,.woocommerce .woocommerce-ordering select {background-color:white!important;color:#111!important}
#masthead,#ast-desktop-header,#ast-mobile-header,#masthead :is(.ast-primary-header-bar,.site-primary-header-wrap,.main-header-bar,.ast-builder-grid-row-container,.ast-builder-grid-row,.ast-mobile-header-wrap,.ast-mobile-header-content,.main-header-bar-navigation,.main-navigation,.ast-builder-menu-mobile,.main-header-menu,.sub-menu,.menu-item,.menu-link),.ast-mobile-popup-inner,.ast-mobile-popup-content,.ast-mobile-popup-content :is(nav,ul,li,.menu-link),#colophon,#mep-shopify-footer,.mep-blog-index,.mep-blog-index .wp-block-post,.mep-product-trust,.mep-stb-policy-card,.mep-felt-shell,.mep-felt-card,.mep-felt-product,.mep-rebuilt-home,.mep-rebuilt-home :is(.wp-block-group,.mep-review-card,.mep-category-card,.mep-perk-card),.woocommerce-tabs ul.tabs li {background-color:white!important;color:#111!important;border-color:#d4d8d5!important}
#masthead .menu-link:not(:hover):not(:focus-visible),.ast-mobile-popup-content .menu-link:not(:hover),#masthead a.mep-mobile-cart,#masthead .mep-cart-quantity,#masthead .dropdown-menu-toggle,#masthead .menu-link .ast-icon,#masthead .ast-header-navigation-arrow {color:#111!important;-webkit-text-fill-color:currentColor!important;fill:currentColor!important}
#masthead button,.ast-mobile-popup-drawer button {color:white!important;-webkit-text-fill-color:white!important}
#masthead .menu-toggle svg,#masthead .ast-menu-toggle svg,.ast-mobile-popup-drawer button svg {fill:currentColor!important}
#masthead a:hover,.ast-mobile-popup-content .menu-link:hover {-webkit-text-fill-color:currentColor!important}
#mep-shopify-footer :is(h2,p,strong),.mep-product-trust__item,.mep-stb-checkout-label,.woocommerce :is(label,legend,.price,.amount,.woocommerce-loop-product__title,.ast-woo-product-category,.product_meta,.woocommerce-product-details__short-description),.woocommerce-tabs :is(p,li,th,td,h2,h3),.woocommerce :is(.cart_totals,#order_review) :is(th,td,h2,h3,label),.wc-block-components-totals-item,.wc-block-components-formatted-money-amount,.mep-rebuilt-home :is(h2,h3,p,.price,.amount),.mep-felt-shell :is(h1,h2,p,label,legend,small,.mep-felt-hint,.mep-felt-note) {color:#111!important;-webkit-text-fill-color:currentColor!important}
#mep-shopify-footer a:not(:hover):not(:focus-visible) {color:var(--mep-orange,#ff941f)!important}
body :is(input:not([type]),input[type=text],input[type=email],input[type=tel],input[type=url],input[type=search],input[type=password],input[type=number],input[type=file],textarea,select,option,.select2-selection,.select2-dropdown) {background-color:white!important;color:#111!important;-webkit-text-fill-color:currentColor!important;border-color:#747d76!important}
body :is(input,textarea)::placeholder {color:#565e59!important;opacity:1}
.woocommerce :is(.woocommerce-product-gallery,.flex-viewport,.woocommerce-product-gallery__wrapper,.woocommerce-product-gallery__image,.flex-control-thumbs),.woocommerce-product-gallery :is(img,.woocommerce-product-gallery__image>a),.woocommerce ul.products li.product img,.mep-category-card figure,.mep-category-card img,.wc-block-components-product-image img,body.single-product :is(div.product,.product .images,.product .images figure,.product .images li,.product .images a:has(img),.product .images img){background-color:white!important}
#mep-custom-balls {--cf-dark:#111!important;--cf-gray:#434343!important;--cf-light-gray:#fff!important;--cf-border:#d4d8d5!important;--cf-green-light:#eff7ef!important;--cf-gold-light:#fff7df!important}
.mep-info-page,.mep-contact-page,.mep-info-page [style*="background:#12"],.mep-contact-page section,.mep-felt-trust,.mep-felt-payments,.mep-felt-order-steps,.mep-felt-feature-card,.mep-felt-finished-item,.mep-felt-files-grid>div,.mep-felt-tab-panel details,#mep-custom-balls,#mep-custom-balls :is(.mep-ball-main-image-wrap,.mep-ball-how-section,.mep-ball-qty-input),#mep-felt-replica,#mep-felt-replica :is(.cf-faq-section,.cf-faq-item,#mep-guides30,.mep-link,.pf-32_,.pf-71_,.pf-131_,.pf-375_,.pf-491_,.pf-535_,.pf-548_) {background-color:white!important;color:#111!important;border-color:#d4d8d5!important}
.mep-felt-tab-panel,.mep-felt-tab-button,.mep-felt-tab-panel summary,.mep-upload-cta small,.mep-felt-trust :is(div,small),.mep-felt-size-guide,.mep-felt-upload-hint,.mep-felt-feature-card strong,:is(.mep-info-page,.mep-contact-page) :is(h1,h2,h3,p,li,strong,label),.mep-felt-card :is(legend,label,span),.mep-blog-index :is(p,time),#mep-custom-balls :is(.mep-ball-how-section,.mep-ball-product-layout) :is(h1,h2,h3,p,label,li),#mep-felt-replica :is(.cf-faq-item,.cf-faq-header,.cf-faq-category,#mep-guides30) :is(summary,p,li),#mep-felt-replica :is(.cf-faq-category,.cf-faq-header h2,.pf-163_,.pf-167_,.pf-171_,.pf-176_,.pf-180_,.pf-185_,.pf-189_,.pf-194_,.pf-198_,.pf-48_,.pf-537_,.pf-539_,.pf-53_,.pf-58_,.pf-63_,.pf-68_) {color:#111!important;-webkit-text-fill-color:currentColor!important}
#mep-felt-replica .cf-faq-item summary::after {color:#111!important}
.mep-felt-tab-button:not([aria-selected=true]) {background-color:#f3f5f4!important}
.mep-free-shipping-announcement,.mep-free-shipping-announcement :is(p,strong,span),.woocommerce .button,.woocommerce button.button,.mep-felt-benefits,.mep-felt-benefits :is(p,span,strong),#mep-custom-balls .mep-ball-upload-cta :is(p,h2,h3){color:white!important;-webkit-text-fill-color:currentColor!important}
}

@layer mepLight {
/* Articles, order tracking and secondary product panels have their own legacy palettes. */
.single-post .ast-article-single :is(.ast-post-format-,.entry-header,.entry-content),body.page-id-4746 .entry-content div[style*="background:#"],.mep-info-page [style*="background:#113d23"],fieldset.mepao-type {background-color:#fff!important;color:#111!important;border-color:#d4d8d5!important}
.single-post .entry-content :is(h1,h2,h3,p,li,strong),.mep-blog-article-header h1,body.page-id-4746 .entry-content :is(h1,h2,h3,p,label),.mep-stb-policy-card :is(p,strong),.mep-felt-selling-copy,.mep-felt-payments-label,.mep-felt-payment-disclaimer,.mep-felt-step-row span,.mep-felt-finished p,.mep-felt-feature-card p,.mep-felt-feature-card div,.mep-ball-tabs-nav .mep-ball-tab-btn,.mepao-type :is(label,legend,span) {color:#111!important;-webkit-text-fill-color:currentColor!important}
.mep-ball-tabs-nav .mep-ball-tab-btn {background-color:#fff!important}
.mep-ball-tabs-nav .mep-ball-tab-btn.active {border-bottom:3px solid var(--mep-green)!important}
.mep-blog-index .wp-block-post-title a:not(:hover) {color:var(--mep-orange)!important}
.mep-ball-work-overlay span {background-color:#111!important;color:white!important;padding:2px 5px}
}

@layer mepLight {
#masthead #ast-mobile-header :is(.ast-builder-layout-element,.main-header-bar-navigation,.main-navigation,.ast-nav-menu,.main-header-menu,.ast-builder-menu-mobile,.menu-item,.sub-menu), .ast-mobile-popup-drawer :is(.ast-mobile-popup-inner,.ast-mobile-popup-content,.ast-mobile-popup-header,.ast-builder-menu-mobile,.main-header-menu,.menu-item,.sub-menu) { background: #fff !important; color: #111 !important; }
.ast-mobile-popup-drawer .menu-link {color:#111!important;}
}

@layer mepLight {
  body.single-product .woocommerce-product-gallery,
  body.single-product .woocommerce-product-gallery .flex-control-thumbs li,
  body.single-product .woocommerce-product-gallery .flex-control-thumbs img,
  body.single-product .mep-felt-finished-item {
    border: 0 !important;
  }
}

/* Trim capture-edge pixels before fitting felt mockups into their gallery boxes. */
@layer mepLight {
  img:is([src*="/Screenshot_" i], [srcset*="/Screenshot_" i]),
  .product_cat-custom-pool-table-felt .woocommerce-product-gallery__image:first-child img,
  .product_cat-custom-pool-table-felt .flex-control-thumbs li:first-child img,
  li.product_cat-custom-pool-table-felt img.attachment-woocommerce_thumbnail {
    object-view-box: inset(1% 0.7%) !important;
  }
}

@layer mepLight {
  body .woocommerce-Price-currencySymbol { color: inherit !important; }
}

@layer mepLight {
  ul.products li.product .astra-shop-summary-wrap {
    box-sizing: border-box;
    padding: 0 clamp(12px, 2vw, 18px) 14px !important;
    min-width: 0;
  }
  @media (max-width: 600px) {
    ul.products li.product .astra-shop-summary-wrap .button {
      box-sizing: border-box;
      max-width: 100%;
      padding-inline: 10px !important;
      white-space: normal;
    }
  }
}

@layer mepLight {
  ul.products li.product:has(> .astra-shop-summary-wrap) {
    display: flex !important;
    flex-direction: column;
    align-self: stretch;
  }
  ul.products li.product > .astra-shop-summary-wrap {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
  }
  ul.products li.product .astra-shop-summary-wrap > .price { margin-bottom: 12px !important; }
  ul.products li.product .astra-shop-summary-wrap > .button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    margin: auto 0 0 !important;
    padding: 10px 8px !important;
    text-align: center;
    white-space: normal;
  }
}
