/* =========================================================
   Prezzomania V2 - Design Tokens
   Brand palette: white / black / Prezzomania orange
   ========================================================= */

:root {
    /* Brand */
    --pm-primary: #FF8C00;
    --pm-primary-rgb: 255, 140, 0;
    --pm-primary-hover: #e67e00;
    --pm-primary-active: #cc7000;

    --pm-white: #ffffff;
    --pm-black: #111111;

    /* Neutral palette */
    --pm-gray-50: #fafafa;
    --pm-gray-100: #f5f5f5;
    --pm-gray-150: #f0f1f2;
    --pm-gray-200: #e6e7e9;
    --pm-gray-300: #d2d4d7;
    --pm-gray-400: #a6a9ad;
    --pm-gray-500: #777b80;
    --pm-gray-600: #5f6368;
    --pm-gray-700: #44484d;
    --pm-gray-800: #2d3034;
    --pm-gray-900: #202225;

    /* Semantic */
    --pm-bg: #f4f4f5;
    --pm-surface: var(--pm-white);
    --pm-surface-soft: var(--pm-gray-50);

    --pm-text: #222222;
    --pm-text-secondary: #5f6368;
    --pm-text-muted: #777b80;
    --pm-text-inverse: #ffffff;

    --pm-border: #e3e4e6;
    --pm-border-strong: #c9cbce;

    --pm-success: #198754;
    --pm-danger: #d93616;
    --pm-warning: #d99a00;
    --pm-info: #0d6efd;

    /* Typography */
    --pm-font-family:
        "Montserrat",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    --pm-font-size-xs: 0.75rem;
    --pm-font-size-sm: 0.875rem;
    --pm-font-size-base: 1rem;
    --pm-font-size-lg: 1.125rem;
    --pm-font-size-xl: 1.25rem;
    --pm-font-size-2xl: 1.5rem;
    --pm-font-size-3xl: 1.875rem;

    --pm-line-height-tight: 1.25;
    --pm-line-height-base: 1.5;

    --pm-font-weight-normal: 400;
    --pm-font-weight-medium: 500;
    --pm-font-weight-semibold: 600;
    --pm-font-weight-bold: 700;

    /* Spacing */
    --pm-space-1: 0.25rem;
    --pm-space-2: 0.5rem;
    --pm-space-3: 0.75rem;
    --pm-space-4: 1rem;
    --pm-space-5: 1.25rem;
    --pm-space-6: 1.5rem;
    --pm-space-8: 2rem;
    --pm-space-10: 2.5rem;
    --pm-space-12: 3rem;
    --pm-space-16: 4rem;

    /* Radius */
    --pm-radius-sm: 0.375rem;
    --pm-radius: 0.5rem;
    --pm-radius-lg: 0.75rem;
    --pm-radius-xl: 1rem;
    --pm-radius-pill: 999px;

    /* Shadows */
    --pm-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --pm-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
    --pm-shadow-lg: 0 16px 42px rgba(0, 0, 0, 0.15);

    --pm-focus-ring: 0 0 0 0.25rem rgba(var(--pm-primary-rgb), 0.18);

    /* Layout */
    --pm-content-max-width: 1440px;
    --pm-topbar-height: 34px;
    --pm-header-height: 78px;
    --pm-nav-height: 48px;

    /* Motion */
    --pm-transition-fast: 120ms ease;
    --pm-transition: 180ms ease;

    /* Bootstrap bridge */
    --bs-body-font-family: var(--pm-font-family);
    --bs-body-bg: var(--pm-bg);
    --bs-body-color: var(--pm-text);
    --bs-border-color: var(--pm-border);
    --bs-border-radius: var(--pm-radius);
    --bs-border-radius-lg: var(--pm-radius-lg);
}
/* =========================================================
   Prezzomania V2 - Base
   Load after Bootstrap and tokens.css
   ========================================================= */

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--pm-bg);
    color: var(--pm-text);
    font-family: var(--pm-font-family);
    font-size: var(--pm-font-size-base);
    line-height: var(--pm-line-height-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img,
svg {
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.14em;
    transition:
        color var(--pm-transition-fast),
        opacity var(--pm-transition-fast);
}

a:hover {
    color: var(--pm-primary);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: var(--pm-focus-ring);
}

::selection {
    background: rgba(var(--pm-primary-rgb), 0.18);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--pm-text);
    font-weight: var(--pm-font-weight-bold);
    line-height: var(--pm-line-height-tight);
}

p:last-child {
    margin-bottom: 0;
}

.pm-text-secondary {
    color: var(--pm-text-secondary);
}

.pm-text-muted {
    color: var(--pm-text-muted);
}

.pm-bg-surface {
    background: var(--pm-surface);
}

.pm-visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
/* =========================================================
   Prezzomania V2 - Layout
   Mobile first
   ========================================================= */

.pm-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.pm-main {
    flex: 1 0 auto;
    padding-block: var(--pm-space-5) var(--pm-space-10);
}

.pm-container {
    width: 100%;
    margin-inline: auto;
    padding-inline: 1rem;
}

