/* Custom CSS for Green Theme */
:root {
    --theme-primary: #1b683a;
    --theme-secondary: #f4pf1e3;
    --theme-text: #333333;
    --theme-hover: #14502b;
}

body {
    background-color: #f2f2f2;
    color: var(--theme-text);
}

.btn-primary {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #fff;
    border-radius: 4px;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background-color: var(--theme-hover) !important;
    border-color: var(--theme-hover) !important;
}

.header-top {
    background-color: var(--theme-primary) !important;
    color: #ffffff !important;
}

.header-top a,
.header-top span,
.header-top i,
.header-top p {
    color: #ffffff !important;
}

.header-top a:hover {
    color: #e2e2e2 !important;
}

.header-top a.dropdown-item {
  color: #000 !important;
}

/* Main Navigation */
#menu {
    background-color: #ffffff;
}

#menu>ul>li>a {
    color: var(--theme-text);
    font-weight: 600;
}

#menu>ul>li>a:hover {
    color: var(--theme-primary);
}


/* Menu links: dark text, green on hover */
.main-menu__tree__link {
    color: #000 !important;
    font-weight: 700;
}

.main-menu__tree__link:hover,
.main-menu__tree__link.active {
    color: var(--theme-primary) !important;
}


/* Product Blocks */
.thumbnail-container {
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
    background: #fff;
}

.thumbnail-container:hover {
    box-shadow: 0 4px 15px rgba(27, 104, 58, 0.1);
    border-color: var(--theme-primary);
}

.product-price-and-shipping .price {
    color: var(--theme-primary);
    font-weight: bold;
}

/* Footer Section */
#footer {
    background-color: #1b683a;
    color: #ffffff;
    border-top: 4px solid var(--theme-primary);
}

.footer .footer__main {
  background: #1b683a;
}


#footer a {
    color: #ffffff;
}

#footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}


#footer .email-subscription .email-subscription__content__infos {
  color: #000;
}


/* Badges */
.product-flags .product-flag {
    background-color: var(--theme-primary);
}

/* Breadcrumbs */
.breadcrumb {
    background: transparent;
}

.breadcrumb li a {
    color: var(--theme-primary);
}

/* Additional overrides for green theme */
.product-miniature .product-title a,
.product-miniature__title a {
    color: var(--theme-primary);
}

.product-flag.new,
.product-flag.discount,
.product-flags .product-flag {
    background-color: var(--theme-primary) !important;
    color: white;
}

.btn-outline-primary,
.all-product-link.btn-outline-primary {
    color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.btn-outline-primary:hover,
.all-product-link.btn-outline-primary:hover {
    background-color: var(--theme-primary);
    color: white;
}


.js-search-input {
    border: none !important;
    /* Managed by form wrapper now */
}

.btn.decrement,
.btn.increment {
    background-color: #f1f1f1;
    color: var(--theme-primary);
    border: 1px solid #ddd;
}

.btn.decrement:hover,
.btn.increment:hover {
    background-color: var(--theme-primary);
    color: white;
}

/* Base text color adjusting for modern look */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--theme-primary);
}

/* Home Categories Block */
.home-categories-block {
    padding: 10px 0;
    margin: 10px 0;
}

.home-categories-block .section-title {
    margin-bottom: 40px;
    text-align: center;
}

.home-categories-block .section-title h2 {
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
    font-size: 32px;
}

.home-categories-block .section-title p {
    color: #777;
    font-size: 16px;
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.category-item {
    background: #fff;
    border-radius: 8px;
    padding: 30px 15px;
    text-align: center;
    flex: 1;
    min-width: 160px;
    max-width: 200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Slight shadow to show cards */
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(27, 104, 58, 0.15);
    border-color: var(--theme-primary);
}

.category-item a {
    text-decoration: none;
    display: block;
}

.category-item .cat-icon {
    width: 70px;
    height: 70px;
    background-color: var(--theme-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px auto;
}

.category-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.category-item .cat-count {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
}

.category-item .cat-explore {
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-primary);
}

.category-item .cat-explore i {
    margin-left: 5px;
    font-size: 12px;
}

@media (min-width: 768px) {
    .ratio-homeSlider {
        --bs-aspect-ratio: 76vh;
    }
}

/* How It Works Block */
.how-it-works-block {
    padding: 10px 0;
    margin: 10px 0;
    background-color: #faf9f6;
}

.how-it-works-block .section-title {
    margin-bottom: 50px;
    text-align: center;
}

.how-it-works-block .section-title h2 {
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
    font-size: 32px;
}

.how-it-works-block .section-title p {
    color: #777;
    font-size: 16px;
}

.hiw-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.hiw-card {
    flex: 1;
    min-width: 320px;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.hiw-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.hiw-card-header i {
    font-size: 28px;
    color: var(--theme-primary);
    margin-right: 15px;
}

.hiw-card-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--theme-primary);
    margin: 0;
}

/* Steps list */
.hiw-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.hiw-step {
    display: flex;
    align-items: flex-start;
}

.hiw-step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background-color: var(--theme-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-right: 20px;
    margin-top: 2px;
}

.hiw-step-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.hiw-step-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Main navbar: WHITE background, dark text */
#header .header-bottom {
    background-color: #ffffff !important;
    border-bottom: 2px solid #f8f8f8;
}

#header .header-bottom a,
#header .header-bottom span:not(.header-block__badge) {
    color: var(--theme-text) !important;
}

#header .logo img {
    filter: none;
}

/* Hero Section */
.agri-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.45) 0%, rgba(27, 94, 50, 0.25) 50%, rgba(13, 61, 31, 0.65) 100%),
        url('../../../../img/cms/hero-bg.png') center center / cover no-repeat;
    padding-top: 40px;
    padding-bottom: 40px;
}

.agri-hero .hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.agri-hero .container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.agri-hero .hero-content {
    text-align: center;
    color: #ffffff;
    padding: 80px 0 60px;
}

.agri-hero .hero-title {
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    line-height: 1.2;
}

.agri-hero .hero-subtitle {
    font-size: clamp(15px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.9);
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.agri-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}

.agri-btn-primary {
    background-color: var(--theme-primary);
    color: #ffffff !important;
    border: 2px solid var(--theme-primary);
}

.agri-btn-primary:hover {
    background-color: var(--theme-hover);
    border-color: var(--theme-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.agri-btn-outline {
        background-color: #ffffff;
    color: var(--theme-primary) !important;

    border: 2px solid #ffffff;
}

.agri-btn-outline:hover {
     background-color: transparent;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.agri-btn-lg {
    padding: 16px 34px;
    font-size: 16px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    color: #ffffff;
}

.hero-stat .stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 4px;
}

.hero-stat .stat-label {
    font-size: 14px;
    opacity: 0.85;
}