.tee-page { padding-top: clamp(36px, 6vw, 72px); padding-bottom: 72px; }

.tee-intro {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 32px;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--linea);
}

.tee-intro h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); margin: 0; }
.tee-intro > p { max-width: 320px; margin: 0 0 8px; color: var(--testo-2); }

.tee-empty { color: var(--testo-2); }

.tee-models {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.tee-model {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid var(--linea);
    background: var(--carta);
    color: inherit;
    text-decoration: none;
}

.tee-model[aria-current="page"],
.tee-model:hover { border-color: var(--oro); }

.tee-model img {
    width: 92px;
    height: 68px;
    object-fit: cover;
    border-radius: 10px;
    background: #10182c;
}

.tee-model strong,
.tee-model em { display: block; }
.tee-model em { color: var(--oro-chiaro); font-style: normal; font-size: .92rem; }

.tee-notice {
    margin: 0 0 22px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid var(--linea);
    background: rgba(232, 163, 61, .08);
}

.tee-layout {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.tee-gallery > a {
    display: block;
    border-radius: 24px;
    overflow: hidden;
    background: #10182c;
    border: 1px solid var(--linea);
}

#tee-main-image { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

.tee-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.tee-thumbs a {
    display: block;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    opacity: .72;
    background: #10182c;
}

.tee-thumbs a[aria-current="true"],
.tee-thumbs a:hover,
.tee-thumbs a:focus-visible { border-color: var(--oro); opacity: 1; }

.tee-thumbs img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

.tee-caption { margin: 12px 0 0; font-size: .82rem; line-height: 1.55; color: var(--testo-2); }

.tee-purchase {
    position: sticky;
    top: 92px;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--linea);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(232, 163, 61, .2), transparent 46%),
        linear-gradient(180deg, var(--carta), var(--fondo-2));
    backdrop-filter: blur(8px);
}

.tee-purchase h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); }
.tee-price {
    margin: 18px 0 0;
    font-family: var(--font-titoli);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--oro-chiaro);
}
.tee-delivery { margin: 8px 0 0; color: var(--testo-2); font-size: .92rem; }

.tee-rows { display: grid; gap: 12px; margin-top: 22px; }

.tee-row__name {
    display: none;
    margin: 0 0 8px;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--oro);
}

.tee-rows--multi .tee-row {
    border: 1px solid var(--linea);
    border-radius: 16px;
    padding: 12px 12px 4px;
}

.tee-rows--multi .tee-row__name { display: block; }

.tee-kicker { flex: 1 0 100%; font-size: .95rem; }

.tee-fits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 4px;
}

.tee-fits label,
.tee-sizes label { position: relative; }

.tee-fits input,
.tee-sizes input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.tee-fits label span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 8px 16px;
    border: 1px solid var(--linea);
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.tee-tanto {
    display: none;
    margin-left: .4em;
    font-family: var(--font-titoli);
    font-style: italic;
    font-weight: 500;
}

.tee-fits input:checked + span {
    background: var(--oro);
    color: var(--fondo);
    border-color: var(--oro);
}

.tee-fits input:checked + span .tee-tanto { display: inline; }

.tee-fits input:focus-visible + span,
.tee-sizes input:focus-visible + span,
.tee-quantity select:focus-visible,
.tee-pay:focus-visible,
.tee-add:focus-visible,
.tee-remove:focus-visible {
    outline: 2px solid var(--oro-chiaro);
    outline-offset: 3px;
}

.tee-sizes {
    border: 0;
    margin: 12px 0 8px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tee-sizes .tee-kicker { margin-bottom: 0; }

.tee-sizes label span {
    display: grid;
    place-items: center;
    min-width: 52px;
    min-height: 46px;
    padding: 8px 12px;
    border: 1px solid var(--linea);
    border-radius: 12px;
    font-weight: 600;
}

.tee-sizes input:checked + span {
    background: var(--oro);
    color: var(--fondo);
    border-color: var(--oro);
}

.tee-quantity label {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.tee-remove {
    display: none;
    margin-left: auto;
    border: 0;
    background: none;
    color: var(--testo-2);
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tee-rows--multi .tee-remove { display: inline; }

.btn.tee-add {
    margin-top: 14px;
    padding: 10px 18px;
    border: 1px solid rgba(243, 236, 226, .28);
    border-radius: 999px;
    background: transparent;
    color: var(--testo);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
}

.tee-add:disabled { opacity: .45; cursor: not-allowed; transform: none; }

#tee-form-note:empty { display: none; }
#tee-form-note { margin-top: 8px; color: var(--oro-chiaro); }

.tee-quantity,
.tee-line,
.tee-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
}

.tee-quantity select {
    min-width: 88px;
    padding: 10px 14px;
    border: 1px solid var(--linea);
    border-radius: 12px;
    background: var(--fondo);
    color: var(--testo);
    font: inherit;
}

.tee-line { color: var(--testo-2); font-size: .92rem; }

.tee-total {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--linea);
    font-size: 1.05rem;
}

.tee-total strong {
    font-family: var(--font-titoli);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--oro-chiaro);
}

.tee-pay {
    width: 100%;
    margin-top: 8px;
    border: 0;
    justify-content: center;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.tee-pay:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tee-split {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    align-items: center;
    gap: clamp(24px, 5vw, 56px);
    padding: clamp(48px, 8vw, 88px) 0 12px;
}

.tee-split img,
.tee-split video {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    border-radius: 24px;
    border: 1px solid var(--linea);
    background: #070b16;
}

.tee-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 28px;
}

.tee-chiusura { max-width: 16em; margin: 56px 0 0; }

.tee-result {
    max-width: 720px;
    margin: 48px auto;
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--linea);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(232, 163, 61, .18), transparent 42%),
        var(--fondo-2);
}

.tee-result h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.tee-result .btn { margin-top: 8px; }

.tee-summary {
    display: grid;
    gap: 10px;
    margin: 24px 0;
}

.tee-summary div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--linea);
}

.tee-summary dt { color: var(--testo-2); }
.tee-summary dd { margin: 0; text-align: right; }

.tee-zoom {
    width: min(1100px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 16px;
    border: 1px solid var(--linea);
    border-radius: 20px;
    background: #070b16;
    color: var(--testo);
}

.tee-zoom::backdrop { background: rgba(7, 11, 22, .84); }
.tee-zoom img { width: 100%; height: auto; max-height: calc(100vh - 110px); object-fit: contain; border-radius: 12px; }

.tee-zoom__chiudi {
    margin: 0 0 10px auto;
    display: block;
    padding: 8px 14px;
    border: 1px solid var(--linea);
    border-radius: 999px;
    background: transparent;
    color: var(--testo);
    font: inherit;
    cursor: pointer;
}

@media (max-width: 900px) {
    .tee-layout,
    .tee-split,
    .tee-steps { grid-template-columns: 1fr; }
    .tee-purchase { position: static; }
}

@media (max-width: 760px) {
    .tee-intro { display: block; }
    .tee-intro > p { max-width: none; margin-top: 12px; }
    .tee-thumbs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .tee-page { padding-top: 28px; }
}

@media (max-width: 520px) {
    .tee-thumbs { grid-template-columns: repeat(2, 1fr); }
    .tee-sizes { gap: 6px; }
    .tee-sizes label span { min-width: 40px; padding: 8px 6px; }
    .tee-fits label span { padding: 8px 12px; }
    .tee-quantity { min-width: 0; }
    .tee-quantity select { width: 5.25rem; min-width: 0; max-width: 100%; }
    .tee-purchase, .tee-gallery, .tee-split { min-width: 0; }
}
