/* Mungle Jungle | Kids Playful CSS */

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Quicksand:wght@400;600;700&display=swap');

:root {
    --primary: #4CAF50;
    /* Leaf Green */
    --secondary: #FFEB3B;
    /* Sunny Yellow */
    --accent: #FF9800;
    /* Tiger Orange */
    --bg-light: #F1F8E9;
    --text-dark: #1B261B;
    --white: #FFFFFF;
    --rounded: 30px;
    --transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Fredoka One', cursive;
    text-transform: capitalize;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--white);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.logo {
    font-size: 2rem;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--accent);
}

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

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

.nav-links a:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* Hero */
.hero {
    height: 80vh;
    background: linear-gradient(135deg, #1B5E20 0%, #4CAF50 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 5%;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.floating-leaf {
    position: absolute;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(50px, 100px) rotate(45deg);
    }
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: var(--rounded);
    padding: 1.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
    border: 4px solid transparent;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--secondary);
    box-shadow: 0 25px 60px rgba(76, 175, 80, 0.2);
}

.product-img {
    width: 100%;
    border-radius: calc(var(--rounded) - 10px);
    margin-bottom: 1.5rem;
    background: #f9f9f9;
}

.product-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.product-cat {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.product-price {
    font-size: 1.8rem;
    color: var(--accent);
    margin-top: 1rem;
    display: block;
}

/* Buttons */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--secondary);
    color: var(--text-dark);
}

.btn-primary:hover {
    transform: scale(1.1) rotate(-3deg);
    background: var(--accent);
    color: white;
}

.btn-secondary {
    background: var(--primary);
    color: white;
}

.btn-secondary:hover {
    transform: scale(1.1) rotate(3deg);
    background: var(--text-dark);
}

/* Cart Icon */
.cart-icon {
    position: relative;
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.cart-icon:hover {
    transform: scale(1.2);
}

.cart-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
    font-family: 'Fredoka One', cursive;
}

/* Sections */
.section {
    padding: 8rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 3.5rem;
    color: var(--primary);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
}

/* Forms */
.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 1.2rem;
    border-radius: 20px;
    border: 3px solid #eee;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 8rem 5% 4rem;
    border-radius: 100px 100px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 10px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    padding: 1.5rem 3rem;
    border-radius: 20px;
    font-family: 'Fredoka One', cursive;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

/* Animations */










@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .hero h1 {
        font-size: 2.5rem;
    }
}
/* --- Visibility Protocol CSS --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.reveal.js-hidden {
    opacity: 0;
    transform: translateY(40px);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* --- Global Badge UI Protocol --- */
.product-category, .category-tag {
    position: absolute !important;
    top: 1rem !important;
    left: 1rem !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1A1A1A !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 20px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    z-index: 10 !important;
    backdrop-filter: blur(5px) !important;
    border: none !important;
    margin: 0 !important;
    transform: none !important;
}

.product-img-wrapper {
    padding: 0 !important;
}
