/*
Theme Name: Japan Auto
Template: astra
Description: Japan Auto Trading child theme — engine & gearbox importers, Jet Park. Hybrid shop: new stock sells online, used stock is quoted (japauto-quote-system).
Version: 1.0.2
Author: RestoMod
Author URI: https://restomod.co.za
*/

:root {
	--ja-green: #0b4d2c;
	--ja-green-2: #12804a;
	--ja-green-dark: #06331d;
	--ja-red: #d7261e;
	--ja-steel: #5a6466;
	--ja-soft: #f3f5f4;
	--ja-line: #dfe4e2;
	--ja-ink: #1c2321;
}

body { font-family: 'Roboto', sans-serif; color: var(--ja-ink); }
h1, h2, h3, h4, h5, h6, .site-title, .woocommerce-loop-product__title, .product_title, .main-header-menu > .menu-item > .menu-link {
	font-family: 'Barlow Semi Condensed', sans-serif;
}
h1, h2, h3 { font-weight: 700; letter-spacing: .01em; }
a { color: var(--ja-green-2); }

/* ---------- Top bar ---------- */
.ja-topbar { background: var(--ja-green-dark); color: #d6e6dc; font-size: 13px; }
.ja-topbar a { color: #fff; text-decoration: none; }
.ja-topbar-inner { max-width: 1240px; margin: 0 auto; padding: 7px 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.ja-topbar-inner > span { display: inline-flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ja-social { display: inline-flex; gap: 10px; align-items: center; }
.ja-social a { display: inline-flex; }
@media (max-width: 760px) { .ja-tb-x { display: none !important; } .ja-topbar-inner { justify-content: center; } }

/* ---------- Header / menu ---------- */
.ast-primary-header-bar { border-bottom: 4px solid var(--ja-green) !important; }
.main-header-menu .menu-link { font-weight: 600; text-transform: uppercase; font-size: 15px; }
.main-header-menu .current-menu-item > .menu-link, .main-header-menu .menu-link:hover { color: var(--ja-green-2) !important; }
.jap-menu-quote .jap-quote-count { display: flex; align-items: center; gap: 6px; padding: 0 1em; height: 100%; color: var(--ja-ink); font-weight: 600; text-decoration: none; text-transform: uppercase; font-family: 'Barlow Semi Condensed', sans-serif; font-size: 15px; }
.jap-quote-count .jap-qc-num { background: var(--ja-red) !important; }

/* ---------- Search with filters ---------- */
.ja-search { background: var(--ja-soft); border: 1px solid var(--ja-line); border-radius: 8px; padding: 18px; }
.ja-search form { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; }
.ja-search input[type=search], .ja-search select { width: 100%; height: 48px; padding: 0 12px; border: 1px solid #c9d1ce; border-radius: 4px; background: #fff; font-size: 15px; }
.ja-search button { height: 48px; padding: 0 26px; border: 0; border-radius: 4px; background: var(--ja-red); color: #fff; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.ja-search button:hover { background: #b51e17; }
.ja-search-hint { margin: 10px 0 0; font-size: 13px; color: var(--ja-steel); }
@media (max-width: 860px) { .ja-search form { grid-template-columns: 1fr 1fr; } .ja-search input[type=search] { grid-column: 1 / -1; } .ja-search button { grid-column: 1 / -1; } }
.ja-hero .ja-search { background: rgba(255,255,255,.96); border: 0; box-shadow: 0 10px 30px rgba(0,0,0,.25); }

/* ---------- Product cards ---------- */
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { background: #fff; border: 1px solid var(--ja-line); border-radius: 8px; padding: 0 0 16px !important; overflow: hidden; transition: box-shadow .2s; }
.woocommerce ul.products li.product:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap { position: relative; background: var(--ja-soft); }
.woocommerce ul.products li.product .astra-shop-summary-wrap { padding: 0 14px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 17px; line-height: 1.25; font-weight: 700; }
.ja-cond { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 3px 10px; border-radius: 3px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.ja-cond--new { background: var(--ja-red); }
.ja-cond--used { background: var(--ja-steel); }
.ja-card-meta { margin: 2px 0 8px; font-size: 13px; color: var(--ja-steel); }
.ja-card-meta span + span::before { content: " · "; }
.woocommerce ul.products li.product .button { border-radius: 4px; font-weight: 700; text-transform: uppercase; font-size: 13px; }

/* ---------- Single product ---------- */
.ja-specs { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 15px; }
.ja-specs th, .ja-specs td { padding: 8px 10px; border-bottom: 1px solid var(--ja-line); text-align: left; }
.ja-specs th { width: 42%; color: var(--ja-steel); font-weight: 500; text-transform: uppercase; font-size: 13px; letter-spacing: .03em; }
.ja-specs tr:nth-child(odd) td, .ja-specs tr:nth-child(odd) th { background: var(--ja-soft); }
.ja-disclaimer { font-size: 12px; color: #777; margin-top: 10px; line-height: 1.5; }
.ja-help { border: 1px solid var(--ja-line); border-left: 4px solid var(--ja-green); background: var(--ja-soft); padding: 14px 16px; border-radius: 4px; margin: 0 0 1.5em; font-size: 14px; }
.ja-help strong { display: block; font-family: 'Barlow Semi Condensed', sans-serif; font-size: 17px; margin-bottom: 4px; }
.single-product .product .price { color: var(--ja-green); font-weight: 700; }

/* ---------- Home sections ---------- */
.ja-hero { background: linear-gradient(100deg, rgba(6,51,29,.95) 0%, rgba(11,77,44,.85) 55%, rgba(11,77,44,.55) 100%), var(--ja-hero-img, none) center/cover no-repeat; color: #fff; }
.ja-hero h1, .ja-hero p { color: #fff; }
.ja-hero .ja-kicker { color: #9fd8b4; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: 14px; }
.ja-section-soft { background: var(--ja-soft); }
.ja-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 3px solid var(--ja-green); padding-bottom: 8px; margin-bottom: 20px; }
.ja-head h2 { margin: 0; }
.ja-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.ja-cards .wp-block-column { background: #fff; border: 1px solid var(--ja-line); border-radius: 8px; padding: 22px; }
.ja-cards h3 { margin-top: 0; }
.ja-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.ja-cats a { display: flex; flex-direction: column; justify-content: space-between; min-height: 92px; padding: 14px 16px; background: #fff; border: 1px solid var(--ja-line); border-left: 4px solid var(--ja-green); border-radius: 6px; color: var(--ja-ink); text-decoration: none; font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700; font-size: 18px; line-height: 1.15; }
.ja-cats a small { font-family: 'Roboto', sans-serif; font-weight: 400; font-size: 13px; color: var(--ja-steel); }
.ja-cats a:hover { border-left-color: var(--ja-red); }
.ja-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: center; }
.ja-stats strong { display: block; font-family: 'Barlow Semi Condensed', sans-serif; font-size: 34px; color: var(--ja-green); line-height: 1; }
@media (max-width: 700px) { .ja-stats { grid-template-columns: repeat(2, 1fr); } }
.wp-block-button .wp-block-button__link { background: var(--ja-red); border-radius: 4px; font-weight: 700; text-transform: uppercase; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border: 2px solid currentColor; }
.ja-map iframe { width: 100%; height: 360px; border: 0; border-radius: 8px; }
.ja-wa-list { list-style: none; padding: 0; margin: 0; }
.ja-wa-list li { padding: 4px 0; }

/* ---------- Footer ---------- */
.ja-footer { background: var(--ja-green-dark); color: #c9dccf; font-size: 14px; }
.ja-footer a { color: #fff; text-decoration: none; }
.ja-footer a:hover { text-decoration: underline; }
.ja-footer-main { max-width: 1240px; margin: 0 auto; padding: 50px 20px 30px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 30px; }
.ja-footer h4 { color: #fff; text-transform: uppercase; font-size: 16px; letter-spacing: .05em; margin-bottom: 12px; }
.ja-footer ul { list-style: none; margin: 0; padding: 0; }
.ja-footer li { margin-bottom: 6px; }
.ja-footer-logo img { width: 110px; height: auto; margin-bottom: 12px; }
.ja-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); max-width: 1240px; margin: 0 auto; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.ja-pay { display: inline-flex; gap: 8px; align-items: center; }
.ja-pay span { background: #fff; color: var(--ja-ink); border-radius: 3px; padding: 2px 8px; font-weight: 700; font-size: 12px; }
@media (max-width: 900px) { .ja-footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ja-footer-main { grid-template-columns: 1fr; } .ja-footer-bottom { justify-content: center; text-align: center; } }

.ja-cats a, .ja-cards a, .ja-head a { text-decoration: none !important; }
.ja-cards a { font-weight: 600; }
.ja-hero .ja-search-hint { color: var(--ja-steel); }
.single-product .product_title { font-size: 34px; line-height: 1.1; margin-bottom: 8px; }
.ja-specs, .ja-specs th, .ja-specs td { border-left: 0 !important; border-right: 0 !important; }
.ja-specs { border-top: 2px solid var(--ja-green) !important; }
.ja-pay img { height: 26px; width: auto; background: #fff; border-radius: 3px; padding: 3px 6px; }
