:root {
    --primary-color: #699e41;
    --secondary-color: #fdb735;
    --text-color-light: #f8f9fa; /* Light grey for text on dark backgrounds */
    --text-color-dark: #343a40; /* Dark grey for text on light backgrounds */
}


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

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}


/* Font Families */
.kanit-font {
    font-family: 'Kanit', sans-serif !important;
}

.bai-jamjuree-font {
    font-family: 'Bai Jamjuree', sans-serif !important;
}

/* General Body Styling */
body {
    font-family: 'Bai Jamjuree', sans-serif;
    color: var(--text-color-dark);
    scroll-behavior: smooth; /* Smooth scroll for anchor links */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Kanit', sans-serif;
    color: var(--primary-color); /* Apply primary color to headings */
}

/* Navbar Customization */
.navbar-brand, .nav-link {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.navbar-brand:hover, .nav-link:hover {
    color: var(--secondary-color) !important;
}

.navbar-toggler {
    border-color: var(--primary-color);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb%28105, 158, 65%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Offcanvas Menu (Mobile Sidebar) */
.offcanvas {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.offcanvas .nav-link {
    color: var(--text-color-light) !important;
    padding: 0.75rem 1.5rem;
}

.offcanvas .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color) !important;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.offcanvas-title {
    color: var(--text-color-light);
}
.offcanvas .btn-close {
    filter: invert(1); /* Makes close button white */
}


/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 56px; /* Adjust for fixed header height */
    overflow: hidden;
}

#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}

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

#hero h1 {
    color: var(--text-color-light);
    font-weight: 700;
}

#hero p.lead {
    color: var(--text-color-light);
    font-weight: 300;
}

/* Section Padding */
section {
    padding: 60px 0;
}

/* About Section */
#about ul li {
    margin-bottom: 10px;
}

#about img {
    max-height: 400px; /* Limit image height */
    object-fit: cover;
}

/* Product Section */
.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body .price {
    font-weight: 700;
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Contact Section Icons */
#contact .card {
    border: 1px solid rgba(0,0,0,0.125);
}

#contact .card i {
    color: var(--primary-color);
}

/* Custom Button Styling (for primary and secondary colors) */
.btn-warning { /* Used for the Hero button */
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-color-dark);
}

.btn-warning:hover {
    background-color: darken(var(--secondary-color), 10%); /* Example, adjust as needed */
    border-color: darken(var(--secondary-color), 10%);
}

.btn-success { /* Used for product buttons */
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-success:hover {
    background-color: darken(var(--primary-color), 10%); /* Example, adjust as needed */
    border-color: darken(var(--primary-color), 10%);
}

/* Footer */
footer {
    background-color: #343a40 !important;
    color: #f8f9fa !important;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        display: none !important; /* Hide standard nav on mobile */
    }
}