/* ============================================================
   shopin.city — scheda prodotto sul fondo scuro
   Caricato per ultimo.

   Sul nero i riquadri bianchi ereditati dal tema chiaro
   spiccavano come toppe. Qui diventano superfici scure con un
   filo di contorno: la foto resta l'unica cosa luminosa, che è
   esattamente quello che deve attirare lo sguardo.
   ============================================================ */

/* ------------------------------------------------ respiro */

.pdp {
    padding: 22px 18px 40px;
    gap: 26px;
}

@media (min-width: 900px) {
    .pdp {
        padding: 34px 24px 60px;
        gap: 44px;
    }
}

.pdp-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pdp-media { border-radius: 14px; overflow: hidden; }

.pdp-img {
    border-radius: 14px;
    background: #EDEFF3;
}

/* ------------------------------------------- testi e prezzi */

.pdp-brand {
    margin: 0;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.pdp-title {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--ink);
}

.pdp-prices { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.pdp-prices .price-now { font-size: 1.7rem; font-weight: 800; }
.pdp-prices .price-old { font-size: 1rem; }

.pdp-sold-by,
.pdp-info .muted,
.pdp-hint { color: var(--muted); font-size: .84rem; }

/* --------------------------------------------------- taglie */

.size-field { display: flex; flex-direction: column; gap: 8px; }

.size-label,
.qty-label,
.pdp-info .label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    color: var(--ink);
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}

.size-box:hover {
    border-color: rgba(255, 255, 255, .45);
    background: rgba(255, 255, 255, .09);
}

.size-box.is-selected,
.size-box:has(input:checked) {
    background: #fff;
    border-color: #fff;
    color: #08090E;
}

.size-box.is-disabled {
    opacity: .35;
    cursor: not-allowed;
    text-decoration: line-through;
}

.size-box input { position: absolute; opacity: 0; pointer-events: none; }

/* ------------------------------------------------ quantità */

.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    width: max-content;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    overflow: hidden;
}

.qty-btn {
    width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.qty-btn:hover { background: rgba(255, 255, 255, .1); }

.qty-input {
    width: 56px;
    height: 48px;
    border: 0;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* -------------------------------------------------- azioni */

.pdp-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.pdp-actions .btn {
    min-height: 54px;
    border-radius: 12px;
    font-size: .92rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.pdp-actions .btn-primary {
    background: var(--blue);
    color: #fff;
    border: 0;
    box-shadow: 0 8px 24px rgba(76, 107, 255, .35);
}

.pdp-actions .btn-primary:hover { background: #6B84FF; }

.pdp-actions .btn-ghost,
.pdp-actions .btn-outline {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
}

/* ------------------------------------------------ accordion */

.pdp-accordion { margin-top: 6px; border-top: 1px solid var(--line); }

.pdp-accordion details {
    border-bottom: 1px solid var(--line);
    background: transparent;
}

.pdp-accordion summary {
    padding: 16px 2px;
    color: var(--ink);
    font-weight: 700;
    font-size: .92rem;
    cursor: pointer;
    list-style: none;
}

.pdp-accordion summary::-webkit-details-marker { display: none; }

.pdp-accordion summary::after {
    content: "+";
    float: right;
    color: var(--muted);
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1;
}

.pdp-accordion details[open] summary::after { content: "–"; }

.pdp-accordion .pdp-accordion-body,
.pdp-accordion details > *:not(summary) {
    padding: 0 2px 16px;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.6;
}

/* --------------------------------- riquadro consegna e mini negozio */

.delivery-box,
.pdp-shop {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.5;
}

.delivery-box strong,
.pdp-shop strong { color: var(--ink); }
