* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #031514;
    color: white;
}


/* ================= HEADER ================= */

.navbar {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 6%;
    background: #031010;
    border-bottom: 1px solid #12433f;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.logo span {
    color: #00e6d0;
}

.logo small {
    display: block;
    font-size: 8px;
    letter-spacing: 3px;
    margin-top: 3px;
}

.navbar nav {
    display: flex;
    gap: 35px;
    margin-left: 90px;
}

.navbar nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 25px 0;
}

.navbar nav a:hover {
    color: #00e6d0;
    border-bottom: 3px solid #00e6d0;
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 25px;
}

.search {
    width: 280px;
    height: 38px;
    border: 1px solid #17645d;  
    border-radius: 25px;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.search input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: white;
}

.search input::placeholder {
    color: #999;
}

.search i {
    color: #00e6d0;
}

.nav-right a {
    color: #00e6d0;
    font-size: 21px;
    text-decoration: none;
}


/* ================= BANNER ================= */

.category-banner {
    height: 380px;

    background-image:
    linear-gradient(
        to right,
        rgba(0, 0, 0, 0.85),
        rgba(0, 0, 0, 0.15)
    ),
    url("../image/categories/keyboard/keyboard-teal.png");

    background-size: cover;
    background-position: center;

    position: relative;
}

.banner-content {
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
}

.banner-content p:first-child {
    color: #00e6d0;
    font-size: 12px;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.banner-content h1 span {
    color: #00e6d0;
}

.banner-content p:last-child {
    color: #ddd;
    font-size: 17px;
}


/* ================= PRODUCTS SECTION ================= */

.products-section {
    width: 88%;
    margin: 50px auto 70px;
}

.section-title {
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.section-title h2 span {
    color: #00e6d0;
}

.section-title p {
    color: #aaa;
    font-size: 14px;
}


/* ================= PRODUCT GRID ================= */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}


/* ================= PRODUCT CARD ================= */

.product-card {
    background: #061e1c;
    border: 1px solid #12615a;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
}

.product-card:hover {
    border-color: #00e6d0;
    transform: translateY(-5px);
}


/* ================= PRODUCT IMAGE ================= */

.product-image {
    height: 260px;
    background: #031514;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* ================= PRODUCT INFO ================= */

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.product-info p {
    color: #aaa;
    font-size: 13px;
    line-height: 1.5;
    min-height: 40px;
}

.price {
    color: #00e6d0;
    font-size: 22px;
    font-weight: bold;
    margin: 15px 0;
}


/* ================= BUTTONS ================= */

.buttons {
    display: flex;
    gap: 10px;
}

.buttons a {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.cart-btn {
    flex: 1;
    background: transparent;
    border: 1px solid #00e6d0;
    color: #00e6d0;
}

.cart-btn:hover {
    background: #00e6d0;
    color: #031514;
}

.cart-btn i {
    margin-right: 7px;
}

.buy-btn {
    flex: 1;
    background: #00e6d0;
    color: #031514;
    font-weight: bold;
}

.buy-btn:hover {
    background: white;
}


/* ================= FOOTER ================= */

footer {
    min-height: 100px;
    padding: 25px 7%;
    background: #02100f;
    border-top: 1px solid #12433f;
    display: flex;
    align-items: center;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
}

.footer-logo span {
    color: #00e6d0;
}

.footer-logo small {
    display: block;
    font-size: 8px;
    letter-spacing: 3px;
    margin-top: 5px;
}

.social {
    margin-left: auto;
    display: flex;
    gap: 20px;
}

.social i {
    font-size: 18px;
    color: white;
}

.social i:hover {
    color: #00e6d0;
}

.footer-right {
    margin-left: 40px;
    padding-left: 30px;
    border-left: 1px solid #12615a;
    color: #bbb;
    font-size: 12px;
}


/* ================= COPYRIGHT ================= */

.copyright {
    padding: 12px 7%;
    background: #010908;
    color: #999;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}


/* ================= MOBILE ================= */

@media (max-width: 1000px) {

    .navbar nav {
        margin-left: 40px;
        gap: 20px;
    }

    .search {
        width: 200px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 700px) {

    .navbar {
        padding: 0 4%;
    }

    .navbar nav {
        display: none;
    }

    .search {
        display: none;
    }

    .category-banner {
        height: 320px;
    }

    .banner-content h1 {
        font-size: 36px;
    }

    .products-section {
        width: 92%;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    footer,
    .copyright {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .social {
        margin-left: 0;
    }

    .footer-right {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }
}