/* Generic content sections */
.pm-section {
    margin-bottom: var(--pm-space-6);
}

.pm-section:last-child {
    margin-bottom: 0;
}

/* Optional topbar */
.pm-topbar {
    min-height: var(--pm-topbar-height);
    display: flex;
    align-items: center;
    background: var(--pm-gray-900);
    color: var(--pm-white);
    font-size: var(--pm-font-size-sm);
}

/* Main header shell */
.pm-header {
    min-height: var(--pm-header-height);
    display: flex;
    align-items: center;
    background: var(--pm-surface);
    border-bottom: 1px solid var(--pm-border);
    box-shadow: var(--pm-shadow-sm);
}

/* Checkout/cart grid helper */
.pm-two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--pm-space-5);
}

/* Tablet */
@media (min-width: 768px) {
    .pm-container {
        padding-inline: 1.25rem;
    }

    .pm-main {
        padding-block: var(--pm-space-6) var(--pm-space-12);
    }

    .pm-two-column-layout {
        gap: var(--pm-space-6);
    }
}

/* Desktop */
@media (min-width: 992px) {
    .pm-container {
        padding-inline: 1.5rem;
    }

    .pm-main {
        padding-block: var(--pm-space-8) var(--pm-space-16);
    }

    .pm-two-column-layout {
        grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
        align-items: start;
        gap: var(--pm-space-8);
    }
}

/* Wide */
@media (min-width: 1400px) {
    .pm-container {
        max-width: var(--pm-content-max-width);
    }
}
/* =========================================================
   Prezzomania V2 - Shared Components
   Load after Bootstrap, tokens, base and layout
   ========================================================= */

/* ---------- Cards ---------- */

.pm-card {
    background: var(--pm-surface);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius-lg);
}

.pm-card--flat {
    border-color: transparent;
}

.pm-card--shadow {
    box-shadow: var(--pm-shadow-sm);
}

.pm-card__body {
    padding: var(--pm-space-4);
}

@media (min-width: 768px) {
    .pm-card__body {
        padding: var(--pm-space-6);
    }
}

/* ---------- Buttons ---------- */

.pm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    min-height: 48px;
    padding: 0.7rem 1.15rem;

    border: 1px solid transparent;
    border-radius: var(--pm-radius);

    font-weight: var(--pm-font-weight-semibold);
    line-height: 1.2;
    text-align: center;
    text-decoration: none;

    cursor: pointer;
    user-select: none;

    transition:
        background-color var(--pm-transition),
        border-color var(--pm-transition),
        color var(--pm-transition),
        box-shadow var(--pm-transition),
        transform var(--pm-transition-fast);
}

.pm-btn:active {
    transform: translateY(1px);
}

.pm-btn:disabled,
.pm-btn[aria-disabled="true"] {
    opacity: 0.55;
    pointer-events: none;
}

.pm-btn--primary {
    background: var(--pm-primary);
    border-color: var(--pm-primary);
    color: var(--pm-text-inverse);
}

.pm-btn--primary:hover {
    background: var(--pm-primary-hover);
    border-color: var(--pm-primary-hover);
    color: var(--pm-text-inverse);
}

.pm-btn--primary:active {
    background: var(--pm-primary-active);
    border-color: var(--pm-primary-active);
}

.pm-btn--outline {
    background: var(--pm-surface);
    border-color: var(--pm-border-strong);
    color: var(--pm-text);
}

.pm-btn--outline:hover {
    background: var(--pm-surface-soft);
    border-color: var(--pm-gray-700);
    color: var(--pm-text);
}

.pm-btn--ghost {
    min-height: 40px;
    padding-inline: 0.75rem;
    background: transparent;
    border-color: transparent;
    color: var(--pm-text);
}

.pm-btn--ghost:hover {
    background: var(--pm-gray-100);
    color: var(--pm-text);
}

.pm-btn--block {
    width: 100%;
}

/* Bootstrap primary button alignment */
.btn-primary {
    --bs-btn-bg: var(--pm-primary);
    --bs-btn-border-color: var(--pm-primary);
    --bs-btn-hover-bg: var(--pm-primary-hover);
    --bs-btn-hover-border-color: var(--pm-primary-hover);
    --bs-btn-active-bg: var(--pm-primary-active);
    --bs-btn-active-border-color: var(--pm-primary-active);
    --bs-btn-focus-shadow-rgb: var(--pm-primary-rgb);
}

/* ---------- Forms ---------- */

.pm-form-control {
    min-height: 48px;
    border: 1px solid var(--pm-border-strong);
    border-radius: var(--pm-radius);
    background: var(--pm-surface);
    color: var(--pm-text);
}

.pm-form-control:hover {
    border-color: var(--pm-gray-500);
}

.pm-form-control:focus {
    border-color: var(--pm-primary);
    box-shadow: var(--pm-focus-ring);
}

/* ---------- Labels / badges ---------- */

.pm-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.55rem;
    border-radius: var(--pm-radius-pill);
    background: var(--pm-gray-100);
    color: var(--pm-text-secondary);
    font-size: var(--pm-font-size-xs);
    font-weight: var(--pm-font-weight-semibold);
}

