:root {
    --bs-primary: #09371a;
    --bs-primary-rgb: 9, 55, 26;
    --bs-body-font-family: 'Raleway', sans-serif;
    --bs-body-color: #444;
    --bs-body-bg: #fdfdfd;
    --bs-link-color: #09371a;
    --bs-link-hover-color: #062813;
}

/* Sticky Footer */
html, body {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
}
main {
    flex-grow: 1;
}

/* --- General Style & Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    color: var(--bs-primary);
}

.price {
    font-weight: 500;
    color: var(--bs-primary);
}

/* --- Navbar --- */
.main-header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.navbar {
    --bs-navbar-padding-y: 1rem;
}
.navbar-brand img {
    max-height: 40px;
}
.nav-link {
    font-weight: 400;
}
.navbar .nav-link i, #search-icon i {
    color: var(--bs-primary);
}
.dropdown-menu {
    border-radius: 0;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
#search-bar-container {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}
.btn-outline-success {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
}
.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: #062813;
    --bs-btn-hover-border-color: #062813;
}


/* Show dropdown on hover */
@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}
.dropdown-toggle::after {
    display: none;
}

/* --- Hero Section --- */
.hero-image {
    height: 70vh;
    background-size: cover;
    background-position: center;
}

/* --- About Us Section --- */
.about-section h2 {
    font-weight: 300;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* --- Scrolling Product Carousel --- */
.scrolling-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
}
.scrolling-wrapper .card {
    flex: 0 0 auto;
    width: 280px;
    margin-right: 15px;
    border: none;
}

/* --- Product Grid --- */
.product-grid .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* --- Product Card --- */
.product-card {
    border: 1px solid #f0f0f0;
    transition: box-shadow .3s ease-in-out;
    text-align: center;
    padding: 1rem;
}
.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}
.product-card h3 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--bs-body-color);
}

.product-card .card-img-top {
    height: 250px;
    object-fit: cover;
}
.product-card .card-title {
    font-weight: 400;
    color: var(--bs-body-color);
}

/* --- Product Detail Page --- */
.product-info .price {
    color: var(--bs-primary);
}
.accordion-button:focus {
    box-shadow: none;
}
.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: var(--bs-body-color);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--bs-primary);
    color: #f8f9fa;
}
.main-footer a {
    color: #f8f9fa;
}
.main-footer h5 {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    color: #fff;
}
.main-footer a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}
.main-footer .border-top {
    border-color: #444 !important;
}

b, strong {
    color: var(--bs-primary);
}

.btn-paypal {
    background-color: var(--bs-primary);
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-paypal:hover {
    background-color: #062813;
}

/* New Product List Item Style */
.product-list-item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
}
.quantity-selector .form-control {
    width: 50px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
}
.quantity-selector .btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.quantity-selector .btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Cart Badge Styling */
.nav-link .badge {
    line-height: 1;
    font-family: monospace; /* Another standard font for distinction */
}


/* Reviews Section */
.reviews-section .card {
    border-radius: 0.5rem;
}

.reviews-section .review-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
}

.reviews-section .review-text {
    font-style: italic;
    font-size: 0.95rem;
    color: #555;
}

/* Star rating color - assuming Bootstrap's text-warning is yellow */
.reviews-section .bi-star-fill,
.reviews-section .bi-star-half,
.reviews-section .bi-star {
    color: #ffc107; /* Bootstrap's yellow for warning */
}

/* Section Divider */
.section-divider {
    border-top: 1px solid var(--bs-primary);
    width: 10%; /* Make it shorter than full width for elegance */
    margin-left: auto;
    margin-right: auto;
    opacity: 0.3; /* Subtle */
}

/* Custom light background color for sections */
.bg-custom-light {
    background-color: #f0f7f2; /* A slightly darker very light green for better contrast */
}



/* Wrapper for key points section for full-width background and shadow */

.key-points-section-wrapper {
    margin-top: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05); /* Subtle shadow */
}



/* Product Added Modal Styling - Corrected Buttons */

#productAddedModal .modal-footer .btn-secondary,

#productAddedModal .modal-footer .btn-primary {

    background-color: #fff;

    color: var(--bs-primary);

    border-color: var(--bs-primary);

}



#productAddedModal .modal-footer .btn-secondary:hover,

#productAddedModal .modal-footer .btn-primary:hover {

    background-color: var(--bs-primary);

    color: #fff;

    border-color: var(--bs-primary);

}

/* About Page Parallax Image */
.about-parallax-img {
    min-height: 400px; /* Adjust height as needed */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-bottom: 3rem; /* Add some space before the content */
}

/* Ensure parallax works on smaller screens without fixed attachment */
@media (max-width: 768px) {
    .about-parallax-img {
        background-attachment: scroll; /* Disable fixed attachment for mobile */
    }
}

/* Dropdown menu item active/hover state override */
.dropdown-item.active, .dropdown-item:active,
.dropdown-item:hover, .dropdown-item:focus {
    color: var(--bs-body-bg); /* White/light text */
    background-color: var(--bs-primary); /* Dark green background */
}