
:root {
    --pink: #ffb6c1;
    --light-pink: #ffd1dc;
    --blue: #add8e6;
    --light-blue: #e6f3ff;
    --purple: #d8bfd8;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--light-pink), var(--light-blue));
    min-height: 100vh;
    color: #333;
}

header {
    background: linear-gradient(90deg, var(--pink), var(--blue));
    padding: 1rem;
    box-shadow: 0 4px 12px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    color: var(--white);
    text-shadow: 2px 2px 4px var(--shadow);
    font-size: 2rem;
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--white);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem;
    border-radius: 20px;
    transition: background 0.3s;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--purple);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
}

.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="20" cy="20" r="15" fill="%23ffb6c1" opacity="0.7"/><circle cx="60" cy="30" r="20" fill="%23add8e6" opacity="0.7"/><circle cx="80" cy="70" r="12" fill="%23d8bfd8" opacity="0.7"/><circle cx="30" cy="80" r="18" fill="%23ffd1dc" opacity="0.7"/></svg>');
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #5a4a6a;
    text-shadow: 1px 1px 3px var(--shadow);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #5a4a6a;
}

.btn {
    background: linear-gradient(90deg, var(--pink), var(--blue));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px var(--shadow);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px var(--shadow);
}

.section-title {
    text-align: center;
    margin: 2rem 0;
    font-size: 2rem;
    color: #5a4a6a;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--pink), var(--blue));
    margin: 10px auto;
    border-radius: 2px;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--light-pink), var(--light-blue));
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.product-image:before {
    content: '';
    position: absolute;
    width: 150%;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(-5deg);
    top: 20px;
    left: -25%;
}

.product-image:after {
    content: '';
    position: absolute;
    width: 150%;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(5deg);
    bottom: 20px;
    left: -25%;
}

.product-info {
    padding: 1rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    color: #5a4a6a;
}

.product-info p {
    color: #777;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: bold;
    color: #5a4a6a;
    font-size: 1.2rem;
}

.add-to-cart {
    background: var(--purple);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: var(--pink);
}

.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.cart-content {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    padding: 2rem;
    max-height: 80vh;
    overflow-y: auto;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-pink);
    padding-bottom: 1rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
}

.cart-items {
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.item-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--light-pink), var(--light-blue));
    border-radius: 10px;
}

.item-info h4 {
    margin-bottom: 0.3rem;
}

.item-info p {
    color: #777;
    font-size: 0.9rem;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background: var(--light-pink);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.remove-item {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    margin-left: 1rem;
}

.cart-total {
    text-align: right;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 1.5rem 0;
    color: #5a4a6a;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

footer {
    background: linear-gradient(90deg, var(--pink), var(--blue));
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.floating-cotton-candy {
    position: fixed;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    opacity: 0.7;
    z-index: -1;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) translateX(20px) rotate(90deg);
    }
    50% {
        transform: translateY(0) translateX(40px) rotate(180deg);
    }
    75% {
        transform: translateY(20px) translateX(20px) rotate(270deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(360deg);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}