/* MSM Core — brand layer on top of Elementor / WooCommerce
   Palette: Performance Black #111315 · Graphite #24282C · Warm White #F5F4F0 · Technical Silver #BFC4C8 · Performance Orange #EF633C · Slate #70767D */

:root {
  --msm-black: #111315;
  --msm-graphite: #24282C;
  --msm-warm: #F5F4F0;
  --msm-silver: #BFC4C8;
  --msm-orange: #EF633C;
  --msm-slate: #70767D;
  --msm-font-head: "Manrope", "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --msm-font-body: "Inter", "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body.msm { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-family: var(--msm-font-body); }
body.msm ::selection { background: var(--msm-orange); color: var(--msm-black); }
body.msm img { height: auto; }
body.msm a:focus-visible, body.msm button:focus-visible, body.msm .elementor-button:focus-visible { outline: 2px solid var(--msm-orange); outline-offset: 3px; }

/* Headings everywhere (WooCommerce pages included) */
body.msm h1, body.msm h2, body.msm h3, body.msm h4 { font-family: var(--msm-font-head); letter-spacing: -0.01em; }
body.msm .elementor-heading-title { text-wrap: balance; }
body.msm .elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* Buttons: pill, confident hover */
body.msm .elementor-button { transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; }
body.msm .elementor-button:hover { transform: translateY(-1px); }
body.msm .msm-btn { display: inline-block; font-family: var(--msm-font-head); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 17px 32px; border-radius: 999px; text-decoration: none; transition: all .25s ease; }
body.msm .msm-btn--ghost { color: var(--msm-warm); border: 1px solid rgba(245,244,240,.45); }
body.msm .msm-btn--ghost:hover { background: var(--msm-warm); color: var(--msm-black); border-color: var(--msm-warm); }

/* Reduced motion: never make the site harder to use */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.msm .elementor-invisible { visibility: visible !important; }
  body.msm .animated, body.msm [class*="elementor-animation"], body.msm .elementor-button { animation: none !important; transition: none !important; }
}

/* Hero */
body.msm .msm-hero .elementor-widget-image img { width: 100%; }
body.msm .msm-note p { opacity: .75; font-size: 13px; letter-spacing: .02em; }

/* Price block (home shop section) */
.msm-price { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.msm-price__amount { font-family: var(--msm-font-head); font-weight: 800; font-size: 36px; letter-spacing: -0.02em; color: var(--msm-warm); line-height: 1.1; }
.msm-price__amount del { opacity: .5; font-size: .6em; margin-right: .4em; }
.msm-price__amount ins { text-decoration: none; }
.msm-price__stock { font-family: var(--msm-font-head); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--msm-silver); }
.msm-price__stock::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #6FCF97; margin-right: 8px; vertical-align: 1px; }
.msm-price__stock--out::before { background: var(--msm-orange); }

