/* 
   LAJU FARM Landing Page Stylesheet - EXACT MATCH TO REFERENCE
   Theme Colors: Forest Green (#05643C) & Gold (#CBA154)
   Fonts: Outfit (Headings) & Inter (Body)
   Build: 2026-06-26-v3 (mobile kemitraan btn fix)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Warna utama: hijau gelap selaras dengan bottom navigation */
    --primary: #0a3d26;          /* Hijau gelap utama (= bottom nav) */
    --primary-hover: #072d1b;    /* Hover lebih gelap */
    --primary-light: #e8f5ee;    /* Background lembut hijau */
    --primary-mid: #05643C;      /* Hijau medium untuk aksen */

    /* Aksen emas */
    --accent: #CBA154;
    --accent-hover: #b48d44;
    --accent-light: #FBF7EE;

    /* Teks */
    --text-dark: #1E2824;
    --text-muted: #62726B;
    --text-on-dark: rgba(255, 255, 255, 0.85); /* Teks di atas background gelap */

    /* Background */
    --bg-main: #FAF8F5;
    --bg-card: #FFFFFF;
    --bg-dark: #0a3d26;          /* Background panel gelap */

    /* Border */
    --border-color: #E6E2D8;
    --border-dark: #CBA154;      /* Border emas di atas background gelap */
    --border-radius: 12px;
    --border-radius-lg: 18px;

    /* Shadow */
    --shadow-sm: 0 4px 10px rgba(10, 61, 38, 0.06);
    --shadow-md: 0 10px 20px rgba(10, 61, 38, 0.1);
    --shadow-lg: 0 20px 30px rgba(10, 61, 38, 0.14);

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

.text-center { text-align: center; }
.section-padding { padding: 90px 0; }

/* ===============================================
   SECTION PRODUK — Background hijau gelap
   selaras dengan bottom navigation
   =============================================== */
#products {
    background-color: var(--bg-dark);
    border-top: 3px solid var(--accent);
    border-bottom: 3px solid var(--accent);
}

/* Judul & tag pada section gelap */
#products .section-title {
    color: #FFFFFF;
}
#products .section-tag {
    color: var(--accent);
}

/* Link "Lihat Semua Produk" di atas background gelap */
#products .view-all-link {
    color: var(--accent);
}
#products .view-all-link:hover {
    color: #FFFFFF;
}

/* Kartu produk tetap putih sebagai elemen floating */
#products .product-card {
    background-color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
#products .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.section-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 32px;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Navigation Header — putih bersih */
#mainHeader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #FFFFFF;
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 2px 16px rgba(10, 61, 38, 0.08);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    margin-right: 32px; /* Memberi jarak lebih lebar antara logo dan menu pertama (Home) */
}

.logo svg {
    width: 28px;
    height: 28px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 12px;
    align-items: center;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text-dark);
    padding: 6px 10px;
    border-radius: 6px;
    position: relative;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-links a i,
.nav-links a svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.2px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.nav-links a:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

.nav-links a:hover i,
.nav-links a:hover svg {
    transform: translateY(-1px);
}

.nav-links a.active {
    color: var(--primary);
    background-color: var(--primary-light);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px 2px 0 0;
}

/* Style Kemitraan as a Secondary Outline Button in Nav Actions B2B CTA */
.kemitraan-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 8px;
    border: 2px solid var(--primary);
    background-color: transparent;
    color: var(--primary) !important;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    cursor: pointer;
}

.kemitraan-btn i,
.kemitraan-btn svg {
    color: var(--accent) !important; /* Gold briefcase icon to look premium and catch B2B interest */
    width: 16px;
    height: 16px;
    stroke-width: 2.5px;
}

.kemitraan-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(10, 61, 38, 0.08);
}

.kemitraan-btn.active {
    background-color: var(--primary);
    color: #FFFFFF !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
}

.kemitraan-btn.active i,
.kemitraan-btn.active svg {
    color: var(--accent) !important; /* Keep gold briefcase icon on active state */
}

/* Mobile Kemitraan Button - hidden by default on desktop */
.mobile-kemitraan-btn {
    display: none !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    position: relative;
    transition: all 0.25s ease;
}

.cart-link i,
.cart-link svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.2px;
}

.cart-link:hover {
    background-color: var(--primary);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(10, 61, 38, 0.15);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--accent);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #FFFFFF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Tombol Login — gold sebagai CTA kontras di atas header putih */
.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #FFFFFF;
    font-weight: 700;
    font-size: 14px;
    border: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(10, 61, 38, 0.15);
    white-space: nowrap;
}

.login-btn i,
.login-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.2px;
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover), #052214);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(10, 61, 38, 0.25);
}

/* Hero Section Slider Layout */
.hero {
    position: relative;
    margin-top: 74px; /* Navbar height offset */
    height: 70vh;
    min-height: 540px;
    overflow: hidden;
    color: #FFFFFF;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    background-size: cover;
    background-position: center right;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 100, 60, 0.95) 0%, rgba(5, 100, 60, 0.7) 40%, rgba(5, 100, 60, 0.15) 75%, rgba(5, 100, 60, 0) 100%);
    z-index: 2;
}

.hero-slide .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content {
    max-width: 540px;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 16px;
    opacity: 0.92;
    margin-bottom: 32px;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* Slider indicators (dots) */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    background-color: #FFAE29; /* Yellow active dot */
    transform: scale(1.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-dark);
    font-weight: 700;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(203, 161, 84, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Products Section */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}

.view-all-link:hover {
    color: var(--accent);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    background-color: #FAF6F0;
}

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

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 700;
}

.product-badge.populer {
    background-color: #FFAE29; /* Yellow */
    color: var(--text-dark);
}

.product-badge.superfood {
    background-color: var(--primary);
    color: #FFFFFF;
}

.product-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.product-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}

.add-cart-btn {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    background-color: var(--primary-mid);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.add-cart-btn svg {
    width: 18px;
    height: 18px;
}

.add-cart-btn:hover {
    background-color: var(--primary);
    color: #FFFFFF;
    transform: scale(1.08);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    color: #FFAE29;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 14px;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.6;
}

.testimonial-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.testimonial-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--primary);
}

