/* Modern Plant Nursery Color Palette */
:root {
    --primary-green: #2d5a3d;
    --secondary-green: #4a7c59;
    --accent-green: #6b9e78;
    --light-green: #a8d5ba;
    --cream: #f8f5f0;
    --earth-brown: #8b7355;
    --sage-green: #b8c5a8;
    --text-dark: #2c3e2d;
    --text-light: #6b7c6f;
    --white: #ffffff;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--cream);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(45, 90, 61, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--primary-green);
}

.logo img {
    width: 50px;
    height: 50px;
}

.logo-text {
    font-size: 1.8rem;
    font-family: 'Pacifico', cursive !important;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--primary-green);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    background: rgba(45, 90, 61, 0.05);
    border-radius: 50px;
    padding: 4px;
    gap: 4px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn .flag {
    width: 18px;
    height: auto;
    border-radius: 2px;
}

.lang-btn.active {
    background: var(--primary-green);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(45, 90, 61, 0.2);
}

.lang-btn:hover:not(.active) {
    color: var(--primary-green);
    background: rgba(45, 90, 61, 0.1);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-green);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(45, 90, 61, 0.3), rgba(45, 90, 61, 0.3)),
                      url('https://images.unsplash.com/photo-1416879595882-3373a0480b5b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(45, 90, 61, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 61, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-green);
}

.btn-outline-primary {
    background: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-outline-primary:hover {
    background: var(--primary-green);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(45, 90, 61, 0.4);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: var(rgb(1, 53, 1));
    margin-bottom: 1rem;
    font-size: 2.2rem; /* Heading lebih besar, relatif ke isi */
    line-height: 1.2;
}

.section-title p {
    color: var(rgb(37, 59, 37));
    font-size: 1.25rem; /* body text utama */
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.75;
}

#aboutDescription {
    font-size: 1.25rem; /* sesuai body section */
}

#aboutDescription p {
    margin-bottom: 1.25rem;
}

.services-grid .service-card h3,
.gallery-overlay h4,
.contact-item h3 {
    font-size: 1.618rem; /* sub-heading mengikuti golden ratio */
}

/* About Section */
.section-title.about-heading h2 {
    margin-bottom: 1rem;
}

#aboutDescription {
    max-width: 100%;
    width: 100%;
    margin: 0 auto 2rem;
    text-align: justify;
    line-height: 1.75;
    font-size: 1rem;
    color: var(--text-dark);
    padding: 0 0.75rem;
}

.container #aboutDescription {
    max-width: 1080px;
}

@media (max-width: 1200px) {
    .container #aboutDescription {
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    #aboutDescription {
        max-width: 100%;
        padding: 0 1.25rem;
    }
}

@media (max-width: 768px) {
    #aboutDescription {
        padding: 0 1rem;
        font-size: 0.98rem;
    }
}

#aboutDescription p {
    margin-bottom: 1rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-card .icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-green);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
    place-items: center;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(45, 90, 61, 0.8));
    padding: 2rem 1.5rem 1.5rem;
    color: var(--white);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--light-green);
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-green);
}

