/* Base Themes & Resets */
:root {
    --primary-green: #018619;
    --dark-bg: #111111;
    --light-grey: #f4f4f4;
    --text-color: #333333;
    --white: #ffffff;
    --sidebar-width: 280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Verdana', sans-serif;
    scroll-behavior: smooth;
}

body {
    display: block; /* Binago mula flex para sa top bar layout */
    background-color: var(--light-grey);
    color: var(--text-color);
}

/* Universal Top Menu Toggle Bar (Laging Makita sa Itaas) */
.menu-toggle {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--dark-bg);
    color: var(--white);
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 200;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.menu-toggle .toggle-btn {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
    background: none;
    border: none;
    transition: color 0.2s ease;
}

.menu-toggle .toggle-btn:hover {
    color: var(--primary-green);
}

.menu-toggle .mobile-title {
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Sidebar Styling - Nakatago sa simula gamit ang transform (-100%) */
.sidebar {
    width: var(--sidebar-width);
    height: calc(100vh - 60px);
    background-color: var(--dark-bg);
    color: var(--white);
    position: fixed;
    top: 60px; /* Nakalapat sa ilalim ng top bar */
    left: 0;
    padding: 20px 0;
    overflow-y: auto;
    z-index: 100;
    transform: translateX(-100%); /* Nakatago sa kaliwa */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Kapag aktibo ang burger menu, lilitaw ang sidebar */
.sidebar.open {
    transform: translateX(0);
}

.logo-section {
    padding: 0 20px 20px 20px;
    border-bottom: 1px solid #222;
    text-align: center;
}

.logo-placeholder {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.logo-section h2 {
    font-size: 1.1rem;
    font-weight: 400;
}

.nav-links {
    list-style: none;
    margin-top: 20px;
}

.nav-links li a, .dropdown-title {
    display: block;
    padding: 12px 20px;
    color: #b3b3b3;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-links li a:hover, .dropdown-title:hover {
    color: var(--white);
    background-color: #1a1a1a;
}

.active-dropdown .dropdown-title {
    color: var(--white);
    font-weight: bold;
}

.sub-links {
    list-style: none;
    background-color: #090909;
    padding-left: 15px;
}

.sub-links li a {
    padding: 10px 20px;
    font-size: 0.88rem;
    display: block;
    color: #b3b3b3;
    text-decoration: none;
}

.sub-links li a.active {
    color: var(--white);
    background-color: var(--primary-green);
    font-weight: bold;
}

/* Main Content - Kumpleto ang lawak (100%) sa simula */
.main-content {
    margin-left: 0;
    width: 100%;
    padding-top: 60px; /* Space para sa fixed top toggle bar */
    min-height: 100vh;
}

/* Banner Layout */
/* Banner Layout Update inside style.css */
.hero-banner {
    height: 360px;
    /* Swapped out for an optimized, vibrant green marketplace layout banner asset */
    background-image: url('https://images.unsplash.com/photo-1610348725531-843dff563e2c?auto=format&fit=crop&q=80&w=1600');
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-overlay h1 {
    color: var(--white);
    font-size: 2.8rem;
    text-align: center;
    font-weight: 700;
}

.hero-subtitle {
    color: #dddddd;
    margin-top: 10px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.green-divider {
    width: 250px;
    height: 5px;
    background-color: var(--primary-green);
    margin-top: 15px;
}

/* Green Overview Area */
.intro-section {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 60px 40px;
    text-align: center;
}

.intro-section .tagline {
    display: block;
    font-style: italic;
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.intro-section .greeting {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.intro-section p {
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Video Presentation Section Layout */
.video-display-section {
    padding: 60px 40px;
    background-color: var(--white);
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
}

.video-container-wrapper {
    max-width: 850px;
    width: 100%;
    text-align: center;
}

.video-container-wrapper h3 {
    font-size: 1.5rem;
    color: var(--dark-bg);
    margin-bottom: 25px;
    position: relative;
}

.video-container-wrapper h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-green);
    margin: 8px auto 0 auto;
}

.video-frame-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
}

.video-frame-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Core Values Display */
.info-cards-section {
    padding: 60px 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.info-card {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border-top: 4px solid var(--primary-green);
}

.icon-box {
    font-size: 2.2rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.info-card h3 {
    margin-bottom: 10px;
    color: var(--dark-bg);
}

/* Footer elements styling */
.site-footer {
    background-color: #eaeaea;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #ddd;
}

.site-footer p {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.contact-numbers {
    margin: 15px 0;
}

.contact-numbers p {
    display: inline-block;
    margin: 0 15px;
}

.contact-numbers i {
    color: var(--primary-green);
    margin-right: 4px;
}

.hours {
    font-size: 0.85rem !important;
    color: #666;
    margin-bottom: 15px !important;
}

.fb-btn {
    display: inline-block;
    background-color: #3b5998;
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.active-link {
    color: var(--white) !important;
    background-color: #1a1a1a;
}

/* Feedback View Layout Rules */
.feedback-hero {
    background-image: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&q=80&w=1200');
}

.feedback-intro-section {
    padding: 60px 50px;
    background-color: var(--white);
    border-bottom: 1px solid #e0e0e0;
}

.message-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
}

.message-container p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444444;
}

/* Action Area & Card Layout */
.form-action-section {
    padding: 70px 50px;
    display: flex;
    justify-content: center;
    background-color: #fafafa;
}

.action-card {
    background-color: var(--white);
    max-width: 650px;
    width: 100%;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #eee;
}

.action-icon {
    font-size: 3.5rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.action-card h3 {
    font-size: 1.5rem;
    color: var(--dark-bg);
    margin-bottom: 12px;
}

.action-card p {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.form-submit-btn {
    display: inline-block;
    background-color: var(--primary-green);
    color: var(--white);
    text-decoration: none;
    padding: 14px 30px;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(1, 134, 25, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.form-submit-btn:hover {
    background-color: #016312;
    transform: translateY(-2px);
}

/* About View Unique Structural Components */
.about-hero {
    background-image: url('https://images.unsplash.com/photo-1466692476868-aef1dfb1e735?auto=format&fit=crop&q=80&w=1200');
}

.about-content-section {
    padding: 60px 50px;
    background-color: var(--light-grey);
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.story-block {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    margin-bottom: 40px;
    border-left: 5px solid var(--primary-green);
}

.story-block h2 {
    color: var(--primary-green);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.story-block p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444444;
    text-align: justify;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.mv-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border-top: 4px solid var(--primary-green);
}

.mv-icon {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.mv-card h3 {
    font-size: 1.4rem;
    color: var(--dark-bg);
    margin-bottom: 15px;
}

.mv-card p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #555555;
    text-align: justify;
}

/* Order View Page Component Styles */
.order-hero {
    background-image: url('https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&q=80&w=1200');
}

.order-guide-section {
    padding: 50px;
    background-color: var(--white);
    border-bottom: 1px solid #e0e0e0;
}

.guide-container h2 {
    font-size: 1.4rem;
    color: var(--dark-bg);
    margin-bottom: 35px;
    line-height: 1.5;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.step-item {
    display: flex;
    background-color: #fafafa;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.highlight-step {
    border-left: 4px solid var(--primary-green);
    background-color: #f1f9f2;
}

.step-num {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-green);
    margin-right: 15px;
    line-height: 1;
}

.step-content h4 {
    font-size: 1.05rem;
    color: var(--dark-bg);
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.5;
}

/* Shopee-style Shelf Grid Setup */
.marketplace-section {
    padding: 50px;
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: 10px;
}

.section-title h3 {
    font-size: 1.5rem;
    color: var(--dark-bg);
}

.section-title .badge {
    background-color: #ff5722;
    color: var(--white);
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 3px;
    margin-left: 15px;
    text-transform: uppercase;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.market-card {
    background-color: var(--white);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.market-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: #ff5722;
}

/* Siguraduhing ganito ang rules para sa images sa loob ng cards */
.product-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Pinapanatili nitong perpekto ang aspect ratio ng mga larawan */
}

.prod-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: var(--primary-green);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 6px;
    font-weight: bold;
    border-radius: 2px;
}

/* Gradients for vegetable cards */
.pumpkin-bg { background-image: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
.mustard-bg { background-image: linear-gradient(135deg, #a8ff78 0%, #78ffd6 100%); }
.okra-bg { background-image: linear-gradient(135deg, #5ffd64 0%, #158823 100%); }
.pechay-bg { background-image: linear-gradient(135deg, #b1f0ad 0%, #3ca55c 100%); }
.pipino-bg { background-image: linear-gradient(135deg, #96e6a1 0%, #d4fc79 100%); }
.sili-bg { background-image: linear-gradient(135deg, #f857a6 0%, #ff5858 100%); }
.sitaw-bg { background-image: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.talong-bg { background-image: linear-gradient(135deg, #6441A5 0%, #2a0845 100%); }
.alugbati-bg { background-image: linear-gradient(135deg, #cc2b5e 0%, #753a88 100%); }
.kamote-bg { background-image: linear-gradient(135deg, #ffd1ff 0%, #f107a3 100%); }
.ampalaya-bg { background-image: linear-gradient(135deg, #00b4db 0%, #0083b0 100%); }
.patola-bg { background-image: linear-gradient(135deg, #56ab2f 0%, #a8ff78 100%); }

.card-details {
    padding: 15px;
    text-align: center;
}

.card-details h4 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-action-btn {
    display: block;
    background-color: #ff5722;
    color: var(--white);
    text-decoration: none;
    padding: 8px 10px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.cart-action-btn:hover {
    background-color: #e64a19;
}

/* Contacts View Specific Rules Layout */
.contacts-hero {
    background-image: url('https://images.unsplash.com/photo-1516387938699-a93567ec168e?auto=format&fit=crop&q=80&w=1200');
}

.contacts-display-section {
    padding: 60px 40px;
    background-color: var(--light-grey);
}

.contacts-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.contact-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.c-info-card {
    background-color: var(--white);
    padding: 35px 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border-bottom: 4px solid var(--primary-green);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.c-icon {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.c-info-card h3 {
    font-size: 1.25rem;
    color: var(--dark-bg);
    margin-bottom: 12px;
}

.c-info-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555555;
}

.c-info-card .phone-link {
    font-weight: bold;
    margin: 4px 0;
    color: var(--text-color);
}

.email-text {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
}

.email-text:hover {
    text-decoration: underline;
}

.c-hours-tag {
    margin-top: 12px;
    font-size: 0.85rem !important;
    color: #777 !important;
}

/* Map Content Block Layout */
.map-container-block {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #eee;
}

.map-container-block h3 {
    font-size: 1.3rem;
    color: var(--dark-bg);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.map-container-block h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-green);
    margin: 8px auto 0 auto;
}

.responsive-map {
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* Vision and Mission Specific Layout */
.vm-hero {
    background-image: url('https://images.unsplash.com/photo-1541872739-775b0662d057?auto=format&fit=crop&q=80&w=1200');
}

.vm-content-section {
    padding: 60px 50px;
    background-color: var(--light-grey);
}

.vm-container {
    max-width: 800px;
    margin: 0 auto;
}

.vm-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-green);
}

.vm-card h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    text-align: center;
}

.vm-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    color: #333;
}

/* Barangay Profile Specific Layout */
.profile-hero {
    /* Pinalitan ang Unsplash URL ng iyong lokal na file mula sa folder */
    background-image: url('San Bartolome.png');
}

.profile-content-section {
    padding: 60px 50px;
    background-color: var(--light-grey);
}

.profile-container {
    max-width: 900px;
    margin: 0 auto;
}

.profile-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-green);
}

.profile-card h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--primary-green);
}

.profile-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.profile-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .hero-overlay h1 {
        font-size: 2rem;
    }
}

/* Placeholder Landing State Styles */
.placeholder-empty-view {
    min-height: calc(100vh - 220px); /* Centers content nicely between header bar and footer */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: var(--light-grey);
}

.placeholder-message {
    text-align: center;
    max-width: 500px;
}

.placeholder-message i {
    font-size: 4rem;
    color: #cccccc;
    margin-bottom: 20px;
}

.placeholder-message h3 {
    font-size: 1.6rem;
    color: var(--dark-bg);
    margin-bottom: 10px;
}

.placeholder-message p {
    font-size: 1rem;
    color: #777777;
    line-height: 1.6;
}

/* Karagdagang Background Gradients para sa mga Bagong Bundles */
.ampalaya-bundle-bg { background-image: linear-gradient(135deg, #11998e 0%, #d4fc79 100%); }
.pakbet-bundle-bg { background-image: linear-gradient(135deg, #f857a6 0%, #f5af19 100%); }
.salad-bundle-bg { background-image: linear-gradient(135deg, #a8ff78 0%, #3ca55c 100%); }

/* Floating Cart Container */
.floating-cart-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    z-index: 999;
}

/* Hidden class to toggle visibility */
.floating-cart-container.hidden {
    display: none;
}

/* Added to Cart Text Alert Bubble */
.cart-alert-bubble {
    background-color: var(--dark-bg); /* Uses theme black */
    color: var(--white);
    padding: 8px 15px;
    font-size: 0.85rem;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    animation: bounceIn 0.3s ease;
}

/* Shopping Bag Circular Button */
.shopping-bag-icon {
    background-color: #ff5722; /* Matches marketplace orange accent */
    color: var(--white);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
    transition: transform 0.2s ease;
}

.shopping-bag-icon:hover {
    transform: scale(1.1);
}

/* Item Count Badge */
#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary-green); /* Theme green */
    color: var(--white);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 7px;
    border-radius: 50%;
    border: 2px solid var(--white);
}

/* Entry Animation */
@keyframes bounceIn {
    0% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* --- CHECKOUT DYNAMIC TABLE MODIFICATION METRICS --- */
.cart-items-table th {
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}
.checkout-qty-control span {
    font-weight: bold;
    font-size: 1rem;
    min-width: 20px;
}
.checkout-del-btn:hover i {
    transform: scale(1.15);
}
.checkout-del-btn i {
    transition: transform 0.2s ease;
}
@media (max-width: 480px) {
    .cart-items-table th, .cart-items-table td {
        font-size: 0.85rem;
        padding: 10px 0;
    }
}