.spd-page {
    max-width: 1050px;
    margin: 0 auto;
    padding: var(--vx-pad-x);
    color: var(--vx-text);
    font-family: var(--vx-font-family);
}

.spd-notfound {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 60px 20px;
    color: var(--vx-text-3);
    text-align: center;
}
.spd-notfound-link {
    color: var(--vx-primary);
    text-decoration: none;
    font-weight: 600;
}
.spd-notfound-link:hover {
    color: var(--vx-primary-hover);
}

.spd-bc {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--vx-text-3);
    margin-bottom: var(--vx-gap);
}
.spd-bc a {
    color: var(--vx-text-2);
    text-decoration: none;
}
.spd-bc a:hover {
    color: var(--vx-primary);
}
.spd-bc-sep {
    color: var(--vx-text-3);
}
.spd-bc-cur {
    color: var(--vx-text);
    font-weight: 600;
}

.spd-row {
    display: grid;
    grid-template-columns: 72px 0.5fr 1fr;
    gap: var(--vx-gap);
    margin-bottom: 32px;
}

.spd-thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.spd-thumb {
    width: 64px;
    height: 64px;
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius);
    overflow: hidden;
    cursor: pointer;
    background: var(--vx-bg-card);
}
.spd-thumb.active {
    border-color: var(--vx-primary);
}
.spd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spd-photo {
    position: relative;
    aspect-ratio: 1;
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius);
    overflow: hidden;
    background: var(--vx-bg-card);
}
.spd-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.15s ease;
    cursor: zoom-in;
}
.spd-photo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--vx-text-3);
}
.spd-photo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--vx-bg-card);
    border: 1px solid var(--vx-border);
    border-radius: 50%;
    color: var(--vx-text-2);
    cursor: pointer;
}
.spd-photo-arrow:hover {
    color: var(--vx-primary);
    border-color: var(--vx-primary);
}
.spd-photo-prev { left: 8px; }
.spd-photo-next { right: 8px; }

.spd-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.spd-brand {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vx-text-3);
    font-weight: 600;
}
.spd-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vx-text);
    margin: 0;
    line-height: 1.3;
}
.spd-price-box {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.spd-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vx-primary);
}
.spd-price-unit {
    font-size: 0.9rem;
    color: var(--vx-text-3);
}

.spd-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 12px 0;
    border-top: 1px solid var(--vx-border);
    border-bottom: 1px solid var(--vx-border);
}
.spd-status-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.spd-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--vx-text-3);
}
.spd-val {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--vx-text);
}
.spd-val-ok  { color: var(--vx-success); }
.spd-val-no  { color: var(--vx-danger); }
.spd-val-mono {
    font-family: monospace;
    font-size: 0.85rem;
}

.spd-tier-preview {
    position: relative;
    display: inline-block;
}
.spd-tier-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: help;
}
.spd-tier-chip {
    display: inline-block;
    padding: 3px 10px;
    background: var(--vx-primary-light);
    color: var(--vx-primary);
    border-radius: var(--vx-radius);
    font-size: 0.78rem;
    font-weight: 600;
}
.spd-tier-dots {
    font-size: 0.78rem;
    color: var(--vx-text-3);
}
.spd-tier-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    min-width: 240px;
    padding: 12px;
    background: var(--vx-bg-card);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius);
    box-shadow: var(--vx-shadow-lg);
    z-index: 20;
}
.spd-tier-preview:hover .spd-tier-tooltip {
    display: block;
}
.spd-tier-tooltip-title {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--vx-text);
}
.spd-tier-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.spd-tier-table th {
    text-align: left;
    padding: 4px 6px;
    color: var(--vx-text-3);
    font-weight: 600;
    border-bottom: 1px solid var(--vx-border);
}
.spd-tier-table td {
    padding: 4px 6px;
    border-bottom: 1px solid var(--vx-border);
    color: var(--vx-text);
}
.spd-tier-save {
    color: var(--vx-success);
    font-weight: 600;
}