/* Footer */
.footer {
    background: var(--primary-green);
    color: var(--white);
    padding: 3rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--light-green);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(0, 0, 0, 0.15);
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .language-switcher {
        margin-left: auto;
        margin-right: 1.5rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 80px;
        left: -100%;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-grid,
    .services-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* --- Extracted Classes & Utilities --- */
.w-100 { width: 100%; }
.bg-sage { background-color: var(--sage-green); }
.bg-primary { background-color: var(--primary-green); color: var(--white); }
.bg-primary .section-title h2 { color: var(--white); }
.bg-primary .section-title p { color: rgba(255, 255, 255, 0.8); }
.btn-full { width: 100%; justify-content: center; }
.text-sm { font-size: 0.9rem; }

/* Icons inside Service Cards */
.service-card h3 i { color: var(--primary-green); margin-right: 0.5rem; }

/* Hero Collections Page */
.hero-collections {
    height: 60vh;
    background: linear-gradient(rgba(45, 90, 61, 0.7), rgba(45, 90, 61, 0.7)), url('https://images.unsplash.com/photo-1416879595882-3373a0480b5b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Hero Gallery Page */
.hero-gallery {
    height: 60vh;
    background: linear-gradient(rgba(45, 90, 61, 0.7), rgba(45, 90, 61, 0.7)), url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Maps Containers */
.contact-map {
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
}
.contact-map iframe {
    display: block;
    border: none;
    width: 100%;
}

/* Contact Details */
.contact-details { flex: 1; }

/* Footer Components */
.footer-links { list-style: none; padding: 0; }
.footer-social-container { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-social-link { color: var(--light-green); font-size: 1.5rem; transition: color 0.3s ease; }
.footer-social-link:hover { color: var(--white); }

/* --- Filter & Collections Page Components --- */
.filter-section { padding: 3rem 0; background-color: var(--sage-green); }
.filter-controls { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; max-width: 1000px; margin-left: auto; margin-right: auto; }
.search-container { max-width: 500px; margin: 0 auto; }
#searchInput {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e5e5;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}
#searchInput:focus { border-color: var(--primary-green); }
.load-more-container { text-align: center; margin-top: 3rem; }

/* Collection Cards */
.filter-btn {
    margin-bottom: 5px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-green);
    background: transparent;
    color: var(--primary-green);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.filter-btn.active, .filter-btn:hover { background: var(--primary-green); color: var(--white); }

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.collection-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}
.collection-card:hover { transform: translateY(-5px); }

.collection-image { position: relative; height: 200px; overflow: hidden; }
.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.collection-card:hover .collection-image img { transform: scale(1.1); }

.collection-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(45, 90, 61, 0.8));
    padding: 2rem 1.5rem 1rem;
    color: var(--white);
}
.collection-overlay h3 { margin: 0; font-size: 1.5rem; font-weight: 600; }
.collection-overlay p { margin: 0.5rem 0 0; opacity: 0.9; }

.collection-info { padding: 1.2rem; }
.collection-info h4 { margin: 0 0 0.5rem; color: var(--primary-green); font-size: 1.25rem; }

.price { color: var(--secondary-green); font-weight: 600; font-size: 1rem; margin-bottom: 0.5rem; transition: color 0.3s ease; }
.collection-card:hover .price { color: var(--primary-green); }
.description { 
    color: var(--text-light); 
    margin-bottom: 1rem; 
    line-height: 1.5; 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.85rem;
}

.collection-meta { display: flex; gap: 0.5rem; margin-bottom: 1rem; font-size: 0.8rem; flex-wrap: wrap; }
.collection-meta span { background: var(--sage-green); padding: 0.25rem 0.75rem; border-radius: 20px; color: var(--primary-green); }

@media (max-width: 768px) {
    .collections-grid { grid-template-columns: 1fr; }
    .filter-controls { 
        flex-direction: row; 
        flex-wrap: nowrap; 
        justify-content: flex-start; 
        overflow-x: auto; 
        padding-bottom: 0.5rem;
        -ms-overflow-style: none; /* Menyembunyikan scrollbar di IE/Edge */
        scrollbar-width: none; /* Menyembunyikan scrollbar di Firefox */
    }
    .filter-controls::-webkit-scrollbar { display: none; /* Menyembunyikan scrollbar di Chrome/Safari */ }
    .filter-btn { width: auto; max-width: none; flex-shrink: 0; white-space: nowrap; }
}

.collections-page .category-card {
    border-color: var(--hl-utility);
}

.collections-page .category-card:hover {
    box-shadow: 0 20px 25px -8px rgba(0,0,0,0.15), 0 10px 10px -8px rgba(0,0,0,0.05);
}

/* --- Modal Styles --- */
.modal {
    display: flex;
    visibility: hidden;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.modal.show { visibility: visible; opacity: 1; }
.modal-content {
    background-color: var(--white);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.5s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-height: 90vh;
    overflow-y: auto;
}
.modal.show .modal-content { transform: translateY(0) scale(1); }
.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}
.close-modal:hover { color: var(--primary-green); }
.modal-image { display: flex; align-items: center; justify-content: center; height: 100%; }
.modal-image img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 15px; max-height: 450px; }
.modal-info { display: flex; flex-direction: column; justify-content: center; }
.modal-info h2 { color: var(--primary-green); margin-bottom: 0.5rem; }
.modal-info .subtitle { color: var(--text-light); margin-bottom: 1rem; font-style: italic; }
.modal-info .price { font-size: 1.5rem; color: var(--secondary-green); font-weight: bold; margin-bottom: 1.5rem; }
@media (max-width: 768px) {
    .modal-content { grid-template-columns: 1fr; padding: 1.5rem; }
    .modal-image img { max-height: 250px; }
}

/* --- Loading Indicator --- */
.loader-container {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-green);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Skeleton Loading --- */
.skeleton-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}
.skeleton-image {
    height: 250px;
    width: 100%;
}
.skeleton-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.skeleton-text {
    height: 1rem;
    border-radius: 4px;
    width: 100%;
}
.skeleton-text.title { height: 1.5rem; width: 70%; }
.skeleton-text.short { width: 40%; margin-bottom: 1rem; }
.skeleton-button {
    height: 2.5rem;
    border-radius: 50px;
    width: 100%;
    margin-top: 0.5rem;
}
.skeleton-animate {
    animation: shimmer 1.5s infinite linear;
    background: linear-gradient(to right, #f6f7f8 4%, #edeef1 25%, #f6f7f8 36%);
    background-size: 1000px 100%;
}
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* --- Back to Top Button --- */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 50px;
    height: 50px;
    background-color: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background-color: var(--secondary-green);
    transform: translateY(-3px);
}

