/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
}

/* Navbar */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
}
.cart-icon {
    font-size: 22px;
    cursor: pointer;
    position: relative;
}

/* Cart count badge */
#cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #B76E79;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
}

header h2 {
    color: #7b3f00;
    letter-spacing: 2px;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

nav a:hover {
    color: #7b3f00;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 25px;
    padding: 5px 10px;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    padding: 8px;
    width: 180px;
}

.search-box button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
}

/* Hero Section */
.hero {
    background: url("https://images.unsplash.com/photo-1608042314453-ae338d80c427") no-repeat center/cover;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 50px;
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 10px 20px;
    border-radius: 5px;
}

/* Products Section */
.products {
    padding: 40px;
    text-align: center;
}

.products h2 {
    margin-bottom: 20px;
    color: #333;
}

.product-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

/* Product Card */
.card {
    width: 250px;
    margin: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.3s;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card h3 {
    margin: 10px 0;
}

.card p {
    color: #7b3f00;
    font-weight: bold;
}

.card button {
    background: #7b3f00;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    cursor: pointer;
}

.card button:hover {
    background: #5a2e00;
}

/* Wishlist heart icon */
.wishlist {
    font-size: 24px;
    color: #B76E79;
    cursor: pointer;
    display: block;
    margin-bottom: 10px;
}

/* Hover effect */
.wishlist:hover {
    color: red;
}

#cartItems button {
    background: rgb(151, 63, 63);
    color: white;
    border: none;
    padding: 5px 8px;
    cursor: pointer;
    border-radius: 5px;
    margin: 0 3px;
}

#cartItems button:hover {
    background: rgb(97, 41, 41);
}

.delete-btn {
    background: rgb(174, 163, 185);
    color: white;
}

.qty-btn {
    background: #ddd;
}

/* Footer */
footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Responsive (Mobile) */
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }

    nav {
        margin-top: 10px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .product-container {
        flex-direction: column;
        align-items: center;
    }
}