/* ---------- General Body ---------- */
body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}

/* ---------- Header ---------- */
header {
    background: #0A66C2; /* primary blue */
    padding: 5px 20px;
    color: white;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* allows wrapping on small screens */
}

/* Logo styling */
.header-top .logo img {
    width: 180px;       /* default desktop size */
    max-width: 100%;    /* responsive */
    height: auto;       /* maintain aspect ratio */
    display: block;
}

/* Responsive logo */
@media screen and (max-width: 1024px) {
    .header-top .logo img {
        width: 140px !important;
    }
}

@media screen and (max-width: 768px) {
    .header-top .logo img {
        width: 120px !important;
    }
}

@media screen and (max-width: 480px) {
    .header-top .logo img {
        width: 100px !important;
    }
}

/* Navigation styling */
header nav {
    display: flex;
    flex-wrap: wrap;      /* wraps nav links on small screens */
    gap: 10px;
    align-items: center;
}

header nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 5px 8px;
    transition: 0.2s;
}

header nav a:hover {
    border-bottom: 2px solid #00A878; /* green accent on hover */
}

header nav a.active {
    border-bottom: 2px solid #00A878; /* green accent for active */
}

/* ---------- Laptop / Desktop Section ---------- */
.laptop-section,
.desktop-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.laptop-section h1,
.desktop-section h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #0A66C2; /* blue */
}

/* ---------- Grid ---------- */
.laptop-grid,
.desktop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    justify-items: center;
}

/* ---------- Cards ---------- */
.laptop-card,
.desktop-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.laptop-card:hover,
.desktop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.laptop-card img,
.desktop-card img {
    width: 100%;
    max-width: 200px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
}

.laptop-card h3,
.desktop-card h3 {
    margin: 5px 0;
    color: #0A66C2; /* blue title */
}

.laptop-card p,
.desktop-card p {
    margin: 5px 0;
    color: #333; /* dark description */
}

.price {
    font-weight: bold;
    color: #00A878; /* green price */
    margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.buttons button {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.add-cart {
    background: #0A66C2;
    color: white;
}

.add-cart:hover {
    background: #0073b1;
}

.details {
    background: #00A878;
    color: white;
}

.details:hover {
    background: #008f6a;
}

/* ---------- Footer ---------- */
footer {
    text-align: center;
    padding: 20px;
    background: #0A66C2;
    color: white;
    margin-top: 30px;
}