:root {
    --primary-color: #2E7D32;
    /* Forest Green */
    --secondary-color: #81C784;
    /* Soft Green */
    --accent-color: #FFC107;
    /* Amber for highlights */
    --text-color: #333333;
    --heading-color: #1b4d24;
    --bg-color: #FFFFFF;
    --light-bg: #F5F9F5;
    --white: #FFFFFF;
    --font-main: 'Outfit', sans-serif;
}

/* Page Transition Overlay */
#page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    /* White bg for transition */
    z-index: 9999;
    /* Below intro overlay (10000) */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

#page-transition.active {
    opacity: 1;
    visibility: visible;
}

#page-transition img {
    max-width: 200px;
    /* Adjust size as needed */
    height: auto;
}

/* Intro Video Overlay */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

#intro-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Prevent scrolling when intro is active */
body.no-scroll {
    overflow: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
    font-weight: 600;
}

.btn:hover {
    background-color: #1b4d24;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--light-bg);
}

.mt-50 {
    margin-top: 50px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    /* Adjust based on preference */
    width: auto;
    object-fit: contain;
}


.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Slider */
.hero-slider {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 6s ease;
    /* Added transform for zoom effect */
    transform: scale(1);
}

.slide.active {
    opacity: 1;
    transform: scale(1.05);
    /* Subtle zoom */
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 20px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10;
}

.slider-controls div {
    color: var(--white);
    cursor: pointer;
    font-size: 2rem;
    transition: color 0.3s;
}

.slider-controls div:hover {
    color: var(--secondary-color);
}

.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    /* Removed margin-left to center correctly */
    color: var(--white);
    font-size: 1.5rem;
    z-index: 10;
    cursor: pointer;
    margin-bottom: 70px;
    /* Space above controls */
}

/* Highlights */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.highlight-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.highlight-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Best Sellers */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    height: 250px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.product-image img {
    max-height: 80%;
    max-width: 80%;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: #000;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.badge.new {
    background-color: var(--secondary-color);
    color: var(--white);
}

.product-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--heading-color);
}

.product-info .category {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
}

.product-info .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Why Choose Us (Stats) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background-color: rgba(46, 125, 50, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.stat-item:hover .icon-circle {
    transform: rotateY(180deg);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-weight: 600;
    color: #666;
}


/* Footer */
footer {
    background-color: #1a1a1a;
    color: #cccccc;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-col i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s, transform 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.social-links a i {
    font-size: 1.2rem;
}

/* Animations Logic classes */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

/* Page Headers (About, Contact, Store) */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('../images/hero_cacao.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 160px 0 100px;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.page-header p {
    font-size: 1.5rem;
    font-weight: 400;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .nav-links {
        display: none;
        /* Add mobile menu logic later/if needed more complex */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }
}

/* --- New About Page Styles --- */
.about-mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
@media (max-width: 768px) {
    .about-mission-vision {
        grid-template-columns: 1fr;
    }
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.team-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.team-card:hover {
    transform: translateY(-10px);
}
.team-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 300px;
}
.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.team-card:hover .team-img-wrapper img {
    transform: scale(1.1);
}
.team-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 125, 50, 0.9);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.team-card:hover .team-hover {
    opacity: 1;
}
.team-hover p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.team-hover a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s;
}
.team-hover a:hover {
    color: var(--accent-color);
}
.team-info {
    padding: 20px;
    text-align: center;
}
.team-info h4 {
    color: var(--heading-color);
    margin-bottom: 5px;
}
.team-info .role {
    color: #777;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Cart Drawer & Floating Button --- */
.cart-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 900;
    transition: transform 0.3s, background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-floating-btn:hover {
    transform: scale(1.1);
    background-color: #1b4d24;
}
.cart-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    color: #000;
    font-size: 0.8rem;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}
.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: var(--white);
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}
@media (max-width: 450px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}
.cart-drawer.active {
    right: 0;
}
.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h2 {
    color: var(--heading-color);
}
.cart-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}
.cart-close-btn:hover {
    color: #000;
}
.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}
.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 15px;
}
.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 5px;
}
.cart-item-details {
    flex-grow: 1;
}
.cart-item-details h4 {
    font-size: 1rem;
    color: var(--heading-color);
    margin-bottom: 3px;
}
.cart-item-details .tech-desc {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--light-bg);
    border-radius: 20px;
    padding: 2px 10px;
}
.qty-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: bold;
}
.qty-val {
    font-weight: bold;
    font-size: 0.9rem;
}
.item-subtotal {
    font-weight: 700;
    color: var(--primary-color);
}
.cart-item-remove {
    background: none;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 10px;
}
.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--heading-color);
}
.btn-checkout {
    width: 100%;
    font-size: 1.1rem;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Toast Notificaton */
#toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: #333;
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}
.toast.show {
    opacity: 1;
    transform: translateY(0);
}
.toast i {
    color: #4CAF50;
    font-size: 1.2rem;
}