/* FarmerKart home merchandising. Loaded after global styles to keep product cards contained. */
section.fk-category-slider-section {
    display: block !important;
    width: 100% !important;
    padding: 24px 0 !important;
    background: #f8faf7 !important;
}
section.fk-category-slider-section > .container {
    width: min(1440px, calc(100% - 48px)) !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
}
.fk-category-slider-section .section-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin: 0 0 16px !important;
    text-align: left !important;
}
.fk-category-slider-section .section-header h2 { margin: 0 !important; font-size: 27px !important; }
.fk-category-slider-section .section-header > a { color: #287a3b !important; font-weight: 700 !important; }
.fk-category-slider-section .category-slider {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    overflow: visible !important;
    padding: 0 !important;
}
.fk-category-slider-section .category-item {
    display: flex !important;
    min-width: 0 !important;
    min-height: 142px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    padding: 12px !important;
    border: 1px solid #e6eee4 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 4px 14px rgba(32,59,38,.06) !important;
    color: #293b2e !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-align: center !important;
}
.fk-category-slider-section .category-item img {
    display: block !important;
    width: 100% !important;
    max-width: 130px !important;
    height: 82px !important;
    object-fit: contain !important;
    object-position: center !important;
}
.fk-category-slider-section .category-item:hover { transform: translateY(-2px); border-color: #b9d6b7 !important; }
section.fk-home-products {
    display: block !important;
    width: 100% !important;
    padding: 34px 0 !important;
    background: #fff !important;
}
section.fk-home-products:nth-of-type(even) { background: #fbfdf9 !important; }
section.fk-home-products > .container {
    width: min(1440px, calc(100% - 48px)) !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
}
.fk-home-section-heading {
    display: flex !important;
    align-items: end !important;
    justify-content: space-between !important;
    gap: 18px !important;
    margin: 0 0 20px !important;
}
.fk-home-section-heading h2 {
    margin: 0 !important;
    color: #203b26 !important;
    font-size: clamp(23px, 3vw, 32px) !important;
    line-height: 1.2 !important;
}
.fk-home-section-heading p { margin: 7px 0 0 !important; color: #68736a !important; }
.fk-home-section-heading > a { flex: 0 0 auto !important; color: #287a3b !important; font-weight: 700 !important; }
.fk-home-product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 18px !important;
    width: 100% !important;
}
.fk-home-product-card {
    display: flex !important;
    min-width: 0 !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border: 1px solid #e8eee7 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 5px 18px rgba(26,57,31,.07) !important;
}
.fk-home-product-image {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 190px !important;
    overflow: hidden !important;
    background: #f7f9f5 !important;
}
.fk-home-product-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}
.fk-home-discount-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    padding: 5px 8px !important;
    border-radius: 5px !important;
    background: #c9362b !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}
.fk-home-product-info {
    display: flex !important;
    min-height: 170px !important;
    flex: 1 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 13px !important;
}
.fk-home-product-info h3 { margin: 0 0 7px !important; font-size: 16px !important; line-height: 1.35 !important; }
.fk-home-product-info h3 a { color: #26352a !important; }
.fk-home-unit, .fk-home-farmer { color: #657065 !important; font-size: 12px !important; }
.fk-home-price { margin-top: 7px !important; color: #24783a !important; font-size: 19px !important; font-weight: 800 !important; }
.fk-home-price del { margin-left: 5px !important; color: #8b918b !important; font-size: 12px !important; font-weight: 500 !important; }
.fk-home-free-delivery { margin-top: 6px !important; color: #20814a !important; font-size: 12px !important; font-weight: 700 !important; }
.fk-home-farmer { margin-top: 7px !important; }
.fk-home-view-product {
    display: block !important;
    width: 100% !important;
    margin-top: auto !important;
    padding: 9px 10px !important;
    border-radius: 7px !important;
    background: #2e7d32 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: center !important;
}
.fk-home-product-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: auto !important;
    padding-top: 10px !important;
}
.fk-home-product-actions form { display: flex !important; min-width: 0 !important; margin: 0 !important; }
.fk-home-product-actions .fk-home-view-product,
.fk-home-product-actions .fk-home-buy-now {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 8px 5px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: #2e7d32 !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
}
.fk-home-product-actions .fk-home-buy-now { background: #e88a16 !important; }
.fk-home-product-actions .fk-home-buy-now:disabled { background: #9aa39b !important; cursor: not-allowed !important; }
.fk-home-empty { color: #68736a !important; }
@media (max-width: 900px) {
    .fk-home-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 650px) {
    section.fk-home-products { padding: 25px 0 !important; }
    section.fk-home-products > .container { width: calc(100% - 24px) !important; }
    section.fk-category-slider-section { padding: 20px 0 !important; }
    section.fk-category-slider-section > .container { width: calc(100% - 24px) !important; }
    .fk-category-slider-section .section-header { margin-bottom: 12px !important; }
    .fk-category-slider-section .section-header h2 { font-size: 23px !important; }
    .fk-category-slider-section .category-slider { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 9px !important; }
    .fk-category-slider-section .category-item { min-height: 120px !important; padding: 9px !important; font-size: 12px !important; }
    .fk-category-slider-section .category-item img { max-width: 110px !important; height: 72px !important; }
    .fk-home-section-heading { align-items: flex-start !important; margin-bottom: 14px !important; }
    .fk-home-section-heading p { font-size: 13px !important; }
    .fk-home-section-heading > a { padding-top: 4px !important; font-size: 13px !important; }
    .fk-home-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
    .fk-home-product-image { height: 140px !important; }
    .fk-home-product-info { min-height: 155px !important; padding: 9px !important; }
    .fk-home-product-info h3 { font-size: 13px !important; }
    .fk-home-price { font-size: 16px !important; }
    .fk-home-price del { font-size: 10px !important; }
    .fk-home-product-actions { gap: 6px !important; }
    .fk-home-product-actions .fk-home-view-product,
    .fk-home-product-actions .fk-home-buy-now { min-height: 36px !important; padding: 7px 3px !important; font-size: 11px !important; }
}