.testimonial-role {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Footer Section — dark green selaras bottom nav */
footer {
    background-color: var(--bg-dark);
    border-top: 3px solid var(--accent);
    padding: 72px 0 28px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1.3fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.footer-brand .footer-logo img {
    height: 48px !important;
    max-width: 180px !important;
    width: auto !important;
    object-fit: contain !important;
}

.footer-brand .footer-logo svg {
    width: 48px !important;
    height: 48px !important;
}

.footer-brand .footer-logo span {
    display: none !important;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13.5px;
    margin-bottom: 20px;
    max-width: 320px;
    line-height: 1.7;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(203, 161, 84, 0.4);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-btn svg {
    width: 16px;
    height: 16px;
}

.social-btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--text-dark);
    transform: scale(1.1);
}

.footer-links h3 {
    font-size: 15px;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-menu a {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.footer-subscribe h3 {
    font-size: 15px;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 700;
}

.footer-subscribe p {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.subscribe-form {
    display: flex;
    gap: 8px;
}

.subscribe-form input {
    flex-grow: 1;
    padding: 10px 16px;
    border: 1px solid rgba(203, 161, 84, 0.35);
    border-radius: 4px;
    outline: none;
    font-size: 13.5px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

.subscribe-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.subscribe-form input:focus {
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.12);
}

.subscribe-form button {
    background-color: var(--accent);
    color: var(--text-dark);
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.subscribe-form button:hover {
    background-color: var(--accent-hover);
    color: #FFFFFF;
}

.footer-bottom {
    border-top: 1px solid rgba(203, 161, 84, 0.25);
    padding-top: 24px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
}

/* Toast System Alert */
.toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 9999;
}

.toast {
    background-color: #FFFFFF;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-lg);
    border-radius: 6px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    animation: slideIn 0.3s ease-out;
    transition: var(--transition);
}

.toast.success { border-color: #28C76F; }
.toast.danger { border-color: #EA5455; }
.toast.info { border-color: #00CFE8; }

.toast svg {
    width: 18px;
    height: 18px;
}

.toast.success svg { color: #28C76F; }
.toast.danger svg { color: #EA5455; }
.toast.info svg { color: #00CFE8; }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Why Hydroponics Section */
.why-hydroponics {
    background-color: #FFFFFF;
}

.section-header-center {
    margin-bottom: 50px;
}

.title-underline {
    width: 80px;
    height: 3px;
    background-color: var(--accent);
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 20px;
}

.why-card {
    background-color: #F7F9F6;
    border: 1px solid #E2E7E1;
    border-radius: var(--border-radius-lg);
    padding: 40px 32px;
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
    border-width: 2px;
}

.why-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 24px;
}

.why-icon-wrapper svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.why-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.why-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Farm-to-Table Journey Section */
.journey-section {
    background-color: #FAF8F5; /* Warm off-white to alternate section backgrounds */
    border-top: 1px solid var(--border-color);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 8px;
}

.journey-timeline {
    position: relative;
    margin-top: 60px;
}

.journey-line {
    position: absolute;
    top: 32px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background-color: #E2E7E1;
    z-index: 1;
}

.journey-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

.journey-step {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.journey-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(10, 61, 38, 0.2);
    transition: var(--transition);
}

.journey-step:hover .journey-icon-wrapper {
    transform: scale(1.1);
    background-color: var(--accent);
    color: var(--text-dark);
    box-shadow: 0 6px 18px rgba(203, 161, 84, 0.35);
}

.journey-icon-wrapper svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.journey-step h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.journey-step p {
    font-size: 13.5px;
    color: var(--text-muted);
    max-width: 220px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ==============================================
   MOBILE RESPONSIVE — Hamburger & Mobile Nav
   ============================================== */

/* Hamburger Button — COMPLETELY HIDDEN on desktop, shown on mobile only */
.nav-hamburger {
    position: absolute;
    top: -9999px;
    left: -9999px;
    display: none;
    visibility: hidden;
    pointer-events: none;
    width: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-dark);
    border-radius: 6px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-hamburger:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}
.nav-hamburger svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.2;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(15, 30, 20, 0.55);
    backdrop-filter: blur(3px);
    z-index: 1500;
    opacity: 0;
    pointer-events: none; /* PENTING: jangan blokir klik saat overlay tertutup */
    transition: opacity 0.3s ease;
}
.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: auto; /* Aktifkan klik saat overlay terbuka */
}

/* Mobile Nav Drawer — dark green selaras header dan bottom nav */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: var(--bg-dark);
    border-right: 2px solid var(--accent);
    z-index: 1600;
    display: flex;
    flex-direction: column;
    padding: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.35s;
    box-shadow: 6px 0 30px rgba(0, 0, 0, 0.3);
}
.mobile-nav-drawer.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 16px 20px;
    background-color: #FFFFFF;              /* Putih bersih — logo hijau jadi menonjol */
    border-bottom: 3px solid var(--accent); /* Garis emas pemisah */
}
.mobile-nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mobile-nav-logo img {
    height: 42px;
    max-width: 150px;
    object-fit: contain;
}
.mobile-nav-close {
    background: none;
    border: 1px solid var(--border-color);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    width: 34px;
    height: 34px;
    color: var(--text-muted);              /* Abu gelap — terlihat di bg putih */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.mobile-nav-close:hover {
    background-color: #FFF2F2;
    border-color: #EA5455;
    color: #EA5455;
}
.mobile-nav-close svg { width: 20px; height: 20px; }

.mobile-nav-links {
    list-style: none;
    padding: 12px 12px;
    flex-grow: 1;
    overflow-y: auto;
}
.mobile-nav-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition);
}
.mobile-nav-links li a:hover,
.mobile-nav-links li a.active {
    background-color: rgba(203, 161, 84, 0.12);
    color: var(--accent);
}
.mobile-nav-links li a svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    flex-shrink: 0;
}

.mobile-nav-actions {
    padding: 16px 20px 28px 20px;
    border-top: 1px solid rgba(203, 161, 84, 0.25);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mobile-nav-cart-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}
.mobile-nav-cart-link:hover {
    background-color: rgba(203, 161, 84, 0.12);
    color: var(--accent);
}
.mobile-nav-cart-link svg { width: 18px; height: 18px; }
.mobile-nav-actions .btn {
    width: 100%;
    justify-content: center;
}

/* ==============================================
   RESPONSIVE BREAKPOINTS
   ============================================== */

/* Optimize navigation spacing on intermediate screen sizes (769px to 1100px) */
@media (min-width: 769px) and (max-width: 1100px) {
    .nav-links {
        gap: 6px;
    }
    .nav-links a {
        font-size: 12.5px;
        padding: 5px 8px;
        gap: 4px;
    }
    .nav-links a i,
    .nav-links a svg {
        width: 14px;
        height: 14px;
    }
    .logo {
        font-size: 18px;
        margin-right: 16px;
    }
    .logo img {
        height: 28px !important;
    }
    .nav-actions .kemitraan-btn {
        padding: 6px 12px;
        font-size: 12.5px;
        border-width: 1.5px;
    }
    .nav-actions .login-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Tablet & large mobile (≤ 992px) */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .products-grid, .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
    .why-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .journey-line {
        display: none;
    }
    .journey-steps {
        grid-template-columns: 1fr 1fr;
        gap: 40px 20px;
    }
    .section-padding {
        padding: 70px 0;
    }
}

/* Auth Pages Global/Desktop Layout to prevent overlapping with the fixed header */
.auth-page-body {
    padding-top: 110px !important;
    padding-bottom: 40px !important;
    min-height: 100vh !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
    /* Show hamburger, hide desktop nav */
    .nav-hamburger {
        position: static;      /* override absolute positioning */
        top: auto;
        left: auto;
        display: inline-flex;
        visibility: visible;
        pointer-events: auto;
        width: 40px;
        height: 40px;
        padding: 8px;
        overflow: visible;
    }
    .nav-links,
    .nav-actions {
        display: none !important;
    }
    .mobile-nav-overlay {
        display: block;
        pointer-events: none; /* Tetap non-aktif sampai drawer dibuka */
    }

    /* Navbar */
    .navbar {
        height: 62px;
    }

    /* Logo adjustments on mobile — max 42% agar tombol Kemitraan punya ruang teks */
    .logo {
        max-width: 42% !important;
        gap: 6px;
        margin-right: 0;
        flex-shrink: 0;
    }
    .logo img {
        max-height: 44px !important;
        max-width: 160px !important;
    }
    .logo span {
        font-size: 14px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Mobile Kemitraan Button — pill dengan ikon + teks "Kemitraan" selalu tampil */
    .mobile-kemitraan-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 0 12px;
        height: 36px;
        min-width: 0;          /* Tidak force lebar minimum */
        border-radius: 18px;   /* Pill shape */
        background: linear-gradient(135deg, var(--primary), var(--primary-hover));
        color: #FFFFFF !important;
        text-decoration: none;
        box-shadow: 0 3px 10px rgba(10, 61, 38, 0.3);
        border: 1.5px solid rgba(203, 161, 84, 0.5);
        margin-left: auto;
        margin-right: 8px;
        transition: all 0.2s ease;
        white-space: nowrap;
        overflow: visible;
        flex-shrink: 0;        /* Jangan dikecilkan oleh flexbox */
    }

    .mobile-kemitraan-btn i,
    .mobile-kemitraan-btn svg {
        color: var(--accent) !important;
        width: 14px;
        height: 14px;
        stroke-width: 2.2px;
        flex-shrink: 0;
    }

    .mobile-kemitraan-btn span {
        color: #FFFFFF !important;
        font-size: 12.5px;
        font-weight: 700;
        letter-spacing: 0.2px;
        display: inline !important; /* Paksa tampil di semua ukuran ≥361px */
        visibility: visible !important;
    }

    .mobile-kemitraan-btn:active {
        transform: scale(0.96);
        background: linear-gradient(135deg, var(--primary-hover), #052214);
    }

    /* Auth Page Mobile Adjustments to avoid fixed header/footer overlap */
    .auth-page-body {
        padding-top: 100px !important;
        padding-bottom: 95px !important;
        height: auto !important;
        min-height: 100vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box;
    }


    /* Hero */
    .hero {
        height: auto;
        min-height: 420px;
    }
    .hero-content {
        max-width: 100%;
        padding: 0 4px;
    }
    .hero-content h1 {
        font-size: 28px;
        line-height: 1.25;
        margin-bottom: 14px;
    }
    .hero-content p {
        font-size: 14px;
        margin-bottom: 24px;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Sections */
    .section-padding {
        padding: 56px 0;
    }
    .section-title {
        font-size: 24px;
    }
    .container {
        padding: 0 16px;
    }

    /* Grids — Mobile */
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .journey-steps {
        grid-template-columns: 1fr 1fr;
        gap: 28px 16px;
    }

    /* Product card adjustments — compact for 2-col */
    .product-img-wrapper {
        height: 150px;
    }
    .product-info {
        padding: 12px;
    }
    .product-title {
        font-size: 13px;
        margin-bottom: 4px;
    }
    .product-desc {
        font-size: 11.5px;
        margin-bottom: 10px;
        overflow: hidden;
        max-height: 3.45em; /* 2 lines × 1.5 line-height = 3em + buffer */
        line-height: 1.5;
        position: relative;
    }
    .product-price {
        font-size: 13px;
    }
    .add-cart-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
    }

    /* Why card */
    .why-card {
        padding: 28px 20px;
    }

    /* Products header */
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 24px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .subscribe-form {
        flex-direction: column;
    }
    .subscribe-form input,
    .subscribe-form button {
        width: 100%;
    }
    footer {
        display: none !important;
    }

    /* Cart & success */
    .cart-layout {
        grid-template-columns: 1fr;
    }
    .success-container {
        padding: 32px 20px;
        margin-top: 100px;
    }
    .success-buttons {
        flex-direction: column;
        gap: 12px;
    }
    .success-buttons .btn {
        width: 100%;
    }

    /* Store filter */
    .store-filter-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 16px;
    }
    .search-box-wrapper {
        width: 100%;
    }
    /* Tab kategori: horizontal scroll agar tidak meluber keluar layar */
    .filter-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 8px;
        width: 100%;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    .filter-tabs::-webkit-scrollbar {
        display: none; /* Chrome/Safari/Opera */
    }
}

/* Small mobile (≤ 480px) */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr; /* Keep 2-col for products on 480px */
    }
    .testimonials-grid {
        grid-template-columns: 1fr; /* 1 kolom di 480px agar tidak terlalu sempit */
    }
    .why-grid {
        grid-template-columns: 1fr; /* 1 kolom di 480px */
    }
    .journey-steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .hero-content h1 {
        font-size: 24px;
    }
    .section-title {
        font-size: 22px;
    }
    .why-card {
        padding: 22px 16px;
    }
    .testimonial-card {
        padding: 20px 16px;
    }
}

/* Cart Drawer Styles */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 40, 36, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    box-shadow: -10px 0 30px rgba(5, 100, 60, 0.08);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.active {
    right: 0;
}

.cart-drawer-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-drawer-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.cart-drawer-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    transition: var(--transition);
}

