*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#f5f5f5;
    color:#222;
}

/* TOPBAR */

.topbar{
    background:#111;
    padding:15px 40px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    color:white;
    font-size:28px;
    font-weight:bold;
}

.search-box{
    display:flex;
    gap:10px;
}

.search-box input{
    width:300px;
    padding:10px;
    border:none;
    border-radius:5px;
}

.search-box button{
    padding:10px 20px;
    border:none;
    background:#ff6600;
    color:white;
    border-radius:5px;
    cursor:pointer;
}

/* CONTENIDO */

.container{
    max-width:1300px;
    margin:40px auto;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    padding:20px;
}

/* GALERÍA */

.gallery{
    background:white;
    padding:20px;
    border-radius:10px;
}

.main-image img{
    width:100%;
    max-width:700px;
    border-radius:10px;
    display:block;
}

.thumbnails{
    display:flex;
    gap:15px;
    margin-top:20px;
}

.thumbnails img{
    width:100px;
    border-radius:10px;
    cursor:pointer;
    border:2px solid transparent;
    transition:0.3s;
}

.thumbnails img:hover{
    border-color:#ff6600;
}

/* INFO PRODUCTO */

.product-info{
    background:white;
    padding:30px;
    border-radius:10px;
}

.brand{
    color:#ff6600;
    font-weight:bold;
    font-size:14px;
}

.product-info h1{
    margin-top:10px;
    font-size:34px;
    line-height:1.2;
}

.price-box{
    margin:25px 0;
    display:flex;
    align-items:center;
    gap:15px;
}

.old-price{
    text-decoration:line-through;
    color:gray;
    font-size:22px;
}

.new-price{
    color:#e60000;
    font-size:42px;
    font-weight:bold;
}

.description{
    line-height:1.7;
    margin-bottom:20px;
}

.features{
    margin-bottom:30px;
}

.features li{
    margin-bottom:10px;
}

/* BOTONES */

.buttons{
    display:flex;
    gap:20px;
}

.buy-btn{
    background:#ff6600;
    color:white;
    border:none;
    padding:15px 30px;
    font-size:16px;
    border-radius:8px;
    cursor:pointer;
}

.cart-btn{
    background:#111;
    color:white;
    border:none;
    padding:15px 30px;
    font-size:16px;
    border-radius:8px;
    cursor:pointer;
}

/* TABLA */

.specs{
    max-width:1300px;
    margin:0 auto 50px;
    background:white;
    padding:30px;
    border-radius:10px;
}

.specs h2{
    margin-bottom:25px;
    font-size:30px;
}

table{
    width:100%;
    border-collapse:collapse;
}

table td{
    border:1px solid #ddd;
    padding:15px;
}

table tr:nth-child(even){
    background:#f7f7f7;
}

/* RESPONSIVE */

@media(max-width:900px){

    .container{
        grid-template-columns:1fr;
    }

    .search-box input{
        width:180px;
    }

    .product-info h1{
        font-size:26px;
    }

    .new-price{
        font-size:34px;
    }

    .buttons{
        flex-direction:column;
    }

}
/* IMAGEN ACTIVA */

.thumbnails img.active{
    border-color:#ff6600;
}

/* HEADER FIJO */

.topbar.sticky{
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 2px 10px rgba(0,0,0,0.2);
}