button, .size, .thumbs img {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

button:active {
    transform: scale(0.96);
}

.product-detail {
    display: flex;                 /* lado a lado */
    flex-wrap: wrap;               /* en pantallas chicas que se acomode */
    gap: 60px;
    padding: 80px 5%;             /* reduce el padding para usar más ancho */
    background: #fff;
    margin-top: 5px;
    width: 100%;                   /* ocupa toda la pantalla */
    box-sizing: border-box;
}

.product-left, .product-right {
    flex: 1 1 0;                   /* cada columna ocupa la mitad aprox */
    min-width: 300px;              /* evita que se achiquen demasiado */
}

/* GALERÍA */
.main-image {
    width: 100%;
    aspect-ratio: 1 / 1;   /* fuerza 1:1 */
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:#f5f5f5; /* opcional, fondo si la imagen no llena */
}

/* imagen dentro */
.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* mantiene proporción, no recorta */
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.main-image img.fade{
    opacity: 0;
    transform: scale(0.98);
}

.thumbs{
    display:flex;
    gap:12px;
    margin-top:18px;
}

.thumbs img{
    width: 110px;
    aspect-ratio: 1 / 1; /* fuerza cuadrado */
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: .75;
    transition: .3s;
}

.thumbs img:hover{
    opacity:1;
    transform:scale(1.05);
}

/* TEXTO */
.brand{
    font-family:'Gloock', serif;
    font-size:56px;
    color:#000;
    margin-bottom:4px;
}

.name{
    font-family:'Gloock', serif;
    font-size:36px;
    color:#444;
    margin-bottom:18px;
}

.sub{
    font-family:'Montserrat', sans-serif;
    font-style:italic;
    font-weight:300;
    color:#777;
    margin-bottom:6px;
}

.price{
    font-family:'Montserrat', sans-serif;
    font-style:italic;
    font-size:22px;
    margin:22px 0;
}

/* TAMAÑOS */
.sizes{
    display:flex;
    gap:12px;
}

.size{
    padding:10px 20px;
    border-radius:16px; 
    border:1.5px solid #c59234;
    background:transparent;
    color:#c59234;
    cursor:pointer;
    font-family:'Montserrat', sans-serif;
    letter-spacing:0.5px;
}

.size:hover{
    transform:translateY(-2px);
    box-shadow:0 4px 10px rgba(197,146,52,.35);
}

.size.active{
    background:#000;
    color:#d4a047;
    box-shadow:0 0 10px rgba(212,160,71,.8);
    border:none;
}

/* CANTIDAD */
.quantity{
    display:flex;
    align-items:center;
    gap:18px;
    margin:22px 0;
}

.quantity button{
    width:34px;
    height:34px;
    border-radius:50%;
    border:1px solid #aaa;
    background:#fff;
}

.location{
    font-size:13px;
    color:#aaa;
}

/* BOTÓN */
.add-btn{
    width:100%;
    padding:16px;
    background:#000;
    color:#d4a047;
    border:none;
    border-radius:32px;
    font-family:'Montserrat', sans-serif;
    font-weight:500;
    letter-spacing:1.2px;
    margin-top:10px;
}

.add-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 0 18px rgba(212,160,71,.75);
}

/* ACORDEÓN */
.acc-btn{
    width:100%;
    background:#000;
    color:#d4a047;
    border:none;
    padding:16px 18px;
    margin-top:16px;
    text-align:left;
    cursor:pointer;
    border-radius:18px; 
    font-family:'Montserrat', sans-serif;
    letter-spacing:0.6px;
}

.acc-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 0 12px rgba(212,160,71,.6);
}

.acc-content{
    display:none;
    padding:18px;
    margin-top:8px;
    border-radius:18px;
    background:#f7f7f7;
    font-family:'Montserrat', sans-serif;
    font-style:italic;
    color:#555;
    animation:fadeSlide .35s ease;
}

.back-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #000;
    color: #d4a047;
    border-radius: 32px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #d4a047;
    color: #000;
}

@keyframes fadeSlide{
    from{
        opacity:0;
        transform:translateY(-6px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* Tablets: hasta 768px */
@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
        gap: 40px;
        padding: 60px 5%;
    }

    .product-left, .product-right {
        flex: 1 1 100%;
        min-width: auto;
    }

    .main-image {
        aspect-ratio: 1 / 1;
    }

    .thumbs {
        justify-content: flex-start;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 8px;
    }

    .thumbs img {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }

    .brand {
        font-size: 40px;
    }

    .name {
        font-size: 28px;
    }

    .sub {
        font-size: 14px;
    }

    .price {
        font-size: 18px;
    }

    .size {
        padding: 8px 16px;
        font-size: 13px;
    }

    .add-btn {
        padding: 14px;
        font-size: 14px;
    }

    .acc-btn {
        padding: 14px 16px;
        font-size: 14px;
    }

    .acc-content {
        padding: 14px;
    }

    .quantity button {
        width: 30px;
        height: 30px;
    }
}

/* Móviles: hasta 480px */
@media (max-width: 480px) {
    .product-detail {
        padding: 40px 3%;
        gap: 30px;
    }

    .main-image {
        aspect-ratio: 1 / 1;
    }

    .thumbs {
        gap: 10px;
    }

    .thumbs img {
        width: 60px;
        height: 60px;
    }

    .brand {
        font-size: 28px;
    }

    .name {
        font-size: 22px;
    }

    .sub {
        font-size: 12px;
    }

    .price {
        font-size: 16px;
    }

    .size {
        padding: 6px 12px;
        font-size: 12px;
    }

    .add-btn {
        padding: 12px;
        font-size: 13px;
    }

    .acc-btn {
        padding: 12px 14px;
        font-size: 13px;
    }

    .acc-content {
        padding: 12px;
    }

    .quantity {
        gap: 12px;
    }

    .quantity button {
        width: 28px;
        height: 28px;
    }
}