:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --accent-cyan: #0284c7;
    --accent-glow: #0369a1;
    --accent-purple: #6d28d9;
    --accent-green: #059669;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
    --border-active: #0284c7;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme {
    --bg-main: #090d16;
    --bg-card: rgba(22, 30, 46, 0.95);
    --accent-cyan: #06b6d4;
    --accent-glow: #0891b2;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-light: rgba(255, 255, 255, 0.12);
    --border-active: rgba(6, 182, 212, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.top-bar {
    background: linear-gradient(90deg, #0284c7, #6d28d9);
    color: #ffffff;
    padding: 7px 0;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    white-space: nowrap;
}

.top-bar-track {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.navbar {
    position: fixed;
    top: 33px;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

body.dark-theme .navbar {
    background: rgba(9, 13, 22, 0.92);
    box-shadow: none;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-icon-btn {
    position: relative;
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 10px 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.cart-icon-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(2, 132, 199, 0.08);
}

.cart-badge {
    background: var(--accent-cyan);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero {
    padding: 11rem 5% 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 90vh;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.15) 0%, rgba(0,0,0,0) 70%);
    filter: blur(60px);
    z-index: -1;
}

body.dark-theme .hero::before {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, rgba(0,0,0,0) 70%);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-glow));
    color: #ffffff;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(2, 132, 199, 0.5);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    color: var(--text-primary);
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.btn-secondary:hover {
    background: var(--bg-main);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.hero-img-card {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

body.dark-theme .hero-img-card {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: var(--border-active);
}

.hero-img-card img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.benefits-bar {
    padding: 3rem 5%;
    background: #f1f5f9;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

body.dark-theme .benefits-bar {
    background: rgba(15, 23, 42, 0.6);
}

.benefits-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.benefit-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.benefit-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(2, 132, 199, 0.1);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.products-section {
    padding: 6rem 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--accent-cyan);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

body.dark-theme .product-card {
    box-shadow: none;
}

.product-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

body.dark-theme .product-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.product-image {
    width: 100%;
    height: 240px;
    background: #e2e8f0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

.product-actions {
    margin-top: auto;
    display: flex;
    gap: 0.6rem;
}

.btn-add-cart {
    flex: 1;
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.3);
    color: var(--accent-cyan);
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background: var(--accent-cyan);
    color: #ffffff;
}

.btn-buy-wa {
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.3);
    color: var(--accent-green);
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-weight: 700;
}

.btn-buy-wa:hover {
    background: var(--accent-green);
    color: #ffffff;
}

.testimonials-section {
    padding: 6rem 5%;
    background: #f1f5f9;
}

body.dark-theme .testimonials-section {
    background: rgba(15, 23, 42, 0.4);
}

.testimonials-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.testimonial-card p {
    color: var(--text-secondary);
    font-weight: 500;
}

.testimonial-card h5 {
    color: var(--text-primary);
    font-weight: 700;
}

.stars {
    color: #d97706;
    margin-bottom: 1rem;
}

.footer {
    padding: 4rem 5% 2rem;
    background: #ffffff;
    color: var(--text-primary);
    border-top: 1px solid var(--border-light);
}

body.dark-theme .footer {
    background: #060911;
    color: #f8fafc;
}

.footer-links {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-links a.highlight-link {
    color: var(--accent-cyan);
    font-weight: 800;
}

.footer-links span {
    color: var(--text-muted);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.floating-wa {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
    z-index: 999;
    text-decoration: none;
}

.cart-modal {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 100%;
    max-width: 420px;
    height: 100vh;
    height: 100dvh; 
    background: #ffffff;
    border-left: 1px solid var(--border-light);
    z-index: 2000;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

body.dark-theme .cart-modal {
    background: #0d1322;
    box-shadow: none;
}

.cart-modal.open {
    transform: translateX(0);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
}

.cart-header h3 {
    color: var(--text-primary);
}

.close-cart {
    color: var(--text-primary) !important;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.btn-checkout-wa {
    width: 100%;
    background: #25d366;
    color: #ffffff;
    font-weight: 800;
    padding: 14px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-checkout-wa:hover {
    background: #1da851;
}

@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 10rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-img-card img {
        height: 340px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 4%;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.2rem;
    }

    .modal-content, .cart-drawer {
        width: 100%;
        max-width: 100%;
    }

    .modal-body-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cart-modal {
        max-width: 100%;
        border-left: none;
    }
}

@media (max-width: 480px) {
    .top-bar {
        font-size: 0.78rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

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

    .cart-header, .cart-items, .cart-footer {
        padding: 1rem;
    }
}