* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 70px;
}

header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 19px 30px;
    background: #ff6f61;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
}

.logo span {
    color: #fff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    transition: 0.3s;
}
@media(max-width: 480px) {
    header {
        padding: 10px 15px;
    }

    .logo {
        font-size: 1.2rem;
    }
}
.nav-links li a:hover,
.nav-links li a:active {
    text-decoration: underline;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

@media(max-width:768px) {
    .nav-links {
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: -220px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        background: #ff6f61;
        width: 180px;
        padding: 15px;
        border-radius: 8px;
        transition: right 0.3s ease;
    }

    .nav-links.open {
        right: 10px;
    }

    .hamburger {
        display: block;
    }
}

.hero {
    flex: 1;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/banner.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.btn {
    padding: 10px 20px;
    background: #ffe082;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.btn:hover {
    background: #fff59d;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 31.2px;
    font-size: 0.9rem;
    margin-top: auto;
}

@media(max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }
    .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media(max-width: 480px) {
    .hero {
        height: 60vh;
        padding: 0 15px;
    }
    .hero-content h1 {
        font-size: 1.5rem;
    }
}

/* product section CSS */

.products {
    padding: 60px 20px;
    background: #f8f8f8;
    text-align: center;
}

.products h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #333;
    position: relative;
    display: inline-block;
}

.products h2::after {
    content: "";
    width: 60%;
    height: 3px;
    background: #ff6f61;
    display: block;
    margin: 8px auto 0;
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: auto;
    padding: 0 10px;
}

.product-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.product-card img {
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.08);
}

.product-card button {
    background: #ff6f61;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-card button:hover {
    background: #e0554e;
    transform: scale(1.05);
}

@media(max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media(max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .product-card img {
        height: 180px;
    }
    .product-card h3 {
        font-size: 1rem;
    }
}

/* cart section  */

.cart-section {
    padding: 50px 20px;
    text-align: center;
}

.cart-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

.cart-container {
    max-width: 900px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart-table th,
.cart-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.cart-table th {
    background: #ff6f61;
    color: white;
}

.cart-table input {
    width: 50px;
    text-align: center;
}
.cart-count {
    background: white;
    color: #ff6f61;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 5px;
}
.cart-table td img {
    vertical-align: middle;
}


.remove-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.remove-btn:hover {
    background: #c0392b;
}

.cart-total {
    text-align: right;
    font-size: 1.2rem;
}

.checkout-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 7px;
    border-radius: 5px;
    cursor: pointer;
}

.checkout-btn:hover {
    background: #219150;
}
.cart-product {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.cart-product img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    margin-right: 10px;
    vertical-align: middle;
    border-radius: 5px;
}

@media(max-width: 768px) {
    .cart-table thead {
        display: none;
    }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td {
        display: block;
        width: 100%;
    }
    .cart-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    .cart-table td {
        text-align: left;
        padding: 8px 10px;
        position: relative;
    }
    .cart-table td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 4px;
        color: #333;
    }
}


