:root {
    --primary: #10B981;
    --primary-dark: #065F46;
    --primary-light: #ECFDF5;
    --text-dark: #0F172A;
    --text-light: #64748B;
    --white: #ffffff;
    --font: 'Bricolage Grotesque', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font);
}

body {
    font-family: var(--font);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background: #f8fafc;
}

/* --- Navbar --- */
.navbar {
    height: 70px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid #f1f5f9;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--primary-dark);
}

.logo i {
    color: var(--primary);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a.active {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 10px 22px;
    border-radius: 10px;
}

/* --- Mobile Menu --- */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    height: 100vh;
    background: white;
    z-index: 2000;
    padding: 80px 40px;
    transition: 0.5s;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 2rem;
}

.mobile-links {
    list-style: none;
}

.mobile-links li {
    margin-bottom: 25px;
}

.mobile-links a {
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- Hero --- */
.product-hero {
    padding: 100px 0 60px;
    text-align: center;
    background: radial-gradient(circle at top right, var(--primary-light), transparent);
}

.badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
}

.product-hero h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.product-hero .accent {
    color: var(--primary);
}

.product-hero p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Utility Bar --- */
.utility-bar {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
    z-index: 900;
}

.utility-bar.sticky {
    position: sticky;
    top: 70px;
}

.bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-wrapper input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    outline: none;
    transition: 0.3s;
    font-size: 1rem;
}

.search-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.filter-group {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filter-group::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: white;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s;
    font-size: 0.9rem;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* --- Product Cards --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
}

.p-card {
    background: white;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: 0.4s;
}

.p-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.p-image {
    height: 290px;
    overflow: hidden;
    background: #f1f5f9;
    /* Ensures the container itself centers children if needed */
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-image img {
    /* "none" keeps the original image dimensions without scaling */
    /* "contain" scales it down only if it's larger than the container */
    object-fit: none;

    width: auto;
    height: auto;
    transition: 0.5s;
}

.p-card:hover .p-image img {
    transform: scale(1.08);
}

.p-details {
    padding: 25px;
}

.p-category {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.p-details h3 {
    margin: 10px 0;
    font-size: 1.4rem;
}

.p-details p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.p-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f8fafc;
    padding-top: 20px;
}

.p-price {
    font-weight: 800;
    font-size: 1.2rem;
}

.btn-buy {
    width: 45px;
    height: 45px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1.2rem;
}

.btn-buy:hover {
    background: var(--primary);
    color: white;
}

/* --- Benefits Toggle System --- */

.p-short-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.benefit-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 10px;
}

.benefit-toggle i {
    transition: 0.3s;
}

.benefit-toggle.active i {
    transform: rotate(180deg);
}

.benefit-toggle:hover {
    background: #dcfce7;
}

/* Accordion Animation */
.benefits-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    border-radius: 12px;
}

.benefits-container.expanded {
    max-height: 500px;
    /* Large enough to fit text */
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #e2e8f0;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    font-size: 0.85rem;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.benefits-list li i {
    color: var(--primary);
    font-weight: 800;
    margin-top: 2px;
}

/* Ensure the footer stays at the bottom of the card */
.p-details {
    display: flex;
    flex-direction: column;
}

.p-footer {
    margin-top: auto;
    /* Pushes the price/button to the bottom */
    padding-top: 15px;
}


/* --- Quality & CTA --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.check-list {
    list-style: none;
    margin-top: 25px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 500;
}

.check-list i {
    color: var(--primary);
    font-size: 1.3rem;
}

.quality-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.cta-card {
    background: var(--primary-dark);
    color: white;
    padding: 80px 40px;
    border-radius: 40px;
}

.cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.btn-whatsapp-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: white;
    padding: 18px 35px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 30px;
    transition: 0.3s;
}

.btn-whatsapp-large:hover {
    transform: scale(1.05);
}

/* --- Footer --- */
.main-footer {
    padding-top: 80px;
    border-top: 1px solid #f1f5f9;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--text-light);
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

.footer-bottom {
    background: #f8fafc;
    padding: 25px 0;
    border-top: 1px solid #f1f5f9;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
}

.bottom-links {
    display: flex;
    gap: 20px;
}

.bottom-links a {
    text-decoration: none;
    color: var(--text-light);
}

/* --- No Results --- */
.no-results {
    text-align: center;
    padding: 100px 0;
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
    display: block;
}

.hidden {
    display: none;
}

/* --- Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Tablet/Mobile Responsive --- */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .bar-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .search-wrapper {
        max-width: 100%;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .quality-image {
        order: -1;
    }

    /* Image on top for mobile */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-hero {
        padding: 60px 0 40px;
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .p-image {
        height: 240px;
    }

    .cta-card {
        padding: 40px 20px;
    }

    .cta-card h2 {
        font-size: 1.8rem;
    }

    .btn-whatsapp-large {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .bottom-flex {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}