/* ---------- Dividers ---------- */

.pm-divider {
    border: 0;
    border-top: 1px solid var(--pm-border);
    margin: var(--pm-space-5) 0;
}

/* ---------- Icon button ---------- */

.pm-icon-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--pm-text-secondary);

    cursor: pointer;

    transition:
        background-color var(--pm-transition-fast),
        color var(--pm-transition-fast);
}

.pm-icon-btn:hover {
    background: var(--pm-gray-100);
    color: var(--pm-text);
}

/* ---------- Accordion-like rows ---------- */

.pm-action-row {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pm-space-4);

    padding: 0 var(--pm-space-4);

    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius-lg);
    background: var(--pm-surface);
    color: var(--pm-text);

    text-align: left;
    text-decoration: none;
}

.pm-action-row:hover {
    background: var(--pm-gray-50);
    color: var(--pm-text);
}

/* ---------- Price ---------- */

.pm-price {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pm-price--strong {
    font-weight: var(--pm-font-weight-bold);
}
/* =========================================================
   Prezzomania V2 - Header / Navigation
   Desktop + tablet + mobile
   Uses current #pmMegaMenuWrapper markup from menu_statico.asp
   ========================================================= */

/* ---------- Global shell ---------- */

.pm-site-header {
    position: relative;
    z-index: 1050;
    background: var(--pm-surface);
    color: var(--pm-text);
}

.pm-site-header a {
    text-decoration: none;
}

.pm-site-header__desktop {
    display: none;
}

.pm-site-header__mobile {
    display: block;
}

/* ---------- Top bar ---------- */

.pm-topbar-v2 {
    background: var(--pm-black);
    color: var(--pm-white);
    font-size: 0.78rem;
}

.pm-topbar-v2__inner {
    min-height: var(--pm-topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pm-topbar-v2__group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
}

.pm-topbar-v2 a {
    color: var(--pm-white);
    opacity: 0.95;
}

.pm-topbar-v2 a:hover {
    color: var(--pm-white);
    opacity: 1;
}

.pm-topbar-v2__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

/* ---------- Desktop main row ---------- */

.pm-header-main {
    background: var(--pm-surface);
    border-bottom: 1px solid var(--pm-border);
}

.pm-header-main__inner {
    min-height: 104px;
    display: grid;
    grid-template-columns: 350px minmax(360px, 560px) auto;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.pm-header-logo {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.pm-header-logo img {
    display: block;
    width: 350px;
    max-width: 100%;
    height: auto;
    max-height: 88px;
    object-fit: contain;
}

/* ---------- Search ---------- */

.pm-header-search {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    line-height: 1;
}

.pm-header-search__input {
    display: block;
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0 58px 0 20px;

    border: 2px solid #F7931E;
    border-radius: 999px;

    background-color: #fff;

    /*
       Lente inserita direttamente come background:
       niente SVG nel DOM, quindi nessun rischio di icona gigante
       se il browser ha ancora vecchi CSS in cache.
    */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='%23F7931E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 26px 26px;

    color: var(--pm-text);
    font-family: var(--pm-font-family);
    font-size: 1rem;
    font-weight: 400;

    outline: none;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.08);

    appearance: none;
    -webkit-appearance: none;

    transition:
        border-color var(--pm-transition),
        box-shadow var(--pm-transition),
        background-color var(--pm-transition);
}

.pm-header-search__input::placeholder {
    color: #757575;
    opacity: 1;
}

.pm-header-search__input:hover {
    border-color: #F7931E;
}

.pm-header-search__input:focus {
    background-color: #fff;
    border-color: #F7931E;
    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.10),
        0 0 0 3px rgba(247, 147, 30, 0.14);
}

/* Nasconde la X nativa del type=search dove presente. */
.pm-header-search__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

/* ---------- Right actions - Home24-style ---------- */

.pm-header-actions {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0.45rem;
}

.pm-header-action {
    position: relative;
    min-width: 72px;
    min-height: 64px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;

    padding: 0.35rem 0.45rem;

    border: 0;
    border-radius: var(--pm-radius);
    background: transparent;
    color: var(--pm-gray-600);

    font: inherit;
    cursor: pointer;
    text-decoration: none;

    transition:
        background-color var(--pm-transition-fast),
        color var(--pm-transition-fast);
}

.pm-header-action:hover,
.pm-header-action.is-open {
    background: var(--pm-gray-50);
    color: var(--pm-black);
}

.pm-header-action__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 32px;
}

.pm-header-action__icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pm-header-action__label {
    display: block;
    font-size: 0.76rem;
    line-height: 1.15;
    white-space: nowrap;
}

.pm-header-action__badge {
    position: absolute;
    top: -7px;
    right: -9px;

    min-width: 21px;
    height: 21px;
    padding: 0 5px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #fff;
    border-radius: var(--pm-radius-pill);
    background: var(--pm-primary);
    color: #fff;

    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}

/* ---------- Account dropdown ---------- */

.pm-account {
    position: relative;
}

.pm-account-menu {
    position: absolute;
    top: calc(100% + 11px);
    right: 50%;
    z-index: 1100;

    width: 310px;
    padding: 1rem;

    border: 1px solid var(--pm-border-strong);
    border-radius: 0.25rem;
    background: #fff;
    box-shadow: var(--pm-shadow);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(50%, -4px);

    transition:
        opacity var(--pm-transition),
        transform var(--pm-transition),
        visibility var(--pm-transition);
}

.pm-account-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    width: 18px;
    height: 18px;
    transform: translateX(-50%) rotate(45deg);
    border-top: 1px solid var(--pm-border-strong);
    border-left: 1px solid var(--pm-border-strong);
    background: #fff;
}

