/*
Theme Name: BidFind
Description: Auction affiliate listings site. Requires BidFind Manager plugin.
Version: 2.0.0
Author: Your Agency
Text Domain: bidfind
*/

/* ── RESET ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --green:  #1D9E75;
    --gdark:  #0F6E56;
    --dark:   #04342C;
    --lt:     #E1F5EE;
    --text:   #111827;
    --muted:  #6b7280;
    --border: #e5e7eb;
    --bg:     #f9fafb;
    --white:  #ffffff;
    --r:      10px;
    --rsm:    6px;
    --font:   -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
}
html { font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: var(--font); }
p { margin: 0; }

/* ── HEADER ───────────────────────────────────────────────────── */
.bf-header {
    position: sticky; top: 0; z-index: 200;
    background: var(--white); border-bottom: 1px solid var(--border);
    height: 62px; display: flex; align-items: center;
}
.bf-header-inner {
    max-width: 1160px; margin: 0 auto; padding: 0 1.5rem;
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.bf-logo { font-size: 19px; font-weight: 800; letter-spacing: -.5px; color: var(--dark); flex-shrink: 0; }
.bf-logo span { color: var(--green); }
.bf-nav { display: flex; align-items: center; gap: 1.75rem; }
.bf-nav a { font-size: 14px; color: var(--muted); font-weight: 500; transition: color .15s; }
.bf-nav a:hover, .bf-nav a.current { color: var(--text); }
.bf-header-cta {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--green); color: #fff !important;
    padding: 9px 18px; border-radius: var(--rsm);
    font-size: 14px; font-weight: 600; border: none;
    transition: background .15s; white-space: nowrap;
}
.bf-header-cta:hover { background: var(--gdark); }
.bf-burger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text); }

