:root{
    --primary:#4b1d73;
    --accent:#ffcc33;
    --bg:#f4f4f8;
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:Segoe UI, sans-serif;
    background:var(--bg);
}

/* HEADER */
.header{
    background:linear-gradient(135deg,#4b1d73,#2e0f47);
    color:white;
    padding:15px 30px;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:15px;
}

.logo{
    font-weight:bold;
    font-size:20px;
}

.header input{
    padding:10px;
    border-radius:20px;
    border:none;
    width:250px;
}

.nav-buttons button{
    background:var(--accent);
    border:none;
    padding:10px 15px;
    border-radius:10px;
    cursor:pointer;
    font-weight:600;
}

/* GRID */
.container{
    max-width:1300px;
    margin:40px auto;
    padding:0 20px;
}

.grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

@media(max-width:1000px){
    .grid{grid-template-columns:repeat(2,1fr);}
}

@media(max-width:600px){
    .grid{grid-template-columns:1fr;}
}

/* CARD */
.card{
    background:white;
    border-radius:20px;
    padding:20px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    transition:.3s;
    display:flex;
    flex-direction:column;
}

.card:hover{
    transform:translateY(-6px);
}

.card img{
    width:100%;
    height:160px;
    object-fit:contain;
}

.card h3{
    font-size:16px;
}

.card p{
    font-size:13px;
    color:#555;
}

.card button{
    margin-top:auto;
    padding:8px;
    border-radius:8px;
    border:none;
    cursor:pointer;
    margin-bottom:5px;
}

.primary{
    background:var(--primary);
    color:white;
}

.outline{
    background:transparent;
    border:2px solid var(--primary);
    color:var(--primary);
}

/* MODAL */
.modal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.5);
    justify-content:center;
    align-items:center;
}

.modal-content{
    background:white;
    width:90%;
    max-width:600px;
    padding:30px;
    border-radius:20px;
    animation:slideIn .4s ease;
}

@keyframes slideIn{
    from{transform:translateY(40px); opacity:0;}
    to{transform:translateY(0); opacity:1;}
}

.close{
    float:right;
    cursor:pointer;
    font-size:22px;
}

/* COMPARE TABLE */
.compare-table{
    width:100%;
    border-collapse:collapse;
    background:white;
    border-radius:20px;
    overflow:hidden;
}

.compare-table th,
.compare-table td{
    padding:15px;
    border-bottom:1px solid #eee;
    text-align:center;
}

.compare-table th{
    background:var(--primary);
    color:white;
}