.cart-drawer-close:hover {
    color: var(--danger);
}

.cart-drawer-body {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    color: var(--text-muted);
}

.cart-item {
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    background-color: #FAF6F0;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.cart-item-qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 4px;
    width: fit-content;
    margin-top: 8px;
}

.qty-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    width: 36px;   /* ≥44px touch area via padding */
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: var(--transition);
}

.qty-btn:hover {
    color: var(--primary);
}

.qty-value {
    font-size: 13.5px;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    color: var(--danger);
}

.cart-drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background-color: #FAF8F5;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

#cartTotalText {
    color: var(--primary);
    font-size: 18px;
}

/* Store Page Filters */
.store-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.filter-tab {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background-color: #FFFFFF;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-tab:hover, .filter-tab.active {
    background-color: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

.search-box-wrapper {
    position: relative;
    width: 300px;
    max-width: 100%;
}

.search-box-wrapper input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    font-size: 13.5px;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
}

.search-box-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 100, 60, 0.1);
}

.search-box-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

/* Product Detail Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 40, 36, 0.5);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-wrapper {
    background-color: #FFFFFF;
    width: 760px;
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-wrapper {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: var(--text-muted);
    z-index: 10;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    padding: 32px;
}

.modal-gallery img {
    width: 100%;
    border-radius: var(--border-radius);
    object-fit: cover;
    aspect-ratio: 1/1;
    background-color: #FAF8F5;
    border: 1px solid var(--border-color);
}

.modal-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-category {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.modal-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.2;
}

.modal-price-row {
    margin-bottom: 20px;
}

.modal-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.modal-unit {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 4px;
}

.modal-desc {
    font-size: 14.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-stock-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: inline-block;
    width: fit-content;
}

.modal-stock-badge.ready {
    background-color: var(--primary-light);
    color: var(--primary);
}

.modal-stock-badge.empty {
    background-color: #FCEAEA;
    color: var(--danger);
}

.modal-qty-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.modal-qty-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
}

.modal-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    background: #FAF8F5;
}

.modal-qty-control button {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-qty-control button:hover {
    color: var(--primary);
    background-color: rgba(5, 100, 60, 0.05);
}

.modal-qty-input {
    width: 44px;
    height: 36px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    background: #FFFFFF;
    outline: none;
}

.modal-action-btn {
    width: 100%;
}

@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
    }
}

/* E-Commerce Cart & Checkout Pages Layout */
.shop-page-title {
    text-align: center;
    margin: 110px 0 20px 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 32px;
    margin: 40px auto 90px auto;
    align-items: start;
}

