
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    background: linear-gradient(to right, #f9f9f9, #e6f0ff);
    color: #222;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

.navbar {
    background: #fff;
    padding: 15px 5%;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navdiv {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navdiv .logo img {
    width: 120px;
    transition: transform 0.3s ease;
}

.navdiv .logo img:hover {
    transform: scale(1.05);
}

.navdiv ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

.navdiv ul li a {
    color: #333;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navdiv ul li a:hover {
    background: linear-gradient(45deg, #ff6f61, #ffbc42);
    color: #fff;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 5%;
}

header h1 {
    font-size: 2.5rem;
    color: #ff6f61;
    letter-spacing: 1px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.1);
}

header .iconCart {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

header .iconCart:hover {
    transform: scale(1.1);
}

header .iconCart img {
    width: 50px;
}

header .totalQuantity {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    background: #ff6f61;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.listProduct {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 5% 60px;
}

.listProduct .item {
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.listProduct .item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 35px rgba(0,0,0,0.15);
}

.listProduct .item img {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.listProduct .item img:hover {
    transform: scale(1.05);
}

.listProduct .item h2 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.listProduct .item .price {
    font-size: 1.2rem;
    color: #ff6f61;
    margin-bottom: 15px;
    font-weight: 700;
}

.listProduct .item button {
    background: linear-gradient(45deg, #ff6f61, #ffbc42);
    color: #fff;
    padding: 15px 25px;
    font-weight: 600;
    border-radius: 15px;
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.5s ease;
}

.listProduct .item:hover button {
    bottom: 20px;
}

.cart {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    height: 100vh;
    background: #111;
    display: grid;
    grid-template-rows: 60px 1fr 70px;
    gap: 20px;
    padding: 10px;
    box-shadow: -5px 0 25px rgba(0,0,0,0.3);
    transition: right 0.5s ease;
    z-index: 999;
}


.cart.open {
    right: 0;
}

.container.shifted {
    transform: translateX(-400px);
    transition: transform 0.5s ease;
}

.cart h2 {
    color: #ff6f61;
    font-size: 1.5rem;
    padding-left: 15px;
}

.cart .listCart {
    overflow-y: auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart .listCart::-webkit-scrollbar {
    width: 6px;
}

.cart .listCart::-webkit-scrollbar-thumb {
    background: #ff6f61;
    border-radius: 3px;
}

.cart .listCart .item {
    display: grid;
    grid-template-columns: 60px 1fr 80px;
    gap: 10px;
    align-items: center;
    background: #222;
    padding: 10px;
    border-radius: 15px;
    transition: background 0.3s ease;
}

.cart .listCart .item:hover {
    background: #333;
}

.cart .listCart .item img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.cart .listCart .item img:hover {
    transform: scale(1.1);
}

.cart .listCart .item .name {
    font-weight: 600;
    color: #fff;
}

.cart .listCart .item .price {
    color: #ff6f61;
    font-weight: 700;
}

.cart .listCart .item .quantity {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart .listCart .item .quantity button {
    background: #ff6f61;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: bold;
}

.cart .listCart .item .quantity button:hover {
    background: #ffbc42;
}

.cart .listCart .item .quantity span {
    display: block;
    min-width: 25px;
    text-align: center;
    color: #fff;
    font-weight: 600;
}

.cart .buttons {
    display: flex;
    gap: 10px;
    padding: 0 15px;
}

.cart .buttons button {
    flex: 1;
    padding: 15px 0;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cart .buttons .close {
    background: #222;
    color: #fff;
}

.cart .buttons .close:hover {
    background: #333;
}

.cart .buttons .Checkout {
    background: linear-gradient(45deg, #ff6f61, #ffbc42);
    color: #fff;
}

.cart .buttons .Checkout:hover {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .listProduct {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .cart {
        width: 100%;
    }

    header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .navdiv ul {
        flex-direction: column;
        gap: 10px;
    }

    .listProduct {
        grid-template-columns: 1fr;
    }
}
#footer{
    background:#333;
    color:#fff;
    padding:60px 20px;
    text-align:center;
}
#footer h4{
    margin-bottom:10px;
    font-size:1.2rem;
}
#footer a{
    color:#f7b731;
    transition:all 0.3s;
}
#footer a:hover{
    color:#fff;
}
#footer p{
    margin-top:20px;
    font-size:0.9rem;
}