.pm-account.is-open .pm-account-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(50%, 0);
}

.pm-account-menu__primary {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: var(--pm-radius);
    background: var(--pm-primary);
    color: #fff;

    font-weight: 700;
    text-decoration: none;
}

.pm-account-menu__primary:hover {
    background: var(--pm-primary-hover);
    color: #fff;
}

.pm-account-menu__register {
    margin: 1rem 0 0.85rem;
    color: var(--pm-text-secondary);
    line-height: 1.45;
}

.pm-account-menu__register a {
    color: var(--pm-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pm-account-menu__divider {
    height: 1px;
    margin: 0.8rem 0;
    background: var(--pm-border);
}

.pm-account-menu__link {
    display: block;
    padding: 0.55rem 0;
    color: var(--pm-text-secondary);
    font-size: 0.93rem;
}

.pm-account-menu__link:hover {
    color: var(--pm-primary);
}

.pm-account-menu__hello {
    margin-bottom: 0.4rem;
    color: var(--pm-text);
    font-size: 0.94rem;
}

.pm-account-menu__email {
    color: var(--pm-text-muted);
    font-size: 0.78rem;
    word-break: break-word;
}

/* ---------- Desktop category nav ---------- */

.pm-category-nav {
    position: relative;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--pm-border);
}

.pm-category-nav__inner {
    min-height: var(--pm-nav-height);
    display: flex;
    align-items: center;
}

/*
   Existing menu_statico.asp selectors.
   We deliberately scope everything to #pmMegaMenuWrapper
   so legacy CSS outside V2 cannot leak in.
*/

#pmMegaMenuWrapper,
#pmMegaMenuWrapper * {
    box-sizing: border-box;
}

#pmMegaMenuWrapper {
    position: relative;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
    font-family: var(--pm-font-family);
    overflow: visible;
}

#pmMegaMenuWrapper ul,
#pmMegaMenuWrapper li {
    margin: 0;
    padding: 0;
    list-style: none;
}

#pmMegaMenuWrapper .pm-menu {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.1rem;
    overflow: visible;
}

#pmMegaMenuWrapper .pm-root {
    position: relative;
    min-width: 0;
}

#pmMegaMenuWrapper .pm-root-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;

    min-height: var(--pm-nav-height);
    padding: 0 0.6rem;

    color: #444;
    background: transparent;

    font-size: 0.82rem;
    line-height: 1.2;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;

    transition: color var(--pm-transition-fast);
}

#pmMegaMenuWrapper .pm-root:hover > .pm-root-link,
#pmMegaMenuWrapper .pm-root-link:hover,
#pmMegaMenuWrapper .pm-root-link:focus-visible {
    color: var(--pm-primary);
}

#pmMegaMenuWrapper .pm-root-arrow {
    margin-left: 0.15rem;
    color: inherit;
    font-size: 0.75rem;
}

#pmMegaMenuWrapper .pm-mega-box {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    width: 780px;
    min-height: 1px;
    z-index: 1200;

    background: transparent;
    overflow: visible;
}

#pmMegaMenuWrapper .pm-root:hover > .pm-mega-box,
#pmMegaMenuWrapper .pm-root:focus-within > .pm-mega-box {
    display: block;
}

#pmMegaMenuWrapper .pm-col {
    display: none;
    position: absolute;
    top: 0;

    width: 260px;
    max-height: min(560px, calc(100vh - 190px));
    padding: 0.7rem 0;

    background: #fff;
    box-shadow: var(--pm-shadow-lg);
    overflow-y: auto;
    overflow-x: visible;
}

#pmMegaMenuWrapper .pm-col-1 {
    left: 0;
    display: block;
    border-radius: 0 0 0 1rem;
}

#pmMegaMenuWrapper .pm-col-2 {
    left: 260px;
}

#pmMegaMenuWrapper .pm-col-3 {
    left: 520px;
    border-radius: 0 0 1rem 0;
}

#pmMegaMenuWrapper .pm-col.is-visible {
    display: block;
}

#pmMegaMenuWrapper .pm-link {
    width: 100%;
    min-height: 43px;

    display: flex;
    align-items: center;
    gap: 0.7rem;

    padding: 0.6rem 0.9rem;

    background: #fff;
    color: #5f5f5f;

    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    white-space: normal;

    transition:
        color var(--pm-transition-fast),
        background-color var(--pm-transition-fast);
}

