/* ============================================================
   JCD REPAIR -- V3 PARENT CATEGORY + SHOP PAGE STYLES
   File: jcd-v3-parent.css (in flatsome-child theme)
   v1.3.0 — Logan feedback: clean cards, light CTA variant
   ============================================================ */

/* ── Kill Flatsome defaults ──────────────────────────────── */
.jcd-v3-parent .innerPageHeader .headerContent,
.jcd-v3-parent .innerPageHeader .header-bg-container,
.jcd-v3-parent .page-title,
.jcd-v3-parent .shop-page-title,
.jcd-v3-parent .page-title-inner,
.jcd-v3-parent .term-description,
.jcd-v3-parent .leafCategoryContent,
.jcd-v3-parent .woocommerce-breadcrumb {
    display: none !important;
}

.jcd-v3-parent .shop-page-title.category-page-title {
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.jcd-v3-parent .main-content,
.jcd-v3-parent .content-area,
.jcd-v3-parent .shop-container,
.jcd-v3-parent #content,
.jcd-v3-parent .page-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.jcd-v3-parent-page {
    background: #f8f6f1;
}

/* ══════════════════════════════════════════════════════════
   TITLE BAND
   ══════════════════════════════════════════════════════════ */
.jcd-cat-titleband {
    background: linear-gradient(135deg, #132647 0%, #1e3a5f 40%, #2d4762 100%);
    padding: 32px 20px 28px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.jcd-cat-titleband-glow {
    position: absolute;
    top: -40%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.jcd-cat-titleband-inner {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
}

.jcd-cat-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #f59e0b;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.jcd-cat-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
    color: #f0f2f8;
    -webkit-font-smoothing: antialiased;
}

.jcd-cat-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin: 6px 0 0;
    font-weight: 500;
}

.jcd-cat-bc {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    font-weight: 500;
    margin-top: 12px;
}

.jcd-cat-bc a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.jcd-cat-bc a:hover { color: #f59e0b; }
.jcd-cat-bc-sep { color: rgba(255,255,255,0.3); margin: 0 6px; }
.jcd-cat-bc-current { color: #f0f2f8; font-weight: 600; }

/* ══════════════════════════════════════════════════════════
   SIBLING NAV (text only, centered)
   ══════════════════════════════════════════════════════════ */
.jcd-sibling-nav {
    background: #fff;
    border-bottom: 1px solid #e2e0db;
    padding: 0 16px;
}

.jcd-sibling-nav-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.jcd-sibling-nav-inner::-webkit-scrollbar { display: none; }

.jcd-sibling-nav-item {
    padding: 12px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.jcd-sibling-nav-item:hover { color: #1e293b; text-decoration: none; }
.jcd-sibling-nav-item--active { color: #1e293b; border-bottom-color: #f59e0b; }

/* ══════════════════════════════════════════════════════════
   CONTENT AREA
   ══════════════════════════════════════════════════════════ */
.jcd-parent-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

/* ══════════════════════════════════════════════════════════
   SEARCH BAR (wrapper + background-image icon)
   ══════════════════════════════════════════════════════════ */
.jcd-search-box {
    max-width: 480px;
    height: 44px !important;
    max-height: 44px !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    margin: 0 auto 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e0db;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.jcd-search-box:focus-within {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.08);
}

.jcd-search-input {
    width: 100% !important;
    border: none !important;
    height: 44px !important;
    border-bottom: none !important;
    margin: 0 !important;
    padding: 0 16px 0 42px !important;
    line-height: 44px !important;
    outline: none !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    box-shadow: none !important;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.jcd-search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* ── Count line ──────────────────────────────────────────── */
.jcd-parent-count {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    padding: 0 2px 12px;
}

/* ══════════════════════════════════════════════════════════
   MANUFACTURER GRID (Shop Page)
   ══════════════════════════════════════════════════════════ */
.jcd-mfr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.jcd-mfr-card {
    background: #fff; border-radius: 12px; border: 1px solid #e2e0db;
    text-decoration: none; color: inherit;
    transition: box-shadow 0.2s, transform 0.15s;
    position: relative; overflow: hidden;
}
.jcd-mfr-card:hover { box-shadow: 0 6px 24px rgba(30,58,95,0.12); transform: translateY(-2px); text-decoration: none; color: inherit; }

.jcd-mfr-card--featured { background: #e8edf4; color: inherit; border-color: #d4dce8; }
.jcd-mfr-card--featured:hover { box-shadow: 0 8px 32px rgba(245,158,11,0.15); color: inherit; }

.jcd-mfr-card-glow { position: absolute; top: -40px; right: -40px; width: 160px; height: 160px; background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 65%); pointer-events: none; }
.jcd-mfr-card-inner { padding: 20px; display: flex; gap: 14px; align-items: center; position: relative; }

.jcd-mfr-card-thumb { width: 56px; height: 72px; border-radius: 10px; background: #f5f3ee; flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.jcd-mfr-card--featured .jcd-mfr-card-thumb { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); }
.jcd-mfr-card-thumb img { width: auto; height: 60px; object-fit: contain; }

.jcd-mfr-card-text { flex: 1; min-width: 0; }
.jcd-mfr-card-name { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; font-weight: 700; }
.jcd-mfr-card-desc { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 12px; color: #6b7280; margin-top: 2px; }
.jcd-mfr-card--featured .jcd-mfr-card-desc { color: #6b7280; }
.jcd-mfr-card-arrow { flex-shrink: 0; color: #9ca3af; }
.jcd-mfr-card--featured .jcd-mfr-card-arrow { color: #f59e0b; }

/* ══════════════════════════════════════════════════════════
   GENERATION TABS (compact pills, centered)
   ══════════════════════════════════════════════════════════ */
.jcd-gen-tabs { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }

.jcd-gen-tab {
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid #d1d5db;
    cursor: pointer;
    background: #fff;
    color: #4b5563;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
}

.jcd-gen-tab:hover { background: #f5f3ee; }
.jcd-gen-tab--active { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }
.jcd-gen-tab--active:hover { background: #1e3a5f; }
.jcd-gen-tab-count { font-size: 10px; font-weight: 600; color: #6b7280; opacity: 0.5; }
.jcd-gen-tab--active .jcd-gen-tab-count { color: #f59e0b; opacity: 1; }

.jcd-gen-panel { display: none; }
.jcd-gen-panel--active { display: block; }

/* ══════════════════════════════════════════════════════════
   MODEL GRID + CARDS (photo-forward with drop shadow)
   ══════════════════════════════════════════════════════════ */
.jcd-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

.jcd-model-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8e5df;
    padding: 20px 16px 16px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.15s, border-color 0.15s;
}

.jcd-model-card:hover {
    box-shadow: 0 8px 28px rgba(30, 58, 95, 0.14);
    transform: translateY(-3px);
    border-color: #f59e0b;
    text-decoration: none;
    color: inherit;
}

.jcd-model-card-img {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.jcd-model-card-shadow {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.jcd-model-card-shadow img {
    max-width: 100% !important;
    max-height: 150px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

.jcd-model-card-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

/* ══════════════════════════════════════════════════════════
   NOT SURE CTA — dark (default, used on shop page)
   ══════════════════════════════════════════════════════════ */
.jcd-not-sure {
    background: linear-gradient(135deg, #132647, #1e3a5f, #2d4762);
    border-radius: 14px;
    padding: 24px 28px;
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.jcd-not-sure-title { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.jcd-not-sure-desc { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 13px; color: rgba(255,255,255,0.6); margin: 0; }
.jcd-not-sure-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.jcd-not-sure-btn { padding: 9px 20px; border-radius: 8px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 13px; font-weight: 700; text-decoration: none; transition: background 0.15s; }
.jcd-not-sure-btn--primary { background: #f59e0b; color: #1e3a5f; }
.jcd-not-sure-btn--primary:hover { background: #fbbf24; color: #1e3a5f; text-decoration: none; }
.jcd-not-sure-btn--phone { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.2); font-weight: 600; }
.jcd-not-sure-btn--phone:hover { background: rgba(255,255,255,0.2); color: #fff; text-decoration: none; }

/* ── Light variant (used on category pages to avoid dark-on-dark with ecosystem card) ── */
.jcd-not-sure--light {
    background: #fff;
    border: 1px solid #e2e0db;
}

.jcd-not-sure--light .jcd-not-sure-title {
    color: #1e293b;
}

.jcd-not-sure--light .jcd-not-sure-desc {
    color: #6b7280;
}

.jcd-not-sure--light .jcd-not-sure-btn--primary {
    background: #1e3a5f;
    color: #fff;
}

.jcd-not-sure--light .jcd-not-sure-btn--primary:hover {
    background: #2d4762;
    color: #fff;
}

.jcd-not-sure--light .jcd-not-sure-btn--phone {
    background: transparent;
    color: #1e3a5f;
    border: 1px solid #d1d5db;
}

.jcd-not-sure--light .jcd-not-sure-btn--phone:hover {
    background: #f5f3ee;
    color: #1e3a5f;
}

/* ══════════════════════════════════════════════════════════
   SEO TEXT + FLATSOME BOTTOM
   ══════════════════════════════════════════════════════════ */
.jcd-seo-text {
    margin-top: 32px;
    padding: 0 4px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    line-height: 1.7;
    color: #9ca3af;
}
.jcd-seo-text p { margin: 0 0 8px; }
.jcd-seo-text p:last-child { margin-bottom: 0; }
.jcd-seo-text strong { font-weight: 600; color: #9ca3af; }

.jcd-flatsome-bottom { margin-top: 24px; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .jcd-mfr-grid { grid-template-columns: 1fr; }
    .jcd-model-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .jcd-not-sure { flex-direction: column; text-align: center; }
    .jcd-not-sure-actions { justify-content: center; }
    .jcd-gen-tab { padding: 5px 10px; font-size: 11px; }
    .jcd-sibling-nav-item { padding: 10px 14px; font-size: 12px; }
}

@media (max-width: 480px) {
    .jcd-model-grid { grid-template-columns: 1fr 1fr; }
    .jcd-cat-titleband { padding: 24px 16px 20px; }
    .jcd-model-card-img { height: 120px; }
    .jcd-model-card-shadow img { max-height: 120px !important; }
}

/* ── Global link cleanup ─────────────────────────────────── */
.jcd-v3-parent .jcd-v3-parent-page a:hover,
.jcd-v3-parent .jcd-v3-parent-page a:focus {
    text-decoration: none !important;
}
/* ============================================================
   FAQ Section — works on both family and model landing pages
   ============================================================ */
.jcd-faq-section {
    max-width: 800px;
    margin: 48px auto 40px;
    padding: 0 20px;
}
.jcd-faq-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c97a2a;
    margin-bottom: 6px;
}
.jcd-faq-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a2b42;
    margin-bottom: 24px;
}
.jcd-faq-list {
    border-top: 1px solid #e5e5e5;
}
.jcd-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 0;
    background: none;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #1a2b42;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.4;
}
.jcd-faq-q:hover {
    color: #c97a2a;
}
.jcd-faq-toggle {
    font-size: 22px;
    color: #999;
    flex-shrink: 0;
    margin-left: 16px;
    line-height: 1;
}
.jcd-faq-a {
    display: none;
    padding: 4px 0 20px;
    font-size: 15px;
    line-height: 1.75;
    color: #444;
    border-bottom: 1px solid #e5e5e5;
}
.jcd-faq-open .jcd-faq-a {
    display: block;
}
.jcd-faq-open .jcd-faq-q {
    border-bottom-color: transparent;
    color: #c97a2a;
}
@media (max-width: 768px) {
    .jcd-faq-section { margin: 32px auto; padding: 0 16px; }
    .jcd-faq-title { font-size: 19px; }
    .jcd-faq-q { font-size: 13px; padding: 16px 0; }
    .jcd-faq-a { font-size: 14px; }
}
