:root {
    --yellow: #FFC107;
    --pink: #E91E63;
    --white: #FFFFFF;
    --black: #222222;
    --light-yellow: #FFF9E6;
    --light-gray: #F5F5F5;
    --dark-bg: #1a1a1a;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light-gray);
}

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

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
}

.logo-text span {
    color: var(--yellow);
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    background: var(--light-gray);
    border-radius: 30px;
    padding: 5px 15px;
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-bar input {
    border: none;
    background: transparent;
    padding: 10px 0;
    width: 100%;
    font-size: 16px;
    outline: none;
}

.search-bar button {
    background: transparent;
    border: none;
    color: var(--pink);
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-icon {
    position: relative;
    color: var(--black);
    font-size: 22px;
    transition: color 0.3s;
}

.nav-icon:hover {
    color: var(--pink);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--pink);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--black);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    flex-direction: column;
    background-color: var(--white);
    padding: 10px 20px;
    border-top: 1px solid #eee;
}

.mobile-nav-link {
    padding: 12px 0;
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link i {
    margin-right: 10px;
    color: var(--pink);
}

.cart-count-mobile {
    background-color: var(--pink);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    margin-left: 8px;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--light-yellow), #ffe6b3);
    padding: 60px 0;
    text-align: center;
}

.hero-banner h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

.hero-banner h1 span {
    color: var(--yellow);
}

.hero-banner p {
    font-size: 18px;
    color: #555;
}

/* Products Section */
.products-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--black);
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--pink);
    margin: 10px auto 0;
    border-radius: 2px;
}

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

.product-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-img {
    height: 200px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--black);
}

.product-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--pink);
    margin-bottom: 15px;
}

.add-to-cart {
    background-color: var(--yellow);
    color: var(--black);
    border: none;
    padding: 10px 16px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    font-size: 16px;
}

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

/* Cart Drawer */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 200;
    display: none;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 380px;
    height: 100%;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 300;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cart-header h3 {
    font-size: 22px;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--black);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--pink);
    font-weight: 500;
    margin-bottom: 5px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background-color: var(--light-gray);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background-color: #ddd;
}

.remove-item {
    color: #ff4444;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin-left: auto;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    font-size: 18px;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: #aaa;
    text-align: center;
    padding: 30px 0;
}

/* Responsive */
@media (max-width: 992px) {
    .search-bar {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .search-bar {
        order: 3;
        max-width: 100%;
        margin: 10px 0 0;
        width: 100%;
    }

    .header-container {
        flex-wrap: wrap;
    }

    .logo {
        flex: 1;
    }

    .mobile-nav.active {
        display: flex;
    }

    .hero-banner h1 {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .cart-drawer {
        max-width: 100%;
    }
}