/* MrStockPlanet — skin per Flatsome + WooCommerce
   Porta il design "spazio profondo + colori del logo" su tutte le pagine del negozio.
   Solo CSS: non modifica contenuti, impostazioni o template. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

html:root {
  --msp-space: #08061a;
  --msp-space-2: #0f0c29;
  --msp-space-3: #17133d;
  --msp-line: rgba(255, 255, 255, 0.12);
  --msp-ink: #f7f4ff;
  --msp-muted: #b9b3dc;
  --msp-yellow: #ffd60a;
  --msp-orange: #ff8a00;
  --msp-red: #ff2d2d;
  --msp-pink: #ff2e93;
  --msp-violet: #8b3dff;
  --msp-blue: #2e7bff;
  --msp-cyan: #2fd6f5;
  --msp-paper: #fbfaff;
  --msp-paper-2: #f0ecfd;
  --msp-paper-ink: #17142e;
  --msp-paper-muted: #5b5778;
  --msp-link: #5a21d6;
  --msp-fire: linear-gradient(100deg, #ffd60a 0%, #ff8a00 45%, #ff2d2d 100%);
  --msp-rainbow: linear-gradient(90deg, #ffd60a, #ff8a00, #ff2d2d, #ff2e93, #8b3dff, #2e7bff, #2fd6f5);
  --msp-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --msp-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* variabili del tema */
  --primary-color: #ffd60a;
  --fs-color-primary: #ffd60a;
  --fs-color-secondary: #ff2e93;
  --fs-color-success: #12a150;
  --fs-color-alert: #ff2d2d;
  --fs-color-base: #2c2947;
  --fs-experimental-link-color: #5a21d6;
  --fs-experimental-link-color-hover: #ff2e93;
}

/* ------------------------------------------------------------------ base */
html, html body { background-color: var(--msp-space); }
html body {
  font-family: var(--msp-body);
  color: var(--msp-paper-ink);
  -webkit-font-smoothing: antialiased;
}
html body #wrapper, html body #main, html body.woocommerce-page #main { background-color: var(--msp-space); }
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
html body .heading-font, html body .banner h1, html body .banner h2 {
  font-family: var(--msp-display);
  font-weight: 800;
  letter-spacing: -0.02em !important;
  line-height: 1.12;
}
html body h4 { font-weight: 700 !important; }
html body .nav > li > a, html body .alt-font, html body button, html body .button, html body input, html body select, html body textarea { font-family: var(--msp-body); }
html body ::selection { background: var(--msp-pink); color: #fff; }
html body :focus-visible { outline: 3px solid var(--msp-cyan); outline-offset: 2px; }

/* ------------------------------------------------------------------ barra superiore */
html body #top-bar.header-top { background-color: var(--msp-yellow) !important; min-height: 36px; }
html body #top-bar, html body #top-bar .nav > li > a, html body #top-bar .nav > li.html, html body #top-bar .nav > li > a span, html body #top-bar i {
  color: #0b0920 !important;
  font-weight: 700;
  font-size: 0.82rem;
}
html body #top-bar .nav > li > a:hover { text-decoration: underline; text-underline-offset: 3px; }
html body #top-bar .nav-divided > li + li > a::after { border-color: rgba(11, 9, 32, 0.25); }

