* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #000;
    list-style: none;
}

body {
    font-family: Arial, sans-serif;
}
.welcome-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    font-size: 24px;
    z-index: 9999;
}

header {
    background-color: #ac64f0;
    color: #fff;
    padding: 13px 0;
}
#cart-items div{
    display: flex;
    justify-content: center;
    width: 100%;
}




/* Optional: Add styling for hr tag */
hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 5px 0;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.items {
    margin-top: 100px;
}
.items h2{
    margin-left: 8%;
    margin-bottom: 3%;
}
.logo a {
    color: #fff;
    font-size: 24px;
    text-decoration: none;
}

.cart-icon img {
    width: 30px;
    height: auto;
    position: relative;
}
.cart-icon a{
    text-decoration: none;
}
.cart-count {
    color: #fff;
    margin-left: 5px;
    font-size: 14px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.product-item {
    text-align: center;
}

.product-item img {
    max-width: 50%;
    height: auto;
    border-radius: 8px;
}

.product-item h3 {
    margin-top: 10px;
    font-size: 18px;
}

.product-item p {
    margin-top: 5px;
    font-size: 16px;
    color: #666;
}

.product-item button {
    margin-top: 10px;
    background-color: #ac64f0;
    color: #fff;
    border: none;
    width: 50%;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product-item button:hover {
    background-color: #704c91;
}
footer {
    height: 200px;
}
.blurred {
    filter: blur(5px);
    transition: .3s ease-in-out;
}
#featured-products{
    transition: .3s ease-in-out;
}

#cart-sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    right: 0;
    background-color: #f3f3f3;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.total-price{
    margin-top: 50px;
}
.cart-sidebar-content {
    width: 100%;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}
.bottom{
    height: 20px;
}
.checkout-btn{
    margin-top: 10px;
    background-color: #ac64f0;
    padding: 10px;
    border-radius: 3px;
    display: flex;
    justify-content: center;
    color: #fff;
    transition: .2s ease;
    text-decoration: none;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
}

.close-btn:hover {
    color: #888;
}

#cart-items {
    list-style-type: none;
    padding: 0;
}

#cart-items li {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

/*Checkout*/
#clear-cart-btn{
    background-color:#ac64f0;
    color: #fff;
    padding: 5px;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 3px;
    border: none;
    margin-bottom: 10px;
    transition: 0.1s ease;
}
#clear-cart-btn:hover{
    cursor: pointer;
    transform: scale(1.1);
    transition: transform 0.1s ease; 
}
.checkout-btn:hover{
    cursor: pointer;
    transform: scale(1.05);
    transition: transform 0.2s ease; 
}

@media screen and (max-height: 450px) {
    .cart-sidebar-content {
        height: 100%;
    }
}


@media only screen and (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 150px;
    }y
    .product-item img {
        max-width: 80%;
        height: auto;
        border-radius: 8px;
    }
    .product-item button{
        width: 80%;
    }
}

@media only screen and (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 150px;
    }
    .product-item img {
        max-width: 80%;
        height: auto;
        border-radius: 8px;
    }
    .product-item button{
        width: 80%;
    }
}