/* ─────────────────────────────────────────────────────────
   HERA FLEX CATALOG STYLES
   motors-child/css/hf-catalog.css
───────────────────────────────────────────────────────── */

.hfc-wrap { max-width:1200px; margin:0 auto; }

/* ── Filter bar ── */
.hfc-filters {
    background: #fff !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 5px !important;
    padding: 16px 20px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 2px 16px rgba(0,0,0,.07) !important;
    display: block !important;
    visibility: visible !important;
}

/* VAT toggle */
.hfc-vat-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
    justify-content: flex-end !important;
}
.hfc-vat-lbl {
    font-size: .78rem;
    color: #999;
    font-weight: 500;
    transition: color .2s;
}
.hfc-vat-lbl.hfc-vat-active { color: #ff4f0a !important; font-weight: 700; }

.hfc-toggle {
    position: relative;
    display: inline-block;
    width: 44px; height: 24px;
    flex-shrink: 0;
}
.hfc-toggle input { opacity: 0; width: 0; height: 0; }
.hfc-toggle-track {
    position: absolute; inset: 0;
    background: #ccc; border-radius: 24px;
    cursor: pointer; transition: background .2s;
}
.hfc-toggle-track::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; bottom: 3px;
    background: #fff; border-radius: 50%;
    transition: transform .2s;
}
.hfc-toggle input:checked + .hfc-toggle-track { background: #ff4f0a; }
.hfc-toggle input:checked + .hfc-toggle-track::before { transform: translateX(20px); }

/* Filter row */
.hfc-filter-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    align-items: flex-end !important;
}
.hfc-filter-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    flex: 1 1 150px;
    min-width: 130px;
}
.hfc-filter-group > label {
    font-size: .7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .06em !important;
    color: #999 !important;
    display: block !important;
    margin-bottom: 4px !important;
}

