/* General Reset */
* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #F4F6F5; 
    color: #333;
    margin: 0;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    height: 10vh;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.navbar-logo a {
    text-decoration: none;
    font-size: 1.8rem;
    color: #354259;
    position: absolute;
    left: 10vw;
    margin-top: -20px;
    font-weight: 900;
}

.navbar-cart {
    position: absolute;
    right: 10vw;
}

.navigators {
    position: absolute;
    right: 15vw;
    width: 16vw;
    display: flex;
    justify-content: space-between;
}

.navigators a {
    text-decoration: none;
    font-size: 1.3em;
    font-weight: 700;
    color: #354259;
}

/* Cart */
.cart-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    color: #354259;
}

.cart-count {
    background-color: white;
    color: #cc005f;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 8px;
    position: absolute;
    top: -10px;
    right: -10px;
}

/* Search Bar */
.navbar-search {
    position: absolute;
    right: 33vw;
    display: flex;
    align-items: center;
}

.search-bar {
    display: none;
    width: 0;
    opacity: 0;
    transition: width 0.4s ease, opacity 0.4s ease;
    padding: 8px;
    border: none;
    border-radius: 20px;
    background-color: #f1f1f1;
    outline: none;
}

.search-bar.active {
    display: block;
    width: 200px;
    opacity: 1;
}

.search-icon {
    cursor: pointer;
    font-size: 1.5rem;
    color: #354259;
    margin-right: 10px;
}



/* Filter Bar */
.filter-bar {
    margin-top: 20px;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
    background-color: #f8f8f8;
    justify-content: center;
}

.filter-bar button {
    background: linear-gradient(135deg, #FFC1CC, #FF9EC6);
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.filter-bar button:hover {
    background: linear-gradient(135deg, #FF9EC6, #FF75A0);

}

/* Product List */
/* Centering product list */
.product-list {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}



/* Add to Cart */
.add-to-cart {
    background-color: #007bff;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background-color: #0056b3;
}

/* Cart Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    position: relative;
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #cc005f;
}

#cartItems {
    margin-bottom: 20px;
}

.checkout-button {
    background-color: #ff66b2;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.checkout-button:hover {
    background-color: #cc005f;
}

.close-cart {
    position: absolute;
    top: 10px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #cc005f;
}

/* Notification */
.fixed.top-4.right-4 {
    z-index: 9999 !important;
    pointer-events: none;
}

.fixed.top-4.right-4 .transform {
    will-change: transform, opacity;
}