/* ── BUTTONS ──────────────────────────────────────────────────── */
.bf-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: var(--rsm); font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: background .15s; }
.bf-btn-primary { background: var(--green); color: #fff; }
.bf-btn-primary:hover { background: var(--gdark); }
.bf-btn-outline { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.bf-btn-outline:hover { background: rgba(255,255,255,.15); }

/* ── HERO ─────────────────────────────────────────────────────── */
.bf-hero { background: var(--dark); padding: 5.5rem 1.5rem 4.5rem; text-align: center; }
.bf-eyebrow { display: inline-block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #5DCAA5; font-weight: 700; background: rgba(93,202,165,.12); padding: 4px 12px; border-radius: 100px; margin-bottom: 1.25rem; }
.bf-hero h1 { font-size: clamp(30px, 5.5vw, 52px); font-weight: 800; line-height: 1.1; color: #fff; margin-bottom: 1.25rem; letter-spacing: -.5px; }
.bf-hero h1 em { font-style: normal; color: #5DCAA5; }
.bf-hero-sub { font-size: 17px; color: rgba(255,255,255,.6); max-width: 540px; margin: 0 auto 2.25rem; line-height: 1.7; }
.bf-hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.bf-hero-btns .bf-btn { font-size: 15px; padding: 12px 26px; }

/* ── STATS BAR ────────────────────────────────────────────────── */
.bf-stats-bar { display: flex; justify-content: center; background: var(--white); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.bf-stat { padding: 1.5rem 3rem; text-align: center; border-right: 1px solid var(--border); }
.bf-stat:last-child { border-right: none; }
.bf-stat-n { display: block; font-size: 30px; font-weight: 800; color: var(--dark); line-height: 1; }
.bf-stat-l { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── CATEGORY BAR ─────────────────────────────────────────────── */
.bf-cats { display: flex; gap: 8px; flex-wrap: wrap; padding: 1.25rem 1.5rem; background: var(--white); border-bottom: 1px solid var(--border); }
.bf-cat { padding: 7px 15px; border: 1px solid var(--border); border-radius: 100px; font-size: 13px; font-weight: 500; background: var(--white); color: var(--muted); cursor: pointer; transition: all .15s; text-decoration: none; }
.bf-cat:hover, .bf-cat.active { background: var(--dark); color: #fff; border-color: var(--dark); }

/* ── SECTION ──────────────────────────────────────────────────── */
.bf-section { padding: 3.5rem 0; }
.bf-inner { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.bf-sh { margin-bottom: 2rem; }
.bf-sh h2 { font-size: 26px; font-weight: 800; margin-bottom: .35rem; letter-spacing: -.3px; }
.bf-sh p  { font-size: 15px; color: var(--muted); }

/* ── GRID & CARDS ─────────────────────────────────────────────── */
.bf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 18px; }
.bf-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; display: block; }
.bf-card:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.09); border-color: #a7d7c5; }
.bf-card-img { width: 100%; height: 170px; overflow: hidden; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.bf-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.bf-card:hover .bf-card-img img { transform: scale(1.04); }
.bf-card-no-img { font-size: 3rem; }
.bf-card-body { padding: 14px 16px 18px; }
.bf-card-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--green); font-weight: 700; margin-bottom: 5px; }
.bf-card-title { font-size: 15px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.bf-card-price { font-size: 20px; font-weight: 800; color: var(--dark); }
.bf-card-price small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 3px; }
.bf-card-link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--green); }
.bf-empty { grid-column: 1/-1; text-align: center; padding: 3.5rem 0; color: var(--muted); font-size: 15px; }

/* ── SHOP LAYOUT ──────────────────────────────────────────────── */
.bf-shop-wrap { display: grid; grid-template-columns: 230px 1fr; min-height: 70vh; }
.bf-sidebar { border-right: 1px solid var(--border); background: var(--white); padding: 1.75rem 1.5rem; }
.bf-filter-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 12px; }
.bf-filter-g { margin-bottom: 1.75rem; }
.bf-filter-a { display: block; padding: 7px 10px; font-size: 13px; font-weight: 500; color: var(--muted); border-radius: var(--rsm); transition: all .12s; text-decoration: none; }
.bf-filter-a:hover { background: var(--bg); color: var(--text); }
.bf-filter-a.active { background: var(--lt); color: var(--gdark); font-weight: 600; }
.bf-shop-main { padding: 1.75rem; background: var(--bg); }
.bf-shop-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.bf-shop-count { font-size: 14px; color: var(--muted); font-weight: 500; }

/* ── SINGLE LISTING ───────────────────────────────────────────── */
.bf-single { max-width: 1000px; margin: 2.5rem auto; padding: 0 1.5rem; }
.bf-back { font-size: 13px; color: var(--muted); margin-bottom: 1.5rem; display: inline-block; }
.bf-back:hover { color: var(--text); }
.bf-single-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.bf-single-img { border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); }
.bf-single-img img { width: 100%; height: 320px; object-fit: cover; }
.bf-single-nimg { height: 320px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 5rem; border-radius: var(--r); border: 1px solid var(--border); }
.bf-single-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--green); margin-bottom: 8px; }
.bf-single-title { font-size: 28px; font-weight: 800; line-height: 1.15; margin-bottom: 12px; letter-spacing: -.3px; }
.bf-single-price { font-size: 34px; font-weight: 800; color: var(--dark); margin-bottom: 1.25rem; }
.bf-single-price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.bf-single-desc { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 1.75rem; }
.bf-single-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px; background: var(--green); color: #fff; border: none; border-radius: var(--rsm); font-size: 17px; font-weight: 700; cursor: pointer; transition: background .15s; }
.bf-single-cta:hover { background: var(--gdark); }
.bf-single-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; }

/* ── HOW IT WORKS ─────────────────────────────────────────────── */
.bf-how { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bf-how-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 18px; }
.bf-how-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 1.5rem; }
.bf-how-n { font-size: 11px; font-weight: 700; color: var(--green); letter-spacing: 1px; margin-bottom: 10px; display: block; }
.bf-how-i { font-size: 1.85rem; margin-bottom: 10px; display: block; }
.bf-how-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.bf-how-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── CTA STRIP ────────────────────────────────────────────────── */
.bf-cta { background: var(--dark); padding: 4rem 1.5rem; text-align: center; }
.bf-cta h2 { font-size: 30px; font-weight: 800; color: #fff; margin-bottom: .75rem; }
.bf-cta p { color: rgba(255,255,255,.6); font-size: 16px; margin-bottom: 2rem; }
.bf-cta .bf-btn { font-size: 16px; padding: 14px 32px; }

/* ── FOOTER ───────────────────────────────────────────────────── */
.bf-footer { background: var(--dark); color: rgba(255,255,255,.6); padding: 3rem 1.5rem 1.5rem; }
.bf-footer-inner { max-width: 1160px; margin: 0 auto; }
.bf-footer-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.bf-footer-brand .bf-logo { font-size: 20px; color: #fff; margin-bottom: 8px; }
.bf-footer-brand p { font-size: 13px; max-width: 260px; line-height: 1.6; }
.bf-footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.35); margin-bottom: 12px; }
.bf-footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 7px; transition: color .15s; }
.bf-footer-col a:hover { color: #fff; }
.bf-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; }