#pmMegaMenuWrapper .pm-link:hover,
#pmMegaMenuWrapper .pm-item:hover > .pm-link,
#pmMegaMenuWrapper .pm-item.active > .pm-link {
    color: var(--pm-primary);
    background: #fffaf3;
}

#pmMegaMenuWrapper .pm-text {
    flex: 1 1 auto;
    min-width: 0;
}

#pmMegaMenuWrapper .pm-arrow {
    margin-left: auto;
    color: #777;
    font-size: 1rem;
}

#pmMegaMenuWrapper .pm-item:hover .pm-arrow,
#pmMegaMenuWrapper .pm-item.active .pm-arrow {
    color: var(--pm-primary);
}

#pmMegaMenuWrapper .pm-icon {
    width: 26px;
    min-width: 26px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #222;
}

#pmMegaMenuWrapper .pm-icon img {
    display: block;
    max-width: 23px;
    max-height: 23px;
}

/* ---------- Mobile header ---------- */

.pm-mobile-topline {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0.25rem 0.75rem;

    background: var(--pm-black);
    color: #fff;

    font-size: 0.72rem;
    text-align: center;
}

.pm-mobile-mainbar {
    min-height: 60px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;

    padding: 0.4rem 0.75rem;

    background: #fff;
    border-bottom: 1px solid var(--pm-border);
}

.pm-mobile-menu-button,
.pm-mobile-action {
    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--pm-text-secondary);

    cursor: pointer;
}

.pm-mobile-menu-button:hover,
.pm-mobile-action:hover {
    background: var(--pm-gray-100);
    color: var(--pm-black);
}

.pm-mobile-menu-button svg,
.pm-mobile-action svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pm-mobile-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.pm-mobile-logo img {
    display: block;
    width: auto;
    max-width: 185px;
    max-height: 40px;
    object-fit: contain;
}

.pm-mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.pm-mobile-action {
    position: relative;
}

.pm-mobile-badge {
    position: absolute;
    top: 0;
    right: -1px;

    min-width: 19px;
    height: 19px;
    padding: 0 4px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #fff;
    border-radius: 99px;
    background: var(--pm-primary);
    color: #fff;

    font-size: 0.62rem;
    font-weight: 700;
}

.pm-mobile-search {
    padding: 0.5rem 0.75rem 0.7rem;
    background: #fff;
    border-bottom: 1px solid var(--pm-border);
}

.pm-mobile-search .pm-header-search__input {
    height: 44px;
    padding-right: 3.25rem;
    font-size: 1rem;
}

.pm-mobile-search .pm-header-search__icon {
    right: 15px;
}

.pm-mobile-search .pm-header-search__icon svg {
    width: 24px;
    height: 24px;
}

/* ---------- Mobile category drawer ---------- */

html.pm-menu-open,
body.pm-menu-open {
    overflow: hidden;
}

.pm-mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;

    background: rgba(0, 0, 0, 0.48);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.22s ease,
        visibility 0.22s ease;
}

.pm-mobile-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.pm-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1090;

    width: min(88vw, 410px);
    height: 100vh;
    height: 100dvh;

    display: flex;
    flex-direction: column;

    background: #fff;
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.22);

    transform: translateX(-105%);
    visibility: hidden;

    transition:
        transform 0.26s ease,
        visibility 0.26s ease;
}

.pm-mobile-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.pm-mobile-drawer-header {
    flex: 0 0 62px;

    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;

    padding: 0 0.6rem;

    border-bottom: 1px solid var(--pm-border);
    background: #fff;
}

