/* ===== RESET / BASE ===== */
* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 20px;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #2f2f2f;
    text-align: center;
    line-height: 1.6;
}

.ebay-template {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

/* ===== LOGO ===== */
.logo {
    margin-bottom: 24px;
}

.logo img {
    display: block;
    width: 600px;
    max-width: 95%;
    height: auto;
    margin: 0 auto;
}

/* ===== IMMAGINE PRODOTTO ===== */
.product-image {
    margin: 0 auto 24px;
}

.product-image img {
    display: block;
    width: 100%;
    max-width: 650px;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
}

/* ===== INTESTAZIONE PRODOTTO ===== */
.product-header {
    margin-bottom: 28px;
}

.product-title {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.25;
    color: #1e1e1e;
    text-transform: uppercase;
}

.product-reference {
    display: inline-block;
    margin: 0;
    padding: 8px 14px;
    border-radius: 6px;
    background: #f2f2f2;
    font-size: 15px;
}

.product-reference strong {
    color: #d40000;
}

/* ===== DESCRIZIONE ===== */
.product-description {
    margin-bottom: 30px;
    text-align: left;
}

.product-description h2 {
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #d40000;
    font-size: 21px;
    line-height: 1.3;
    color: #1f1f1f;
}

.product-description p {
    margin: 0 0 14px;
    font-size: 15px;
}

.product-description ul {
    margin: 0;
    padding-left: 22px;
}

.product-description li {
    margin-bottom: 8px;
    font-size: 15px;
}

/* ===== TAB ===== */
.tabs {
    width: 100%;
    margin: 30px auto 0;
    text-align: left;
}

/* radio nascosti */
.tabs > input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tab-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.tab-labels label {
    flex: 1 1 150px;
    padding: 13px 12px;
    border: 1px solid #d0d0d0;
    background: #e8e8e8;
    color: #333333;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab-labels label:hover {
    background: #dcdcdc;
}

.tab-content {
    border: 1px solid #dddddd;
    border-top: 3px solid #d40000;
    background: #fafafa;
}

.tab-content .content {
    display: none;
    padding: 20px;
    font-size: 14px;
    line-height: 1.65;
}

.tab-content .content p {
    margin: 0 0 10px;
}

.tab-content .content p:last-child {
    margin-bottom: 0;
}

/* contenuto attivo */
#tab1:checked ~ .tab-content .c1,
#tab2:checked ~ .tab-content .c2,
#tab3:checked ~ .tab-content .c3,
#tab4:checked ~ .tab-content .c4,
#tab5:checked ~ .tab-content .c5 {
    display: block;
}

/* pulsante attivo */
#tab1:checked ~ .tab-labels label[for="tab1"],
#tab2:checked ~ .tab-labels label[for="tab2"],
#tab3:checked ~ .tab-labels label[for="tab3"],
#tab4:checked ~ .tab-labels label[for="tab4"],
#tab5:checked ~ .tab-labels label[for="tab5"] {
    background: #d40000;
    color: #ffffff;
    border-color: #d40000;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 30px;
}

.footer img {
    display: block;
    width: 100%;
    max-width: 980px;
    height: auto;
    margin: 0 auto;
}

.credits {
    margin-top: 10px;
    font-size: 12px;
    color: #777777;
}

/* ===== MOBILE ===== */
@media screen and (max-width: 700px) {
    body {
        padding: 12px;
    }

    .product-title {
        font-size: 22px;
    }

    .product-description h2 {
        font-size: 19px;
    }

    .tab-labels {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tab-labels label {
        width: 100%;
    }
}

@media screen and (max-width: 420px) {
    body {
        padding: 8px;
    }

    .product-title {
        font-size: 20px;
    }

    .product-reference {
        display: block;
        width: 100%;
    }

    .tab-labels {
        grid-template-columns: 1fr;
    }

    .tab-content .content,
    .product-description p,
    .product-description li {
        font-size: 14px;
    }
}