/* ── ADMIN ────────────────────────────────────────────────────── */
.bf-admin { font-family: var(--font); }
.bf-admin-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; background: var(--dark); }
.bf-admin-logo { font-size: 17px; font-weight: 800; color: #fff; }
.bf-admin-logo span { color: #5DCAA5; }
.bf-admin-logo small { font-size: 12px; color: rgba(255,255,255,.4); font-weight: 400; margin-left: 6px; }
.bf-admin-header-right { display: flex; gap: 8px; }
.bf-abtn { font-size: 13px; color: rgba(255,255,255,.7); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); padding: 6px 14px; border-radius: var(--rsm); transition: background .15s; }
.bf-abtn:hover { background: rgba(255,255,255,.18); color: #fff; }
.bf-tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--white); padding: 0 1.5rem; }
.bf-tab { padding: 13px 18px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--muted); border: none; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.bf-tab.active { color: var(--green); border-bottom-color: var(--green); }
.bf-tab-panel { display: none; }
.bf-tab-panel.active { display: block; }
.bf-admin-body { display: grid; grid-template-columns: 1fr 1fr; min-height: 600px; }
.bf-admin-left { border-right: 1px solid var(--border); padding: 1.5rem; background: var(--white); }
.bf-admin-right { padding: 1.5rem; background: var(--bg); }
.bf-admin-section-title { font-size: 15px; font-weight: 700; margin-bottom: 1rem; }
.bf-info-box { background: #eff6ff; color: #1d4ed8; padding: 10px 14px; border-radius: var(--rsm); font-size: 13px; margin-bottom: 1rem; line-height: 1.5; }
.bf-url-row { display: flex; gap: 8px; margin-bottom: 1rem; }
.bf-url-row input { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--rsm); font-size: 14px; color: var(--text); background: var(--white); }
.bf-form-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 1rem; }
.bf-preview-img { width: 100%; height: 160px; background: var(--white); border: 1px solid var(--border); border-radius: var(--rsm); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 1rem; overflow: hidden; }
.bf-field { margin-bottom: 10px; }
.bf-field label { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.bf-field label small { font-weight: 400; color: #9ca3af; }
.bf-field input, .bf-field select, .bf-field textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--rsm); font-size: 13px; color: var(--text); background: var(--white); }
.bf-field textarea { resize: vertical; }
.bf-field-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.bf-list-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; gap: 8px; }
.bf-badge { background: var(--lt); color: var(--gdark); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 100px; margin-left: 6px; }
.bf-btn-danger { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; font-weight: 600; }
.bf-btn-danger:hover { background: #fee2e2; }
.bf-list { display: flex; flex-direction: column; gap: 8px; max-height: 540px; overflow-y: auto; }
.bf-row { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--border); border-radius: var(--rsm); padding: 8px 10px; }
.bf-row-thumb { width: 52px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--bg); border-radius: 4px; overflow: hidden; }
.bf-row-info { flex: 1; min-width: 0; }
.bf-row-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-row-meta { font-size: 12px; color: var(--muted); }
.bf-pill { display: inline-block; background: var(--lt); color: var(--gdark); font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 100px; margin-left: 6px; }
.bf-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.bf-icon-btn { background: none; border: none; cursor: pointer; font-size: 15px; padding: 4px 6px; border-radius: 4px; color: var(--muted); text-decoration: none; display: inline-flex; }
.bf-icon-btn:hover { background: var(--bg); }
.bf-del:hover { color: #b91c1c; }
.bf-stats-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 1.5rem; flex-wrap: wrap; }
.bf-range-btns { display: flex; gap: 4px; }
.bf-rbtn { padding: 6px 12px; font-size: 13px; border: 1px solid var(--border); border-radius: var(--rsm); background: var(--white); cursor: pointer; color: var(--text); }
.bf-rbtn.active { background: var(--dark); color: #fff; border-color: var(--dark); }
.bf-stat-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 1.5rem; }
.bf-sc { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 1rem 1.25rem; }
.bf-sc-num { font-size: 30px; font-weight: 800; color: var(--gdark); }
.bf-sc-label { font-size: 12px; color: var(--muted); margin-top: 2px; }
.bf-chart-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.bf-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bf-sbox { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 1rem 1.25rem; overflow: hidden; }
.bf-sbox-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.bf-stbl { width: 100%; font-size: 13px; border-collapse: collapse; }
.bf-stbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: #9ca3af; padding-bottom: 8px; border-bottom: 1px solid var(--border); font-weight: 600; }
.bf-stbl td { padding: 7px 0; border-bottom: 1px solid #f9fafb; vertical-align: middle; }
.bf-stbl tr:last-child td { border-bottom: none; }
.bf-login-wrap { max-width: 380px; margin: 4rem auto; padding: 0 1.5rem; }
.bf-login-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 2.25rem; }
.bf-login-logo { font-size: 22px; font-weight: 800; color: var(--dark); margin-bottom: 1.25rem; }
.bf-login-logo span { color: var(--green); }
.bf-login-form h2 { font-size: 20px; font-weight: 700; margin-bottom: .4rem; }
.bf-login-form > p { font-size: 14px; color: var(--muted); margin-bottom: 1.5rem; }
.bf-login-error { color: #b91c1c; font-size: 13px; margin-bottom: 10px; }
.bf-login-form input[type=password] { width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--rsm); font-size: 15px; margin-bottom: 12px; color: var(--text); }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 900px) {
    .bf-shop-wrap { grid-template-columns: 1fr; }
    .bf-sidebar { border-right: none; border-bottom: 1px solid var(--border); }
    .bf-single-grid { grid-template-columns: 1fr; }
    .bf-admin-body { grid-template-columns: 1fr; }
    .bf-admin-left { border-right: none; border-bottom: 1px solid var(--border); }
    .bf-stats-grid { grid-template-columns: 1fr; }
    .bf-stat-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .bf-nav { display: none; }
    .bf-nav.open { display: flex; flex-direction: column; position: absolute; top: 62px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; gap: 1rem; z-index: 199; }
    .bf-burger { display: block; }
    .bf-stats-bar { flex-direction: column; }
    .bf-stat { border-right: none; border-bottom: 1px solid var(--border); }
    .bf-stat:last-child { border-bottom: none; }
    .bf-field-2col { grid-template-columns: 1fr; }
    .bf-stat-cards { grid-template-columns: 1fr; }
}