/* [CONFIRM] markers on draft legal pages */
.msm-confirm { display: inline-block; background: #FFF3CD; color: #7A5A00; border: 1px dashed #D8B23A; border-radius: 4px; padding: 0 6px; font-size: .8em; font-weight: 700; letter-spacing: .04em; vertical-align: middle; }

/* Nav menu (Elementor Pro) */
body.msm .msm-nav .elementor-nav-menu--main .elementor-item { letter-spacing: .14em; }
body.msm .msm-nav .elementor-nav-menu--dropdown { border-radius: 0 0 18px 18px; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
body.msm .msm-nav .elementor-nav-menu--dropdown .elementor-item { font-size: 15px; letter-spacing: .14em; }
body.msm .msm-nav .elementor-menu-toggle { border: 0; background: transparent; }
body.msm .msm-header .elementor-widget-button .elementor-button { padding: 12px 22px; }
@media (max-width: 767px) {
  body.msm .msm-header .msm-logo .elementor-heading-title { font-size: 11px !important; }
  body.msm .msm-header .elementor-widget-button .elementor-button { padding: 10px 16px; font-size: 11px; }
}

/* Contact Form 7 */
body.msm .msm-contact-form .wpcf7 label { display: block; font-family: var(--msm-font-head); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--msm-slate); margin-bottom: 18px; }
body.msm .msm-contact-form .wpcf7 input[type="text"], body.msm .msm-contact-form .wpcf7 input[type="email"], body.msm .msm-contact-form .wpcf7 textarea { display: block; width: 100%; margin-top: 8px; padding: 15px 18px; border: 1px solid rgba(17,19,21,.18); border-radius: 14px; background: #fff; font: 400 16px/1.4 var(--msm-font-body); color: var(--msm-black); letter-spacing: 0; text-transform: none; transition: border-color .2s; }
body.msm .msm-contact-form .wpcf7 input:focus, body.msm .msm-contact-form .wpcf7 textarea:focus { outline: none; border-color: var(--msm-black); }
body.msm .msm-contact-form .wpcf7 textarea { min-height: 160px; resize: vertical; }
body.msm .msm-contact-form .wpcf7 input[type="submit"] { font-family: var(--msm-font-head); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; background: var(--msm-black); color: var(--msm-warm); border: 0; border-radius: 999px; padding: 18px 34px; cursor: pointer; transition: background .25s; }
body.msm .msm-contact-form .wpcf7 input[type="submit"]:hover { background: var(--msm-orange); color: var(--msm-black); }
body.msm .msm-contact-form .wpcf7 .wpcf7-spinner { margin-left: 12px; }
body.msm .msm-contact-form .wpcf7 .wpcf7-not-valid-tip { font-size: 13px; color: #B3261E; margin-top: 6px; }
body.msm .msm-contact-form .wpcf7 .wpcf7-response-output { border-radius: 12px; border-color: rgba(17,19,21,.2); padding: 14px 18px; margin: 20px 0 0; font-size: 15px; }

/* Nested accordion polish */
body.msm .e-n-accordion-item-title-text { text-wrap: balance; }
body.msm .e-n-accordion-item-title-icon { font-size: 14px; }

/* ---------- WooCommerce pages (cart / checkout / account) ---------- */
body.msm.woocommerce-cart .site-main, body.msm.woocommerce-checkout .site-main, body.msm.woocommerce-account .site-main,
body.msm.woocommerce-cart main, body.msm.woocommerce-checkout main, body.msm.woocommerce-account main { background: var(--msm-warm); }
body.msm.woocommerce-cart, body.msm.woocommerce-checkout, body.msm.woocommerce-account { background: var(--msm-warm); color: var(--msm-black); }
body.msm.woocommerce-cart .page-header, body.msm.woocommerce-checkout .page-header, body.msm.woocommerce-account .page-header,
body.msm.woocommerce-cart .entry-header, body.msm.woocommerce-checkout .entry-header, body.msm.woocommerce-account .entry-header { max-width: 1180px; margin: 0 auto; padding: 150px 24px 10px; }
body.msm.woocommerce-cart .entry-title, body.msm.woocommerce-checkout .entry-title, body.msm.woocommerce-account .entry-title { font-family: var(--msm-font-head); font-weight: 800; font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.03em; text-transform: uppercase; color: var(--msm-black); line-height: 1; }
body.msm.woocommerce-cart .page-content, body.msm.woocommerce-checkout .page-content, body.msm.woocommerce-account .page-content,
body.msm.woocommerce-cart .entry-content, body.msm.woocommerce-checkout .entry-content, body.msm.woocommerce-account .entry-content { max-width: 1180px; margin: 0 auto; padding: 20px 24px 120px; }
body.msm .wc-block-components-button, body.msm .wc-block-cart__submit-button, body.msm .wc-block-components-checkout-place-order-button,
body.msm .woocommerce button.button, body.msm .woocommerce a.button, body.msm .woocommerce .button.alt { background: var(--msm-black) !important; color: var(--msm-warm) !important; border-radius: 999px !important; font-family: var(--msm-font-head) !important; font-weight: 800 !important; font-size: 13px !important; letter-spacing: .12em !important; text-transform: uppercase !important; padding: 18px 32px !important; border: 0 !important; transition: background .25s; }
body.msm .wc-block-components-button:hover, body.msm .woocommerce button.button:hover, body.msm .woocommerce a.button:hover { background: var(--msm-orange) !important; color: var(--msm-black) !important; }
body.msm .wc-block-components-button.outlined, body.msm .wc-block-components-button--outlined { background: transparent !important; color: var(--msm-black) !important; border: 1px solid rgba(17,19,21,.35) !important; }
body.msm .wc-block-components-product-name, body.msm .wc-block-components-totals-item__label, body.msm .wc-block-components-checkout-step__title, body.msm .wc-block-components-title { font-family: var(--msm-font-head); }
body.msm .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-family: var(--msm-font-head); font-weight: 800; }
body.msm .wc-block-components-text-input input, body.msm .wc-block-components-combobox .components-combobox-control__input, body.msm .wc-block-components-select .components-custom-select-control__button,
body.msm .woocommerce form .form-row input.input-text, body.msm .woocommerce form .form-row textarea, body.msm .woocommerce form .form-row select { border-radius: 14px !important; border-color: rgba(17,19,21,.2) !important; background: #fff; }
body.msm .wc-block-components-sidebar .wc-block-components-panel, body.msm .wc-block-components-order-summary { background: #fff; border-radius: 20px; }
body.msm .wc-block-components-notice-banner, body.msm .woocommerce-message, body.msm .woocommerce-info, body.msm .woocommerce-error { border-radius: 14px; }
body.msm .wc-block-components-product-metadata, body.msm .wc-block-components-product-details { color: var(--msm-slate); }
body.msm .wc-block-cart-item__image img, body.msm .wc-block-components-order-summary-item__image img { border-radius: 14px; background: var(--msm-warm); }
body.msm .wc-block-components-checkout-return-to-cart-button, body.msm .wc-block-components-checkout-return-to-cart-button:hover { color: var(--msm-black); }
body.msm .wc-block-components-express-payment { margin-bottom: 20px; }
body.msm .woocommerce-breadcrumb.msm-hidden { display: none; }
/* Keep the hidden "coming soon" and store notice off-brand elements quiet */
body.msm .woocommerce-store-notice { background: var(--msm-black); color: var(--msm-warm); font-family: var(--msm-font-body); }

/* Single product fallbacks (if the Pro template is not applied) */
body.msm.single-product .site-main { max-width: 1280px; margin: 0 auto; padding: 150px 24px 100px; }
body.msm.single-product .product .price { font-family: var(--msm-font-head); font-weight: 800; font-size: 34px; color: var(--msm-black); }
body.msm.single-product .woocommerce-product-gallery img { border-radius: 24px; }

/* ---------- Sticky buy bar (mobile / tablet) ---------- */
.msm-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 998; transform: translateY(110%); transition: transform .35s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.msm-sticky.is-visible { transform: translateY(0); pointer-events: auto; }
.msm-sticky__inner { margin: 0 12px 12px; padding: 12px 12px 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: rgba(17,19,21,.86); -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px); border: 1px solid rgba(245,244,240,.1); border-radius: 999px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.msm-sticky__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.msm-sticky__name { font-family: var(--msm-font-head); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--msm-silver); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msm-sticky__price { font-family: var(--msm-font-head); font-weight: 800; font-size: 17px; color: var(--msm-warm); line-height: 1.1; }
.msm-sticky__price del { opacity: .5; font-size: .75em; margin-right: .3em; }
.msm-sticky__price ins { text-decoration: none; }
.msm-sticky__btn { flex: 0 0 auto; font-family: var(--msm-font-head); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; background: var(--msm-orange); color: var(--msm-black); border-radius: 999px; padding: 14px 22px; text-decoration: none; min-height: 48px; display: inline-flex; align-items: center; }
.msm-sticky__btn:hover { background: #FF7A52; color: var(--msm-black); }
@media (min-width: 1025px) { .msm-sticky { display: none; } }
@media (prefers-reduced-motion: reduce) { .msm-sticky { transition: none; } }
body.msm.admin-bar .msm-sticky { bottom: 0; }

/* Fixed, translucent header (no layout jump; hero flows underneath) */
body.msm .msm-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 999; transition: background-color .3s ease; }
body.msm.admin-bar .msm-header { top: 32px; }
@media (max-width: 782px) { body.msm.admin-bar .msm-header { top: 46px; } }
body.msm .msm-header.is-scrolled { background-color: rgba(17,19,21,.94) !important; }
body.msm .msm-header .elementor-nav-menu--dropdown.elementor-nav-menu__container { background: rgba(17,19,21,.98); }