.spd-cart-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.spd-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius);
    overflow: hidden;
}
.spd-qty-btn {
    width: 36px;
    height: 40px;
    background: var(--vx-bg-hover);
    border: none;
    color: var(--vx-text);
    font-size: 1.1rem;
    cursor: pointer;
}
.spd-qty-btn:hover {
    background: var(--vx-bg-active);
}
.spd-qty-in {
    width: 56px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--vx-border);
    border-right: 1px solid var(--vx-border);
    background: var(--vx-bg-input);
    color: var(--vx-text);
    text-align: center;
    font-size: 0.9rem;
}
.spd-qty-in:focus { outline: none; }
.spd-btn-cart {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 180px;
    height: 40px;
    padding: 0 16px;
    background: var(--vx-primary);
    color: var(--vx-text-inv);
    border: none;
    border-radius: var(--vx-radius);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--vx-font-family);
    cursor: pointer;
    MAX-WIDTH: 215PX;
}
.spd-btn-cart:hover {
    background: var(--vx-primary-hover);
}
.spd-btn-cart.spd-loading {
    opacity: 0.6;
    pointer-events: none;
}
.spd-btn-cart.spd-added {
    background: var(--vx-success);
}
.spd-btn-wish {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--vx-bg-card);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius);
    color: var(--vx-text-2);
    cursor: pointer;
}
.spd-btn-wish:hover {
    color: var(--vx-danger);
    border-color: var(--vx-danger);
}
.spd-btn-wish.spd-wish-active {
    color: var(--vx-danger);
    border-color: var(--vx-danger);
}
.spd-btn-wish.spd-wish-active svg {
    fill: var(--vx-danger);
}
.spd-min-note {
    font-size: 0.8rem;
    color: var(--vx-text-3);
}

.spd-mod-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.spd-mod-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--vx-bg-card);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius);
    color: var(--vx-text-2);
    font-size: 0.8rem;
    font-family: var(--vx-font-family);
    cursor: pointer;
}
.spd-mod-btn:hover {
    color: var(--vx-primary);
    border-color: var(--vx-primary);
}

.spd-tabs {
    margin-bottom: 32px;
}
.spd-tab-hdr {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--vx-border);
}
.spd-tab-btn {
    padding: 10px 18px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--vx-text-3);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--vx-font-family);
    cursor: pointer;
}
.spd-tab-btn:hover {
    color: var(--vx-text);
}
.spd-tab-btn.active {
    color: var(--vx-primary);
    border-bottom-color: var(--vx-primary);
}
.spd-tab-pan {
    display: none;
    padding: 18px 0;
}
.spd-tab-pan.active {
    display: block;
}
.spd-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--vx-text-2);
}
.spd-desc-empty {
    color: var(--vx-text-3);
    font-style: italic;
}

.spd-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--vx-gap);
}
.spd-spec-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.spd-spec-tbl td {
    padding: 7px 8px;
    border-bottom: 1px solid var(--vx-border);
}
.spd-sl {
    color: var(--vx-text-3);
    width: 45%;
}
.spd-sv {
    color: var(--vx-text);
    font-weight: 600;
}
.spd-spec-links {
    margin-top: 14px;
}
.spd-spec-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--vx-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}
.spd-spec-link:hover {
    color: var(--vx-primary-hover);
}

.spd-section {
    margin-bottom: 32px;
}
.spd-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--vx-text);
    margin: 0 0 14px;
}
.spd-swiper-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.spd-sw-arrow {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--vx-bg-card);
    border: 1px solid var(--vx-border);
    border-radius: 50%;
    color: var(--vx-text-2);
    cursor: pointer;
}
.spd-sw-arrow:hover {
    color: var(--vx-primary);
    border-color: var(--vx-primary);
}
.spd-sw-viewport {
    flex: 1;
    overflow-x: auto;
    scroll-behavior: smooth;
}
.spd-sw-viewport::-webkit-scrollbar {
    height: 0;
}
.spd-sw-track {
    display: flex;
    gap: var(--vx-gap);
}
.spd-sw-card {
    flex: 0 0 160px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: var(--vx-bg-card);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius);
    text-decoration: none;
}
.spd-sw-card:hover {
    border-color: var(--vx-primary);
}
.spd-sw-img {
    aspect-ratio: 1;
    border-radius: var(--vx-radius);
    overflow: hidden;
    background: var(--vx-bg-hover);
}
.spd-sw-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.spd-sw-brand {
    font-size: 0.68rem;
    text-transform: uppercase;
    color: var(--vx-text-3);
}
.spd-sw-name {
    font-size: 0.8rem;
    color: var(--vx-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.spd-sw-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--vx-primary);
}

.spd-toast-box {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 600;
}
.spd-toast {
    padding: 10px 18px;
    border-radius: var(--vx-radius);
    color: var(--vx-text-inv);
    font-size: var(--vx-font-size-base);
    box-shadow: var(--vx-shadow-lg);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease;
}
.spd-toast.spd-t-show {
    opacity: 1;
    transform: translateY(0);
}
.spd-t-ok  { background: var(--vx-success); }
.spd-t-err { background: var(--vx-danger); }

