* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    font-family: Arial, sans-serif;
    background: #ffffff;
    /* white background */
    color: #000;
    /* default text color black */
    padding: 40px 5%;
    /* optional padding */
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    /* logo left, menu right */
    align-items: center;
    padding: 20px 50px;
    background-color: white;
    border-bottom: 1px solid #ddd;
}

/* LOGO */
.logo img {
    height: 45px;
}

/* MENU */
.menu {
    list-style: none;
    display: flex;
    gap: 50px;
}

.menu li a {
    text-decoration: none;
    color: black;
    font-size: 23px;
    position: relative;
    padding-bottom: 5px;
}

/* Media query for smaller screens (phones) */
@media only screen and (max-device-width: 600px) {
    .menu li a {
        font-size: 30px;
        /* bigger font for mobile */
    }
}

/* HOVER EFFECT */
.menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: blue;
    transition: width 0.3s ease;
}

.menu li a:hover::after {
    width: 100%;
}

/* ACTIVE PAGE */
.menu li a.active::after {
    width: 100%;
}


/* HERO */
.hero {
    background: url(images/landing3.jpg);
    padding: 60px;
    border-radius: 30px;
    margin: 20px;
    height: 400px;
    color: #ffffff;
}

.hero h1 {
    font-size: 70px;
}

.hero p {
    font-size: 25px;
    margin: 10px 0 30px;
}

.search-box {

    width: 450px;
    background: white;
    border-radius: 20px;
    overflow: hidden;

}

.row {
    display: flex;
    padding: 5px 20px;
}

input {
    flex: 1;
    height: 70px;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 22px;
    color: #333;
}

button {
    background: transparent;
    border: 0;
    outline: 0;
}

::placeholder {
    color: #555;
}

.result-box ul {
    border-top: 1px solid #999;
    padding: 15px 10px;
}

.result-box ul li {
    list-style: none;
    border-radius: 3px;
    padding: 15px 10px;
    cursor: pointer;
    color: black;
}

.result-box ul li:hover {
    background-color: #e9f3ff;
    ;
}

.result-box {
    max-height: 300px;
    overflow-y: scroll;
}


/* SHOP */
.shop-container {
    display: flex;
    padding: 60px;
    gap: 40px;
    align-items: flex-start;

}

/* SIDEBAR */
.sidebar {
    width: 250px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.category-list li,
.sub-category-list li {
    list-style: none;
    padding: 12px 15px;
    margin-bottom: 8px;
    cursor: pointer;
    border-radius: 20px;
    transition: 0.3s;
    font-size: 20px;
}

.category-list li:hover,
.sub-category-list li:hover {
    background: #eee;
}

.category-list li.active,
.sub-category-list li.active {
    background: black;
    color: white;
    font-weight: 600;
}

.sub-category-list {
    margin-top: 15px;
    margin-left: 20px;
}

/* PRODUCTS */
.products {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    background: whitesmoke;
    border-radius: 16px;
    padding: 20px;
    height: 340px;
    position: relative;


}

.product-card img {
    width: 120%;
    height: 200px;
    object-fit: contain;
    border-radius: 25px;
    border: 2px solid black;

}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #eee;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 16px;
}

.product-card h4 {
    margin-top: 25px;
    font-size: 24px;

}

.rating {
    font-size: 14px;
    color: #777;
}



.actions {
    display: flex;
    gap: 10px;
}

.actions button {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
}

.actions .outline {
    border: 1px solid black;
    background: white;
}

.actions .fill {
    background: black;
    color: white;
    border: none;
}