:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --bg: #f1f5f9;
    --text: #1e293b;
    --white: #ffffff;
    --gray: #64748b;
    --accent: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg);
    color: var(--text);
}

/* --- NAVBAR --- */
.navbar {
    background: var(--white);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    gap: 15px;
}

.btn-prc-home {
    background: white;
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    margin-left: 15px;
    font-size: 0.9rem;
    white-space: nowrap;
    border: 1px solid var(--primary);
    transition: 0.3s;
}

.btn-prc-home:hover {
    background: var(--primary);
    color: white;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    cursor: pointer;
    color: var(--text);
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

.menu-toggle {
    font-size: 1.4rem;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--text);
}

.search-container {
    flex: 1;
    display: flex;
    max-width: 500px;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 8px 18px;
    align-items: center;
    border: 1px solid #e2e8f0;
}

.search-container input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 5px 10px;
    outline: none;
}

/* --- RUNNING TEXT --- */
.marquee-container {
    background: #1e293b;
    color: white;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 30s linear infinite;
    font-weight: 500;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

/* --- SIDEBAR --- */
.sidebar {
    position: fixed;
    left: -300px;
    top: 0;
    width: 300px;
    height: 100%;
    background: var(--white);
    z-index: 2000;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 30px 25px;
    background: var(--primary);
    color: white;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 20px 15px;
    list-style: none;
}

.sidebar-menu li {
    padding: 14px 15px;
    margin-bottom: 5px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    transition: 0.3s;
}

.sidebar-menu li:hover {
    background: #eef2ff;
    color: var(--primary);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
}

.btn-help {
    width: 100%;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
}

.btn-help:hover {
    background: var(--primary);
    color: white;
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1500;
}

.overlay.active {
    display: block;
}

/* --- CONTENT --- */
.category-section {
    background: var(--white);
    padding: 20px 5%;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    border-bottom: 1px solid #e2e8f0;
}

.category-chip {
    display: inline-block;
    padding: 10px 24px;
    margin-right: 12px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    background: var(--accent);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}

.category-chip.active {
    background: var(--primary);
    color: white;
}

.page {
    display: none;
    padding: 30px 5%;
    flex: 1;
}

.page.active {
    display: block;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

/* --- DETAILS --- */
.details-container {
    max-width: 1000px;
    margin: auto;
    background: white;
    padding: 30px;
    border-radius: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.details-img {
    flex: 1;
    min-width: 300px;
    border-radius: 15px;
    height: 400px;
    object-fit: cover;
}

.details-content {
    flex: 1.2;
    min-width: 300px;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366;
    color: white;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 20px;
}

/* --- OLD STYLE PROFESSIONAL FOOTER --- */
footer {
    background: #1e293b;
    color: white;
    padding: 40px 5% 20px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.footer-logo span {
    color: var(--primary);
}

.footer-links h4 {
    margin-bottom: 15px;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 8px;
    opacity: 0.7;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
}

.footer-links ul li:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav-left {
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

    .nav-left .logo {
        font-size: 1.2rem;
    }

    .nav-left img {
        height: 40px !important;
    }

    .btn-prc-home {
        padding: 6px 10px;
        font-size: 0.8rem;
        margin-left: 5px;
    }

    .search-container {
        order: 3;
        width: 100%;
        max-width: none;
        margin-top: 10px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}