:root {
    --bg-primary: #FFFAFC;
    --bg-secondary: #FFF0F5;
    --text-main: #2D3748;
    --text-muted: #555555;
    --primary-orange: #FF6B6B;
    --secondary-blue: #4D96FF;
    --accent-yellow: #FFD93D;
    --accent-teal: #6BCB77;

    --font-base: 'Nunito', 'Quicksand', system-ui, sans-serif;
    --layout-max: 1200px;
    --transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Bouncy */
    --border-radius: 20px;
    --shadow-main: 0 10px 25px rgba(255, 107, 107, 0.15);
    --shadow-hover: 0 15px 35px rgba(77, 150, 255, 0.25);
}

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

body {
    font-family: var(--font-base);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(255, 250, 252, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-orange);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--secondary-blue);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    padding: 0.5rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-yellow);
    transition: all 0.3s ease;
    border-radius: 5px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
    left: 0;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-icons a {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.cart-icon-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.cart-icon-container:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: var(--shadow-hover);
}

.cart-count {
    background: var(--primary-orange);
    color: #fff;
    font-size: 0.8rem;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-weight: 800;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition);
    text-align: center;
    border: none;
}

.btn-solid {
    background: linear-gradient(135deg, var(--primary-orange), #FF8E8E);
    color: #fff;
    box-shadow: var(--shadow-main);
}

.btn-solid:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.4);
}

.btn-outline {
    background: #fff;
    border: 2px solid var(--secondary-blue);
    color: var(--secondary-blue);
    box-shadow: 0 5px 15px rgba(77, 150, 255, 0.1);
}

.btn-outline:hover {
    background: var(--secondary-blue);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(77, 150, 255, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 5% 0;
    background: linear-gradient(120deg, #FFFAFC 0%, #E6F3FF 100%);
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: float 10s infinite alternate;
}

.shape-1 {
    background: var(--accent-yellow);
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
}

.shape-2 {
    background: var(--primary-orange);
    width: 400px;
    height: 400px;
    bottom: -10%;
    left: -5%;
    animation-delay: -3s;
}

.shape-3 {
    background: var(--accent-teal);
    width: 250px;
    height: 250px;
    top: 40%;
    left: 50%;
    animation-delay: -7s;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-50px) scale(1.1);
    }

    100% {
        transform: translateY(20px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--text-main);
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 500;
}

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

.section-bg-alt {
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 8px;
    background: var(--accent-yellow);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    max-width: var(--layout-max);
    margin: 0 auto;
}

.product-card {
    background: #fff;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(77, 150, 255, 0.2);
}

.product-card:nth-child(even) {
    transform: translateY(20px);
}

.product-card:nth-child(even):hover {
    transform: translateY(5px);
}

.product-img-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f8f8f8;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-img {
    transform: scale(1.08) rotate(1deg);
}

.product-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #1A1A1A;
    background: var(--secondary-blue);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(77, 150, 255, 0.3);
}

.product-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

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

.product-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
}

/* Page Headers */
.page-header {
    padding: 12rem 5% 5rem;
    text-align: center;
    background: linear-gradient(180deg, #E6F3FF 0%, #FFFAFC 100%);
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--secondary-blue);
}

/* Forms */
.form-container {
    max-width: 550px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-main);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 1.2rem;
    background: #F8FAFC;
    border: 2px solid transparent;
    border-radius: 15px;
    color: var(--text-main);
    font-family: var(--font-base);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(77, 150, 255, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    background: #FFF9E6;
    padding: 1.5rem;
    border-radius: 15px;
}

.checkbox-group input {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    accent-color: var(--primary-orange);
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Layouts */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 4rem;
    max-width: var(--layout-max);
    margin: 0 auto;
}

.cart-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 1.5rem;
    align-items: center;
    transition: var(--transition);
}

.cart-item:hover {
    transform: translateX(10px);
}

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

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--secondary-blue);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.quantity-controls {
    display: inline-flex;
    align-items: center;
    background: #F8FAFC;
    border-radius: 50px;
    padding: 0.4rem;
}

.qty-btn {
    background: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 800;
    color: var(--text-main);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--primary-orange);
    color: #fff;
}

.remove-btn {
    background: transparent;
    border: none;
    color: #FF8E8E;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-summary {
    background: #fff;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    position: sticky;
    top: 120px;
}

.cart-summary h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 600;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed #E2E8F0;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-orange);
}

/* Product Details */
.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    max-width: var(--layout-max);
    margin: 0 auto;
}

.detail-img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-category {
    color: var(--secondary-blue);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.detail-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.detail-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-orange);
    margin-bottom: 2rem;
}

.detail-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.detail-actions {
    display: flex;
    gap: 1.5rem;
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.legal-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-blue);
}

.legal-content p,
.legal-content li {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.legal-content ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: var(--text-main);
    color: #fff;
    padding: 6rem 5% 2rem;
    border-radius: 50px 50px 0 0;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    max-width: var(--layout-max);
    margin: 0 auto 5rem;
}

.footer-brand .logo {
    color: #fff;
}

.footer-brand .logo span {
    color: var(--accent-yellow);
}

.footer-brand p {
    color: #A0AEC0;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--accent-teal);
}

.footer-col a {
    display: block;
    color: #E2E8F0;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-col a:hover {
    color: var(--accent-yellow);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #A0AEC0;
}

/* Toasts */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: #fff;
    color: var(--text-main);
    padding: 1.2rem 2rem;
    border-radius: 15px;
    font-weight: 700;
    box-shadow: var(--shadow-hover);
    border-left: 6px solid var(--primary-orange);
    animation: slideInUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards, fadeOut 0.4s ease 3.5s forwards;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        display: none;
    }
}

/* Animations */








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

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .cart-layout,
    .product-details,
    .footer-grid,
    .legal-content {
        grid-template-columns: 1fr;
    }

    .product-card:nth-child(even) {
        transform: translateY(0);
    }

    footer {
        border-radius: 30px 30px 0 0;
    }
}
/* --- 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);
}