/* Selects — override Motors/Select2 */
.hfc-select,
.hfc-filters select.hfc-select {
    width: 100% !important;
    padding: 8px 10px !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 5px !important;
    font-size: .85rem !important;
    font-family: inherit !important;
    color: #1a1a1a !important;
    background: #fff !important;
    cursor: pointer !important;
    transition: border-color .15s !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    position: static !important;
}
/* Hide Select2 on our selects */
.hfc-filters .select2-container { display: none !important; }
.hfc-filters select.hfc-select.select2-hidden-accessible {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    padding: 8px 10px !important;
    margin: 0 !important;
    clip: auto !important;
    clip-path: none !important;
    overflow: visible !important;
    white-space: normal !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.hfc-select:focus {
    outline: none !important;
    border-color: #ff4f0a !important;
}

/* Price inputs */
.hfc-price-group { flex: 1 1 200px; }
.hfc-price-inputs {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}
.hfc-price-inputs input[type="number"] {
    width: 80px !important;
    padding: 8px 10px !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 5px !important;
    font-size: .85rem !important;
    font-family: inherit !important;
    color: #1a1a1a !important;
    background: #fff !important;
    text-align: center !important;
    -webkit-appearance: textfield !important;
}
.hfc-price-inputs input:focus { outline: none !important; border-color: #ff4f0a !important; }
.hfc-price-inputs span { color: #999; }
.hfc-price-note { font-size: .68rem; color: #999; margin: 2px 0 0; }

/* Reset btn */
.hfc-reset-wrap { flex: 0 0 auto; min-width: unset; }
.hfc-reset-btn {
    padding: 8px 16px !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 5px !important;
    background: transparent !important;
    font-size: .8rem !important;
    cursor: pointer !important;
    color: #666 !important;
    font-family: inherit !important;
    transition: all .15s !important;
    white-space: nowrap !important;
    display: inline-block !important;
}
.hfc-reset-btn:hover { border-color: #ff4f0a !important; color: #ff4f0a !important; }

/* Results bar */
.hfc-results-bar { font-size: .82rem; color: #999; margin-bottom: 16px; }
.hfc-results-bar span { font-weight: 700; color: #1a1a1a; }

/* ── Grid ── */
.hfc-grid {
    display: grid !important;
    grid-template-columns: repeat(3,1fr) !important;
    gap: 24px !important;
}

/* ── Card ── */
.hfc-card {
    background: #fff !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 5px !important;
    overflow: hidden !important;
    transition: all .2s !important;
    display: flex !important;
    flex-direction: column !important;
}
.hfc-card:hover {
    border-color: #ff4f0a !important;
    box-shadow: 0 2px 16px rgba(0,0,0,.07) !important;
    transform: translateY(-3px) !important;
}
.hfc-card.hfc-hidden { display: none !important; }

.hfc-card-img-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f7f7f7;
    text-decoration: none !important;
}
.hfc-card-img-wrap img {
    width: 100% !important; height: 100% !important;
    object-fit: cover !important; display: block !important;
    transition: transform .3s !important;
}
.hfc-card:hover .hfc-card-img-wrap img { transform: scale(1.03); }
.hfc-card-img-placeholder {
    display: flex; align-items: center; justify-content: center;
    height: 100%; color: #ccc; font-size: 3rem;
}

/* Availability */
.hfc-avail-badge {
    position: absolute; top: 10px; right: 10px;
    padding: 3px 9px; border-radius: 5px;
    font-size: .68rem; font-weight: 700;
}
.hfc-avail-in    { background: #e8f5e9; color: #2e7d32; }
.hfc-avail-soon  { background: #fff8e1; color: #f57f17; }
.hfc-avail-order { background: #f3e5f5; color: #7b1fa2; }

/* Card body */
.hfc-card-body {
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    flex: 1 !important;
}

/* Badges */
.hfc-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.hfc-badge {
    padding: 2px 8px;
    background: #ff4f0a; color: #fff;
    font-size: .65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
    border-radius: 5px;
}

/* Title */
.hfc-card-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}
.hfc-card-title a { color: #000 !important; text-decoration: none !important; }
.hfc-card-title a:hover { color: #ff4f0a !important; }
.hfc-card-brand { font-size: .75rem; color: #999; }

/* Specs */
.hfc-card-specs { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.hfc-card-specs span {
    font-size: .75rem; color: #666;
    display: flex; align-items: center; gap: 4px;
}
.hfc-card-specs i { color: #ff4f0a; font-size: .72rem; }

/* Description */
.hfc-card-desc { font-size: .78rem; color: #666; line-height: 1.5; margin: 0; }

/* Price */
.hfc-card-price {
    display: flex !important;
    align-items: baseline !important;
    gap: 4px !important;
    margin-top: auto !important;
    padding-top: 8px !important;
    border-top: 1px solid #e0e0e0 !important;
}
.hfc-price-label  { font-size: .72rem; color: #999; }
.hfc-price-amount { font-size: 1.3rem !important; font-weight: 800 !important; color: #ff4f0a !important; }
.hfc-price-amount .woocommerce-Price-currencySymbol { font-size: .95rem !important; }
.hfc-price-suffix { font-size: .75rem; color: #999; }
.hfc-price-vat-note { font-size: .68rem; color: #999; margin-left: 2px; }

/* CTA */
.hfc-card-cta {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 16px !important;
    background: #ff4f0a !important;
    color: #fff !important;
    border-radius: 5px !important;
    font-size: .85rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: background .15s !important;
    margin-top: 4px !important;
}
.hfc-card-cta:hover { background: #d07200 !important; color: #fff !important; }
.hfc-card-cta i { font-size: .75rem; }

/* No results */
.hfc-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: .95rem;
    line-height: 2;
}

/* Responsive */
@media (max-width:1024px) {
    .hfc-grid { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width:640px) {
    .hfc-grid { grid-template-columns: 1fr !important; }
    .hfc-filter-row { flex-direction: column !important; }
    .hfc-filter-group { min-width: 100% !important; }
}


/* ── Alignment φίλτρων ── */
.hfc-filter-row {
    align-items: flex-start !important;
}
.hfc-filter-group > label {
    height: 18px !important;
    line-height: 18px !important;
    margin-bottom: 6px !important;
}
.hfc-select,
.hfc-price-inputs input[type="number"] {
    height: 38px !important;
    box-sizing: border-box !important;
}

/* ── Mobile ── */
@media (max-width: 640px) {
    .hfc-grid { grid-template-columns: 1fr !important; }
    .hfc-filter-row { flex-direction: column !important; }
    .hfc-filter-group {
        min-width: 100% !important;
        flex: 1 1 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .hfc-filter-group > label {
        height: auto !important;
        margin-bottom: 2px !important;
    }
}

.hfc-card-brand { display: none !important; }