.pm-mobile-drawer-title {
    min-width: 0;
    padding-inline: 0.5rem;

    color: var(--pm-text);
    font-size: 1.05rem;
    font-weight: 700;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pm-mobile-drawer-back,
.pm-mobile-drawer-close {
    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 0;
    border-radius: 50%;

    background: transparent;
    color: var(--pm-text);

    cursor: pointer;
}

.pm-mobile-drawer-back {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pm-mobile-drawer-back.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.pm-mobile-drawer-close {
    color: var(--pm-primary);
}

.pm-mobile-drawer-back:hover,
.pm-mobile-drawer-close:hover {
    background: var(--pm-gray-100);
}

.pm-mobile-drawer-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.pm-mobile-menu-generated {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;

    padding: 0.5rem 1rem 1.5rem;

    -webkit-overflow-scrolling: touch;
}

.pm-mobile-menu-row {
    border-bottom: 1px solid var(--pm-border);
}

.pm-mobile-menu-link {
    width: 100%;
    min-height: 54px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;

    padding: 0.65rem 0.25rem;

    border: 0;
    background: transparent;
    color: var(--pm-text);

    font: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    text-decoration: none;

    cursor: pointer;
}

.pm-mobile-menu-link:hover {
    color: var(--pm-primary);
}

.pm-mobile-menu-text {
    flex: 1 1 auto;
    min-width: 0;
}

.pm-mobile-menu-arrow {
    flex: 0 0 auto;
    color: var(--pm-text-muted);
    font-size: 1.4rem;
    line-height: 1;
}

.pm-mobile-menu-view-all {
    margin-bottom: 0.25rem;
    border-bottom: 0;
}

.pm-mobile-menu-view-all .pm-mobile-menu-link {
    color: var(--pm-primary);
    font-weight: 700;
}

.pm-mobile-menu-support {
    margin-top: 1rem;
    border-bottom: 0;
}

.pm-mobile-menu-support .pm-mobile-menu-link {
    justify-content: center;

    min-height: 48px;
    padding-inline: 1rem;

    border-radius: var(--pm-radius);
    background: var(--pm-primary);
    color: #fff;

    font-weight: 700;
}

.pm-mobile-menu-support .pm-mobile-menu-link:hover {
    background: var(--pm-primary-hover);
    color: #fff;
}

/* ---------- Breakpoints ---------- */

@media (min-width: 992px) {
    .pm-site-header__mobile {
        display: none;
    }

    .pm-site-header__desktop {
        display: block;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .pm-header-main__inner {
        grid-template-columns: 270px minmax(300px, 1fr) auto;
        gap: 1.25rem;
    }

    .pm-header-logo img {
        max-width: 270px;
        max-height: 68px;
    }

    .pm-header-search {
        max-width: 560px;
    }
}

@media (min-width: 1200px) {
    .pm-header-main__inner {
        grid-template-columns: 350px minmax(360px, 560px) auto;
        gap: 2rem;
    }

.pm-header-logo img {
        width: 350px;
        max-width: 350px;
        max-height: 82px;
    }

    .pm-header-search {
        max-width: 620px;
    }

    .pm-header-action {
        min-width: 78px;
    }

    #pmMegaMenuWrapper .pm-root-link {
        padding-inline: 0.75rem;
        font-size: 0.86rem;
    }
}

@media (max-width: 430px) {
    .pm-mobile-mainbar {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 0.25rem;
        padding-inline: 0.5rem;
    }

    .pm-mobile-logo img {
        max-width: 155px;
        max-height: 38px;
    }

    .pm-mobile-actions {
        gap: 0;
    }

    .pm-mobile-action {
        width: 38px;
        height: 40px;
    }
}

@media (max-width: 360px) {
    .pm-mobile-logo img {
        max-width: 138px;
    }

    .pm-mobile-action {
        width: 34px;
    }

    .pm-mobile-mainbar {
        padding-inline: 0.35rem;
    }
}


/* ---------- Header V2 hardening / responsive proportions ---------- */

@media (min-width: 992px) and (max-width: 1199.98px) {
    .pm-header-main__inner {
        grid-template-columns: 280px minmax(300px, 500px) auto;
        gap: 1.25rem;
    }

    .pm-header-logo img {
        width: 280px;
        max-height: 76px;
    }

    .pm-header-search {
        max-width: 500px;
    }

    .pm-header-action {
        min-width: 66px;
    }
}

@media (min-width: 1400px) {
    .pm-header-main__inner {
        grid-template-columns: 350px 560px auto;
    }

    .pm-header-logo img {
        width: 350px;
    }
}

/*
  Difesa contro CSS legacy/cache:
  eventuali vecchi elementi .pm-header-search__icon non devono
  influenzare l'altezza della testata.
*/
.pm-header-search__icon {
    display: none !important;
}

.pm-header-search svg {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
}
/* Prezzomania V2 - Category page */
.category-page {
    background: var(--pm-white);
}

.category-page .pm-main,
.pm-category-main {
    background: var(--pm-white);
    padding-top: 0;
}

/* Breadcrumb */
.category-page .breadcrumb-box {
    width: 100%;
    margin: 0;
    padding: 1rem 0 0.35rem;
}

.category-page .breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--pm-text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.category-page .breadcrumb-list li {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.category-page .breadcrumb-list li + li::before {
    content: "/";
    margin-right: 0.35rem;
    color: var(--pm-gray-400);
}

.category-page .breadcrumb-list a {
    color: var(--pm-text-secondary);
    text-decoration: none;
}

.category-page .breadcrumb-list a:hover {
    color: var(--pm-primary);
}

.category-page .breadcrumb-list .active,
.category-page .breadcrumb-list .active a {
    color: var(--pm-text);
    font-weight: 500;
}

.category-page .breadcrumb-list .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.category-page .breadcrumb-list li:first-child a[aria-label="Home"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: var(--pm-text-secondary);
}

.category-page .breadcrumb-list li:first-child a[aria-label="Home"] .fa-home {
    display: none !important;
}

.category-page .breadcrumb-list li:first-child a[aria-label="Home"]::before {
    content: "";
    display: block;
    width: 14px;
    height: 14px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8 1.4 1.4 7v7.6h4.1v-4.5h5v4.5h4.1V7L8 1.4Zm5.2 11.8h-1.3V8.7H4.1v4.5H2.8V7.7L8 3.3l5.2 4.4v5.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8 1.4 1.4 7v7.6h4.1v-4.5h5v4.5h4.1V7L8 1.4Zm5.2 11.8h-1.3V8.7H4.1v4.5H2.8V7.7L8 3.3l5.2 4.4v5.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.category-page .breadcrumb-list li:first-child a[aria-label="Home"]:hover {
    color: var(--pm-primary);
    background: rgba(var(--pm-primary-rgb), 0.08);
}

/* Category intro */
.pm-category-head {
    padding: 0.7rem 0 1.2rem;
    border-bottom: 1px solid var(--pm-border);
}

.pm-category-title {
    margin: 0;
    font-size: clamp(1.55rem, 3.1vw, 2.35rem);
    letter-spacing: -0.025em;
}

.pm-category-subtitle {
    margin: 0.5rem 0 0;
    color: var(--pm-text-secondary);
    font-size: clamp(0.95rem, 1.6vw, 1.08rem);
    font-weight: 600;
}

.pm-category-intro {
    max-width: 920px;
    margin: 0.65rem 0 0;
    color: var(--pm-text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* Toolbar */
.pm-category-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.pm-category-count {
    color: var(--pm-text-secondary);
    font-size: 0.86rem;
}

.pm-category-sort {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.pm-category-sort label {
    color: var(--pm-text-secondary);
    font-size: 0.82rem;
    white-space: nowrap;
}

.pm-category-sort select {
    min-width: 190px;
    min-height: 42px;
    padding: 0.55rem 2.2rem 0.55rem 0.8rem;
    border: 1px solid var(--pm-border-strong);
    border-radius: 0.55rem;
    background: var(--pm-white);
    color: var(--pm-text);
    font-size: 0.86rem;
    cursor: pointer;
}

.pm-category-sort select:focus {
    border-color: var(--pm-primary);
    outline: 0;
    box-shadow: var(--pm-focus-ring);
}

/* Product grid */
.pm-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem 0.85rem;
    padding-bottom: 1.5rem;
}

.pm-category-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--pm-white);
}

.pm-category-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--pm-border);
    border-radius: 0.75rem;
    background: var(--pm-white);
    text-decoration: none;
}

.pm-category-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    padding: 0.55rem;
    transition: transform 180ms ease;
}

.pm-category-card:hover .pm-category-card__media img {
    transform: scale(1.025);
}

.pm-category-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 0.65rem 0.15rem 0;
}

