/* Scoped visual skin. Existing WooCommerce controls and Elementor links remain in place. */
html.p1es-active {
  --p1es-bg: #0b0d0f;
  --p1es-surface: #101316;
  --p1es-text: #f9faf7;
  --p1es-accent: #d9ff31;
  --p1es-muted: #aeb5b4;
}

html.p1es-active body.home,
html.p1es-active body.home #content,
html.p1es-active body.home .elementor-2537 { background: var(--p1es-bg); color: var(--p1es-text); }
html.p1es-active #site-header .header-main-wapper { background: #0d1112; }
html.p1es-active #site-header .main-menu { background: #151a18; border-bottom: 1px solid #303b2c; }
html.p1es-active #site-header .main-menu .primary-nav > li > a { color: #f5f7ef; }
html.p1es-active #site-header .main-menu .primary-nav > li > a:hover,
html.p1es-active #site-header .main-menu .primary-nav > .current-menu-item > a { color: var(--p1es-accent); }
html.p1es-active #site-header .search-submit,
html.p1es-active #site-header button[type="submit"] { background: var(--p1es-accent); color: #11140b; }
html.p1es-active body .p1bh-top-banner.is-closed { background: #282d2c !important; }
html.p1es-active body .p1bh-top-banner.is-open { background: #263519 !important; }
html.p1es-active body.home .site-footer { background: #111713; color: #f2f5ed; }
html.p1es-active body.home .site-footer a { color: #c1ceb7; }
html.p1es-active body.home .elementor-element-f0a11d9 .elementor-heading-title {
  color: var(--p1es-text);
  font-family: Inter, "Arial Black", Arial, sans-serif;
  font-size: clamp(22px, 2.4vw, 31px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.15;
  margin: 12px 0 20px;
  text-wrap: balance;
}
html.p1es-active body.home .elementor-element-f0a11d9 .elementor-heading-title::after {
  content: ""; display: block; width: 46px; height: 3px; margin: 12px auto 0;
  border-radius: 4px; background: var(--p1es-accent);
}

/* Platform images: preserve Martfury's existing link targets. */
html.p1es-active body.home .elementor-element-be9050d .mf-elementor-banner-small,
html.p1es-active body.home .elementor-element-e1e2a16 .mf-elementor-banner-small,
html.p1es-active body.home .elementor-element-e1afe9b .mf-elementor-banner-small {
  overflow: hidden; border: 1px solid #3b492c; border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,.18); background: #080b0c;
}
html.p1es-active.p1es-has-ps4 body.home .elementor-element-be9050d .banner-featured-image { background-image: var(--p1es-ps4-image) !important; background-position: center 58%; background-size: cover; }
html.p1es-active.p1es-has-ps5 body.home .elementor-element-e1e2a16 .banner-featured-image { background-image: var(--p1es-ps5-image) !important; background-position: right 62%; background-size: auto 100%; background-repeat: no-repeat; background-color: #080b0c; }
html.p1es-active.p1es-has-switch body.home .elementor-element-e1afe9b .banner-featured-image { background-image: var(--p1es-switch-image) !important; background-position: center 54%; background-size: cover; }
html.p1es-active body.home .mf-elementor-banner-small a.link.p1es-tile-link {
  z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  box-sizing: border-box; padding: 20px; color: #fff; text-decoration: none;
  background: linear-gradient(0deg, rgba(0,0,0,.88), transparent 55%);
}
html.p1es-active body.home .p1es-tile-link strong { font: 800 clamp(17px,1.6vw,24px)/1.05 Inter,Arial,sans-serif; letter-spacing: -.025em; text-shadow: 0 2px 8px #000; }
html.p1es-active body.home .p1es-tile-link small { margin-top: 7px; color: var(--p1es-accent); font: 700 11px/1.2 Inter,Arial,sans-serif; letter-spacing: .09em; text-transform: uppercase; }
html.p1es-active body.home .p1es-tile-link:focus-visible { outline: 3px solid var(--p1es-accent); outline-offset: -4px; }
html.p1es-active body.home .mf-elementor-banner-small:hover { border-color: var(--p1es-accent); }

/* The original service image stays visible until the replacement is constructed. */
html.p1es-active body.home .elementor-element-d38f779 .mf-elementor-banner-medium.p1es-ready { min-height: 0; height: auto; background: none; }
html.p1es-active body.home .elementor-element-d38f779 .p1es-ready > .banner-featured-image,
html.p1es-active body.home .elementor-element-d38f779 .p1es-ready > .banner-content { display: none; }
html.p1es-active body.home .p1es-trust {
  display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0;
  color: #fff; font-family: Inter,Arial,sans-serif;
}
html.p1es-active body.home .p1es-trust-item { position: relative; display: flex; align-items: center; gap: 11px; min-width: 0; }
html.p1es-active body.home .p1es-trust-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; color: var(--p1es-accent); }
html.p1es-active body.home .p1es-trust-icon svg { display: block; width: 25px; height: 25px; }
html.p1es-active body.home .p1es-trust-item strong { display: block; color: #fff; font: 800 12px/1.15 Inter,Arial,sans-serif; }
html.p1es-active body.home .p1es-trust-item small { display: block; margin-top: 4px; color: #b8c4b4; font: 500 11px/1.25 Inter,Arial,sans-serif; }
html.p1es-active.p1es-service-circuit body.home .p1es-trust {
  position: relative; overflow: hidden; padding: 12px 8px; border: 1px solid #526b34; border-radius: 14px;
  background: linear-gradient(110deg,#131c15,#101415 48%,#182018); box-shadow: 0 9px 26px rgba(0,0,0,.17);
}
html.p1es-active.p1es-service-circuit body.home .p1es-trust::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg,transparent,var(--p1es-accent),transparent); }
html.p1es-active.p1es-service-circuit body.home .p1es-trust-item { padding: 3px 12px; border-right: 1px solid #394a34; }
html.p1es-active.p1es-service-circuit body.home .p1es-trust-item:last-child { border-right: 0; }
html.p1es-active.p1es-service-circuit body.home .p1es-trust-icon { background: #283d21; border: 1px solid #71944b; clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); filter: drop-shadow(0 0 8px rgba(217,255,49,.18)); }
html.p1es-active.p1es-service-arcade body.home .p1es-trust { gap: 7px; background: none; }
html.p1es-active.p1es-service-arcade body.home .p1es-trust-item { min-height: 74px; padding: 10px 11px; border: 1px solid #3a5f54; border-radius: 10px; background: radial-gradient(circle at 8% 0,#273e31,#11191b 63%); box-shadow: inset 0 2px #b5f532,0 8px 20px rgba(0,0,0,.12); }
html.p1es-active.p1es-service-arcade body.home .p1es-trust-item:nth-child(even) { border-color: #536b35; background: radial-gradient(circle at 8% 0,#263220,#11191b 65%); box-shadow: inset 0 2px #d9ff31,0 8px 20px rgba(0,0,0,.12); }
html.p1es-active.p1es-service-arcade body.home .p1es-trust-item::after { content: attr(data-number); position: absolute; right: 8px; top: 7px; color: #758a79; font: 800 9px/1 Inter,Arial,sans-serif; letter-spacing: .12em; }
html.p1es-active.p1es-service-arcade body.home .p1es-trust-icon { flex-basis: 36px; width: 36px; height: 36px; border: 1px solid #7fb83f; border-radius: 8px; background: #203128; box-shadow: 0 0 13px rgba(217,255,49,.12); }
html.p1es-active.p1es-service-arcade body.home .p1es-trust-item:nth-child(even) .p1es-trust-icon { color: var(--p1es-accent); border-color: #70943e; background: #26351d; }

/* Martfury product loops: three selectable treatments, same dimensions and actions. */
html.p1es-active .products li.product .product-inner { overflow: hidden; border: 1px solid #38442f; border-radius: 12px; background: var(--p1es-surface); transition: border-color .18s, transform .18s, box-shadow .18s; }
html.p1es-active .products li.product:hover .product-inner { border-color: var(--p1es-accent); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.2); }
html.p1es-active .products li.product .mf-product-thumbnail { overflow: hidden; background: #090b0c; }
html.p1es-active .products li.product .mf-product-details { padding: 10px 12px 12px; }
html.p1es-active .products li.product .woo-loop-product__title a { color: var(--p1es-text); font-weight: 700; }
html.p1es-active .products li.product .meta-brand,
html.p1es-active .products li.product .meta-brand a { color: var(--p1es-muted); }
html.p1es-active .products li.product .price,
html.p1es-active .products li.product .price ins { color: var(--p1es-text); font-weight: 800; }
html.p1es-active .products li.product .price del { color: var(--p1es-muted); }
html.p1es-active .products li.product .ribbons .onsale { background: var(--p1es-accent); color: #0d120a; border-radius: 0 0 0 8px; font-weight: 800; }
html.p1es-active .products li.product .p1es-card-action { display: block; margin-top: 10px; padding: 8px 10px; border: 1px solid #6e824f; border-radius: 7px; background: #1a2417; color: var(--p1es-accent); text-align: center; font: 800 11px/1.2 Inter,Arial,sans-serif; text-decoration: none; }
html.p1es-active .products li.product .p1es-card-action:hover { border-color: var(--p1es-accent); }
html.p1es-active.p1es-card-lime-edge .products li.product .product-inner { background: #f8faf4; border-color: #d4dfc3; box-shadow: inset 0 -3px var(--p1es-accent); }
html.p1es-active.p1es-card-lime-edge .products li.product .woo-loop-product__title a,
html.p1es-active.p1es-card-lime-edge .products li.product .price,
html.p1es-active.p1es-card-lime-edge .products li.product .price ins { color: #151b16; }
html.p1es-active.p1es-card-lime-edge .products li.product .meta-brand,
html.p1es-active.p1es-card-lime-edge .products li.product .meta-brand a { color: #5a675c; }
html.p1es-active.p1es-card-lime-edge .products li.product .p1es-card-action { background: #eaf1df; color: #1a2516; border-color: #aac680; }
html.p1es-active.p1es-card-spotlight .products li.product .product-inner { background: radial-gradient(circle at 100% 0%, #2d3a1a, #111716 65%); border-color: #5e7a2d; }
html.p1es-active.p1es-card-spotlight .products li.product .ribbons .onsale { background: #17201a; color: var(--p1es-accent); border: 1px solid var(--p1es-accent); }
html.p1es-active.p1es-card-spotlight .products li.product .p1es-card-action { background: var(--p1es-accent); color: #11160f; border-color: var(--p1es-accent); }
html.p1es-active body.home .elementor-widget-martfury-product-tabs-carousel .section-title,
html.p1es-active body.home .elementor-widget-martfury-products-carousel .section-title,
html.p1es-active body.home .elementor-widget-martfury-products-carousel h2 { color: var(--p1es-text); }

/* Product page: focused purchase panel, visible savings and preserved form behavior. */
html.p1es-active body.single-product .mf-single-product .entry-summary-sidebar { padding: 20px; border: 1px solid #36472b; border-radius: 14px; background: #111713; color: #f4f6ef; box-shadow: 0 12px 30px rgba(0,0,0,.11); }
html.p1es-active body.single-product .entry-summary-sidebar .martfury-product-price .price ins { color: var(--p1es-accent); font-weight: 800; }
html.p1es-active body.single-product .entry-summary-sidebar .martfury-product-price .price del { color: #aab3a7; }
html.p1es-active body.single-product .entry-summary-sidebar label,
html.p1es-active body.single-product .entry-summary-sidebar .woocommerce-variation-description { color: #e9efe5; }
html.p1es-active body.single-product .entry-summary-sidebar .single_add_to_cart_button:not(:disabled):not(.disabled),
html.p1es-active body.single-product .entry-summary-sidebar .buy_now_button:not(:disabled):not(.disabled) { background: var(--p1es-accent); color: #10150d; font-weight: 800; border-radius: 7px; }
html.p1es-active body.single-product .entry-summary-sidebar .single_add_to_cart_button:disabled,
html.p1es-active body.single-product .entry-summary-sidebar .buy_now_button:disabled,
html.p1es-active body.single-product .entry-summary-sidebar .button.disabled { opacity: .52; cursor: not-allowed; }
html.p1es-active body.single-product .woocommerce-product-gallery { overflow: hidden; border-radius: 12px; }
html.p1es-active body.single-product .mf-single-product .ribbons .onsale { background: var(--p1es-accent); color: #10150d; font-weight: 800; }
html.p1es-active body.single-product .p1es-assurance { display: flex; flex-wrap: wrap; gap: 5px 12px; padding-top: 12px; margin-top: 14px; border-top: 1px solid #35422f; color: #cbd8be; font: 600 11px/1.4 Inter,Arial,sans-serif; }
html.p1es-active body.single-product .p1es-assurance span::before { content: "✓"; margin-right: 5px; color: var(--p1es-accent); }

@media (max-width: 767px) {
  html.p1es-active body.home .p1es-trust { display: flex; overflow-x: auto; scroll-snap-type: x proximity; }
  html.p1es-active body.home .p1es-trust-item { flex: 0 0 175px; scroll-snap-align: start; }
  html.p1es-active.p1es-service-circuit body.home .p1es-trust-item { border-right: 1px solid #394a34; }
  html.p1es-active.p1es-service-circuit body.home .p1es-trust-item:last-child { border-right: 0; }
  html.p1es-active body.home .p1es-tile-link strong { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html.p1es-active .products li.product .product-inner { transition: none; }
  html.p1es-active .products li.product:hover .product-inner { transform: none; }
}
