@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&family=Fredoka+One&display=swap');

:root {
    /* Magic Toy Box Palette */
    --primary: #FF6B6B;
    --primary-hover: #FF5252;
    --secondary: #4ECDC4;
    --accent: #FFE66D;
    --dark: #2D3436;
    --light: #FFFFFF;
    --bg-color: #F4F7F6;
    --text-main: #4A4A4A;
    --text-muted: #95A5A6;
    
    /* Shadows & Radii */
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --shadow-color: rgba(255, 107, 107, 0.3);
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 40px;
    --radius-pill: 100px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-normal: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-logo {
    font-family: 'Fredoka One', cursive;
    color: var(--dark);
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Typography & Utilities --- */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: var(--secondary);
    border-radius: var(--radius-pill);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.2);
    transform: translateX(-100%) skewX(-15deg);
    transition: 0.4s;
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(100%) skewX(-15deg);
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background: var(--primary);
    color: var(--light);
    box-shadow: 0 8px 15px var(--shadow-color);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 12px 20px var(--shadow-color);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--light);
    box-shadow: 0 8px 15px rgba(78, 205, 196, 0.3);
}

.btn-secondary:hover {
    background: #45b8b0;
    box-shadow: 0 12px 20px rgba(78, 205, 196, 0.4);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--light);
}

/* --- Header & Navigation --- */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: var(--transition-normal);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo i {
    color: var(--accent);
    animation: spinSlow 10s linear infinite;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-normal);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition-normal);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--dark);
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    box-shadow: var(--shadow-sm);
}

.icon-btn:hover {
    color: var(--primary);
    transform: translateY(-3px) rotate(10deg);
    box-shadow: var(--shadow-md);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: var(--light);
    font-size: 0.75rem;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--light);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--dark);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #fff0f0 0%, #e0f7fa 100%);
}

.hero-shapes {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    filter: blur(40px);
}

.shape-1 { width: 300px; height: 300px; background: var(--primary); top: -100px; left: -100px; animation: float 8s ease-in-out infinite; }
.shape-2 { width: 400px; height: 400px; background: var(--secondary); bottom: -150px; right: -100px; animation: float 10s ease-in-out infinite reverse; }
.shape-3 { width: 200px; height: 200px; background: var(--accent); top: 40%; left: 50%; animation: float 6s ease-in-out infinite 2s; }

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero-content h1 span {
    color: var(--primary);
    display: inline-block;
    animation: bounce 2s infinite;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.designer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--light);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    font-weight: 600;
    color: var(--dark);
    border-left: 4px solid var(--secondary);
    animation: slideInLeft 1s ease-out;
}

.designer-badge i {
    color: var(--primary);
    font-size: 1.2rem;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
}

/* --- Features Section --- */
.features {
    padding: 5rem 2rem;
    background: var(--light);
    position: relative;
    z-index: 2;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-color);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--light);
    border-color: var(--secondary);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(78, 205, 196, 0.1);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: var(--transition-fast);
}

.feature-card:hover .feature-icon {
    background: var(--secondary);
    color: var(--light);
    transform: scale(1.1) rotate(10deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* --- Products Section --- */
.products-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03);
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 107, 107, 0.2);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent);
    color: var(--dark);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: bold;
    font-size: 0.85rem;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.product-image {
    width: 100%;
    height: 220px;
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.product-card:hover .product-image img {
    transform: scale(1.08) rotate(2deg);
}

.product-category {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
    flex-grow: 1;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-family: 'Fredoka One', cursive;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.btn-add-cart {
    flex: 1;
    padding: 0.8rem;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--bg-color);
    color: var(--dark);
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-cart:hover {
    background: var(--primary);
    color: var(--light);
}

.btn-view {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--bg-color);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-view:hover {
    background: var(--secondary);
    color: var(--light);
    transform: rotate(15deg);
}

/* --- Footer --- */
.footer {
    background: var(--dark);
    color: var(--light);
    padding: 5rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--bg-color);
    border-radius: 0 0 50% 50%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.footer-col h4 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
}

.footer-bottom span {
    color: var(--primary);
    font-weight: bold;
}

/* --- Animations --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes spinSlow {
    100% { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes popIn {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content p {
        margin: 0 auto 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .designer-badge {
        margin: 0 auto 2rem;
    }
    
    .hero-image {
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--light);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        font-size: 1.5rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* --- Page Headers (About, Contact, etc) --- */
.page-header {
    background: var(--primary);
    padding: 6rem 2rem 4rem;
    text-align: center;
    color: var(--light);
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    color: var(--light);
    font-size: 3.5rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    margin-top: 1rem;
}

/* --- Cart & Checkout Overrides --- */
.cart-container, .checkout-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.cart-items {
    background: var(--light);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--bg-color);
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
}

.cart-summary {
    background: var(--light);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 100px;
}

@media (max-width: 992px) {
    .cart-container, .checkout-container {
        grid-template-columns: 1fr;
    }
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--bg-color);
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--bg-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    background: var(--light);
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.1);
}

textarea.form-control {
    border-radius: var(--radius-md);
    resize: vertical;
    min-height: 150px;
}