.pm-category-card__brand {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 1.15rem;
    color: var(--pm-text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color .18s ease;
}

.pm-category-card__brand:hover,
.pm-category-card__brand:focus-visible {
    color: var(--pm-orange);
    text-decoration: none;
}

.pm-category-card__brand--empty {
    pointer-events: none;
}

.pm-category-card__title {
    display: -webkit-box;
    min-height: 2.55rem;
    margin: 0.28rem 0 0;
    overflow: hidden;
    color: var(--pm-text);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.48;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pm-category-card__title:hover {
    color: var(--pm-primary);
}

.pm-category-card__price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.7rem;
}

.pm-category-card__price {
    color: var(--pm-text);
    font-size: 1.12rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pm-category-card__available {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    color: var(--pm-success);
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.pm-category-card__available::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Pagination */
.pm-category-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 1.25rem 0 2.25rem;
    padding: 0;
    list-style: none;
}

.pm-category-pagination a,
.pm-category-pagination span {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--pm-border);
    border-radius: 0.55rem;
    background: var(--pm-white);
    color: var(--pm-text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.pm-category-pagination a:hover {
    border-color: var(--pm-gray-400);
    color: var(--pm-text);
}

.pm-category-pagination .is-current {
    border-color: var(--pm-black);
    background: var(--pm-black);
    color: var(--pm-white);
}

.pm-category-pagination .is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

/* SEO / FAQ below products */
.pm-category-bottom {
    border-top: 1px solid var(--pm-border);
    padding: 2rem 0 0.5rem;
    color: var(--pm-text-secondary);
    font-size: 0.9rem;
    line-height: 1.75;
    content-visibility: auto;
    contain-intrinsic-size: 1px 600px;
}

.pm-category-bottom h2,
.pm-category-bottom h3,
.pm-category-bottom h4 {
    margin-top: 1.4rem;
    margin-bottom: 0.55rem;
    font-size: 1.05rem;
}

.pm-category-bottom a {
    color: var(--pm-text);
}

.pm-category-empty {
    padding: 4rem 1rem;
    text-align: center;
}

.pm-category-empty h1 {
    margin-bottom: 0.6rem;
    font-size: 1.7rem;
}

.pm-category-empty p {
    color: var(--pm-text-secondary);
}

.pm-category-empty a {
    display: inline-flex;
    margin-top: 1rem;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.1rem;
    border-radius: 0.55rem;
    background: var(--pm-black);
    color: var(--pm-white);
    font-weight: 600;
    text-decoration: none;
}

@media (min-width: 576px) {
    .pm-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.4rem 1rem;
    }
}

@media (min-width: 992px) {
    .pm-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.8rem 1.25rem;
    }

    .pm-category-card__title {
        font-size: 0.9rem;
    }
}

@media (min-width: 1400px) {
    .pm-category-grid {
        gap-inline: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .pm-category-toolbar {
        align-items: flex-end;
    }

    .pm-category-count {
        font-size: 0.76rem;
    }

    .pm-category-sort {
        display: block;
    }

    .pm-category-sort label {
        display: block;
        margin-bottom: 0.25rem;
    }

    .pm-category-sort select {
        min-width: 150px;
        max-width: 52vw;
        min-height: 40px;
        font-size: 0.8rem;
    }

    .pm-category-card__media img {
        padding: 0.35rem;
    }

    .pm-category-card__brand {
        font-size: 0.66rem;
    }

    .pm-category-card__title {
        min-height: 2.45rem;
        font-size: 0.8rem;
    }

    .pm-category-card__price {
        font-size: 1rem;
    }

    .pm-category-card__available {
        display: none;
    }

    .pm-category-pagination a,
    .pm-category-pagination span {
        min-width: 36px;
        min-height: 36px;
        padding: 0.4rem 0.58rem;
        font-size: 0.75rem;
    }
}


/* =========================================================
   FIX 4 - Category content / FAQ
   ========================================================= */

/* La descrizione introduttiva sfrutta tutta la larghezza utile. */
.pm-category-intro {
    max-width: none;
    width: 100%;
    font-size: 0.96rem;
    line-height: 1.72;
}

/* Sezione editoriale sotto i prodotti: piu leggibile e ariosa. */
.pm-category-bottom {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.78;
}

.pm-category-faq,
.pm-category-long-description {
    width: 100%;
    max-width: none;
}

.pm-category-long-description {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--pm-border);
}

.pm-category-bottom p,
.pm-category-long-description p,
.pm-category-faq p {
    max-width: none;
    margin-top: 0.65rem;
    margin-bottom: 0.9rem;
}

.pm-category-bottom h2,
.pm-category-bottom h3,
.pm-category-bottom h4 {
    color: var(--pm-text);
    line-height: 1.3;
}

.pm-category-bottom h2 {
    margin-top: 0;
    margin-bottom: 0.9rem;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.pm-category-bottom h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: clamp(1.08rem, 1.5vw, 1.25rem);
}

/* FAQ native <details>: aspetto da accordion, senza JS aggiuntivo. */
.pm-category-faq details {
    position: relative;
    margin: 0;
    border-top: 1px solid var(--pm-border);
    background: var(--pm-white);
}

.pm-category-faq details:last-of-type {
    border-bottom: 1px solid var(--pm-border);
}

.pm-category-faq summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 0.95rem 3.25rem 0.95rem 0;
    color: var(--pm-text);
    font-weight: 600;
    line-height: 1.45;
    cursor: pointer;
    list-style: none;
    transition: color 160ms ease;
}

