
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    text-align: center;
}



.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    padding: 10px 20px;
    width: 100%;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    height: 40px;
    width: 40px;
    margin-right: 20px;
}

.searchbar {
    flex: 1;
    padding: 5px;
    margin-right: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    width: 50%;
}

.cart-icon {
    display: flex;
    align-items: center;
}

.cart-icon img {
    height: 20px;
    width: 20px;
}

nav {
    background-color: #c0c8d0;
    padding: 15px 0;
    width: 100%;
    margin-top: 10px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 20px;
}

.nav-menu li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 10px 30px;
    background-color: #627DAE;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.nav-menu li a:hover {
    background-color: #50699A;
}

main {
    width: 90%;
    margin: 20px auto;
    text-align: center;
}

.ads {
    width: 100%;
    margin-bottom: 20px;
}

.ads img {
    width: 100%;
    height: 180px;
    display: block;
    border-radius: 8px;
}

.categories-title {
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 18px;
    text-transform: uppercase;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-content: center;
    justify-items: center;
    align-items: center;
}

.category-item {
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item:hover {
    transform: scale(1.1);
    color: #627DAE;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.category-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: border-color 0.3s ease;
}

.category-item img:hover {
    border-color: #627DAE;
}


.category-item a {
    text-decoration: none; 
    color: inherit; 
    display: block; 
    transition: color 0.3s ease;
}


.category-item span {
    display: block;
    margin-top: 8px;
    font-weight: bold;
    text-transform: capitalize;
}

.category-item:active {
    transform: scale(0.95);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
}
