:root {
    --primary: #d63384;
    --dark: #2d3436;
    --light-pink: #fff5f8;
    --success: #2d6a4f;
    --grey: #636e72;
}

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

body {
    background-color: #fcfcfc;
    overflow-x: hidden;
}

header {
    background: white;
    padding: 1.2rem 8%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
}

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

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active-link {
    color: var(--primary) !important;
}

#cart-count {
    background: var(--primary);
    color: white;
    padding: 2px 7px;
    border-radius: 50%;
    font-size: 0.75rem;
    vertical-align: top;
}


.page {
    display: none;
    padding-top: 100px;
    min-height: 100vh;
}

.page.active {
    display: block;
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.hero {
    height: 85vh;
    background: url('https://images.unsplash.com/photo-1526047932273-341f2a7631f9?q=80&w=2000&auto=format')
        no-repeat center center / cover;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 40px 40px;
}

.hero-overlay {
    text-align: center;
    color: white;
    background: rgba(0,0,0,0.4);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.hero-overlay h1 {
    font-family: 'Playfair Display';
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.cta-btn {
    margin-top: 25px;
    padding: 14px 40px;
    background: var(--primary);
    border: none;
    color: white !important;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.cta-btn:hover {
    background: #b52a6f;
    transform: scale(1.05);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Playfair Display';
    font-size: 2.5rem;
}

.search-box {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

#search-input {
    width: 50%;
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid #ddd;
    outline: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.product-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 10px;
}

.qty-input {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
}

.btn-qty {
    background: #eee;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    border-radius: 5px;
}

.qty-val {
    margin: 0 15px;
    font-weight: bold;
}

.add-btn {
    background: var(--success);
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
}


.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.bill-summary {
    background: var(--light-pink);
    padding: 25px;
    border-radius: 15px;
    height: fit-content;
}

.total-row {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
}

.remove-btn {
    color: #ff4757;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1.2rem;
}

.clear-btn {
    background: #999;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
    width: 100%;
}

.checkout-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}



@media (max-width: 768px) {

    .nav-links {
        display: none;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    #search-input {
        width: 90%;
    }

}