/* ------------------------------------------------------------------ header */
html body .header-wrapper { box-shadow: none; }
html body .header-bg-color, html body .header-bottom, html body .header-wrapper.stuck .header-bg-color { background-color: var(--msp-space) !important; }
html body .header-wrapper.stuck { box-shadow: 0 1px 0 var(--msp-line), 0 16px 40px -20px #000; }
html body .header-main { height: 88px; }
html body #logo { width: 236px; }
html body #logo img { max-height: 76px; padding: 0; filter: drop-shadow(0 0 14px rgba(255, 46, 147, 0.35)); transition: transform 0.2s ease; }
html body #logo a:hover img { transform: scale(1.04) rotate(-1deg); }
html body .header.show-on-scroll, html body .stuck .header-main { height: 68px !important; }
html body .stuck #logo img { max-height: 58px !important; }
html body .header-main .top-divider, html body .header-bottom .top-divider { border-color: var(--msp-line); opacity: 1; }
@media (max-width: 549px) {
  html body .header-main { height: 68px; }
  html body #logo { width: 190px; }
  html body #logo img { max-height: 56px; }
}

html body .header-main .nav > li > a, html body .header-bottom .nav > li > a, html body .header-main .nav > li > a i, html body .mobile-nav > li > a {
  color: var(--msp-ink);
  font-weight: 600;
}
html body .header-bottom .nav > li > a { padding: 9px 13px; border-radius: 999px; font-size: 0.95rem; transition: background-color 0.15s, color 0.15s; }
html body .header-bottom .nav > li { margin: 0 2px; }
html body .header-bottom .nav > li > a:hover, html body .header-bottom .nav > li.active > a, html body .header-bottom .nav > li.current-menu-item > a, html body .header-bottom .nav > li.current-product_cat-ancestor > a {
  background: rgba(255, 255, 255, 0.09);
  color: var(--msp-yellow);
}
html body .header-bottom { min-height: 54px; border-bottom: 1px solid var(--msp-line); }
html body .header-divider { border-color: var(--msp-line); }

/* ricerca */
html body .header-search-form { min-width: 0; width: 100%; max-width: 560px; }
html body .header .searchform-wrapper input[type="search"], html body .off-canvas .searchform-wrapper input[type="search"] {
  height: 46px;
  padding: 0 20px;
  border-radius: 999px !important;
  border: 1.5px solid var(--msp-line) !important;
  background-color: rgba(255, 255, 255, 0.07) !important;
  color: var(--msp-ink) !important;
  box-shadow: none !important;
  font-size: 0.95rem;
}
html body .header .searchform-wrapper input[type="search"]::placeholder, html body .off-canvas .searchform-wrapper input[type="search"]::placeholder { color: #8f89b8; opacity: 1; }
html body .header .searchform-wrapper input[type="search"]:focus, html body .off-canvas .searchform-wrapper input[type="search"]:focus { border-color: var(--msp-yellow) !important; background-color: rgba(255, 255, 255, 0.11) !important; }
html body .header .searchform .button.icon, html body .off-canvas .searchform .button.icon {
  background: transparent !important;
  color: var(--msp-muted) !important;
  border: 0 !important;
  box-shadow: none !important;
  margin-left: -46px;
  min-width: 46px;
  height: 46px;
}
html body .header .searchform .button.icon:hover { color: var(--msp-yellow) !important; }
html body .live-search-results { border-radius: 16px; overflow: hidden; margin-top: 8px; }

/* carrello */
html body .header .header-cart-link { color: var(--msp-ink) !important; font-weight: 600; }
html body .header .cart-icon strong { border-color: var(--msp-yellow); color: var(--msp-yellow); border-radius: 6px; font-family: var(--msp-display); }
html body .header .cart-icon strong::after { border-color: var(--msp-yellow); }
html body .header .cart-item:hover .cart-icon strong, html body .header .current-dropdown .cart-icon strong { background-color: var(--msp-yellow); color: #0b0920; }
html body .header .cart-item:hover .cart-icon strong::after { height: 10px; }

/* selettore sfondo chiaro / scuro */
html body .msp-theme-item { display: flex; align-items: center; margin: 0 6px 0 0; }
html body .msp-theme-toggle {
  width: 42px; height: 42px; min-height: 0; margin: 0; padding: 0;
  display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid var(--msp-line);
  background: rgba(255, 255, 255, 0.07); color: var(--msp-ink);
  line-height: 1; box-shadow: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, transform 0.15s, border-color 0.15s;
}
html body .msp-theme-toggle:hover { background: var(--msp-yellow); border-color: #0b0920; color: #0b0920; transform: rotate(18deg); }
html body .msp-theme-toggle svg { width: 21px; height: 21px; display: block; }
html.msp-light body .msp-theme-toggle { background: #fff; border-color: rgba(23, 20, 46, 0.22); }
html.msp-light body .msp-theme-toggle:hover { background: var(--msp-yellow); border-color: #0b0920; }
html body .msp-theme-toggle--floating { position: fixed; left: 14px; bottom: 14px; z-index: 9999; background: var(--msp-yellow); color: #0b0920; border: 2px solid #0b0920; box-shadow: 3px 3px 0 var(--msp-pink); }

/* menu categorie */
html body .header-vertical-menu__opener {
  background-color: var(--msp-yellow) !important;
  color: #0b0920 !important;
  border-radius: 999px;
  height: 40px;
  padding: 0 18px;
  font-family: var(--msp-display);
  font-weight: 800;
  border: 2px solid #0b0920;
  box-shadow: 3px 3px 0 var(--msp-pink);
}
html body .header-vertical-menu__opener .header-vertical-menu__title, html body .header-vertical-menu__opener i { color: #0b0920 !important; font-weight: 800; }
html body .header-vertical-menu__fly-out, html body .nav-dropdown, html body .header-vertical-menu__fly-out .nav-dropdown {
  background-color: var(--msp-space-2) !important;
  border: 1px solid var(--msp-line) !important;
  border-radius: 18px !important;
  box-shadow: 0 30px 60px -20px #000 !important;
  color: var(--msp-ink);
}
html body .header-vertical-menu__fly-out { margin-top: 10px; overflow: visible; }
html body .nav-dropdown::before, html body .nav-dropdown::after, html body .nav-dropdown-has-arrow li.has-dropdown::before, html body .nav-dropdown-has-arrow li.has-dropdown::after { display: none !important; }
html body .header-vertical-menu__fly-out .nav > li > a, html body .nav-dropdown li > a, html body .nav-dropdown .menu-item-has-children > a, html body .nav-dropdown .nav-dropdown-col > a {
  color: var(--msp-ink) !important;
  border-color: var(--msp-line) !important;
  font-weight: 500;
  text-transform: none;
  font-size: 0.95rem;
}
html body .header-vertical-menu__fly-out .nav > li + li { border-color: var(--msp-line) !important; }
html body .header-vertical-menu__fly-out .nav > li > a:hover, html body .nav-dropdown li > a:hover, html body .header-vertical-menu__fly-out .nav > li.current-dropdown > a { color: var(--msp-yellow) !important; background: rgba(255, 255, 255, 0.06); }
html body .nav-dropdown .widget_shopping_cart, html body .nav-dropdown .woocommerce-mini-cart__empty-message, html body .nav-dropdown .widget_shopping_cart a:not(.button), html body .nav-dropdown .amount { color: var(--msp-ink); }
html body .nav-dropdown .woocommerce-mini-cart__total { border-color: var(--msp-line); color: var(--msp-ink); }

html body .header-vertical-menu__fly-out a, html body .header-vertical-menu__fly-out a i { color: var(--msp-ink) !important; font-weight: 500; }
html body .header-vertical-menu__fly-out a:hover { color: var(--msp-yellow) !important; }
html body .header-vertical-menu__fly-out li, html body .nav-vertical-fly-out > li + li { border-color: var(--msp-line) !important; }
html body .off-canvas .button, html body .off-canvas .button span { color: #0b0920 !important; font-family: var(--msp-display); }
html body.page:not(.home) #content.content-area > .section { border-radius: 18px; overflow: hidden; }

/* menu mobile e pannelli laterali */
html body .off-canvas-left .mfp-content, html body .off-canvas-right .mfp-content {
  background-color: var(--msp-space-2) !important;
  color: var(--msp-ink);
  box-shadow: 0 0 60px #000;
}
html body .off-canvas .nav-vertical > li > a, html body .off-canvas .nav-sidebar > li > a, html body .off-canvas .sidebar-menu a, html body .off-canvas .nav-vertical li li a, html body .off-canvas .toggle {
  color: var(--msp-ink) !important;
  font-family: var(--msp-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: none;
  opacity: 1;
}
html body .off-canvas .nav-vertical li li a { font-family: var(--msp-body); font-weight: 500; font-size: 0.97rem; color: var(--msp-muted) !important; }
html body .off-canvas .nav-vertical > li + li, html body .off-canvas .nav-sidebar > li + li { border-color: var(--msp-line) !important; }
html body .off-canvas .nav-vertical > li > a:hover, html body .off-canvas .nav-vertical li li a:hover { color: var(--msp-yellow) !important; }
html body .off-canvas .widget, html body .off-canvas .widget a, html body .off-canvas .widget-title, html body .off-canvas .cart-popup-title, html body .off-canvas .cart-popup-title h4, html body .off-canvas .woocommerce-mini-cart__empty-message, html body .off-canvas .amount, html body .off-canvas .count { color: var(--msp-ink); }
html body .mfp-bg { background: #04030e; }
html body .mfp-close { color: #fff; mix-blend-mode: normal; opacity: 0.9; }

/* ------------------------------------------------------------------ bottoni */
html body .button, html body button.button, html body input[type="submit"], html body input[type="button"].button, html body .checkout-button, html body .single_add_to_cart_button {
  font-family: var(--msp-display);
  font-weight: 800;
  letter-spacing: -0.005em;
  text-transform: none;
  border-radius: 999px !important;
  min-height: 46px;
  line-height: 1.15;
  padding: 0.55em 1.5em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
html body .button.primary, html body .button.alt, html body button.alt, html body .button.checkout, html body .checkout-button, html body .single_add_to_cart_button,
html body input[type="submit"]:not(.is-form), html body button[type="submit"]:not(.icon):not(.is-form):not(.ux-search-submit), html body .button.wc-backward, html body .woocommerce-button, html body .wp-element-button {
  background-color: var(--msp-yellow) !important;
  color: #0b0920 !important;
  border: 2.5px solid #0b0920 !important;
  box-shadow: 4px 4px 0 var(--msp-pink) !important;
}
html body .button.primary:hover, html body .button.alt:hover, html body button.alt:hover, html body .button.checkout:hover, html body .checkout-button:hover, html body .single_add_to_cart_button:hover,
html body input[type="submit"]:not(.is-form):hover, html body button[type="submit"]:not(.icon):not(.is-form):not(.ux-search-submit):hover, html body .button.wc-backward:hover, html body .woocommerce-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--msp-pink) !important;
  background-color: #ffe14a !important;
}
html body .button.primary span, html body .button.alt span { color: inherit; }
html body .button.secondary:not(.icon) { background-color: var(--msp-pink) !important; color: #fff !important; border: 2.5px solid #0b0920 !important; box-shadow: 4px 4px 0 var(--msp-yellow) !important; }
html body .button.is-outline, html body .button.white.is-outline { border-width: 2px; }
html body .button.is-outline.primary { color: var(--msp-paper-ink) !important; background: transparent !important; }
html body .button.disabled, html body button[disabled], html body .button[disabled] { opacity: 0.55; box-shadow: none !important; transform: none !important; }
html body .back-to-top.button { min-height: 0; padding: 0; background: var(--msp-yellow) !important; color: #0b0920 !important; border: 2px solid #0b0920 !important; box-shadow: 3px 3px 0 var(--msp-pink) !important; opacity: 1; }

/* ------------------------------------------------------------------ moduli */
html body #main input[type="text"], html body #main input[type="email"], html body #main input[type="tel"], html body #main input[type="password"], html body #main input[type="number"], html body #main input[type="search"],
html body #main textarea, html body #main select, html body #main .select2-container .select2-selection, html body .lightbox-content input[type="text"], html body .lightbox-content input[type="password"], html body .lightbox-content input[type="email"] {
  border-radius: 14px !important;
  border: 1.5px solid #d9d4ee !important;
  background-color: #fff !important;
  color: var(--msp-paper-ink) !important;
  box-shadow: none !important;
  min-height: 48px;
  font-size: 1rem;
}
html body #main textarea { min-height: 120px; padding-top: 12px; }
html body #main input:focus, html body #main textarea:focus, html body #main select:focus { border-color: var(--msp-violet) !important; box-shadow: 0 0 0 3px rgba(139, 61, 255, 0.18) !important; }
html body #main label { font-weight: 600; color: var(--msp-paper-ink); }
html body #main input[type="checkbox"], html body #main input[type="radio"] { accent-color: var(--msp-violet); }

/* ------------------------------------------------------------------ titolo pagina e briciole */
html body .page-title, html body .shop-page-title { background: transparent; position: relative; }
html body .shop-page-title .page-title-inner { padding-top: 26px; padding-bottom: 10px; min-height: 0; }
html body .shop-page-title .breadcrumbs { font-family: var(--msp-display); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.2rem); letter-spacing: -0.02em; color: var(--msp-ink); text-transform: none; }
html body .shop-page-title .breadcrumbs a { color: var(--msp-muted); font-weight: 600; }
html body .shop-page-title .breadcrumbs a:hover { color: var(--msp-yellow); }
html body .shop-page-title .breadcrumbs .divider { color: var(--msp-muted); opacity: 0.5; }
html body .shop-page-title .woocommerce-result-count, html body .shop-page-title .filter-button, html body .shop-page-title .filter-button strong { color: var(--msp-muted); }
html body .shop-page-title .woocommerce-ordering select {
  border-radius: 999px !important;
  border: 1.5px solid var(--msp-line) !important;
  background-color: rgba(255, 255, 255, 0.07) !important;
  color: var(--msp-ink) !important;
  min-height: 44px;
  padding: 0 40px 0 18px;
  box-shadow: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd60a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-position: right 14px center !important;
  background-size: 16px !important;
  background-repeat: no-repeat !important;
}
html body .shop-page-title .woocommerce-ordering select option { color: #17142e; }

/* ------------------------------------------------------------------ catalogo */
html body .category-page-row { padding-top: 18px; }
html body #shop-sidebar { color: var(--msp-ink); }
html body #shop-sidebar .widget { margin-bottom: 18px; padding: 20px; border-radius: 20px; border: 1px solid var(--msp-line); background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); }
html body #shop-sidebar .widget-title { font-family: var(--msp-display); font-weight: 800; font-size: 1.05rem; color: var(--msp-yellow); letter-spacing: 0; text-transform: none; }
html body #shop-sidebar .is-divider { display: none; }
html body #shop-sidebar .widget-title + .is-divider + * { margin-top: 12px; }
html body #shop-sidebar ul li, html body #shop-sidebar ul li + li, html body #shop-sidebar ul.children { border-color: var(--msp-line) !important; }
html body #shop-sidebar a { color: var(--msp-ink); font-weight: 500; }
html body #shop-sidebar a:hover, html body #shop-sidebar .current-cat > a, html body #shop-sidebar .current-cat-parent > a { color: var(--msp-yellow); }
html body #shop-sidebar .count, html body #shop-sidebar .toggle, html body #shop-sidebar .toggle i, html body #shop-sidebar .price_label, html body #shop-sidebar .price_label span { color: var(--msp-muted); opacity: 1; }
html body #shop-sidebar .price_slider_wrapper .ui-slider { background-color: rgba(255, 255, 255, 0.18); }
html body #shop-sidebar .price_slider_wrapper .ui-slider-range { background-color: var(--msp-pink); opacity: 1; }
html body #shop-sidebar .price_slider_wrapper .ui-slider-handle { background-color: var(--msp-yellow); border: 2px solid #0b0920; }
html body #shop-sidebar .price_slider_amount .button { background: var(--msp-yellow) !important; color: #0b0920 !important; border: 2px solid #0b0920 !important; box-shadow: 3px 3px 0 var(--msp-pink) !important; min-height: 38px; }
html body #shop-sidebar input[type="search"] { background-color: rgba(255, 255, 255, 0.07) !important; border: 1.5px solid var(--msp-line) !important; color: var(--msp-ink) !important; border-radius: 999px !important; padding: 0 18px; }
html body #shop-sidebar input[type="search"]::placeholder { color: #8f89b8; }
html body #shop-sidebar .searchform .button.icon { background: var(--msp-yellow) !important; color: #0b0920 !important; border: 2px solid #0b0920 !important; box-shadow: none !important; border-radius: 50% !important; width: 46px; min-width: 46px; min-height: 46px; padding: 0; margin-left: 8px; }

/* card prodotto e card categoria */
html body .products .product-small.col > .col-inner, html body .products .product-category > .col-inner,
html body .related .product-small.col > .col-inner, html body .slider .product-small.col > .col-inner, html body .row .product-small.col > .col-inner {
  position: relative;
  height: 100%;
  background: #fff;
  border-radius: 20px;
  border: 2.5px solid #0b0920;
  overflow: hidden;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 0 var(--msp-pink);
}
html body .product-small.col:hover > .col-inner, html body .product-category:hover > .col-inner { transform: translate(-3px, -4px); box-shadow: 7px 8px 0 var(--msp-pink); }
html body .product-small.col:nth-child(3n + 2):hover > .col-inner, html body .product-category:nth-child(3n + 2):hover > .col-inner { box-shadow: 7px 8px 0 var(--msp-blue); }
html body .product-small.col:nth-child(3n):hover > .col-inner, html body .product-category:nth-child(3n):hover > .col-inner { box-shadow: 7px 8px 0 var(--msp-yellow); }
html body .product-small .box-image, html body .product-category .box-image { border-radius: 0; background: #fff; }
html body .product-small .box-image img { transition: transform 0.35s ease; }
html body .product-small.col:hover .box-image img { transform: scale(1.06); }
html body .product-small .box-text { padding: 14px 16px 18px; border-top: 1px solid #ece9f7; text-align: left; background: #fff; }
html body .product-small .box-text .title-wrapper { margin-bottom: 8px; }
html body .product-small .box-text .category { color: #6d55d6; opacity: 1; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 4px; }
html body .product-small .woocommerce-loop-product__title a, html body .product-small .product-title a {
  color: var(--msp-paper-ink);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html body .product-small .woocommerce-loop-product__title a:hover { color: var(--msp-link); }
html body .product-small .price, html body .product-small .price span.amount { font-family: var(--msp-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--msp-paper-ink); line-height: 1.1; }
html body .product-small .price del, html body .product-small .price del span.amount { font-family: var(--msp-body); font-weight: 500; font-size: 0.9rem; color: #8a86a3; opacity: 1; letter-spacing: 0; }
html body .product-small .price ins { text-decoration: none; }
html body .product-small .woocommerce-price-suffix, html body .woocommerce-price-suffix { font-family: var(--msp-body); font-weight: 500; font-size: 0.74rem; color: #7a7693; letter-spacing: 0; }
html body .product-small .price .woocommerce-price-suffix { display: block; margin-top: 3px; }
html body .product-category .box-text { padding: 14px 12px 16px; background: #fff; border-top: 1px solid #ece9f7; }
html body .product-category .header-title { font-family: var(--msp-display); font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; text-transform: none; color: var(--msp-paper-ink); }
html body .product-category .count { color: #6d55d6; opacity: 1; font-weight: 700; letter-spacing: 0.08em; margin-top: 2px; }
html body .shop-container .product-category .col-inner { padding: 0; border-radius: 20px; }

/* etichetta offerta */
html body .badge-container { margin: 12px 0 0 12px; }
html body .badge-container .badge { height: auto; width: auto; display: block; }
html body .badge-container .badge-inner {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px !important;
  background-color: var(--msp-red) !important;
  color: #fff !important;
  border: 2px solid #0b0920;
  box-shadow: 2px 2px 0 #0b0920;
  font-family: var(--msp-display);
  font-weight: 800;
  font-size: 0.8rem;
  line-height: 1;
  transform: rotate(-5deg);
  white-space: nowrap;
}
html body .badge-container.is-larger .badge-inner { font-size: 0.95rem; padding: 8px 14px; }

/* paginazione */
html body .nav-pagination > li > a, html body .nav-pagination > li > span { border: 2px solid var(--msp-line); color: var(--msp-ink); font-family: var(--msp-display); font-weight: 800; min-width: 44px; height: 44px; line-height: 40px; border-radius: 50%; }
html body .nav-pagination > li > .current, html body .nav-pagination > li > a:hover { background-color: var(--msp-yellow); border-color: var(--msp-yellow); color: #0b0920; }
html body .woocommerce-pagination { margin: 26px 0 10px; }
html body .shop-container .term-description, html body .shop-container > p, html body .shop-container .woocommerce-info { color: var(--msp-muted); }

/* ------------------------------------------------------------------ pannelli chiari ("carta") */
html body.single-product .shop-container > .product,
html body.woocommerce-cart #content.content-area, html body.woocommerce-checkout #content.content-area, html body.woocommerce-account #content.content-area,
html body.page:not(.home):not(.woocommerce-page) #content.content-area, html body .page-wrapper > .row, html body .blog-wrapper > .row, html body.search-results:not(.woocommerce) #content {
  background: var(--msp-paper-2);
  color: var(--msp-paper-ink);
  border-radius: 28px;
  border: 2.5px solid #0b0920;
  box-shadow: 8px 8px 0 var(--msp-violet);
  max-width: min(1360px, calc(100% - 32px));
  margin: 28px auto 12px;
  padding: clamp(18px, 3vw, 44px);
}
html body.single-product .shop-container > .product { padding: clamp(8px, 2vw, 28px) clamp(8px, 2vw, 28px) 4px; overflow: hidden; }
html body.single-product .shop-container > .product .section-bg { background: transparent !important; }
html body.page:not(.home):not(.woocommerce-page) #content.content-area > .section:first-child .section-bg { background: transparent !important; }
@media (max-width: 549px) {
  html body.single-product .shop-container > .product, html body.woocommerce-cart #content.content-area, html body.woocommerce-checkout #content.content-area, html body.woocommerce-account #content.content-area,
  html body.page:not(.home):not(.woocommerce-page) #content.content-area, html body .page-wrapper > .row, html body .blog-wrapper > .row {
    box-shadow: 5px 5px 0 var(--msp-violet);
    border-radius: 22px;
    margin-top: 16px;
  }
}

/* testo dentro i pannelli (pagine legali, articoli) */
html body.page:not(.home) #content.content-area > h2, html body .entry-content > h2 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); margin-top: 1.8em; }
html body.page:not(.home) #content.content-area > h2::before, html body .entry-content > h2::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 5px; background: var(--msp-fire); margin-bottom: 14px; }
html body.page:not(.home) #content.content-area > h2:first-child { margin-top: 0; }
html body.page:not(.home) #content.content-area > p, html body.page:not(.home) #content.content-area > ul, html body.page:not(.home) #content.content-area > h2, html body.page:not(.home) #content.content-area > table, html body.page:not(.home) #content.content-area > blockquote { max-width: 78ch; }
html body.page:not(.home) #content.content-area > ul { list-style: none; margin-left: 0; }
html body.page:not(.home) #content.content-area > ul > li { position: relative; padding-left: 1.5em; margin-left: 0; }
html body.page:not(.home) #content.content-area > ul > li::before { content: ""; position: absolute; left: 0.15em; top: 0.62em; width: 9px; height: 9px; border-radius: 3px; background: var(--msp-pink); transform: rotate(45deg); }
html body.page:not(.woocommerce-page) #content.content-area table th { background: #17142e; color: #fff; padding: 12px 14px; text-transform: none; letter-spacing: 0; }
html body #content.content-area table td { padding: 12px 14px; border-color: #ddd8f0; }
html body blockquote { border-left: 6px solid var(--msp-violet); background: #e9e2ff; border-radius: 18px; padding: 20px 24px; font-style: normal; color: var(--msp-paper-ink); }

/* ------------------------------------------------------------------ scheda prodotto */
html body.single-product .product .breadcrumbs { text-transform: none; font-size: 0.86rem; font-weight: 500; }
html body.single-product .product .breadcrumbs a { color: var(--msp-paper-muted); }
html body.single-product .product .breadcrumbs a:hover { color: var(--msp-link); }
html body.single-product h1.product-title { font-size: clamp(1.6rem, 2.8vw, 2.4rem); color: var(--msp-paper-ink); }
html body.single-product .product-page-price, html body.single-product .product-page-price span.amount { font-family: var(--msp-display); font-weight: 800; font-size: clamp(1.7rem, 2.6vw, 2.3rem); color: var(--msp-paper-ink); letter-spacing: -0.02em; line-height: 1.05; }
html body.single-product .product-page-price del, html body.single-product .product-page-price del span.amount { font-family: var(--msp-body); font-size: 1rem; font-weight: 500; color: #8a86a3; opacity: 1; }
html body.single-product .product-page-price ins { text-decoration: none; }
html body.single-product .product-page-price .woocommerce-price-suffix { display: block; margin-top: 2px; }
html body.single-product .custom-product-page .col-inner[style*="background-color"], html body.single-product .round-corners-all > .col-inner, html body.single-product .round-corners-all .is-sticky-column__inner > .col-inner {
  border-radius: 20px !important;
  border: 1px solid #ddd8f0;
  box-shadow: 0 10px 30px -20px rgba(23, 20, 46, 0.35);
}
html body.single-product .product-short-description { font-size: 1.03rem; }
html body.single-product .quantity .qty, html body.single-product .quantity .button { min-height: 48px; height: 48px; border-radius: 0 !important; box-shadow: none !important; }
html body.single-product .quantity .button.minus { border-radius: 14px 0 0 14px !important; }
html body.single-product .quantity .button.plus { border-radius: 0 14px 14px 0 !important; }
html body.single-product .quantity .button.is-form { background: #f0ecfd !important; border: 1.5px solid #d9d4ee !important; color: var(--msp-paper-ink) !important; padding: 0 14px; min-width: 44px; }
html body.single-product .quantity input.qty { border-left: 0 !important; border-right: 0 !important; min-width: 52px; }
html body.single-product .single_add_to_cart_button { min-height: 52px; padding-inline: 2em; font-size: 1.05rem; }
html body.single-product .woocommerce-tabs .nav > li > a, html body.single-product .tabbed-content .nav > li > a { font-family: var(--msp-display); font-weight: 800; font-size: 1.02rem; color: var(--msp-paper-muted); text-transform: none; }
html body.single-product .woocommerce-tabs .nav > li.active > a, html body.single-product .tabbed-content .nav > li.active > a { color: var(--msp-paper-ink); }
html body.single-product .nav-line > li > a::before, html body.single-product .nav-line-bottom > li > a::before, html body.single-product .nav-line-grow > li > a::before { background-color: var(--msp-pink); height: 4px; border-radius: 4px; }
html body.single-product .product-section-title, html body.single-product .related h3, html body.single-product .product-section > h3 { font-family: var(--msp-display); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; text-transform: none; color: var(--msp-paper-ink); }
html body.single-product .product a:not(.button):not(.woocommerce-LoopProduct-link):not(.nav-top-link) { color: var(--msp-link); }
html body.single-product .product .tabbed-content .nav a, html body.single-product .product .woocommerce-tabs .nav a { color: var(--msp-paper-muted) !important; }
html body.single-product .product .tabbed-content .nav .active a, html body.single-product .product .woocommerce-tabs .nav .active a { color: var(--msp-paper-ink) !important; }
html body.single-product .custom-prod-info-ics .accordion-title { border-radius: 14px; border: 1px solid #ddd8f0; }
html body.single-product .woocommerce-product-gallery .flickity-button, html body.single-product .image-tools .button { min-height: 0; padding: 0; }
html body.single-product .stock.in-stock { color: #12a150; font-weight: 700; }
html body.single-product .product_meta { font-size: 0.86rem; color: var(--msp-paper-muted); }

/* ------------------------------------------------------------------ carrello, checkout, account */
html body.woocommerce-cart #content h1, html body.woocommerce-cart #content h2, html body.woocommerce-checkout #content h3, html body.woocommerce-account #content h2, html body.woocommerce-account #content h3 { color: var(--msp-paper-ink); text-transform: none; }
html body .shop_table thead th, html body .shop_table .order-total th, html body .shop_table .cart-subtotal th { text-transform: none; letter-spacing: 0; font-family: var(--msp-display); font-weight: 800; color: var(--msp-paper-ink); border-color: #cfc8ea; font-size: 1rem; }
html body .shop_table td, html body .shop_table th { border-color: #ddd8f0; }
html body .shop_table .product-name a { color: var(--msp-paper-ink); font-weight: 600; }
html body .shop_table .product-name a:hover { color: var(--msp-link); }
html body .shop_table .amount { font-weight: 700; color: var(--msp-paper-ink); }
html body .shop_table .order-total .amount { font-family: var(--msp-display); font-size: 1.4rem; font-weight: 800; }
html body .shop_table img { border-radius: 12px; border: 1px solid #ddd8f0; background: #fff; }
html body .cart-collaterals .cart-sidebar, html body .cart_totals, html body .checkout-sidebar, html body .woocommerce-checkout .is-well, html body .woocommerce-checkout .has-border, html body .account-container .account-login-inner, html body .account-container .account-register-inner, html body .woocommerce-MyAccount-content {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #ddd8f0 !important;
  padding: clamp(18px, 2.4vw, 30px) !important;
  box-shadow: 0 10px 30px -20px rgba(23, 20, 46, 0.35);
}
html body .cart_totals .cart_totals { border: 0 !important; padding: 0 !important; box-shadow: none; }
html body .cart-collaterals .cart-sidebar .cart_totals { border: 0 !important; padding: 0 !important; box-shadow: none; background: transparent; }
html body .checkout-button, html body #place_order { width: 100%; min-height: 54px; font-size: 1.08rem; }
html body .woocommerce-cart .coupon .button, html body .checkout_coupon .button, html body button[name="update_cart"], html body .button.is-outline:not(.primary) { box-shadow: none !important; }
html body #payment, html body .woocommerce-checkout-payment { background: transparent; border-radius: 14px; }
html body #payment ul.payment_methods li { border-color: #ddd8f0; padding: 12px 0; }
html body #payment .payment_box { background: var(--msp-paper-2); border-radius: 12px; }
html body .woocommerce-privacy-policy-text, html body .woocommerce-terms-and-conditions-wrapper { font-size: 0.9rem; color: var(--msp-paper-muted); }
html body .woocommerce-account .account-container { max-width: 980px; margin-inline: auto; }
html body .woocommerce-account #content h2.uppercase, html body .account-container h2, html body .account-container h3 { font-family: var(--msp-display); text-transform: none; font-size: 1.5rem; letter-spacing: -0.02em; }
html body .woocommerce-MyAccount-navigation, html body .account-user { color: var(--msp-paper-ink); }
html body .woocommerce-MyAccount-navigation ul li a, html body #my-account-nav > li > a { color: var(--msp-paper-ink); font-weight: 600; text-transform: none; font-size: 0.98rem; border-radius: 12px; padding: 10px 14px; }
html body .woocommerce-MyAccount-navigation ul li.is-active a, html body #my-account-nav > li.active > a, html body #my-account-nav > li > a:hover { background: var(--msp-yellow); color: #0b0920; }
html body #my-account-nav > li.active > a::before, html body #my-account-nav > li > a::before { display: none; }
html body .dashboard-links a { border-radius: 16px; border: 1.5px solid #d9d4ee; background: #fff; color: var(--msp-paper-ink); font-weight: 700; }
html body .dashboard-links a:hover { background: var(--msp-yellow); border-color: #0b0920; color: #0b0920; }
html body .my-account-header.page-title, html body .my-account-header .page-title-inner { background: transparent; color: var(--msp-ink); }
html body .my-account-header h1, html body .my-account-header .breadcrumbs, html body .my-account-header .breadcrumbs a, html body .checkout-page-title .breadcrumbs a, html body .checkout-page-title .breadcrumbs, html body .cart-page-title .breadcrumbs a { color: var(--msp-ink); text-transform: none; font-family: var(--msp-display); font-weight: 800; }
html body .checkout-breadcrumbs a.current, html body .checkout-page-title .breadcrumbs a.current { color: var(--msp-yellow); }
html body .checkout-page-title .breadcrumbs a.hide-for-small, html body .checkout-page-title .divider { opacity: 0.6; }

/* conferma d'ordine e dettaglio ordine */
html body .woocommerce-thankyou-order-received, html body .woocommerce-notice--success { font-family: var(--msp-display); font-weight: 800; font-size: clamp(1.25rem, 2.2vw, 1.6rem); letter-spacing: -0.02em; color: #0d7a3d; }
html body .woocommerce-order .is-well, html body .woocommerce-order-received .is-well { background: #fff; border-radius: 20px; border: 1px solid #ddd8f0; box-shadow: 0 10px 30px -20px rgba(23, 20, 46, 0.35); padding: clamp(18px, 2.4vw, 30px); }
html body ul.order_details li, html body ul.woocommerce-order-overview li { border-color: #ddd8f0; color: var(--msp-paper-muted); }
html body ul.order_details li strong, html body ul.woocommerce-order-overview li strong { color: var(--msp-paper-ink); }
html body .woocommerce-order-details__title, html body .woocommerce-column__title, html body .wc-bacs-bank-details-heading, html body .woocommerce-order h2, html body .woocommerce-order h3 { font-family: var(--msp-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; text-transform: none; color: var(--msp-paper-ink); }
html body .woocommerce-customer-details address { font-style: normal; background: #fff; border: 1px solid #ddd8f0; border-radius: 16px; padding: 16px 18px; }
html body ul.wc-bacs-bank-details { list-style: none; margin-left: 0; padding: 16px 18px; background: #fff; border: 1px solid #ddd8f0; border-radius: 16px; }
html body ul.wc-bacs-bank-details li { margin-left: 0; }
html body mark.order-number, html body mark.order-date, html body mark.order-status { background: var(--msp-yellow); color: #0b0920; padding: 1px 8px; border-radius: 6px; font-weight: 700; }

/* avvisi */
html body .woocommerce-info, html body .woocommerce-message, html body .woocommerce-error, html body .message-wrapper { border-radius: 16px; }
html body .wc-empty-cart-message .woocommerce-info, html body .wc-empty-cart-message .message-container { font-family: var(--msp-display); font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: var(--msp-paper-ink); letter-spacing: -0.02em; }
html body .woocommerce-message.message-wrapper .message-container, html body .success-color { color: #0d7a3d; font-weight: 600; }
html body .woocommerce-error li, html body p[role="alert"] { color: #c81e1e; }
html body .woocommerce-store-notice, html body .demo_store { background: var(--msp-yellow); color: #0b0920; font-weight: 700; }

/* ------------------------------------------------------------------ blog */
html body .blog-archive .page-title, html body .archive-page-header, html body .page-title:not(.shop-page-title) .page-title-inner { color: var(--msp-ink); }
html body .archive-page-header h1, html body .blog-archive .page-title span, html body .page-title:not(.shop-page-title) h1 { color: var(--msp-ink); font-family: var(--msp-display); text-transform: none; }
html body .post-item .box, html body .post-item .col-inner { border-radius: 20px; overflow: hidden; }
html body .post-item .box-text { background: #fff; }
html body .post-title a, html body .entry-title a { color: var(--msp-paper-ink); }
html body .entry-content a, html body.page #content.content-area > p a, html body.page #content.content-area > ul a { color: var(--msp-link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
html body .entry-content a:hover, html body.page #content.content-area > p a:hover { color: var(--msp-pink); }

/* ------------------------------------------------------------------ footer */
html body #footer { background: #05040f; position: relative; margin-top: 48px; }
html body #footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 2; background: var(--msp-rainbow); }
html body #footer .section, html body #footer .section-bg, html body #footer .footer-container-ics .section-bg, html body .footer-widgets, html body .footer-1, html body .footer-2 { background-color: #05040f !important; background-image: none !important; }
html body #footer .section-bg .is-border { display: none; }
html body #footer, html body #footer p, html body #footer li, html body #footer span, html body #footer .widget, html body #footer .col-inner { color: var(--msp-muted); }
html body #footer h1, html body #footer h2, html body #footer h3, html body #footer h4, html body #footer h5, html body #footer .widget-title, html body #footer strong { color: var(--msp-ink); }
html body #footer h3, html body #footer h4, html body #footer h5 { color: var(--msp-yellow); font-size: 1.05rem; letter-spacing: 0 !important; text-transform: none; }
html body #footer a:not(.button) { color: var(--msp-muted); transition: color 0.15s; }
html body #footer a:not(.button):hover { color: #fff; }
html body #footer .button, html body #footer .button span { color: #0b0920 !important; }
html body #content.content-area:not(:has(*)) { display: none; }
html body.single-product .product .is-divider { background-color: #d9d4ee; height: 2px; }
html body #footer .ux-menu-link__link, html body #footer .ux-menu-link { border-color: transparent !important; min-height: 0; padding-block: 3px; }
html body #footer .ux-menu-link__text { color: inherit; }
html body #footer .is-divider, html body #footer .divider { background-color: var(--msp-line); }
html body #footer .col-inner > p:last-child a[href*="note-legali"] { color: var(--msp-yellow) !important; text-decoration: underline; text-underline-offset: 3px; }
html body .absolute-footer, html body .absolute-footer.light { background-color: #05040f !important; color: #8f89b8; border-top: 1px solid var(--msp-line); padding: 18px 0 22px; font-size: 0.85rem; }
html body .absolute-footer strong, html body .absolute-footer a { color: #b9b3dc; }
html body .absolute-footer .payment-icon { background: #fff; border-radius: 8px; opacity: 1; padding: 4px 6px; }
html body .absolute-footer .payment-icon svg { fill: #17142e; }

/* ------------------------------------------------------------------ varie */
html body .lightbox-content { border-radius: 24px; background: var(--msp-paper); }
html body .lightbox-content .account-container { color: var(--msp-paper-ink); }
html body .is-divider { background-color: var(--msp-pink); opacity: 1; height: 4px; border-radius: 4px; }
html body .star-rating span::before, html body .stars a { color: var(--msp-orange); }
/* banner dei cookie (Complianz): stesso stile del sito, Accetta e Nega con pari evidenza */
html body .cmplz-cookiebanner { border-radius: 20px !important; font-family: var(--msp-body) !important; border: 2.5px solid #0b0920 !important; box-shadow: 6px 6px 0 var(--msp-violet) !important; background: #fff !important; color: #17142e !important; }
html body .cmplz-cookiebanner .cmplz-title { font-family: var(--msp-display); font-weight: 800; font-size: 1.1rem; color: #17142e; }
html body .cmplz-cookiebanner .cmplz-message, html body .cmplz-cookiebanner .cmplz-message p { color: #2c2947; font-size: 0.86rem; line-height: 1.5; }
html body .cmplz-cookiebanner .cmplz-buttons { gap: 8px; flex-wrap: wrap; }
html body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
  flex: 1 1 0%; min-width: 0; height: auto; min-height: 44px; margin: 0; padding: 8px 14px;
  font-family: var(--msp-display); font-weight: 800; font-size: 0.9rem; line-height: 1.15;
  text-transform: none; letter-spacing: 0; white-space: normal;
  border-radius: 999px !important; border: 2px solid #0b0920 !important; box-shadow: none !important;
}
html body .cmplz-cookiebanner .cmplz-btn.cmplz-accept, html body .cmplz-cookiebanner .cmplz-btn.cmplz-deny { background-color: #ffd60a !important; color: #0b0920 !important; }
html body .cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences, html body .cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences { background-color: #fff !important; color: #0b0920 !important; }
html body .cmplz-cookiebanner .cmplz-btn:hover { background-color: #0b0920 !important; color: #fff !important; }
html body .cmplz-cookiebanner .cmplz-links a, html body .cmplz-cookiebanner .cmplz-link { color: #5a21d6 !important; font-weight: 600; }
html body .cmplz-cookiebanner .cmplz-close { min-height: 0; padding: 0; margin: 0; color: #17142e; }
html body .cmplz-cookiebanner .cmplz-categories .cmplz-category { background: #f5f2fd; border-radius: 12px; }
/* banner cookie su telefono: pannello compatto in basso, Accetta e Nega affiancati */
@media (max-width: 768px) {
  html body .cmplz-cookiebanner.cmplz-cookiebanner {
    left: 8px !important; right: 8px !important; bottom: 8px !important; top: auto !important;
    width: auto !important; max-width: none !important; transform: none !important;
    max-height: 70vh; overflow-y: auto;
    padding: 14px 16px 12px !important; gap: 8px !important;
    border-radius: 18px !important; box-shadow: 4px 4px 0 var(--msp-violet) !important;
  }
  html body .cmplz-cookiebanner .cmplz-header { min-height: 0; }
  html body .cmplz-cookiebanner .cmplz-title { font-size: 1rem; }
  html body .cmplz-cookiebanner .cmplz-close { font-size: 18px; width: 28px; height: 28px; }
  html body .cmplz-cookiebanner .cmplz-close svg { width: 16px; height: 16px; }
  html body .cmplz-cookiebanner .cmplz-body { max-height: none !important; }
  html body .cmplz-cookiebanner .cmplz-message, html body .cmplz-cookiebanner .cmplz-message p { font-size: 0.8rem; line-height: 1.45; margin: 0; }
  html body .cmplz-cookiebanner .cmplz-buttons {
    display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; flex-direction: unset !important;
  }
  html body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
    width: auto !important; flex: none !important; min-height: 42px; height: auto !important;
    padding: 8px 10px; font-size: 0.88rem; margin: 0 !important;
  }
  html body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences,
  html body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-save-preferences {
    grid-column: 1 / -1; min-height: 36px; padding: 6px 10px; font-size: 0.82rem;
    border-width: 1.5px !important;
  }
  html body .cmplz-cookiebanner .cmplz-links.cmplz-documents { margin: 0; }
  html body .cmplz-cookiebanner .cmplz-links a { font-size: 0.78rem; }
}
html body #cmplz-manage-consent .cmplz-manage-consent { font-family: var(--msp-display); font-weight: 800; min-height: 0; text-transform: none; background: #ffd60a !important; color: #0b0920 !important; border: 2px solid #0b0920 !important; border-bottom: 0 !important; border-radius: 12px 12px 0 0 !important; box-shadow: none !important; }

@media (prefers-reduced-motion: reduce) {
  html body *, html body *::before, html body *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
