@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&display=swap');

:root {
    --primary-pink: #FF85A1;
    --secondary-blue: #7BDFF2;
    --sunny-yellow: #FFE15D;
    --mint-green: #B2F7EF;
    --white: #FFFFFF;
    --text-dark: #3D3D3D;
    --bg-light: #F7FFF7;
    --bubble-shadow: 0 15px 35px rgba(255, 133, 161, 0.2);
    --transition-bouncy: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fredoka', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* Header - Bubble Style */
header {
    background: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 15px;
    margin: 0 20px;
    border-radius: 50px;
    z-index: 1000;
    box-shadow: var(--bubble-shadow);
    border: 3px solid var(--mint-green);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.logo {
    font-size: 2rem;
    color: var(--primary-pink);
    font-weight: 700;
    cursor: pointer;
    text-shadow: 2px 2px var(--sunny-yellow);
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    transition: var(--transition-bouncy);
}

nav a:hover {
    background-color: var(--mint-green);
    transform: scale(1.1);
}

.cart-trigger {
    background: var(--sunny-yellow);
    padding: 10px 20px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition-bouncy);
    box-shadow: 0 5px 15px rgba(255, 225, 93, 0.4);
}

.cart-trigger:hover {
    transform: scale(1.1) rotate(-3deg);
}

#cart-count {
    background: var(--primary-pink);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Hero Section - Magical Look */
.hero {
    height: 70vh;
    background: radial-gradient(circle, var(--mint-green) 0%, var(--secondary-blue) 100%);
    margin-top: -60px;
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23F7FFF7' d='M0,160L48,176C96,192,192,224,288,229.3C384,235,480,213,576,186.7C672,160,768,128,864,133.3C960,139,1056,181,1152,192C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}

.hero-content h2 {
    font-size: 4rem;
    color: var(--white);
    text-shadow: 4px 4px var(--primary-pink);
    margin-bottom: 20px;
    animation: float 4s ease-in-out infinite;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
    background: var(--white);
    padding: 10px 30px;
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
}

/* Product Section */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-pink);
    margin-bottom: 50px;
}

.catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--bubble-shadow);
    transition: var(--transition-bouncy);
    border: 4px solid var(--mint-green);
    display: flex;
    flex-direction: column;
    animation: bounceIn 0.8s ease backwards;
}

.product-card:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: var(--primary-pink);
}

.product-img-container {
    height: 250px;
    overflow: hidden;
    position: relative;
    border-bottom: 4px solid var(--mint-green);
}

.product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--sunny-yellow);
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.product-info {
    padding: 30px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-pink);
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-blue);
    margin-bottom: 20px;
}

.btn-add {
    background: var(--primary-pink);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-bouncy);
    box-shadow: 0 5px 15px rgba(255, 133, 161, 0.4);
}

.btn-add:hover {
    background: var(--sunny-yellow);
    color: var(--text-dark);
    transform: translateY(-5px);
}

/* Sidebar Cart - Playful Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100%;
    background: var(--white);
    z-index: 2000;
    box-shadow: -10px 0 50px rgba(0,0,0,0.1);
    transition: var(--transition-bouncy);
    display: flex;
    flex-direction: column;
    padding: 40px;
    border-left: 10px solid var(--secondary-blue);
}

.cart-drawer.active {
    right: 0;
}

.cart-header h3 {
    font-size: 2rem;
    color: var(--primary-pink);
}

.cart-item-premium {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid var(--mint-green);
    animation: bounceIn 0.5s ease;
}

/* Footer - Colorful */
footer {
    background: var(--primary-pink);
    color: white;
    padding: 80px 20px 40px;
    position: relative;
    margin-top: 100px;
}

footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23FF85A1' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat top;
    background-size: cover;
}

.footer-col h4 {
    color: var(--sunny-yellow);
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.footer-col ul li a {
    color: white;
    font-size: 1.1rem;
}

.footer-col ul li a:hover {
    color: var(--sunny-yellow);
    padding-left: 10px;
}

/* Confetti Effect Container */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3000;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h2 { font-size: 2.5rem; }
    .cart-drawer { width: 100%; right: -100%; }
    header { margin: 10px; }
    .logo { font-size: 1.5rem; }
}