/* ── SINGLE LISTING ───────────────────────────────────────────── */
.bf-single-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.bf-single-img { border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); }
.bf-single-img img { width: 100%; height: 380px; object-fit: cover; display: block; }
.bf-single-nimg { height: 380px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 5rem; border-radius: var(--r); border: 1px solid var(--border); }
.bf-single-info {}
.bf-single-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--green); margin-bottom: 8px; }
.bf-single-title { font-size: 28px; font-weight: 800; line-height: 1.15; margin-bottom: 14px; letter-spacing: -.3px; }
.bf-single-price { font-size: 36px; font-weight: 800; color: var(--dark); margin-bottom: 1.25rem; line-height: 1; }
.bf-single-price small { font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.bf-single-desc { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 1.75rem; }
.bf-single-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 16px; background: var(--green); color: #fff !important; border: none; border-radius: var(--rsm); font-size: 18px; font-weight: 700; cursor: pointer; transition: background .15s; text-align: center; }
.bf-single-cta:hover { background: var(--gdark); color: #fff; }
.bf-single-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; }

@media (max-width: 760px) {
    .bf-single-grid { grid-template-columns: 1fr; }
    .bf-single-img img, .bf-single-nimg { height: 240px; }
    .bf-single-title { font-size: 22px; }
    .bf-single-price { font-size: 28px; }
}