.cart-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.cart-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

/* Cart Table Styles */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.cart-table td {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-color);
}

.cart-table-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-table-img {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    background-color: #FAF8F5;
    border: 1px solid var(--border-color);
}

.cart-table-info h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.cart-table-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: fit-content;
    background: #FAF8F5;
}

.cart-table-qty button {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
}

.cart-table-qty button:hover {
    color: var(--primary);
}

.cart-table-qty-value {
    width: 32px;
    text-align: center;
    font-size: 13.5px;
    font-weight: 600;
}

.cart-delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-delete-btn:hover {
    color: var(--danger);
}

/* Cart Summary & Form Styles */
.summary-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 106px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 16px;
}

.cart-checkout-btn {
    width: 100%;
    margin-top: 24px;
}

.checkout-form-box {
    margin-top: 20px;
}

/* General Input Styling for Checkout Form */
.store-input-group {
    margin-bottom: 16px;
}

.store-input-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-input-group input, .store-input-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
    background-color: #FAF8F5;
}

.store-input-group input:focus, .store-input-group textarea:focus {
    border-color: var(--primary);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(5, 100, 60, 0.05);
}

.store-input-group textarea {
    min-height: 80px;
    resize: vertical;
}

/* Order Success screen */
.success-container {
    max-width: 600px;
    margin: 120px auto 95px auto;
    text-align: center;
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
}

.success-icon-wrapper svg {
    width: 40px;
    height: 40px;
    stroke-width: 2.5;
}

.success-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.success-text {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.success-details {
    background-color: #FAF8F5;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: left;
    margin-bottom: 32px;
}

.success-details-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.success-details-row:last-child {
    margin-bottom: 0;
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
    font-weight: 700;
    color: var(--primary);
}

.success-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    .success-container {
        padding: 32px 20px;
        margin-top: 100px;
    }
    .success-buttons {
        flex-direction: column;
        gap: 12px;
    }
    .success-buttons .btn {
        width: 100%;
    }
}

/* ==============================================
   MOBILE PREMIUM ENHANCEMENTS
   All changes below are mobile-only (media queries)
   Desktop layout is completely unchanged.
   ============================================== */

/* -----------------------------------------------
   BOTTOM NAVIGATION BAR (Mobile Only)
   ----------------------------------------------- */