.pm-category-faq summary::-webkit-details-marker {
    display: none;
}

.pm-category-faq summary::marker {
    content: "";
}

.pm-category-faq summary::before,
.pm-category-faq summary::after {
    content: "";
    position: absolute;
    right: 0.35rem;
    top: 50%;
    width: 15px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--pm-text-secondary);
    transform: translateY(-50%);
    transition: transform 180ms ease, background-color 180ms ease;
}

.pm-category-faq summary::after {
    transform: translateY(-50%) rotate(90deg);
}

.pm-category-faq details[open] summary {
    color: var(--pm-primary);
}

.pm-category-faq details[open] summary::before,
.pm-category-faq details[open] summary::after {
    background: var(--pm-primary);
}

.pm-category-faq details[open] summary::after {
    transform: translateY(-50%) rotate(0deg);
}

.pm-category-faq details > :not(summary) {
    margin-left: 0;
    margin-right: 0;
}

.pm-category-faq details > p,
.pm-category-faq details > div,
.pm-category-faq details > ul,
.pm-category-faq details > ol {
    margin-top: 0;
    margin-bottom: 0;
    padding: 0 3.25rem 1.15rem 0;
    color: var(--pm-text-secondary);
    line-height: 1.75;
}

.pm-category-faq details[open] {
    background: linear-gradient(180deg, rgba(var(--pm-primary-rgb), 0.025), rgba(var(--pm-primary-rgb), 0));
}

.pm-category-faq summary:hover {
    color: var(--pm-primary);
}

@media (max-width: 575.98px) {
    .pm-category-intro {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .pm-category-bottom {
        padding-top: 2rem;
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .pm-category-faq summary {
        min-height: 54px;
        padding-right: 2.6rem;
        font-size: 0.94rem;
    }

    .pm-category-faq details > p,
    .pm-category-faq details > div,
    .pm-category-faq details > ul,
    .pm-category-faq details > ol {
        padding-right: 1rem;
        padding-bottom: 1rem;
    }

    .pm-category-long-description {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
}


/* FIX 6 - iOS/Safari: un solo tap sulle card prodotto */
@media (hover: none), (pointer: coarse) {
    a, button, [role="button"], summary {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .pm-category-card:hover .pm-category-card__media img {
        transform: none;
    }

    .pm-category-card__brand:hover,
    .pm-category-card__title:hover,
    .category-page .breadcrumb-list a:hover {
        color: inherit;
    }

    .pm-mobile-menu-button:hover,
    .pm-mobile-action:hover {
        background: transparent;
        color: var(--pm-text-secondary);
    }
}
