/* ============================================================
   Field & Fleet Parts — Home Page + Global Layout Styles
   File: public/front-asset/css/field-fleet-home-exact.css
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: #f4f1ec; }
.site { background: #f4f1ec; width: 100%; }

/* ══════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════ */
.topbar {
    background: #1a1a1a;
    padding: 6px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar span { color: #ccc; font-size: 11px; }
.topbar a    { color: #e8a020; font-size: 11px; text-decoration: none; }
.topbar a:hover { color: #fff; }

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
    background: #27500A;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}
.logo-text { color: #fff; font-size: 17px; font-weight: 500; letter-spacing: 0.5px; display: block; }
.logo-sub  { color: #97C459; font-size: 10px; letter-spacing: 2px; display: block; margin-top: -2px; }

.nav-links { display: flex; gap: 0; }
.nav-links a {
    color: #fff;
    font-size: 12px;
    padding: 0 14px;
    height: 56px;
    display: flex;
    align-items: center;
    text-decoration: none;
    border-right: 0.5px solid rgba(255,255,255,0.15);
}
.nav-links a:hover  { background: #3B6D11; }
.nav-links a.active { background: #BA7517; }

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-right a {
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-right a:hover { color: #97C459; }

/* ══════════════════════════════════════════
   SEARCH BAR
══════════════════════════════════════════ */
.search-bar {
    background: #fff;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 8px;
    border-bottom: 2px solid #27500A;
}
.search-bar input {
    flex: 1;
    border: 0.5px solid #ccc;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
    min-height: 38px;
    font-family: 'Inter', sans-serif;
}
.search-bar select {
    border: 0.5px solid #ccc;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 12px;
    background: #fff;
    color: #444;
    min-height: 38px;
    font-family: 'Inter', sans-serif;
}
.search-bar button,
.search-bar .header-search-btn {
    background: #BA7517;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    min-height: 38px;
    font-family: 'Inter', sans-serif;
}
.search-bar button:hover,
.search-bar .header-search-btn:hover { background: #9d6114; }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
    background: #27500A;
    padding: 32px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.hero-left { flex: 1; }

.hero-badge {
    background: #BA7517;
    color: #fff;
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 2px;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 10px;
}
.hero-left h1 {
    color: #fff !important;
    font-size: 26px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
    font-family: 'Inter', sans-serif !important;
}
.hero-left p {
    color: #C0DD97;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 360px;
}

.hero-btns { display: flex; gap: 8px; flex-wrap: wrap; }

.btn-primary {
    background: #BA7517 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
}
.btn-primary:hover { background: #9d6114 !important; color: #fff !important; }

.btn-outline {
    background: transparent !important;
    color: #fff !important;
    border: 1.5px solid #97C459 !important;
    border-radius: 4px !important;
    padding: 9px 18px !important;
    font-size: 13px !important;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
}
.btn-outline:hover { background: rgba(151,196,89,0.15) !important; color: #fff !important; }

.hero-stats { display: flex; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num   { color: #97C459; font-size: 20px; font-weight: 500; }
.stat-label { color: #C0DD97; font-size: 10px; letter-spacing: 0.5px; }

/* Quick-shop panel */
.hero-right {
    background: #1a3a08;
    border-radius: 8px;
    padding: 16px;
    width: 220px;
    flex-shrink: 0;
}
.hero-right-title { color: #97C459; font-size: 11px; letter-spacing: 1px; margin-bottom: 10px; }

.quick-links { display: flex; flex-direction: column; gap: 6px; }
.quick-link {
    background: #27500A;
    border: 0.5px solid #3B6D11;
    border-radius: 4px;
    padding: 8px 10px;
    color: #fff !important;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-decoration: none !important;
}
.quick-link:hover { background: #3B6D11; }
.quick-link .badge {
    background: #BA7517 !important;
    color: #fff !important;
    font-size: 10px !important;
    padding: 1px 6px !important;
    border-radius: 2px !important;
    font-weight: 500 !important;
}

/* ══════════════════════════════════════════
   PROMO BAR
══════════════════════════════════════════ */
.promo-bar {
    background: #BA7517;
    padding: 10px 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}
.promo-item { color: #fff; font-size: 11px; display: flex; align-items: center; gap: 6px; }
.promo-item i { font-size: 15px; }

/* ══════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════ */
.section { padding: 20px; }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.section-title {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #27500A !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: 'Inter', sans-serif !important;
}
.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 18px;
    background: #BA7517;
    border-radius: 2px;
    flex-shrink: 0;
}
.see-all {
    color: #27500A;
    font-size: 12px;
    text-decoration: none;
    border: 0.5px solid #27500A;
    padding: 4px 12px;
    border-radius: 3px;
}
.see-all:hover { background: #27500A; color: #fff; }

/* ══════════════════════════════════════════
   CATEGORY TILES
══════════════════════════════════════════ */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }

.cat {
    background: #fff;
    border: 0.5px solid #ddd;
    border-radius: 8px;
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: border-color 0.15s;
}
.cat:hover { border-color: #27500A; }
.cat-icon  { font-size: 22px; margin-bottom: 6px; color: #27500A; }
.cat-name  { font-size: 11px; font-weight: 500; color: #333; line-height: 1.3; }
.cat-count { font-size: 10px; color: #888; margin-top: 2px; }

/* ══════════════════════════════════════════
   PRODUCT GRID
══════════════════════════════════════════ */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.product-card {
    background: #fff;
    border: 0.5px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color 0.15s;
}
.product-card:hover { border-color: #27500A; }

.product-img {
    background: #f0ede6;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img .prod-icon { font-size: 40px; color: #888; }

.product-label {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 2px;
    font-weight: 500;
}
.label-used  { background: #E6F1FB; color: #0C447C; }
.label-new   { background: #EAF3DE; color: #27500A; }
.label-reman { background: #FAEEDA; color: #633806; }

.product-body   { padding: 10px; }
.product-name   { font-size: 12px; font-weight: 500; color: #222; margin-bottom: 3px; line-height: 1.4; }
.product-meta   { font-size: 11px; color: #888; margin-bottom: 6px; }
.product-price  { font-size: 15px; font-weight: 500; color: #27500A; margin-bottom: 8px; }
.product-price span { font-size: 11px; color: #888; font-weight: 400; }

.product-footer { display: flex; gap: 6px; }
.btn-cart {
    background: #27500A;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 6px 10px;
    font-size: 11px;
    cursor: pointer;
    flex: 1;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s;
}
.btn-cart:hover { background: #1a3a08; }
.btn-wish {
    background: #fff;
    border: 0.5px solid #ddd;
    border-radius: 3px;
    padding: 6px 8px;
    font-size: 11px;
    cursor: pointer;
    color: #888;
    transition: border-color 0.15s, color 0.15s;
}
.btn-wish:hover { border-color: #BA7517; color: #BA7517; }

/* ══════════════════════════════════════════
   BRANDS
══════════════════════════════════════════ */
.brands { display: flex; gap: 10px; flex-wrap: wrap; }

.brand-pill {
    background: #fff;
    border: 0.5px solid #ddd;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 12px;
    color: #444;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: border-color 0.15s, color 0.15s;
}
.brand-pill:hover { border-color: #27500A; color: #27500A; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer,
footer.ff-footer {
    background: #1a1a1a !important;
    color: #aaa !important;
    padding: 0 !important;
    margin-top: 10px !important;
}

/* 4-column grid: wide brand col + 3 link cols */
footer .footer,
.footer {
    background: #1a1a1a !important;
    padding: 40px 40px 32px !important;
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr !important;
    gap: 48px !important;
    margin-top: 0 !important;
    max-width: 100% !important;
}

/* Brand / About column */
.footer-brand { min-width: 0; }

.footer-brand-logo { display: flex; flex-direction: column; margin-bottom: 14px; }

.footer-brand-name {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.2 !important;
}
.footer-brand-sub {
    color: #97C459 !important;
    font-size: 9px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    margin-top: 3px !important;
    font-family: 'Inter', sans-serif !important;
}

.footer-brand-about {
    color: #888 !important;
    font-size: 11px !important;
    line-height: 1.8 !important;
    margin-bottom: 14px !important;
    font-weight: 400 !important;
    font-family: 'Inter', sans-serif !important;
    max-width: 320px;
}

.footer-brand-divider {
    border: none !important;
    border-top: 1px solid #2a2a2a !important;
    margin: 12px 0 !important;
}

.footer-brand-contact {
    color: #888 !important;
    font-size: 11px !important;
    line-height: 2 !important;
    font-family: 'Inter', sans-serif !important;
}
.footer-brand-contact a {
    color: #97C459 !important;
    text-decoration: none !important;
    font-size: 11px !important;
}
.footer-brand-contact a:hover { color: #fff !important; }

/* Link column headings */
footer .footer-col h4,
.footer .footer-col h4,
.footer-col h4 {
    color: #97C459 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    margin-bottom: 14px !important;
    font-family: 'Inter', sans-serif !important;
}

/* Link column links */
footer .footer-col a,
.footer .footer-col a,
.footer-col a {
    display: block !important;
    color: #aaa !important;
    font-size: 11px !important;
    margin-bottom: 7px !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    font-family: 'Inter', sans-serif !important;
    transition: color 0.15s !important;
}
footer .footer-col a:hover,
.footer .footer-col a:hover,
.footer-col a:hover { color: #fff !important; }

/* Footer bottom bar */
footer .footer-bottom,
.footer-bottom {
    background: #111 !important;
    padding: 12px 40px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px solid #222 !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}
footer .footer-bottom span,
.footer-bottom span {
    color: #555 !important;
    font-size: 11px !important;
    font-family: 'Inter', sans-serif !important;
}

/* ══════════════════════════════════════════
   SCROLL TO TOP
══════════════════════════════════════════ */
.scroll-top {
    position: fixed;
    z-index: 99;
    color: #fff;
    bottom: 30px;
    right: 30px;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: #BA7517;
    text-align: center;
    line-height: 36px;
    cursor: pointer;
    font-size: 15px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.scroll-top:hover { background: #9d6114; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1100px) {
    .cats     { grid-template-columns: repeat(3, 1fr); }
    .products { grid-template-columns: repeat(2, 1fr); }
    footer .footer, .footer {
        grid-template-columns: 1fr 1fr !important;
        gap: 28px !important;
        padding: 28px 20px !important;
    }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 991px) {
    .navbar { flex-wrap: wrap; height: auto; padding: 10px 20px; gap: 8px; }
    .nav-links { width: 100%; justify-content: center; flex-wrap: wrap; }
    .hero { flex-direction: column; }
    .hero-right { width: 100%; }
    .search-bar { flex-wrap: wrap; }
    .search-bar button,
    .search-bar .header-search-btn { width: 100%; }
    .promo-bar { justify-content: flex-start; gap: 12px; }
}

@media (max-width: 600px) {
    .cats     { grid-template-columns: repeat(2, 1fr); }
    .products { grid-template-columns: 1fr; }
    .hero-stats { flex-wrap: wrap; gap: 12px; }
    .promo-bar  { flex-direction: column; align-items: flex-start; gap: 8px; }
    .nav-links a {
        border-right: 0;
        border-bottom: 0.5px solid rgba(255,255,255,0.15);
        width: 100%;
        text-align: center;
        height: auto;
        padding: 10px 14px;
    }
    footer .footer, .footer {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding: 24px 16px !important;
    }
    .footer-brand { grid-column: span 1; }
    footer .footer-bottom, .footer-bottom {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 12px 16px !important;
        gap: 6px !important;
    }
}