.mobile-bottom-nav {
    display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
    /* Reserve space so content doesn't hide behind bottom nav */
    body {
        padding-bottom: 96px; /* Adjusted for floating bottom nav */
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 16px;
        left: 16px;
        right: 16px;
        height: 66px;
        background-color: #1a6b42 !important;
        background: #1a6b42 !important;
        border: 2px solid #CBA154;
        border-radius: 30px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        z-index: 999;
        align-items: center;
        justify-content: space-around;
        padding: 0 8px;
        /* Safe area untuk notch devices */
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .mobile-bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        flex: 1;
        padding: 8px 0;
        border: none;
        background: none;
        cursor: pointer;
        text-decoration: none;
        color: rgba(255, 255, 255, 0.65);
        font-size: 10px;
        font-weight: 500;
        font-family: 'Inter', sans-serif;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        -webkit-tap-highlight-color: transparent;
        height: 100%;
        border-radius: 20px;
    }

    .mobile-bottom-nav-item:active {
        transform: scale(0.9);
    }

    .mobile-bottom-nav-item:hover {
        color: #FFFFFF;
    }

    .mobile-bottom-nav-item.active {
        color: #CBA154 !important;
        font-weight: 700;
    }

    /* Ikon SVG dari Lucide */
    .mobile-bottom-nav-item svg {
        display: block !important;
        width: 22px !important;
        height: 22px !important;
        stroke-width: 2 !important;
        flex-shrink: 0;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-bottom-nav-item i {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }

    .mobile-bottom-nav-item.active svg,
    .mobile-bottom-nav-item.active i {
        color: #CBA154 !important;
        transform: translateY(-2px) scale(1.1); /* Slight shift up on active */
    }

    /* Label teks */
    .mobile-bottom-nav-item > span:not(.mobile-bottom-nav-badge) {
        font-size: 11px; /* Naik dari 10px — lebih mudah dibaca */
        line-height: 1.2;
        color: inherit;
        display: block;
        transition: transform 0.25s ease;
        letter-spacing: 0.2px;
    }

    .mobile-bottom-nav-item.active > span:not(.mobile-bottom-nav-badge) {
        transform: translateY(-1px);
    }

    .mobile-bottom-nav-badge {
        position: absolute;
        top: 6px;
        left: calc(50% + 8px);
        background-color: var(--primary);
        color: #FFFFFF;
        font-size: 9px;
        font-weight: 800;
        min-width: 16px;
        height: 16px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #1a6b42;
        padding: 0 2px;
        z-index: 2;
        transition: all 0.25s ease;
    }

    .mobile-bottom-nav-item.active .mobile-bottom-nav-badge {
        transform: translateY(-2px);
    }

    /* Active Indicator Dot under the text */
    .mobile-bottom-nav-item.active::before {
        content: '';
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 4px;
        background-color: #CBA154;
        border-radius: 50%;
        box-shadow: 0 0 8px #CBA154; /* Premium glow effect */
        animation: scaleIn 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
}

@keyframes scaleIn {
    from {
        transform: translateX(-50%) scale(0);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    /* Ensure footer doesn't overlap bottom nav */
    footer {
        padding-bottom: 80px;
    }
}

/* -----------------------------------------------
   HERO SECTION — Mobile Enhancement
   ----------------------------------------------- */
@media (max-width: 768px) {
    .hero {
        min-height: 75vh; /* Turun dari 88vh — konten di bawah lebih cepat terlihat */
        margin-top: 62px;
    }
    
    .hero-slide {
        background-position: center center; /* Optimal untuk portrait mobile */
    }

    .hero-slide::before {
        /* Stronger gradient on mobile for readability */
        background: linear-gradient(180deg,
            rgba(5, 100, 60, 0.88) 0%,
            rgba(5, 100, 60, 0.72) 50%,
            rgba(5, 100, 60, 0.55) 100%);
    }

    .hero-content {
        padding: 0 4px 80px 4px; /* Extra bottom padding for bottom nav */
    }

    .hero-content h1 {
        font-size: 26px;
        line-height: 1.28;
        margin-bottom: 12px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .hero-content p {
        font-size: 14px;
        opacity: 0.95;
        margin-bottom: 28px;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 15px;
    }

    .slider-dots {
        bottom: 76px; /* Above bottom nav */
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 92vh;
    }
    .hero-content h1 {
        font-size: 22px;
    }
}

/* -----------------------------------------------
   CART TABLE → MOBILE CARD LAYOUT
   ----------------------------------------------- */
@media (max-width: 768px) {
    /* Make cart layout stack vertically */
    .cart-layout {
        margin-top: 20px;
    }

    /* Hide table header on mobile */
    .cart-table thead {
        display: none;
    }

    /* Make each table row a card */
    .cart-table tbody {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .cart-table tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        background-color: #FFFFFF;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        padding: 14px;
        gap: 12px;
        box-shadow: var(--shadow-sm);
    }

    /* Product column: takes full row first */
    .cart-table td:first-child {
        flex: 1 1 100%;
        padding: 0 0 10px 0;
        border-bottom: 1px solid var(--border-color);
    }

    /* Remaining cells distribute in one row */
    .cart-table td:nth-child(2) {
        flex: 1;
        padding: 0;
        font-size: 15px;
        font-weight: 700;
        color: var(--text-dark);
    }
    .cart-table td:nth-child(2)::before {
        content: 'Harga: ';
        font-size: 11px;
        font-weight: 600;
        color: var(--text-muted);
        display: block;
        text-transform: uppercase;
        margin-bottom: 2px;
    }

    .cart-table td:nth-child(3) {
        padding: 0;
    }

    .cart-table td:nth-child(4) {
        flex: 1;
        padding: 0;
        font-size: 15px;
        font-weight: 800;
        color: var(--primary);
        text-align: right;
    }
    .cart-table td:nth-child(4)::before {
        content: 'Subtotal';
        font-size: 11px;
        font-weight: 600;
        color: var(--text-muted);
        display: block;
        text-transform: uppercase;
        margin-bottom: 2px;
    }

    .cart-table td:nth-child(5) {
        padding: 0;
        margin-left: auto;
    }

    /* Product image + info in mobile */
    .cart-table-item {
        gap: 12px;
    }

    .cart-table-img {
        width: 64px;
        height: 64px;
        border-radius: 8px;
    }

    .cart-table-info h4 {
        font-size: 15px;
        line-height: 1.3;
    }

    /* Summary card full width */
    .summary-card {
        position: static;
        margin-top: 4px;
    }

    /* Remove top padding on cart page */
    .shop-page-title {
        margin-top: 90px;
        margin-bottom: 16px;
    }
}

/* -----------------------------------------------
   CHECKOUT PAGE — Mobile
   ----------------------------------------------- */
@media (max-width: 768px) {
    .cart-layout.checkout-layout {
        margin-top: 20px;
    }

    .cart-card {
        padding: 20px 16px;
    }

    .cart-card-title {
        font-size: 17px;
    }
}

/* -----------------------------------------------
   PRODUCT MODAL → Bottom Sheet on Mobile
   ----------------------------------------------- */
@media (max-width: 768px) {
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal-wrapper {
        max-width: 100%;
        width: 100%;
        max-height: 90vh;
        border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    }

    .modal-overlay.active .modal-wrapper {
        transform: translateY(0);
    }

    .modal-close {
        top: 14px;
        right: 14px;
    }

    /* Modal handle indicator */
    .modal-wrapper::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        border-radius: 2px;
        background-color: var(--border-color);
        margin: 12px auto 0 auto;
    }

    .modal-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px 20px 80px 20px; /* bottom padding for nav */
    }

    .modal-gallery img {
        aspect-ratio: 16/9;
        border-radius: var(--border-radius);
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-price {
        font-size: 20px;
    }
}

/* -----------------------------------------------
   TOAST NOTIFICATION — Mobile (bottom full width)
   ----------------------------------------------- */
@media (max-width: 768px) {
    .toast-container {
        top: auto;
        bottom: 76px; /* above bottom nav */
        right: 12px;
        left: 12px;
        width: auto;
    }

    .toast {
        width: 100%;
        border-radius: 10px;
        padding: 14px 18px;
        font-size: 13.5px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }
}

/* -----------------------------------------------
   STORE FILTER BAR — Mobile Enhancement
   ----------------------------------------------- */
@media (max-width: 768px) {
    .store-filter-bar {
        padding: 14px;
        gap: 12px;
        margin-bottom: 20px;
    }

    .filter-tabs {
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .filter-tab {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 12.5px;
    }

    .search-box-wrapper {
        width: 100%;
    }

    /* Products grid: 2 col on mobile, 1 col on xs */
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

/* products-grid stays 2 columns even on XS screens */

/* -----------------------------------------------
   PRODUCT CARDS — Mobile Enhancement
   ----------------------------------------------- */
@media (max-width: 768px) {
    .product-img-wrapper {
        height: 155px;
        aspect-ratio: auto;
    }

    .product-info {
        padding: 12px 14px;
    }

    .product-title {
        font-size: 13.5px;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .product-desc {
        font-size: 12.5px;
        margin-bottom: 10px;
        overflow: hidden;
        max-height: 3.2em; /* ~2 lines at 1.5 line-height */
        line-height: 1.5;
    }

    .product-price {
        font-size: 13.5px;
        font-weight: 800;
    }

    /* Touch target minimum 44×44px sesuai Apple HIG */
    .add-cart-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .add-cart-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Product footer layout agar harga + tombol tidak saling dorong */
    .product-footer {
        align-items: center;
        gap: 6px;
    }
}

/* -----------------------------------------------
   DASHBOARD PAGE — Mobile (inline styles override)
   ----------------------------------------------- */
@media (max-width: 768px) {
    /* Stack dashboard grid */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .profile-sidebar {
        padding: 20px 16px !important;
    }

    /* Profile avatar smaller on mobile */
    .profile-avatar-large {
        width: 64px !important;
        height: 64px !important;
        font-size: 24px !important;
        margin-bottom: 12px !important;
    }

    /* Profile menu as horizontal pills on mobile */
    .profile-menu {
        flex-direction: row !important;
        gap: 8px !important;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .profile-menu::-webkit-scrollbar {
        display: none;
    }

    .profile-menu-item {
        flex-shrink: 0;
    }

    .profile-menu-item a {
        padding: 10px 16px !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 20px !important;
        white-space: nowrap;
        font-size: 13px !important;
    }

    .profile-menu-item.active a,
    .profile-menu-item a:hover {
        border-color: var(--primary) !important;
    }

    .dashboard-content-card {
        padding: 20px 16px !important;
    }

    /* Transaction table: horizontal scroll */
    .table-responsive {
        overflow-x: auto;
        border-radius: 8px;
        border: 1px solid var(--border-color);
    }

    .dashboard-table {
        min-width: 580px;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 12px !important;
        font-size: 12.5px !important;
    }
}

/* -----------------------------------------------
   LOGIN / REGISTER PAGES — Mobile
   ----------------------------------------------- */
@media (max-width: 480px) {
    .login-card {
        padding: 28px 20px !important;
        border-radius: var(--border-radius) !important;
    }

    .login-logo {
        font-size: 20px !important;
    }

    .login-header h2 {
        font-size: 18px !important;
    }

    .btn {
        padding: 13px 20px;
    }
}

/* -----------------------------------------------
   WHY HYDROPONICS SECTION — Mobile
   ----------------------------------------------- */
@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .why-card {
        padding: 18px 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    .why-icon-wrapper {
        margin-bottom: 0;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
    }

    .why-icon-wrapper svg {
        width: 20px;
        height: 20px;
    }

    .why-card h3 {
        font-size: 13px; /* Dinaikkan dari 12px — standar keterbacaan minimum */
        margin-bottom: 4px;
        line-height: 1.3;
        font-weight: 700;
    }

    .why-card p {
        font-size: 12px; /* Dinaikkan dari 11px */
        line-height: 1.5;
    }
}

/* -----------------------------------------------
   JOURNEY SECTION — Mobile
   ----------------------------------------------- */
@media (max-width: 768px) {
    /* Hide the connecting line on mobile */
    .journey-line {
        display: none;
    }

    .journey-steps {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .journey-step {
        /* Card style */
        background-color: #FFFFFF;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        padding: 20px 14px;
        text-align: center;
        flex-direction: column;
        align-items: center;
        box-shadow: var(--shadow-sm);
        transition: var(--transition);
    }

    .journey-step:hover {
        border-color: var(--primary);
        box-shadow: var(--shadow-md);
        transform: translateY(-3px);
    }

    .journey-icon-wrapper {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
        flex-shrink: 0;
    }

    .journey-icon-wrapper svg {
        width: 20px;
        height: 20px;
    }

    .journey-step h3 {
        font-size: 12.5px;
        margin-bottom: 6px;
        line-height: 1.3;
        font-weight: 700;
    }

    .journey-step p {
        font-size: 11px;
        line-height: 1.5;
    }

    .journey-timeline {
        margin-top: 32px;
    }
}

/* -----------------------------------------------
   TESTIMONIALS — Mobile
   ----------------------------------------------- */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .testimonial-card {
        padding: 16px 12px;
        text-align: left;
    }

    .testimonial-text {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .testimonial-name {
        font-size: 12.5px;
    }

    .testimonial-role {
        font-size: 10px;
    }

    .stars {
        justify-content: flex-start;
        margin-bottom: 10px;
    }

    .testimonial-profile {
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }
}

/* -----------------------------------------------
   SECTION HEADERS — Mobile Typography
   ----------------------------------------------- */
@media (max-width: 768px) {
    .section-padding {
        padding: 52px 0;
    }

    .section-title {
        font-size: 24px;
        line-height: 1.3;
    }

    .section-tag {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .section-header-center {
        margin-bottom: 36px;
    }

    .products-header {
        margin-bottom: 20px;
    }
}

/* -----------------------------------------------
   FOOTER — Mobile Enhanced
   ----------------------------------------------- */
@media (max-width: 768px) {
    footer {
        display: none !important;
    }

    .footer-grid {
        gap: 28px;
    }

    .footer-brand .footer-logo {
        margin-bottom: 12px;
    }

    .footer-brand p {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .footer-socials {
        gap: 10px;
    }

    .subscribe-form {
        flex-direction: column;
        gap: 10px;
    }

    .subscribe-form input,
    .subscribe-form button {
        width: 100%;
    }

    .footer-bottom {
        text-align: center;
        padding-bottom: 8px;
    }
}

/* -----------------------------------------------
   GLOBAL TOUCH TARGETS & ACCESSIBILITY
   ----------------------------------------------- */
@media (max-width: 768px) {
    /* Ensure all interactive elements have min 44px touch target */
    .btn,
    .add-cart-btn,
    .filter-tab,
    .social-btn,
    .nav-hamburger,
    .mobile-nav-close {
        min-height: 44px;
    }

    .add-cart-btn {
        min-height: 40px;
        min-width: 40px;
    }

    /* Improved link/button tap area */
    .view-all-link {
        padding: 8px 0;
        font-size: 13.5px;
    }

    /* Inputs more accessible on mobile */
    .store-input-group input,
    .store-input-group textarea,
    .subscribe-form input {
        font-size: 16px; /* Prevents iOS zoom-in on focus */
        padding: 12px 14px;
    }

    .admin-form-control {
        font-size: 16px;
    }

    /* Cart page top spacing */
    main.container {
        padding-top: 80px !important;
    }
}

/* -----------------------------------------------
   ORDER SUCCESS PAGE — Mobile
   ----------------------------------------------- */
@media (max-width: 480px) {
    .success-container {
        margin: 90px 12px 40px 12px;
        padding: 32px 20px;
    }

    .success-title {
        font-size: 22px;
    }

    .success-text {
        font-size: 13.5px;
    }

    .success-details {
        padding: 16px;
    }

    .success-details-row {
        flex-direction: column;
        gap: 2px;
        align-items: flex-start;
    }
}

/* -----------------------------------------------
   MOBILE SCROLL BEHAVIOR
   ----------------------------------------------- */
@media (max-width: 768px) {
    /* Prevent content jump when mobile nav opens */
    body.nav-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* -----------------------------------------------
   XS MOBILE (≤ 360px) — Extra small adjustments
   ----------------------------------------------- */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .hero-content h1 {
        font-size: 20px;
    }

    .section-title {
        font-size: 20px;
    }

    .mobile-bottom-nav {
        height: 60px;
    }

    body {
        padding-bottom: 60px;
    }

    .slider-dots {
        bottom: 72px;
    }
}

/* -----------------------------------------------
   INFO PAGE HERO BANNER
   ----------------------------------------------- */
.info-page-hero {
    background-color: var(--primary);
    color: #FFFFFF;
    padding: 60px 0;
    margin-top: 74px;
    text-align: center;
    border-bottom: 3px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.info-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 61, 38, 0.95), rgba(7, 45, 27, 0.98));
    z-index: 1;
}

.info-page-hero .container {
    position: relative;
    z-index: 2;
}

.info-page-hero h1 {
    font-size: 32px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.info-page-hero .breadcrumbs {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.info-page-hero .breadcrumbs a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.info-page-hero .breadcrumbs a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .info-page-hero {
        margin-top: 62px;
        padding: 40px 0;
    }
    .info-page-hero h1 {
        font-size: 26px;
    }
}

/* -----------------------------------------------
   REUSABLE BLOG CARD & GRID SYSTEM
   ----------------------------------------------- */
.blog-grid,
.homepage-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.blog-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.blog-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(5, 100, 60, 0.1) !important;
}
.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}
.blog-card-placeholder {
    width: 100%;
    height: 200px;
    background: #E8F5E9;
    color: var(--primary-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border-bottom: 1px solid var(--border-color);
}
.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-card-date {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}
.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.blog-card-title a:hover {
    color: var(--primary-mid);
}
.blog-card-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}
.blog-card-btn {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-mid);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}
.blog-card-btn:hover {
    color: var(--primary);
}

/* Responsive Blog Grid for Main Listing Page */
@media (max-width: 992px) {
    .blog-grid,
    .homepage-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .blog-grid {
        gap: 16px;
    }
    .blog-card-img,
    .blog-card-placeholder {
        height: 140px;
    }
    .blog-card-body {
        padding: 16px;
    }
    .blog-card-title {
        font-size: 15px;
        margin-bottom: 8px;
    }
    .blog-card-excerpt {
        font-size: 12.5px;
        margin-bottom: 12px;
        -webkit-line-clamp: 2;
    }
    .blog-card-btn {
        font-size: 12.5px;
    }
}
@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 420px) {
    .blog-grid {
        grid-template-columns: 1fr; /* 1 kolom di layar sangat kecil */
    }
}

/* Special Homepage Blog 2-Column Mobile Override */
@media (max-width: 768px) {
    .homepage-blog-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .homepage-blog-grid .blog-card:nth-child(3) {
        display: none !important;
    }
    
    .homepage-blog-grid .blog-card-img,
    .homepage-blog-grid .blog-card-placeholder {
        height: 100px !important;
    }
    
    .homepage-blog-grid .blog-card-body {
        padding: 10px !important;
    }
    
    .homepage-blog-grid .blog-card-date {
        font-size: 9px !important;
        margin-bottom: 4px !important;
        gap: 3px !important;
    }
    
    .homepage-blog-grid .blog-card-title {
        font-size: 11px !important;
        height: 32px !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
    }
    
    .homepage-blog-grid .blog-card-excerpt {
        display: none !important;
    }
    
    .homepage-blog-grid .blog-card-btn {
        font-size: 9.5px !important;
        gap: 3px !important;
        margin-top: auto !important;
    }
    
    .homepage-blog-grid .blog-card-btn i {
        width: 12px !important;
        height: 12px !important;
    }
}

/* Homepage Blog Button Styling */
.homepage-blog .btn-secondary {
    background-color: transparent !important;
    color: var(--primary-mid) !important;
    border: 2px solid var(--primary-mid) !important;
    transition: all 0.25s ease !important;
}

.homepage-blog .btn-secondary:hover {
    background-color: var(--primary-mid) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(5, 100, 60, 0.2) !important;
}

/* ===============================================
   FLOATING WHATSAPP CHAT WIDGET
   =============================================== */
.wa-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

/* Bubble Button */
.wa-bubble-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    color: #FFFFFF;
    box-shadow: 0 6px 16px rgba(18, 140, 126, 0.3);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-bubble-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(18, 140, 126, 0.4);
}

.wa-bubble-btn svg {
    width: 26px;
    height: 26px;
    transition: all 0.3s ease;
}

/* Pulse Ring Animation */
.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: wa-pulse 1.8s infinite ease-out;
    pointer-events: none;
}

@keyframes wa-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.95;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Badge count */
.bubble-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background-color: #EF4444;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
}

/* Card Container */
.wa-widget-card {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 330px;
    background-color: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transform: translateY(30px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wa-widget-card.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Card Header */
.wa-card-header {
    background-color: var(--primary);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #FFFFFF;
    position: relative;
}

.wa-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #FFFFFF;
    padding: 2px;
    flex-shrink: 0;
}

.wa-avatar img {
    border-radius: 50%;
}

.wa-status-dot {
    width: 11px;
    height: 11px;
    background-color: #25D366;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    right: 0;
    animation: blink-dot 1.5s infinite ease-in-out;
}

@keyframes blink-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.wa-header-info h4 {
    color: #FFFFFF !important;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.wa-status-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

/* Card Body */
.wa-card-body {
    background-color: #E5DDD5;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    padding: 20px;
    min-height: 100px;
}

.wa-chat-bubble {
    background-color: #FFFFFF;
    padding: 12px 14px;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    max-width: 90%;
    position: relative;
}

.wa-chat-bubble p {
    font-size: 13.5px;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 4px;
}

.wa-time {
    font-size: 9.5px;
    color: var(--text-muted);
    float: right;
}

/* Card Footer */
.wa-card-footer {
    padding: 15px 20px;
    background-color: #FFFFFF;
}

.wa-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 14.5px;
    padding: 12px 16px;
    border-radius: 30px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.wa-action-btn:hover {
    background-color: #128C7E;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(18, 140, 126, 0.3);
}

/* Prevent layout shifts/blocking nav on smaller screens */
@media (max-width: 768px) {
    .wa-chat-widget {
        bottom: 90px; /* Safe distance above mobile bottom nav */
        right: 20px;
    }
    .wa-widget-card {
        width: 290px;
        bottom: 74px;
    }
}

/* Layar sangat sempit ≤360px: tampilkan ikon saja tanpa teks */
@media (max-width: 360px) {
    .mobile-kemitraan-btn {
        padding: 8px 10px;
        gap: 0;
        border-radius: 50%;
        width: 38px;
        min-height: 38px;
        justify-content: center;
    }
    .mobile-kemitraan-btn span {
        display: none !important;
    }
    .mobile-kemitraan-btn i,
    .mobile-kemitraan-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* -----------------------------------------------
   MOBILE FOOTER — Footer penuh disembunyikan di mobile,
   link tersedia di sidebar drawer menu
   ----------------------------------------------- */
@media (max-width: 768px) {
    footer {
        display: none !important;
    }
}


/* -----------------------------------------------
   HERO SCROLL INDICATOR — Animated chevron
   ----------------------------------------------- */
.hero-scroll-cue {
    display: none; /* Default: hidden on desktop */
}

@media (max-width: 768px) {
    .hero-scroll-cue {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: absolute;
        bottom: 90px; /* Above slider dots and bottom nav */
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        animation: scrollBounce 2s ease-in-out infinite;
        cursor: pointer;
        gap: 2px;
    }

    .hero-scroll-cue span {
        font-size: 10px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.8);
        letter-spacing: 1.5px;
        text-transform: uppercase;
    }

    .hero-scroll-cue svg {
        width: 22px;
        height: 22px;
        color: rgba(255, 255, 255, 0.8);
        stroke-width: 2px;
    }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
    50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* -----------------------------------------------
   WHY GRID — Intermediate breakpoint 600px
   (menghindari loncat 3-kolom → 1-kolom di 480px)
   ----------------------------------------------- */
@media (max-width: 600px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr); /* 2-kolom di 480-600px */
        gap: 10px;
    }

    .why-card h3 {
        font-size: 12.5px;
    }

    .why-card p {
        font-size: 11.5px;
    }
}

/* -----------------------------------------------
   FILTER TABS — Fade gradient visual cue
   ----------------------------------------------- */
@media (max-width: 768px) {
    .store-filter-bar {
        position: relative;
    }

    /* Fade kanan sebagai indikator ada tab lagi */
    .filter-tabs-wrapper {
        position: relative;
        overflow: hidden;
    }

    .filter-tabs-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 40px;
        height: 100%;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.95));
        pointer-events: none;
        z-index: 1;
    }
}

