/* negozio.css */
/* NEGOZIO PAGE - layout ammorbidito e coerente con home */
.shop-page {
    background: #ffffff;
}

.shop-category-group[open] .shop-category-summary::after {
    content: '-' !important;
}

.shop-hero {
    padding: 26px 0 20px;
    background: #ffffff;
}

.shop-hero-inner {
    min-height: 0;
    display: block;
}

.shop-hero-copy {
    min-width: 0;
    padding: 30px 34px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.shop-kicker,
.shop-results-kicker,
.shop-filter-kicker {
    margin: 0 0 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-red);
}

.shop-hero-copy h1 {
    margin: 0;
    max-width: 780px;
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--brand-black);
}

.shop-hero-copy p:not(.shop-kicker) {
    margin: 12px 0 0;
    max-width: 860px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted);
}

.shop-catalog {
    padding: 0 0 38px;
}

.shop-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.shop-sidebar {
    display: grid;
    gap: 14px;
    position: sticky;
    top: 92px;
}

.shop-filter-panel,
.shop-category-panel,
.shop-results-toolbar,
.shop-empty-state {
    border: 1px solid var(--line);
    background: #ffffff;
}

.shop-filter-panel {
    padding: 16px;
}

.shop-filter-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.shop-filter-heading h2,
.shop-category-panel h2,
.shop-results-toolbar h2,
.shop-empty-state h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.15;
    color: var(--brand-black);
    letter-spacing: -0.02em;
}

