/* assets/css/style.css */
/* Premium Agricultural Theme Styling for Marketplace Kelompok Tani */

:root {
    --primary-color: #166534;       /* Deep Forest Green */
    --primary-light: #15803d;      /* Emerald Forest Green */
    --secondary-color: #22c55e;    /* Vibrant Green */
    --accent-color: #b45309;       /* Warm Earthy Clay/Amber */
    --accent-light: #f59e0b;       /* Soft Amber Accent */
    --dark-color: #14532d;         /* Very Dark Green / Slate */
    --light-color: #fcfbf7;        /* Clean Creamy White */
    --gray-color: #64748b;         /* Cool Gray */
    --border-color: #e2e8f0;       /* Slate Border Gray */
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 2px 4px rgba(22, 101, 52, 0.02);
    --shadow-md: 0 6px 18px rgba(22, 101, 52, 0.04);
    --shadow-lg: 0 16px 40px rgba(22, 101, 52, 0.08);
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #faf9f5;
    color: #1e293b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #faf9f5;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Premium Header and Navigation */
.navbar-custom {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(22, 101, 52, 0.08);
    transition: var(--transition-smooth);
}
.navbar-brand-custom {
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
}
.navbar-brand-custom span {
    color: var(--accent-color);
}
.nav-link-custom {
    color: var(--gray-color);
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 8px 18px !important;
    border-radius: var(--radius-sm);
}
.nav-link-custom:hover, .nav-link-custom.active {
    color: var(--primary-color);
    background-color: rgba(34, 197, 94, 0.06);
}

/* Premium Buttons */
.btn-premium {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 30px;
    transition: var(--transition-smooth);
    border: none;
}
.btn-premium:hover {
    background-color: var(--primary-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.2);
}
.btn-premium-accent {
    background-color: var(--accent-color);
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 30px;
    transition: var(--transition-smooth);
    border: none;
}
.btn-premium-accent:hover {
    background-color: #92400e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.2);
}
.btn-outline-premium {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 8px 22px;
    border-radius: 30px;
    transition: var(--transition-smooth);
    background: transparent;
}
.btn-outline-premium:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Carousel / Hero Section */
.hero-carousel {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.carousel-item {
    height: 480px;
    background-color: var(--dark-color);
}
.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}
.carousel-caption-custom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 8%;
    right: 8%;
    color: white;
    text-align: left;
    max-width: 600px;
}
.carousel-caption-custom h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.carousel-caption-custom p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Category grid cards */
.category-card {
    background: white;
    border: 1px solid rgba(22, 101, 52, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    box-shadow: var(--shadow-sm);
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
    color: var(--primary-color);
}
.category-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    background-color: rgba(34, 197, 94, 0.08);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
}
.category-card:hover .category-icon {
    background-color: var(--primary-color);
    color: white;
}

/* Product Cards */
.product-card {
    background: white;
    border: 1px solid rgba(22, 101, 52, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(34, 197, 94, 0.2);
}
.product-image-wrapper {
    position: relative;
    padding-top: 80%; /* 5:4 aspect ratio */
    background-color: #f8fafc;
    overflow: hidden;
}
.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.product-card:hover .product-image {
    transform: scale(1.06);
}
.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.06);
}
.product-badge-featured {
    background-color: var(--accent-color);
}
.product-badge-outofstock {
    background-color: #64748b;
}
.product-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
    color: #1e293b;
    text-decoration: none;
    transition: var(--transition-smooth);
}
.product-title:hover {
    color: var(--primary-color);
}
.product-farmer {
    font-size: 0.82rem;
    color: var(--gray-color);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}
.product-farmer i {
    color: var(--primary-color);
}
.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-top: auto;
}
.product-footer {
    border-top: 1px solid #f1f5f9;
    padding: 12px 20px;
    background-color: #fafbfc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gray-color);
}

/* Detail Page Custom styles */
.detail-card {
    background: white;
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.detail-image-wrapper {
    height: 100%;
    min-height: 400px;
    background-color: #f8fafc;
    position: relative;
}
.detail-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.btn-whatsapp-buy {
    background-color: #25d366;
    color: white;
    font-weight: 700;
    border-radius: 30px;
    padding: 14px 28px;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}
.btn-whatsapp-buy:hover {
    background-color: #20ba5a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.25);
}
.btn-whatsapp-ask {
    background-color: #075e54;
    color: white;
    font-weight: 600;
    border-radius: 30px;
    padding: 12px 24px;
    transition: var(--transition-smooth);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}
.btn-whatsapp-ask:hover {
    background-color: #054c44;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 94, 84, 0.2);
}

/* Sidebar & Dashboard */
.sidebar {
    background-color: white;
    border-right: 1px solid rgba(22, 101, 52, 0.08);
    min-height: calc(100vh - 56px);
    padding: 24px 16px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-color);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 6px;
    transition: var(--transition-smooth);
}
.sidebar-link:hover, .sidebar-link.active {
    color: var(--primary-color);
    background-color: rgba(34, 197, 94, 0.06);
}
.dashboard-card {
    background: white;
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}
.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Footer Section */
.footer-section {
    background-color: #14532d;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px 0;
    border-top: 5px solid var(--accent-color);
}
.footer-section h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 24px;
}
.footer-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: block;
    margin-bottom: 12px;
}
.footer-link:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* Micro-animations */
.animate-fade {
    animation: fadeIn 0.4s ease-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
