/* AgroPeak Frontend Theme CSS */
:root {
    --primary-dark-green: #2e7d32;
    --primary-leaf-green: #4caf50;
    --primary-orange: #ff9800;
    --primary-yellow: #ffc107;
    --bg-light-green: #f1f8e9;
    --bg-light-cream: #fdfbf7;
    --text-charcoal: #333333;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-charcoal);
    background-color: var(--bg-light-cream);
    overflow-x: hidden;
}

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

/* Colors */
.bg-dark-green { background-color: var(--primary-dark-green) !important; }
.bg-leaf-green { background-color: var(--primary-leaf-green) !important; }
.bg-orange { background-color: var(--primary-orange) !important; }
.bg-yellow { background-color: var(--primary-yellow) !important; }
.bg-light-green { background-color: var(--bg-light-green) !important; }

.text-dark-green { color: var(--primary-dark-green) !important; }
.text-leaf-green { color: var(--primary-leaf-green) !important; }
.text-orange { color: var(--primary-orange) !important; }
.text-yellow { color: var(--primary-yellow) !important; }

/* Buttons */
.btn-dark-green {
    background-color: var(--primary-dark-green);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}
.btn-dark-green:hover {
    background-color: var(--primary-leaf-green);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
}

.btn-outline-dark-green {
    border: 2px solid var(--primary-dark-green);
    color: var(--primary-dark-green);
    background: transparent;
    transition: all 0.3s ease;
}
.btn-outline-dark-green:hover {
    background-color: var(--primary-dark-green);
    color: #fff;
}

/* Navbar */
.navbar-nav .nav-link {
    position: relative;
    padding-bottom: 5px;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-leaf-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after {
    width: 80%;
}

.icon-hover {
    transition: color 0.3s ease;
}
.icon-hover:hover {
    color: var(--primary-leaf-green) !important;
}

/* Dropdown */
.dropdown-menu {
    border-radius: 10px;
    border-top: 3px solid var(--primary-leaf-green) !important;
}
.dropdown-item:hover {
    background-color: var(--bg-light-green);
    color: var(--primary-dark-green);
}

/* Hero Section */
.hero-section {
    position: relative;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 150px 0 100px 0;
    position: relative;
    width: 100%;
}

.hero-subtitle {
    color: var(--primary-yellow);
    font-weight: 600;
    letter-spacing: 2px;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: #fff;
}

/* Category Card */
.category-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: #fff;
}
.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.category-img-wrap {
    overflow: hidden;
    position: relative;
}
.category-card img {
    transition: transform 0.5s ease;
    height: 200px;
    object-fit: cover;
    width: 100%;
}
.category-card:hover img {
    transform: scale(1.1);
}
.category-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(46, 125, 50, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.category-card:hover .category-overlay {
    opacity: 1;
}

/* Product Card */
.product-card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.product-img {
    height: 220px;
    object-fit: contain;
    padding: 20px;
    background: var(--bg-light-green);
}
.product-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-title {
    font-size: 1.1rem;
    color: var(--text-charcoal);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 10px;
}
.product-title:hover {
    color: var(--primary-leaf-green);
}
.price-tag {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark-green);
}
.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}
.btn-add-cart {
    background: var(--primary-leaf-green);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    margin-top: auto;
    transition: all 0.3s;
}
.btn-add-cart:hover {
    background: var(--primary-dark-green);
    color: #fff;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-orange);
}

/* Footer Links */
.footer-links a:hover {
    color: var(--primary-yellow) !important;
    padding-left: 5px;
    transition: all 0.3s;
}