.shop-reset-link {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid var(--line);
    color: #111;
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.shop-reset-link:hover {
    color: var(--brand-red);
    border-color: var(--brand-red);
}

.shop-field {
    display: grid;
    gap: 6px;
    margin-bottom: 11px;
}

.shop-field span {
    font-size: 10px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.shop-field input,
.shop-field select {
    width: 100%;
    height: 38px;
    border: 1px solid #e2e2e2;
    background: #ffffff;
    padding: 0 11px;
    color: var(--text);
    font-size: 12px;
    outline: none;
    border-radius: 0;
}

.shop-field select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #555 50%),
        linear-gradient(135deg, #555 50%, transparent 50%);
    background-position:
        calc(100% - 16px) 16px,
        calc(100% - 11px) 16px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 30px;
}

.shop-field input:focus,
.shop-field select:focus {
    border-color: var(--brand-red);
    background-color: #ffffff;
}

.shop-price-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.shop-filter-submit,
.shop-empty-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    background: var(--brand-red);
    border: 1px solid var(--brand-red);
    color: #ffffff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.shop-filter-submit {
    width: 100%;
    margin-top: 2px;
}

.shop-filter-submit:hover,
.shop-empty-button:hover {
    background: #cc0000;
    border-color: #cc0000;
}

.shop-category-panel {
    padding: 16px;
}

.shop-category-list {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.shop-category-link {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 9px;
    color: #111;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #f0f0f0;
}

.shop-category-link:hover,
.shop-category-link.is-active {
    color: var(--brand-red);
    border-color: var(--brand-red);
    background: #fffafa;
}

.shop-category-link span {
    min-width: 0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.shop-category-link strong {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: #f3f3f3;
    color: #444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.shop-results {
    min-width: 0;
}

.shop-results-toolbar {
    min-height: 0;
    padding: 14px 0 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    border-width: 0 0 1px;
}

.shop-results-toolbar p:not(.shop-results-kicker) {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.shop-active-filters {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 50%;
}

.shop-active-filters span {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border: 1px solid #ededed;
    background: #ffffff;
    color: #333;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Griglia prodotti: 6 prodotti per riga su desktop ampio */
.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px 18px;
    align-items: stretch;
}

/* Card prodotto coerente con la home */
.shop-product-card {
    min-width: 0;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    color: #111;
    text-decoration: none;
    background: #ffffff;
}

.shop-product-top {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.shop-product-badge-row {
    min-height: 28px;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.shop-product-tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid #ebebeb;
    background: #ffffff;
    color: var(--brand-red);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-product-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.shop-product-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: none;
    overflow: hidden;
    margin-bottom: 14px;
}

.shop-product-media img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.25s ease;
}

.shop-product-card:hover .shop-product-media img {
    transform: scale(1.03);
}

.shop-product-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9d9d9d;
    background: #f5f5f5;
}

.shop-product-fallback .material-symbols-outlined {
    font-size: 54px;
}

.shop-product-name {
    margin: 0;
    min-height: 58px;
    font-size: 15px;
    line-height: 1.28;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #111;
}

.shop-product-link:hover .shop-product-name {
    color: var(--brand-red);
}

.shop-product-meta {
    margin-top: 10px;
}

.shop-product-brand {
    font-size: 11px;
    line-height: 1.25;
    text-transform: uppercase;
    color: #555;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.shop-product-code {
    margin-top: 4px;
    min-height: 14px;
    font-size: 11px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #7a7a7a;
    letter-spacing: 0.05em;
}

.shop-product-tech {
    margin-top: 8px;
    min-height: 14px;
    font-size: 11px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #8a8a8a;
    letter-spacing: 0.03em;
}

.shop-product-bottom {
    margin-top: auto;
    padding-top: 14px;
}

.shop-product-price-row {
    display: flex;
    align-items: baseline;
    gap: 7px;
    flex-wrap: wrap;
}

.shop-product-price {
    font-size: 21px;
    line-height: 1.05;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.02em;
}

.shop-product-price-locked {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 190px;
    min-height: 42px;
    padding: 7px 12px;
    overflow: hidden;
    border: 1px solid #dedede;
    border-radius: 10px;
    background: linear-gradient(135deg, #f7f7f7, #ececec);
    cursor: help;
}

.shop-product-price-blur {
    display: block;
    filter: blur(6px);
    opacity: 0.58;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
}

.shop-product-price-lock {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 8px;
    color: #222;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.42);
}

.shop-product-price-lock .material-symbols-outlined {
    flex: 0 0 auto;
    font-size: 16px;
}

.shop-product-vat {
    font-size: 12px;
    color: #6c6c6c;
    font-weight: 600;
}

.shop-product-stock {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    line-height: 1.3;
    color: #1f7a31;
    font-weight: 600;
}

.shop-product-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    display: inline-block;
    flex: 0 0 auto;
}

.shop-product-stock.is-low {
    color: #c77700;
}

.shop-product-stock.is-zero {
    color: #b3261e;
}

.shop-product-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-product-qty {
    width: 92px;
    min-width: 92px;
    height: 40px;
    display: grid;
    grid-template-columns: 30px 1fr 30px;
    align-items: center;
    border: 1px solid #d9d9d9;
    background: #ffffff;
}

.shop-product-qty button {
    border: 0;
    background: transparent;
    width: 100%;
    height: 100%;
    font-size: 18px;
    color: #111;
    cursor: pointer;
}

.shop-product-qty span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #111;
}

.shop-product-cart {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    border: 1px solid var(--brand-red);
    background: var(--brand-red);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0 12px;
}

.shop-product-cart:hover:not(:disabled) {
    background: #cc0000;
    border-color: #cc0000;
}

.shop-product-cart:disabled {
    opacity: 0.45;
    cursor: default;
}

.shop-product-cart svg {
    width: 18px;
    height: 18px;
    display: block;
}

.shop-product-hint {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    display: block;
    font-size: 10px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    text-decoration: none;
}

.shop-product-hint:hover {
    color: var(--brand-red);
}

.shop-empty-state {
    min-height: 320px;
    padding: 42px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.shop-empty-state .material-symbols-outlined {
    font-size: 58px;
    color: var(--brand-red);
    margin-bottom: 12px;
}

.shop-empty-state p {
    margin: 12px 0 0;
    max-width: 520px;
    color: var(--muted);
    line-height: 1.65;
}

.shop-empty-button {
    margin-top: 18px;
}

.shop-pagination {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.shop-page-link,
.shop-page-numbers a,
.shop-page-numbers span {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e2e2;
    background: #ffffff;
    color: #111;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.shop-page-link {
    min-width: 118px;
}

.shop-page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.shop-page-numbers a:hover,
.shop-page-link:hover:not(.is-disabled),
.shop-page-numbers a.is-current {
    color: #ffffff;
    border-color: var(--brand-red);
    background: var(--brand-red);
}

.shop-page-link.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

@media (max-width: 1680px) {
    .shop-products-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1420px) {
    .shop-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 22px;
    }

    .shop-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
        grid-template-columns: minmax(0, 1fr);
    }

    .shop-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .shop-filter-panel {
        padding: 16px;
    }

    .shop-category-panel {
        display: none;
    }
}

@media (max-width: 980px) {
    .shop-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .shop-hero {
        padding: 18px 0 16px;
    }

    .shop-hero-copy {
        padding: 24px 20px;
    }

    .shop-hero-copy h1 {
        font-size: 28px;
        line-height: 1.15;
    }

    .shop-hero-copy p:not(.shop-kicker) {
        font-size: 14px;
        line-height: 1.6;
    }

    .shop-catalog {
        padding-bottom: 28px;
    }

    .shop-layout {
        gap: 18px;
    }

    .shop-results-toolbar {
        padding: 12px 0 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .shop-active-filters {
        max-width: none;
        justify-content: flex-start;
    }

    .shop-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 16px;
    }

    .shop-product-card {
        min-height: 372px;
    }

    .shop-product-media {
        aspect-ratio: 1 / 1;
        height: auto;
        padding: 10px;
        margin-bottom: 10px;
    }

    .shop-product-name {
        min-height: 44px;
        font-size: 14px;
        line-height: 1.24;
    }

    .shop-product-meta {
        margin-top: 8px;
    }

    .shop-product-tech {
        display: none;
    }

    .shop-product-bottom {
        padding-top: 10px;
    }

    .shop-product-price {
        font-size: 19px;
    }

    .shop-product-stock {
        margin-top: 8px;
        font-size: 11px;
    }

    .shop-product-actions {
        margin-top: 10px;
        gap: 8px;
    }

    .shop-product-qty {
        width: 84px;
        min-width: 84px;
        height: 38px;
        grid-template-columns: 28px 1fr 28px;
    }

    .shop-product-cart {
        height: 38px;
        font-size: 10px;
        padding: 0 10px;
    }

    .shop-product-hint {
        margin-top: 8px;
        padding-top: 8px;
        font-size: 9px;
    }

    .shop-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .shop-page-link {
        width: 100%;
    }
}

@media (max-width: 540px) {
    .shop-price-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .shop-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 14px;
    }

    .shop-product-card {
        display: flex;
        flex-direction: column;
        min-height: 360px;
    }

    .shop-product-top {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
    }

    .shop-product-badge-row {
        min-height: 24px;
        margin-bottom: 6px;
    }

    .shop-product-tag {
        min-height: 20px;
        padding: 0 7px;
        font-size: 9px;
    }

    .shop-product-link {
        display: block;
    }

    .shop-product-media {
        aspect-ratio: 1 / 1;
        height: auto;
        padding: 9px;
        margin-bottom: 10px;
    }

    .shop-product-name {
        min-height: 48px;
        font-size: 13px;
        line-height: 1.25;
    }

    .shop-product-meta {
        margin-top: 7px;
    }

    .shop-product-brand,
    .shop-product-code {
        font-size: 10px;
    }

    .shop-product-bottom {
        margin-top: auto;
        padding-top: 10px;
    }

    .shop-product-price {
        font-size: 18px;
    }

    .shop-product-vat {
        font-size: 10px;
    }

    .shop-product-stock {
        margin-top: 7px;
        gap: 6px;
        font-size: 10px;
    }

    .shop-product-actions {
        margin-top: 9px;
        gap: 6px;
    }

    .shop-product-qty {
        width: 70px;
        min-width: 70px;
        height: 36px;
        grid-template-columns: 23px 1fr 23px;
    }

    .shop-product-qty button {
        font-size: 15px;
    }

    .shop-product-qty span {
        font-size: 13px;
    }

    .shop-product-cart {
        height: 36px;
        gap: 5px;
        padding: 0 7px;
        font-size: 9px;
        letter-spacing: 0.03em;
    }

    .shop-product-cart svg {
        width: 15px;
        height: 15px;
    }

    .shop-product-hint {
        margin-top: 8px;
        padding-top: 8px;
        font-size: 9px;
    }
}

@media (max-width: 390px) {
    .shop-products-grid {
        gap: 18px 12px;
    }

    .shop-product-card {
        min-height: 340px;
    }

    .shop-product-media {
        aspect-ratio: 1 / 1;
        height: auto;
        padding: 8px;
    }

    .shop-product-name {
        min-height: 46px;
        font-size: 12.5px;
    }

    .shop-product-actions {
        gap: 5px;
    }

    .shop-product-qty {
        width: 64px;
        min-width: 64px;
        grid-template-columns: 21px 1fr 21px;
    }

    .shop-product-cart {
        padding: 0 6px;
        font-size: 8.5px;
    }
}


/* =========================================================
   GRIGLIA DIVISORIA PRODOTTI + IMMAGINI UNIFORMI
   Linee divisorie coerenti e box immagine quadrato per tutti i prodotti
   ========================================================= */
.shop-products-grid {
    --tw-border-opacity: 1;
    --shop-grid-divider: rgb(222 225 232 / var(--tw-border-opacity));
    gap: 0 !important;
    border-top: 1px solid var(--shop-grid-divider);
    border-left: 1px solid var(--shop-grid-divider);
    background: #ffffff;
}

.shop-product-card {
    padding: 18px 14px 20px;
    border-right: 1px solid var(--shop-grid-divider);
    border-bottom: 1px solid var(--shop-grid-divider);
    background: #ffffff;
}

.shop-product-card:hover {
    background: #ffffff;
}

.shop-product-badge-row {
    margin-bottom: 10px;
}

.shop-product-media {
    margin-bottom: 13px;
}

.shop-product-bottom {
    padding-top: 13px;
}

@media (max-width: 1180px) {
    .shop-product-card {
        padding: 16px 12px 18px;
    }
}

@media (max-width: 820px) {
    .shop-products-grid {
        gap: 0 !important;
    }

    .shop-product-card {
        padding: 14px 10px 16px;
    }
}

@media (max-width: 540px) {
    .shop-products-grid {
        gap: 0 !important;
    }

    .shop-product-card {
        padding: 12px 8px 14px;
    }

    .shop-product-media {
        aspect-ratio: 1 / 1;
        height: auto;
        padding: 8px;
    }
}

@media (max-width: 390px) {
    .shop-products-grid {
        gap: 0 !important;
    }

    .shop-product-card {
        padding: 11px 7px 13px;
    }

    .shop-product-media {
        aspect-ratio: 1 / 1;
        height: auto;
        padding: 7px;
    }
}

/* =========================================================
   FIX FILTRI MOBILE A SCOMPARSA + CATEGORIE ESPANDIBILI
   ========================================================= */
.shop-sidebar {
    position: static !important;
    top: auto !important;
}

.shop-mobile-filter-toggle,
.shop-mobile-filter-header,
.shop-filter-overlay {
    display: none;
}

.shop-sort-form {
    margin-left: auto;
    min-width: 190px;
}

.shop-sort-form label {
    display: grid;
    gap: 6px;
}

.shop-sort-form span {
    font-size: 10px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.shop-sort-form select {
    width: 100%;
    height: 38px;
    border: 1px solid #e2e2e2;
    background: #ffffff;
    padding: 0 30px 0 11px;
    color: var(--text);
    font-size: 12px;
    outline: none;
    border-radius: 0;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #555 50%),
        linear-gradient(135deg, #555 50%, transparent 50%);
    background-position:
        calc(100% - 16px) 16px,
        calc(100% - 11px) 16px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.shop-active-filters {
    max-width: none;
    justify-content: flex-start;
    margin: -8px 0 16px;
}

.shop-category-list-expandable {
    gap: 7px;
}

.shop-category-group {
    border: 1px solid #f0f0f0;
    background: #ffffff;
}

.shop-category-summary {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 9px;
    color: #111;
    cursor: pointer;
    list-style: none;
}

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

.shop-category-summary::after {
    content: '+';
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 16px;
    line-height: 1;
    order: 3;
}

.shop-category-group[open] .shop-category-summary::after {
    content: 'âˆ’';
}

.shop-category-summary:hover,
.shop-category-summary.is-active,
.shop-category-group[open] > .shop-category-summary {
    color: var(--brand-red);
    background: #fffafa;
}

.shop-category-summary span {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.shop-category-summary strong {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: #f3f3f3;
    color: #444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-left: auto;
    order: 2;
    flex-shrink: 0;
}

.shop-subcategory-list {
    display: grid;
    gap: 2px;
    padding: 0 8px 8px;
}

.shop-subcategory-link {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 8px 7px 14px;
    color: #333;
    text-decoration: none;
    border-left: 2px solid #eeeeee;
    background: #ffffff;
}

.shop-subcategory-link:hover,
.shop-subcategory-link.is-active {
    color: var(--brand-red);
    border-left-color: var(--brand-red);
    background: #fffafa;
}

.shop-subcategory-link span {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.shop-subcategory-link strong {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #f3f3f3;
    color: #555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    margin-left: auto;
    flex-shrink: 0;
}

@media (max-width: 820px) {
    .shop-mobile-filter-toggle {
        width: 100%;
        min-height: 44px;
        margin: 0 0 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid var(--line);
        background: #ffffff;
        color: #111;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        cursor: pointer;
    }

    .shop-mobile-filter-toggle .material-symbols-outlined {
        font-size: 20px;
        color: var(--brand-red);
    }

    .shop-mobile-filter-toggle strong {
        min-width: 22px;
        height: 22px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: var(--brand-red);
        color: #ffffff;
        font-size: 10px;
    }

    .shop-filter-overlay {
        position: fixed;
        inset: 0;
        z-index: 99980;
        display: block;
        background: rgba(0, 0, 0, 0.38);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.24s ease, visibility 0.24s ease;
    }

    .shop-filter-overlay[hidden] {
        display: block !important;
    }

    .shop-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        z-index: 99990;
        width: min(90vw, 370px);
        height: 100dvh;
        max-height: 100dvh;
        overflow-y: auto;
        padding: 0 14px 18px;
        display: block;
        background: #ffffff;
        box-shadow: 12px 0 34px rgba(0, 0, 0, 0.18);
        transform: translate3d(-100%, 0, 0);
        transition: transform 0.24s ease;
        overscroll-behavior: contain;
    }

    .shop-mobile-filter-header {
        position: sticky;
        top: 0;
        z-index: 2;
        min-height: 56px;
        margin: 0 -14px 14px;
        padding: 0 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #eeeeee;
        background: #ffffff;
    }

    .shop-mobile-filter-header strong {
        font-size: 16px;
        color: #111;
    }

    .shop-mobile-filter-header button {
        width: 42px;
        height: 42px;
        border: 0;
        background: transparent;
        color: #111;
        font-size: 30px;
        line-height: 1;
        cursor: pointer;
    }

    body.shop-filters-open {
        overflow: hidden;
    }

    body.shop-filters-open .shop-filter-overlay {
        opacity: 1;
        visibility: visible;
    }

    body.shop-filters-open .shop-sidebar {
        transform: translate3d(0, 0, 0);
    }

    .shop-layout {
        display: block;
    }

    .shop-results-toolbar {
        flex-direction: row;
        align-items: flex-end;
    }

    .shop-sort-form {
        min-width: 150px;
        max-width: 170px;
    }

    .shop-sort-form select {
        height: 36px;
        font-size: 11px;
    }
}

@media (max-width: 540px) {
    .shop-results-toolbar {
        align-items: flex-start;
        gap: 12px;
    }

    .shop-sort-form {
        min-width: 140px;
        max-width: 150px;
    }
}

/* ITNETCOM categorie gerarchiche Fase 2C */
.shop-category-nested-group {
    border-left: 2px solid #eeeeee;
    margin-left: 6px;
}

.shop-category-nested-summary {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 7px 7px 10px;
    color: #333;
    cursor: pointer;
    list-style: none;
    background: #fff;
}

.shop-category-nested-summary::-webkit-details-marker {
    display: none;
}

.shop-category-nested-summary::after {
    content: '+';
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 14px;
    order: 3;
}

.shop-category-nested-group[open] > .shop-category-nested-summary::after {
    content: '−';
}

.shop-category-nested-summary:hover,
.shop-category-nested-summary.is-active,
.shop-category-nested-group[open] > .shop-category-nested-summary {
    color: var(--brand-red);
    background: #fffafa;
}

.shop-category-nested-summary span {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
}

.shop-category-nested-summary strong {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #f3f3f3;
    color: #555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    margin-left: auto;
    order: 2;
}

.shop-category-nested-list {
    display: grid;
    gap: 2px;
    padding: 0 0 4px 7px;
}

.shop-category-leaf.shop-category-depth-3,
.shop-category-leaf.shop-category-depth-4,
.shop-category-depth-3 .shop-category-all-link,
.shop-category-depth-4 .shop-category-all-link {
    text-transform: none;
}

.shop-category-depth-3 > .shop-category-nested-summary,
.shop-category-leaf.shop-category-depth-3 {
    padding-left: 14px;
}

.shop-category-depth-4 > .shop-category-nested-summary,
.shop-category-leaf.shop-category-depth-4 {
    padding-left: 20px;
}

.shop-field select:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

/* ITNETCOM_REMOVE_SHOP_CATEGORY_PANEL_START */
/*
 * Rimozione del pannello filtri gerarchici Categoria,
 * Sottocategoria, Livello 3 e Livello 4.
 */
.shop-category-panel {
    display: none !important;
}
/* ITNETCOM_REMOVE_SHOP_CATEGORY_PANEL_END */


/* ITNETCOM_PLACEHOLDER_HTMLBOX_V4 */
.itn-no-image-placeholder-box {
    width: 100%;
    height: 100%;
    min-height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    text-align: center;
    border: 0;
    box-shadow: none;
    margin: 0;
    padding: 14px;
    font-family: inherit;
}

.itn-no-image-placeholder-box .itn-placeholder-icon-wrap {
    width: 42%;
    min-width: 54px;
    max-width: 170px;
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    background: #f1f2f4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 16px;
    flex: 0 0 auto;
}

.itn-no-image-placeholder-box .itn-placeholder-icon {
    width: 56%;
    height: 56%;
    display: block;
    fill: none;
    stroke: #96999e;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.itn-no-image-placeholder-box .itn-placeholder-title {
    display: block;
    max-width: 96%;
    color: #202124;
    font-weight: 800;
    line-height: 1.08;
    font-size: clamp(13px, 1.8vw, 30px);
    margin: 0;
}

.itn-no-image-placeholder-box .itn-placeholder-subtitle {
    display: block;
    color: #777b82;
    font-weight: 500;
    line-height: 1.1;
    font-size: clamp(10px, 1.05vw, 20px);
    margin: 8px 0 0;
}

/* Card Home / Shop: testo leggibile ma compatto */
.latest-product-fallback,
.shop-product-fallback,
.product-fallback,
.flash-card-fallback {
    width: 100%;
    height: 100%;
    background: #fff !important;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
}

.latest-product-media .itn-no-image-placeholder-box,
.shop-product-media .itn-no-image-placeholder-box {
    padding: 6px;
}

.latest-product-media .itn-no-image-placeholder-box .itn-placeholder-icon-wrap,
.shop-product-media .itn-no-image-placeholder-box .itn-placeholder-icon-wrap {
    width: 34%;
    min-width: 38px;
    max-width: 72px;
    margin-bottom: 8px;
}

.latest-product-media .itn-no-image-placeholder-box .itn-placeholder-title,
.shop-product-media .itn-no-image-placeholder-box .itn-placeholder-title {
    font-size: clamp(10px, .72vw, 14px);
    line-height: 1.08;
    max-width: 98%;
}

.latest-product-media .itn-no-image-placeholder-box .itn-placeholder-subtitle,
.shop-product-media .itn-no-image-placeholder-box .itn-placeholder-subtitle {
    font-size: clamp(8px, .62vw, 11px);
    margin-top: 4px;
}

/* Scheda prodotto: grande, centrato, senza bande */
.product-media > .itn-no-image-placeholder-box,
.product-gallery .product-media .itn-no-image-placeholder-box {
    min-height: 420px;
    padding: 28px;
}

.product-media > .itn-no-image-placeholder-box .itn-placeholder-icon-wrap,
.product-gallery .product-media .itn-no-image-placeholder-box .itn-placeholder-icon-wrap {
    width: 34%;
    min-width: 120px;
    max-width: 210px;
    margin-bottom: 24px;
}

.product-media > .itn-no-image-placeholder-box .itn-placeholder-title,
.product-gallery .product-media .itn-no-image-placeholder-box .itn-placeholder-title {
    font-size: clamp(24px, 2.2vw, 38px);
}

.product-media > .itn-no-image-placeholder-box .itn-placeholder-subtitle,
.product-gallery .product-media .itn-no-image-placeholder-box .itn-placeholder-subtitle {
    font-size: clamp(16px, 1.4vw, 24px);
    margin-top: 10px;
}

/* Mini carrello / carrello */
.header-mini-cart-item-media .itn-no-image-placeholder-box,
.cart-item-media .itn-no-image-placeholder-box,
.account-rma-products-heading .itn-no-image-placeholder-box {
    padding: 4px;
}

.header-mini-cart-item-media .itn-placeholder-title,
.cart-item-media .itn-placeholder-title,
.account-rma-products-heading .itn-placeholder-title {
    font-size: 0;
}

.header-mini-cart-item-media .itn-placeholder-subtitle,
.cart-item-media .itn-placeholder-subtitle,
.account-rma-products-heading .itn-placeholder-subtitle {
    display: none;
}

.header-mini-cart-item-media .itn-placeholder-icon-wrap,
.cart-item-media .itn-placeholder-icon-wrap,
.account-rma-products-heading .itn-placeholder-icon-wrap {
    width: 70%;
    min-width: 28px;
    max-width: 52px;
    margin: 0;
}

@media (max-width: 768px) {
    .product-media > .itn-no-image-placeholder-box,
    .product-gallery .product-media .itn-no-image-placeholder-box {
        min-height: 300px;
        padding: 20px;
    }

    .product-media > .itn-no-image-placeholder-box .itn-placeholder-title,
    .product-gallery .product-media .itn-no-image-placeholder-box .itn-placeholder-title {
        font-size: clamp(20px, 6vw, 30px);
    }

    .product-media > .itn-no-image-placeholder-box .itn-placeholder-subtitle,
    .product-gallery .product-media .itn-no-image-placeholder-box .itn-placeholder-subtitle {
        font-size: clamp(14px, 4vw, 20px);
    }
}

/* ITNETCOM_B2B_UX_PRODUCT_CARDS_V2_SOFT BEGIN */
.latest-product-price.product-related-price-locked,
.shop-product-price.product-related-price-locked,
.product-related-price.product-related-price-locked {
    width: 100% !important;
    min-height: 42px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 2px !important;
    padding: 7px 10px !important;
    overflow: hidden !important;
    border: 1px solid #e5e7eb !important;
    border-left: 3px solid #d60000 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    color: #1f2937 !important;
}

.b2b-price-reserved-title {
    display: block !important;
    color: #d60000 !important;
    font-size: 9px !important;
    line-height: 1.05 !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.055em !important;
}

.latest-product-price.product-related-price-locked > .product-related-price-lock,
.shop-product-price.product-related-price-locked > .product-related-price-lock,
.product-related-price.product-related-price-locked > .product-related-price-lock {
    position: static !important;
    inset: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #111827 !important;
    background: transparent !important;
    font-size: 11px !important;
    line-height: 1.18 !important;
    font-weight: 800 !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.latest-product-price.product-related-price-locked > .product-related-price-lock > .material-symbols-outlined,
.shop-product-price.product-related-price-locked > .product-related-price-lock > .material-symbols-outlined,
.product-related-price.product-related-price-locked > .product-related-price-lock > .material-symbols-outlined {
    position: static !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #d60000 !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

.b2b-price-reserved-action {
    display: inline !important;
}

.product-related-price-blur {
    display: none !important;
}

@media (max-width: 700px) {
    .latest-product-price.product-related-price-locked,
    .shop-product-price.product-related-price-locked,
    .product-related-price.product-related-price-locked {
        min-height: 40px !important;
        padding: 7px 9px !important;
    }

    .b2b-price-reserved-title {
        font-size: 8.5px !important;
    }

    .latest-product-price.product-related-price-locked > .product-related-price-lock,
    .shop-product-price.product-related-price-locked > .product-related-price-lock,
    .product-related-price.product-related-price-locked > .product-related-price-lock {
        font-size: 10.5px !important;
    }
}
/* ITNETCOM_B2B_UX_PRODUCT_CARDS_V2_SOFT END */

/* ITNETCOM_B2B_UX_PRODUCT_CARDS_V3_MOBILE_READABLE BEGIN */
@media (max-width: 700px) {
    .latest-product-price.product-related-price-locked,
    .shop-product-price.product-related-price-locked,
    .product-related-price.product-related-price-locked {
        min-height: 46px !important;
        padding: 9px 10px !important;
        border-left-width: 3px !important;
        border-radius: 11px !important;
    }

    .b2b-price-reserved-title {
        font-size: 10.5px !important;
        line-height: 1.15 !important;
        letter-spacing: 0.04em !important;
    }

    .latest-product-price.product-related-price-locked > .product-related-price-lock,
    .shop-product-price.product-related-price-locked > .product-related-price-lock,
    .product-related-price.product-related-price-locked > .product-related-price-lock {
        gap: 6px !important;
        font-size: 12.5px !important;
        line-height: 1.25 !important;
        font-weight: 800 !important;
    }

    .latest-product-price.product-related-price-locked > .product-related-price-lock > .material-symbols-outlined,
    .shop-product-price.product-related-price-locked > .product-related-price-lock > .material-symbols-outlined,
    .product-related-price.product-related-price-locked > .product-related-price-lock > .material-symbols-outlined {
        font-size: 16px !important;
    }
}

@media (max-width: 420px) {
    .latest-product-price.product-related-price-locked,
    .shop-product-price.product-related-price-locked,
    .product-related-price.product-related-price-locked {
        min-height: 48px !important;
        padding: 9px 9px !important;
    }

    .b2b-price-reserved-title {
        font-size: 10px !important;
    }

    .latest-product-price.product-related-price-locked > .product-related-price-lock,
    .shop-product-price.product-related-price-locked > .product-related-price-lock,
    .product-related-price.product-related-price-locked > .product-related-price-lock {
        font-size: 12px !important;
        line-height: 1.28 !important;
    }
}
/* ITNETCOM_B2B_UX_PRODUCT_CARDS_V3_MOBILE_READABLE END */

/* ITNETCOM_B2B_PLACEHOLDER_IMMAGINI_UX_V1 BEGIN
   Placeholder immagini B2B: stile più professionale per prodotti senza foto.
   Intervento solo su itnetcomgroup.it. Nessuna modifica a database, B2C o Desktop Manager. */
.itn-no-image-placeholder-box {
    position: relative !important;
    isolation: isolate !important;
    width: 100% !important;
    min-height: 100% !important;
    border: 1px solid rgba(229, 0, 19, 0.10) !important;
    border-radius: 18px !important;
    background:
        radial-gradient(circle at 18% 18%, rgba(229, 0, 19, 0.075), transparent 30%),
        radial-gradient(circle at 82% 78%, rgba(15, 23, 42, 0.055), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 58%, #f1f5f9 100%) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.82), 0 16px 34px rgba(15, 23, 42, 0.055) !important;
    color: #111827 !important;
    overflow: hidden !important;
}

.itn-no-image-placeholder-box::before {
    content: "" !important;
    position: absolute !important;
    inset: 12px !important;
    border: 1px dashed rgba(148, 163, 184, 0.35) !important;
    border-radius: 14px !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.itn-no-image-placeholder-box::after {
    content: "ITNETCOM" !important;
    position: absolute !important;
    right: 14px !important;
    bottom: 12px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    letter-spacing: 0.14em !important;
    color: rgba(15, 23, 42, 0.16) !important;
    pointer-events: none !important;
}

.itn-no-image-placeholder-box .itn-placeholder-icon-wrap {
    width: 54px !important;
    height: 54px !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    border: 1px solid rgba(229, 0, 19, 0.14) !important;
    box-shadow: 0 12px 26px rgba(229, 0, 19, 0.10), 0 1px 0 rgba(255, 255, 255, 0.95) inset !important;
    color: #e50013 !important;
}

.itn-no-image-placeholder-box .itn-placeholder-icon {
    width: 28px !important;
    height: 28px !important;
    stroke: currentColor !important;
    fill: none !important;
    stroke-width: 2.6 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    opacity: 0.95 !important;
}

.itn-no-image-placeholder-box .itn-placeholder-title {
    max-width: 86% !important;
    margin-top: 13px !important;
    color: #111827 !important;
    font-size: 13px !important;
    line-height: 1.18 !important;
    font-weight: 900 !important;
    letter-spacing: 0.025em !important;
    text-transform: none !important;
    text-align: center !important;
}

.itn-no-image-placeholder-box .itn-placeholder-subtitle {
    margin-top: 5px !important;
    color: #e50013 !important;
    font-size: 10.5px !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
    letter-spacing: 0.11em !important;
    text-transform: uppercase !important;
    text-align: center !important;
}

.latest-product-media .itn-no-image-placeholder-box,
.shop-product-media .itn-no-image-placeholder-box {
    min-height: 180px !important;
    padding: 18px 14px !important;
}

.latest-product-media .itn-no-image-placeholder-box .itn-placeholder-icon-wrap,
.shop-product-media .itn-no-image-placeholder-box .itn-placeholder-icon-wrap {
    width: 46px !important;
    height: 46px !important;
    border-radius: 15px !important;
}

.latest-product-media .itn-no-image-placeholder-box .itn-placeholder-title,
.shop-product-media .itn-no-image-placeholder-box .itn-placeholder-title {
    margin-top: 10px !important;
    font-size: 11.5px !important;
}

.latest-product-media .itn-no-image-placeholder-box .itn-placeholder-subtitle,
.shop-product-media .itn-no-image-placeholder-box .itn-placeholder-subtitle {
    font-size: 9.5px !important;
}

.product-media > .itn-no-image-placeholder-box,
.product-gallery .product-media .itn-no-image-placeholder-box {
    min-height: 360px !important;
    padding: 34px 20px !important;
}

.product-media > .itn-no-image-placeholder-box .itn-placeholder-icon-wrap,
.product-gallery .product-media .itn-no-image-placeholder-box .itn-placeholder-icon-wrap {
    width: 72px !important;
    height: 72px !important;
    border-radius: 22px !important;
}

.product-media > .itn-no-image-placeholder-box .itn-placeholder-icon,
.product-gallery .product-media .itn-no-image-placeholder-box .itn-placeholder-icon {
    width: 36px !important;
    height: 36px !important;
}

.product-media > .itn-no-image-placeholder-box .itn-placeholder-title,
.product-gallery .product-media .itn-no-image-placeholder-box .itn-placeholder-title {
    font-size: 17px !important;
}

.product-media > .itn-no-image-placeholder-box .itn-placeholder-subtitle,
.product-gallery .product-media .itn-no-image-placeholder-box .itn-placeholder-subtitle {
    font-size: 11.5px !important;
}

.header-mini-cart-item-media .itn-no-image-placeholder-box,
.cart-item-media .itn-no-image-placeholder-box,
.account-rma-products-heading .itn-no-image-placeholder-box {
    min-height: 100% !important;
    border-radius: 12px !important;
    padding: 6px !important;
}

.header-mini-cart-item-media .itn-no-image-placeholder-box::after,
.cart-item-media .itn-no-image-placeholder-box::after,
.account-rma-products-heading .itn-no-image-placeholder-box::after,
.header-mini-cart-item-media .itn-placeholder-title,
.cart-item-media .itn-placeholder-title,
.account-rma-products-heading .itn-placeholder-title,
.header-mini-cart-item-media .itn-placeholder-subtitle,
.cart-item-media .itn-placeholder-subtitle,
.account-rma-products-heading .itn-placeholder-subtitle {
    display: none !important;
}

.header-mini-cart-item-media .itn-placeholder-icon-wrap,
.cart-item-media .itn-placeholder-icon-wrap,
.account-rma-products-heading .itn-placeholder-icon-wrap {
    width: 30px !important;
    height: 30px !important;
    border-radius: 10px !important;
}

@media (max-width: 720px) {
    .latest-product-media .itn-no-image-placeholder-box,
    .shop-product-media .itn-no-image-placeholder-box {
        min-height: 170px !important;
        padding: 16px 12px !important;
        border-radius: 16px !important;
    }

    .latest-product-media .itn-no-image-placeholder-box .itn-placeholder-icon-wrap,
    .shop-product-media .itn-no-image-placeholder-box .itn-placeholder-icon-wrap {
        width: 44px !important;
        height: 44px !important;
    }

    .latest-product-media .itn-no-image-placeholder-box .itn-placeholder-title,
    .shop-product-media .itn-no-image-placeholder-box .itn-placeholder-title {
        font-size: 12px !important;
        line-height: 1.18 !important;
    }

    .latest-product-media .itn-no-image-placeholder-box .itn-placeholder-subtitle,
    .shop-product-media .itn-no-image-placeholder-box .itn-placeholder-subtitle {
        font-size: 9.5px !important;
    }

    .product-media > .itn-no-image-placeholder-box,
    .product-gallery .product-media .itn-no-image-placeholder-box {
        min-height: 260px !important;
        padding: 24px 14px !important;
    }

    .product-media > .itn-no-image-placeholder-box .itn-placeholder-icon-wrap,
    .product-gallery .product-media .itn-no-image-placeholder-box .itn-placeholder-icon-wrap {
        width: 58px !important;
        height: 58px !important;
        border-radius: 18px !important;
    }

    .product-media > .itn-no-image-placeholder-box .itn-placeholder-title,
    .product-gallery .product-media .itn-no-image-placeholder-box .itn-placeholder-title {
        font-size: 15px !important;
    }
}
/* ITNETCOM_B2B_PLACEHOLDER_IMMAGINI_UX_V1 END */


/* ITNETCOM_B2B_PLACEHOLDER_REMOVE_AFTER_BRAND_V3_START */
/*
   B2B UX placeholder immagini V3
   Rimuove la firma generata via pseudo-elemento ::after
   dalla card "Foto prodotto in aggiornamento".
*/
.itn-no-image-placeholder-box::after,
.latest-product-media .itn-no-image-placeholder-box::after,
.shop-product-media .itn-no-image-placeholder-box::after,
.product-media > .itn-no-image-placeholder-box::after,
.product-gallery .product-media .itn-no-image-placeholder-box::after,
.header-mini-cart-item-media .itn-no-image-placeholder-box::after,
.cart-item-media .itn-no-image-placeholder-box::after,
.account-rma-products-heading .itn-no-image-placeholder-box::after {
    content: none !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
/* ITNETCOM_B2B_PLACEHOLDER_REMOVE_AFTER_BRAND_V3_END */


/* itn-shop-product-cards-pro-v1.css */
/* ITNETCOM_SHOP_PRODUCT_CARDS_PRO_V2 BEGIN */

.shop-products-grid {
    gap: 12px !important;
    align-items: stretch;
}

/* Card più unite e sobrie */
.shop-product-card {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;

    border: 1px solid #ececec !important;
    border-radius: 12px !important;

    background: #ffffff !important;
    background-image: none !important;

    box-shadow: none !important;
    transition: border-color 160ms ease, box-shadow 160ms ease !important;
}

/* Rimuove linee decorative strane */
.shop-product-card::before,
.shop-product-card::after {
    content: none !important;
    display: none !important;
}

/* Hover card quasi neutro */
@media (hover: hover) and (pointer: fine) {
    .shop-product-card:hover {
        transform: none !important;
        box-shadow: none !important;
        border-color: #e3e3e3 !important;
    }
}

/* Fondo uniforme */
.shop-product-top,
.shop-product-link,
.shop-product-media,
.shop-product-bottom {
    background: #ffffff !important;
    background-image: none !important;
}

/* Area immagine */
.shop-product-media {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;
    box-sizing: border-box !important;

    border: 0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
}

/* Immagine mai tagliata */
.shop-product-media img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: auto !important;
    background: #ffffff !important;
    transform: scale(1) !important;
    transition: transform 180ms ease, filter 180ms ease !important;
}

/* Hover SOLO foto */
@media (hover: hover) and (pointer: fine) {
    .shop-product-link:hover .shop-product-media img {
        transform: scale(1.035) !important;
        filter: saturate(1.02);
    }
}

.shop-product-name {
    line-height: 1.25 !important;
}

.shop-product-tag {
    border-radius: 6px !important;
}

/* Quantità */
.shop-product-qty {
    overflow: hidden;
    border: 1px solid #e2e2e2 !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.shop-product-qty button {
    cursor: pointer !important;
    background: #ffffff !important;
}

.shop-product-qty button:first-child {
    border-radius: 8px 0 0 8px !important;
}

.shop-product-qty button:last-child {
    border-radius: 0 8px 8px 0 !important;
}

/* Pulsante Aggiungi */
.shop-product-cart {
    position: relative;
    overflow: hidden;

    border: 1px solid rgba(184, 0, 11, 0.35) !important;
    border-radius: 10px !important;

    background: linear-gradient(180deg, #ff161f 0%, #f20a14 55%, #e30613 100%) !important;
    color: #ffffff !important;

    box-shadow:
        0 4px 10px rgba(15, 23, 42, 0.16),
        0 1px 2px rgba(15, 23, 42, 0.10) !important;

    transform: none !important;

    transition:
        box-shadow 150ms ease,
        filter 150ms ease,
        transform 120ms ease !important;

    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.shop-product-cart::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.16) 0%,
        rgba(255, 255, 255, 0.04) 45%,
        transparent 70%
    );
}

.shop-product-cart > * {
    position: relative;
    z-index: 1;
}

.shop-product-cart svg {
    transition: transform 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .shop-product-cart:hover:not(:disabled) {
        transform: none !important;
        box-shadow:
            0 6px 14px rgba(15, 23, 42, 0.20),
            0 2px 4px rgba(15, 23, 42, 0.12) !important;
        filter: brightness(1.02);
    }

    .shop-product-cart:hover:not(:disabled) svg {
        transform: translateX(1px) scale(1.03);
    }
}

.shop-product-cart:active:not(:disabled) {
    transform: translateY(1px) scale(0.994) !important;
    box-shadow:
        0 2px 5px rgba(15, 23, 42, 0.15),
        inset 0 2px 4px rgba(15, 23, 42, 0.18) !important;
    filter: brightness(0.97);
}

.shop-product-cart:focus-visible {
    outline: 3px solid rgba(227, 6, 19, 0.20);
    outline-offset: 3px;
}

.shop-product-cart:disabled {
    cursor: not-allowed !important;
    border-color: rgba(100, 116, 139, 0.18) !important;
    background: linear-gradient(180deg, #d7d7d7 0%, #c7c7c7 100%) !important;
    color: rgba(30, 41, 59, 0.62) !important;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08) !important;
    transform: none !important;
    filter: none !important;
}

/* Pulsanti secondari */
.shop-mobile-filter-toggle,
.shop-filter-submit,
.shop-empty-button,
.shop-pagination a,
.shop-pagination span {
    border-radius: 10px !important;
}

.shop-mobile-filter-toggle,
.shop-filter-submit,
.shop-empty-button,
.shop-pagination a {
    cursor: pointer !important;
}

/* Mobile */
@media (max-width: 720px) {
    .shop-products-grid {
        gap: 10px !important;
    }

    .shop-product-card {
        border-radius: 10px !important;
    }

    .shop-product-media {
        min-height: 185px !important;
        height: clamp(185px, 50vw, 225px) !important;
        max-height: 225px !important;
        padding: 4px !important;
        border-radius: 8px !important;
    }

    .shop-product-name {
        display: -webkit-box !important;
        overflow: hidden !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 3 !important;
        font-size: clamp(16px, 4.2vw, 18px) !important;
        line-height: 1.2 !important;
    }

    .shop-product-actions {
        gap: 8px !important;
    }

    .shop-product-cart {
        min-height: 40px !important;
        border-radius: 9px !important;
        box-shadow:
            0 3px 8px rgba(15, 23, 42, 0.15),
            0 1px 2px rgba(15, 23, 42, 0.08) !important;
    }

    .shop-product-cart:active:not(:disabled) {
        box-shadow:
            0 1px 3px rgba(15, 23, 42, 0.13),
            inset 0 2px 4px rgba(15, 23, 42, 0.18) !important;
    }

    .shop-product-qty {
        min-height: 40px !important;
        border-radius: 9px !important;
    }
}

@media (max-width: 390px) {
    .shop-product-media {
        min-height: 175px !important;
        height: 175px !important;
        max-height: 175px !important;
    }

    .shop-product-name {
        font-size: 16px !important;
    }
}

/* ITNETCOM_SHOP_PRODUCT_CARDS_PRO_V2 END */

/* ITNETCOM_SHOP_GRID_NO_CARDS_V1 BEGIN */

/*
 * Catalogo come griglia continua:
 * nessuna card autonoma, ombra o riquadro arrotondato.
 */
.shop-products-grid {
    gap: 0 !important;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    background: #ffffff;
}

.shop-product-card {
    position: relative;
    overflow: visible !important;

    border: 0 !important;
    border-right: 1px solid #e8e8e8 !important;
    border-bottom: 1px solid #e8e8e8 !important;
    border-radius: 0 !important;

    background: #ffffff !important;
    background-image: none !important;

    box-shadow: none !important;
    transform: none !important;

    transition: none !important;
}

/* Rimuove tutti gli accenti decorativi delle vecchie card. */
.shop-product-card::before,
.shop-product-card::after {
    content: none !important;
    display: none !important;
}

/*
 * Nessun rimbalzo o sollevamento della cella.
 * L'effetto hover rimane soltanto sull'immagine.
 */
@media (hover: hover) and (pointer: fine) {
    .shop-product-card:hover {
        border-color: #e8e8e8 !important;
        background: #ffffff !important;
        box-shadow: none !important;
        transform: none !important;
    }
}

/* Fondo interno sempre bianco. */
.shop-product-top,
.shop-product-link,
.shop-product-media,
.shop-product-bottom {
    background: #ffffff !important;
    background-image: none !important;
}

/*
 * Hover limitato esclusivamente alla fotografia.
 */
.shop-product-media {
    overflow: hidden !important;
}

.shop-product-media img {
    transform: scale(1) !important;
    transition:
        transform 180ms ease,
        filter 180ms ease !important;
}

@media (hover: hover) and (pointer: fine) {
    .shop-product-link:hover .shop-product-media img {
        transform: scale(1.035) !important;
        filter: saturate(1.025);
    }
}

/*
 * Desktop: corregge i bordi esterni della griglia.
 * Il catalogo attuale mostra sette colonne.
 */
@media (min-width: 1181px) {
    .shop-product-card:nth-child(7n) {
        border-right: 0 !important;
    }
}

/*
 * Tablet: normalmente quattro colonne.
 */
@media (min-width: 721px) and (max-width: 1180px) {
    .shop-product-card:nth-child(4n) {
        border-right: 0 !important;
    }
}

/*
 * Mobile: conserva la griglia prevista dal CSS esistente,
 * senza trasformare i prodotti in card isolate.
 */
@media (max-width: 720px) {
    .shop-products-grid {
        gap: 0 !important;
        border-radius: 11px;
    }

    .shop-product-card {
        border-radius: 0 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    /*
     * Due colonne nella visualizzazione mobile standard.
     */
    .shop-product-card:nth-child(2n) {
        border-right: 0 !important;
    }
}

/*
 * Su telefoni molto stretti, se il catalogo passa a una colonna,
 * non serve il divisore verticale.
 */
@media (max-width: 480px) {
    .shop-product-card {
        border-right: 0 !important;
    }
}

/* ITNETCOM_SHOP_GRID_NO_CARDS_V1 END */

/* ITNETCOM_SHOP_GRID_LINES_AUTO_V1 BEGIN */

/*
 * Divisori automatici indipendenti dal numero di colonne.
 * Il fondo grigio della griglia appare nello spazio di 1px tra i prodotti.
 */
.shop-products-grid {
    gap: 1px !important;
    padding: 1px !important;

    overflow: hidden !important;

    border: 0 !important;
    border-radius: 14px !important;

    background: #e5e7eb !important;

    box-shadow:
        inset 0 0 0 1px #e5e7eb !important;
}

.shop-product-card {
    border: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;

    border-radius: 0 !important;

    background: #ffffff !important;
    box-shadow: none !important;
}

/*
 * Annulla le vecchie eccezioni basate su 7, 4 o 2 colonne.
 */
.shop-product-card:nth-child(7n),
.shop-product-card:nth-child(4n),
.shop-product-card:nth-child(2n) {
    border-right: 0 !important;
}

/* Nessuna variazione del divisore durante hover. */
@media (hover: hover) and (pointer: fine) {
    .shop-product-card:hover {
        border: 0 !important;
        background: #ffffff !important;
        box-shadow: none !important;
        transform: none !important;
    }
}

/* Tablet */
@media (max-width: 1180px) {
    .shop-products-grid {
        gap: 1px !important;
        padding: 1px !important;
        border-radius: 12px !important;
    }
}

/* Mobile */
@media (max-width: 720px) {
    .shop-products-grid {
        gap: 1px !important;
        padding: 1px !important;
        border-radius: 10px !important;
    }

    .shop-product-card {
        border: 0 !important;
        border-radius: 0 !important;
    }
}

/* ITNETCOM_SHOP_GRID_LINES_AUTO_V1 END */

/* ITNETCOM_SHOP_GRID_FEW_RESULTS_WHITE_V1 BEGIN */

/*
 * Correzione griglia con pochi risultati:
 * il contenitore resta bianco e i divisori sono disegnati
 * direttamente all'interno di ogni prodotto.
 */
.shop-products-grid {
    gap: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;

    background: #ffffff !important;
    background-image: none !important;

    box-shadow: none !important;
}

/*
 * Nessuna card autonoma.
 * I divisori non dipendono dal numero di colonne.
 */
.shop-product-card {
    border: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-radius: 0 !important;

    background: #ffffff !important;
    background-image: none !important;

    box-shadow:
        inset -1px 0 0 #e5e7eb,
        inset 0 -1px 0 #e5e7eb !important;

    transform: none !important;
}

/*
 * Annulla qualsiasi regola precedente basata su nth-child.
 */
.shop-product-card:nth-child(2n),
.shop-product-card:nth-child(4n),
.shop-product-card:nth-child(6n),
.shop-product-card:nth-child(7n) {
    border-right: 0 !important;

    box-shadow:
        inset -1px 0 0 #e5e7eb,
        inset 0 -1px 0 #e5e7eb !important;
}

/*
 * Nessuna variazione della cella durante hover.
 */
@media (hover: hover) and (pointer: fine) {
    .shop-product-card:hover {
        border: 0 !important;
        background: #ffffff !important;

        box-shadow:
            inset -1px 0 0 #e5e7eb,
            inset 0 -1px 0 #e5e7eb !important;

        transform: none !important;
    }
}

/*
 * Mantiene bianco anche tutto lo spazio interno non occupato.
 */
.shop-product-top,
.shop-product-link,
.shop-product-media,
.shop-product-bottom {
    background: #ffffff !important;
    background-image: none !important;
}

/* Tablet */
@media (max-width: 1180px) {
    .shop-products-grid {
        border-radius: 12px !important;
    }
}

/* Mobile */
@media (max-width: 720px) {
    .shop-products-grid {
        gap: 0 !important;
        padding: 0 !important;
        border-radius: 10px !important;
        background: #ffffff !important;
    }

    .shop-product-card {
        border: 0 !important;
        border-radius: 0 !important;

        box-shadow:
            inset -1px 0 0 #e5e7eb,
            inset 0 -1px 0 #e5e7eb !important;
    }
}

/* ITNETCOM_SHOP_GRID_FEW_RESULTS_WHITE_V1 END */