/* (Mobile kemitraan button sudah diatur di blok @media 768px baris 1388) */

/* -----------------------------------------------
   CART — Sticky Checkout Summary Bar (Mobile)
   ----------------------------------------------- */
@media (max-width: 768px) {
    /* Jika ada .cart-sticky-bar elemen, tampilkan di mobile */
    .cart-sticky-bar {
        display: flex;
        position: fixed;
        bottom: 90px; /* Di atas bottom nav */
        left: 12px;
        right: 12px;
        background: var(--primary);
        color: #FFFFFF;
        border-radius: 14px;
        padding: 14px 18px;
        align-items: center;
        justify-content: space-between;
        z-index: 900;
        box-shadow: 0 8px 24px rgba(10, 61, 38, 0.3);
        border: 1px solid var(--accent);
    }

    .cart-sticky-bar .sticky-total {
        font-size: 15px;
        font-weight: 800;
    }

    .cart-sticky-bar .sticky-total small {
        font-size: 11px;
        font-weight: 400;
        opacity: 0.8;
        display: block;
    }

    .cart-sticky-bar .sticky-checkout-btn {
        background: var(--accent);
        color: var(--text-dark);
        font-size: 13.5px;
        font-weight: 700;
        padding: 10px 20px;
        border-radius: 10px;
        border: none;
        cursor: pointer;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
}

/* -----------------------------------------------
   GENERAL MOBILE TOUCH IMPROVEMENTS
   ----------------------------------------------- */
@media (max-width: 768px) {
    /* Semua link dan button punya minimum 44px */
    .mobile-nav-links li a {
        padding: 14px 20px !important;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Hamburger button — tepat 44px */
    .nav-hamburger {
        width: 44px !important;
        height: 44px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
    }

    /* Cart link di desktop nav ukuran lebih besar */
    .cart-link {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Journey text lebih besar di medium mobile */
    .journey-step h3 {
        font-size: 13px;
    }

    .journey-step p {
        font-size: 12px;
    }

    /* Testimonial text minimum 13px */
    .testimonial-text {
        font-size: 13px !important;
        line-height: 1.5;
    }

    .testimonial-name {
        font-size: 13px !important;
        font-weight: 700;
    }

    .testimonial-role {
        font-size: 11.5px !important;
    }
}


