/* Body */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #fef9f5;
    padding: 0;
}

/* Top Banner */
.top-banner {
    background: #FFC107;
    color: #fff;
    font-weight: bold;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Shop Button */
.shop-btn {
    background-color: #D50000;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* Navbar */
.navbar {
    background-color: #fff9f3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    border-bottom: 1px solid #eee;
}

/* Navbar links */
.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

/* Hover and Active Color */
.nav-links a:hover,
.nav-links a.active {
    color: #D50000;
    font-weight: bold;
}

/* Orange underline effect */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background-color: orange;
    transition: width 0.3s ease;
}

/* Animate underline on hover and keep for active */
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff9f3;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 10px;
    z-index: 10;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    white-space: nowrap;
    color: #333;
}

.dropdown-content a:hover {
    background: #fff2e0;
}

/* Icons */
.icons {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 20px;
    position: relative;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: red;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Categories */
.categories-wrapper {
    padding: 30px 0 10px;
    background: #fff8f1;
}

.categories-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    font-family: Georgia, serif;
    color: #1e1e1e;
}

.categories-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px dotted #999;
}

.categories-list li {
    padding-bottom: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #555;
    position: relative;
    font-weight: 500;
}

.categories-list li.active {
    color: #b30000;
    font-weight: bold;
}

.categories-list li.active::after {
    content: '';
    height: 2px;
    background: #b30000;
    width: 100%;
    position: absolute;
    left: 0;
    bottom: -2px;
}

.categories-list li:hover {
    color: #b30000;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Card */
.product-card {
    position: relative;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.2s ease-in-out;
}

.product-card img:hover {
    transform: scale(1.05);
}

/* Wishlist Icon */
.wishlist-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #00000080;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
}

.wishlist-icon i {
    color: white;
    font-size: 18px;
}

.wishlist-icon.active {
    background: #b30000;
}

.wishlist-icon.active i {
    color: #fff;
}

/* Product Info */
.category-name {
    font-size: 14px;
    color: #888;
    margin-top: 10px;
}

.product-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 5px 0;
}

.price {
    font-size: 16px;
    color: #000;
    margin-bottom: 10px;
}

.product-card select {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

/* Add to Cart Button */
.add-to-cart {
    background-color: rgb(130, 224, 92);
    color: rgb(246, 251, 246);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background-color: rgb(168, 234, 127);
}

.product-card a {
    text-decoration: none;
    color: #5a2ca0;
}