@media (max-width: 860px) {
    .spd-row {
        grid-template-columns: 1fr;
    }
    .spd-thumbs {
        flex-direction: row;
        order: 2;
    }
    .spd-specs-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════
   POPUP GENERICO
   ═══════════════════════════════════════════════ */
.spd-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--vx-overlay);
    align-items: center;
    justify-content: center;
    z-index: 700;
}
.spd-popup-overlay.active {
    display: flex;
}
.spd-popup {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 82vh;
    overflow-y: auto;
    background: var(--vx-bg-card);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius);
    box-shadow: var(--vx-shadow-lg);
    padding: 24px;
}
.spd-popup-sm {
    max-width: 380px;
}
.spd-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vx-bg-hover);
    border: none;
    border-radius: var(--vx-radius-round);
    color: var(--vx-text-2);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}
.spd-popup-close:hover {
    background: var(--vx-bg-active);
    color: var(--vx-text);
}
.spd-popup-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--vx-text);
    margin: 0 0 16px;
}

/* ─── Recensioni ─── */
.spd-reviews-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--vx-border);
}
.spd-reviews-avg {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--vx-text);
}
.spd-reviews-count {
    font-size: 0.85rem;
    color: var(--vx-text-3);
}
.spd-stars-static {
    display: inline-flex;
    gap: 1px;
    font-size: 1rem;
}
.spd-star-full {
    color: var(--vx-warning, var(--vx-primary));
}
.spd-star-empty {
    color: var(--vx-border);
}
.spd-reviews-list, .spd-questions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
    max-height: 240px;
    overflow-y: auto;
}
.spd-review-item, .spd-question-item {
    padding: 10px 12px;
    background: var(--vx-bg-hover);
    border-radius: var(--vx-radius-sm);
}
.spd-review-item.spd-review-pending, .spd-question-item.spd-review-pending {
    opacity: 0.5;
}
.spd-review-text {
    font-size: 0.87rem;
    color: var(--vx-text-2);
    margin: 6px 0 0;
    line-height: 1.5;
}
.spd-review-pending-tag {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--vx-text-3);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.spd-empty-note {
    font-size: 0.85rem;
    color: var(--vx-text-3);
    font-style: italic;
}
.spd-form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--vx-text-2);
    margin: 0 0 6px;
}
.spd-stars-input {
    display: flex;
    gap: 4px;
    font-size: 1.6rem;
    margin-bottom: 12px;
    cursor: pointer;
}
.spd-stars-input span {
    color: var(--vx-border);
    transition: color 0.1s ease;
}
.spd-stars-input span.active {
    color: var(--vx-warning, var(--vx-primary));
}
.spd-textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--vx-bg-input);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius);
    color: var(--vx-text);
    font-family: var(--vx-font-family);
    font-size: 0.88rem;
    resize: vertical;
    margin-bottom: 12px;
}
.spd-textarea:focus {
    outline: none;
    border-color: var(--vx-primary);
}
.spd-btn-primary {
    padding: 10px 18px;
    background: var(--vx-primary);
    color: var(--vx-text-inv);
    border: none;
    border-radius: var(--vx-radius);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--vx-font-family);
    cursor: pointer;
}
.spd-btn-primary:hover {
    background: var(--vx-primary-hover);
}
.spd-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.spd-question-a {
    font-size: 0.85rem;
    color: var(--vx-text);
    margin: 6px 0 0;
    line-height: 1.5;
}

/* ─── Condivisione ─── */
.spd-share-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.spd-share-btn {
    padding: 10px 8px;
    background: var(--vx-bg-hover);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius);
    color: var(--vx-text);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--vx-font-family);
    cursor: pointer;
}
.spd-share-btn:hover {
    border-color: var(--vx-primary);
    color: var(--vx-primary);
}
.spd-share-url {
    width: 100%;
    padding: 9px 12px;
    background: var(--vx-bg-input);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius);
    color: var(--vx-text-3);
    font-size: 0.8rem;
    font-family: var(--vx-font-family);
}

/* ─── Spedizioni ─── */
.spd-ship-loading {
    font-size: 0.85rem;
    color: var(--vx-text-3);
}
.spd-ship-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.spd-ship-method {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: var(--vx-bg-hover);
    border-radius: var(--vx-radius);
    font-size: 0.85rem;
}
.spd-ship-name {
    font-weight: 600;
    color: var(--vx-text);
    flex: 1;
}
.spd-ship-eta {
    color: var(--vx-text-3);
}
.spd-ship-price {
    font-weight: 700;
    color: var(--vx-primary);
}
.spd-pickup-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.spd-pickup-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    background: var(--vx-bg-hover);
    border-radius: var(--vx-radius);
}
.spd-pickup-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--vx-text);
}
.spd-pickup-address {
    font-size: 0.78rem;
    color: var(--vx-text-3);
}
.spd-popup-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--vx-text);
    margin: 0 0 16px;
}
.spd-price-req {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--vx-text);
    font-style: italic;
}