/* Lightbox Base Styles */
.lightbox {
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    display: none; /* Sembunyi secara default */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #bbb;
}

/* Lightbox Navigation Buttons */
.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px 20px;
    margin-top: -50px;
    color: #ffffff;
    font-weight: bold;
    font-size: 32px;
    transition: 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

#lightboxCaption {
    margin: 15px auto;
    text-align: center;
    color: #ccc;
}

#lightboxCaption h3 {
    color: #fff;
    margin-bottom: 5px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: var(--primary-green);
    color: #ffffff;
}

/* ==========================================================================
   Kustomisasi Halaman Koleksi / Katalog Utama
   ========================================================================== */

/* Kustomisasi Scrollbar agar lebih elegan dan menyatu dengan tema alam */
::-webkit-scrollbar {
    width: 14px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background-color: #4a7c59; /* Warna hijau natural */
    border-radius: 10px;
    border: 3px solid #f1f5f9; /* Memberikan efek padding/floating pada thumb */
}
::-webkit-scrollbar-thumb:hover {
    background-color: #2d5a3d; /* Warna hijau gelap saat di-hover */
}

/* Badge Tingkat Perawatan pada Pojok Gambar Card */
.care-level-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(74, 124, 89, 0.95);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    backdrop-filter: blur(4px);
}
.care-level-badge i {
    margin-right: 4px;
}

/* Memaksa layout 4 kolom yang fix dan mencegah card melebar jika jumlah item sedikit */
#collectionsGrid.collections-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.5rem;
    align-items: start;
}

/* Layout Katalog dengan Sidebar Kiri */
.catalog-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
.catalog-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 100px;
}
.catalog-sidebar h3 {
    font-size: 1.25rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e2e8f0;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
}
.filter-container {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
/* Memastikan style filter-btn dari layout sebelumnya ditimpa khusus pada sidebar */
.catalog-sidebar .filter-btn {
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #475569;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 0.95rem;
}
.catalog-sidebar .filter-btn:hover {
    background-color: #f1f5f9;
    color: var(--primary-green);
    padding-left: 1.5rem;
}
.catalog-sidebar .filter-btn.active {
    background-color: rgba(168, 213, 186, 0.4);
    color: var(--primary-green);
    border-left: 4px solid var(--primary-green);
    font-weight: 600;
}
.catalog-main {
    flex: 1;
    min-width: 0;
}

/* Pencarian Khusus Katalog */
.search-wrapper {
    display: flex;
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #cbd5e1;
}
.search-wrapper input {
    width: 100%;
    padding: 14px 45px 14px 25px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
}
#clearSearchBtn {
    position: absolute;
    right: 140px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    display: none;
    padding: 5px;
    font-size: 1.1rem;
    transition: color 0.3s;
}
#clearSearchBtn:hover {
    color: #ef4444;
}
#searchSubmitBtn {
    border-radius: 0 30px 30px 0;
    padding: 10px 30px;
    margin: 0;
    min-width: 130px;
    font-weight: 600;
    border: none;
}

/* Responsif Layout Katalog */
@media (max-width: 1024px) {
    #collectionsGrid.collections-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 991px) {
    .catalog-layout { flex-direction: column; }
    .catalog-sidebar { width: 100%; position: static; box-shadow: none; border: 1px solid #e2e8f0; }
    .filter-container { flex-direction: row; flex-wrap: wrap; }
    .catalog-sidebar .filter-btn { width: auto; border-left: none; }
    .catalog-sidebar .filter-btn.active { border-left: none; background-color: var(--primary-green); color: white; }
    .catalog-sidebar .filter-btn:hover { padding-left: 1rem; }
}
@media (max-width: 768px) {
    #collectionsGrid.collections-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 480px) {
    #collectionsGrid.collections-grid {
        grid-template-columns: 1fr !important;
    }
    #searchSubmitBtn { min-width: 60px; padding: 10px 15px; }
    #searchSubmitBtn span { display: none; }
    #clearSearchBtn { right: 75px; }
}
