/* JeepDealz brand — Astra + WooCommerce */
:root {
  --jd-charcoal: #1A1D16;
  --jd-olive: #6B7A3A;
  --jd-amber: #C9A227;
  --jd-offwhite: #F4F1E8;
  --jd-body: #12140F;
  --jd-card: #1E2218;
  --jd-muted: #C5C2B6;
}

html, body {
  background: var(--jd-body) !important;
  color: var(--jd-offwhite);
}

body, .site, #page, #content, .site-content,
.ast-container, .ast-plain-container, .ast-separate-container,
.ast-separate-container .ast-article-single,
.site-content .ast-container {
  background-color: var(--jd-body) !important;
  color: var(--jd-offwhite);
}

a { color: var(--jd-amber); }
a:hover, a:focus { color: #e0c04a; }

/* Header */
.site-header,
.main-header-bar,
.ast-primary-header-bar,
.ast-mobile-header-wrap,
.ast-main-header-wrap,
.ast-above-header-bar,
.ast-below-header-bar,
header .main-header-bar-wrap,
.ast-header-break-point .main-header-bar,
.ast-primary-header-bar .site-header-primary-section-left,
.ast-primary-header-bar .site-header-primary-section-right,
.ast-builder-menu-1 {
  background-color: var(--jd-charcoal) !important;
  background: var(--jd-charcoal) !important;
}

.main-header-menu a,
.ast-builder-menu a,
.ast-header-account-wrap,
.ast-header-woo-cart,
.main-header-menu .menu-link,
.ast-masthead-custom-menu-items a,
.site-header a,
.ast-header-search .ast-header-search-icon {
  color: var(--jd-offwhite) !important;
}

.main-header-menu a:hover,
.main-header-menu .menu-link:hover,
.ast-builder-menu a:hover,
.site-header a:hover,
.main-header-menu .current-menu-item > .menu-link {
  color: var(--jd-amber) !important;
}

/* Keep custom logo, hide duplicate site-title text (stops Jee/pD/eal/z wrap) */
.site-header .custom-logo {
  max-height: 52px;
  width: auto;
  height: auto;
}
.site-header .custom-logo-link img.custom-logo,
.site-header img.custom-logo,
.custom-logo-link img.custom-logo,
.custom-logo {
  max-height: 52px !important;
  width: auto !important;
  height: auto !important;
  max-width: min(280px, 55vw) !important;
}

.site-header .site-title,
.site-header .site-identity .site-title,
.site-header .ast-site-identity .site-title,
.ast-site-title-wrap,
.ast-site-title-wrap .site-title,
.site-header .site-description,
.ast-site-identity .site-description {
  display: none !important;
}

.site-header,
.main-header-bar,
.ast-primary-header-bar {
  background: #1A1D16 !important;
}

/* Footer */
.site-footer,
.ast-footer-overlay,
.ast-small-footer,
.ast-builder-grid-row-container.ast-footer-copyright,
footer#colophon,
.ast-footer-copyright,
.site-footer-focus-item {
  background-color: var(--jd-charcoal) !important;
  color: var(--jd-offwhite) !important;
}
.site-footer a,
.ast-footer-copyright a { color: var(--jd-offwhite) !important; }
.site-footer a:hover,
.ast-footer-copyright a:hover { color: var(--jd-amber) !important; }

/* Content / products */
.entry-content, .entry-title, .page-title, h1, h2, h3, h4 {
  color: var(--jd-offwhite);
}

.woocommerce ul.products li.product,
ul.products li.product,
.woocommerce-page ul.products li.product {
  background: var(--jd-card) !important;
  color: var(--jd-offwhite) !important;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #2a2f24;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product a,
ul.products li.product .woocommerce-loop-product__title {
  color: var(--jd-offwhite) !important;
}
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.price, .woocommerce-Price-amount {
  color: var(--jd-amber) !important;
}

/* Buttons — Add to cart olive, hover amber. Do not break checkout layout. */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.add_to_cart_button,
.woocommerce button.button.alt,
.wp-block-button__link,
button.single_add_to_cart_button,
.ast-add-to-cart {
  background-color: var(--jd-olive) !important;
  border-color: var(--jd-olive) !important;
  color: #fff !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.add_to_cart_button:hover,
.woocommerce button.button.alt:hover,
.wp-block-button__link:hover,
button.single_add_to_cart_button:hover {
  background-color: var(--jd-amber) !important;
  border-color: var(--jd-amber) !important;
  color: #1A1D16 !important;
}

/* Keep checkout readable */
.woocommerce-checkout .woocommerce,
form.woocommerce-checkout,
.woocommerce-cart-form,
.woocommerce-checkout-review-order {
  color: var(--jd-offwhite);
}

/* Hero — Commander on the trail, copy on the dark left */
.jd-hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 2rem;
  min-height: 520px;
  padding: 72px 8vw 210px;
  background-image: url(https://jeepdealz.com/wp-content/uploads/2026/08/jeepdealz-hero-commander.png);
  background-position: 72% 45%;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--jd-offwhite);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}
.jd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18,20,15,0.92) 0%, rgba(18,20,15,0.72) 38%, rgba(18,20,15,0.28) 62%, rgba(18,20,15,0.08) 100%);
  z-index: 0;
}
.jd-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  text-align: left;
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
}
.jd-hero .jd-kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--jd-amber);
  margin: 0 0 0.65rem;
}
.jd-hero h1 {
  color: #fff !important;
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.12;
  font-weight: 800;
}
.jd-hero p {
  color: var(--jd-offwhite);
  font-size: 1.15rem;
  line-height: 1.45;
  margin: 0;
  max-width: 28em;
}
.jd-hero-cta {
  display: inline-block;
  margin-top: 1.4rem;
  background: var(--jd-olive);
  color: #fff !important;
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.jd-hero-cta:hover,
.jd-hero-cta:focus {
  background: var(--jd-amber);
  color: #1A1D16 !important;
}

/* Contact form */
.jd-contact-form {
  max-width: 560px;
  background: var(--jd-card);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #2a2f24;
  margin: 1.25rem 0;
}
.jd-contact-form label {
  display: block;
  margin: 0.75rem 0 0.3rem;
  color: var(--jd-offwhite);
  font-weight: 600;
}
.jd-contact-form input[type="text"],
.jd-contact-form input[type="email"],
.jd-contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: #12140F;
  color: var(--jd-offwhite);
  border: 1px solid #3a4030;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
}
.jd-contact-form textarea { min-height: 120px; resize: vertical; }
.jd-contact-form button[type="submit"] {
  margin-top: 1rem;
  background: var(--jd-olive);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 0.7rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
}
.jd-contact-form button[type="submit"]:hover {
  background: var(--jd-amber);
  color: #1A1D16;
}
.jd-contact-status { margin-top: 0.75rem; min-height: 1.2em; }
.jd-contact-status.is-ok { color: #9cbc4a; }
.jd-contact-status.is-err { color: #e07a6a; }

/* Live chat drawer — above cookieadmin banner */
.jd-chat-root {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2147483000;
  font-family: inherit;
}
.jd-chat-toggle {
  background: var(--jd-olive);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.jd-chat-toggle:hover,
.jd-chat-toggle:focus {
  background: var(--jd-amber);
  color: #1A1D16;
  outline: 2px solid #fff;
}
.jd-chat-panel {
  display: none;
  position: absolute;
  right: 0;
  bottom: 56px;
  width: min(360px, calc(100vw - 32px));
  background: var(--jd-charcoal);
  color: var(--jd-offwhite);
  border: 1px solid #2a2f24;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
.jd-chat-root.is-open .jd-chat-panel { display: block; }
.jd-chat-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  color: #fff;
}
.jd-chat-note {
  margin: 0 0 0.75rem;
  color: var(--jd-muted);
  font-size: 0.9rem;
}
.jd-chat-panel .jd-contact-form {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  max-width: none;
}

@media (max-width: 600px) {
  .jd-chat-root { right: 12px; bottom: 12px; }
  .jd-hero { min-height: 380px; padding: 48px 20px 56px; background-position: 80% 40%; }
  .jd-hero::before {
    background: linear-gradient(180deg, rgba(18,20,15,0.55) 0%, rgba(18,20,15,0.88) 70%);
  }
  .jd-hero-inner { max-width: 100%; }
}

/* Hide Astra category-count leak ("20") on product cards */
.ast-woo-product-category { display: none !important; }

/* Hide the leftover page title "Home" above the hero */
.home .entry-header,
.home h1.entry-title { display: none !important; }

/* Contact and other titles: never dark-blue on charcoal */
.entry-title, .ast-archive-title, h1, h2, h3 {
  color: var(--jd-offwhite) !important;
}
.page .entry-content h1:first-child { display: none; } /* duplicate of theme title */

/* Tawk.to is the live chat; hide the old email drawer */
.jd-chat-root, #jd-chat-root, .jd-chat-toggle { display: none !important; }

/* Postage is baked into the listed price */
.price .jd-postage,
.jd-postage {
  display: block;
  margin: 0.2em 0 0.4em;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--jd-olive, #6B7A3A);
}
.single-product .price .jd-postage {
  font-size: 0.95rem;
  margin: 0.15em 0 0.75em;
}

/* Header nav: brighter, heavier */
.main-header-menu .menu-link,
.ast-builder-menu a,
.site-header .main-header-menu a {
  color: #ffffff !important;
  font-weight: 600;
}

/* Dropdowns / submenus — never pale text on a light panel */
.main-header-menu .sub-menu,
.ast-builder-menu .sub-menu,
.ast-desktop .menu-item .sub-menu,
.woocommerce-MyAccount-navigation,
.ast-site-header-cart .widget_shopping_cart,
.ast-header-account-wrap .ast-account-nav {
  background: #1A1D16 !important;
  border: 1px solid #3a4030 !important;
}
.main-header-menu .sub-menu a,
.ast-builder-menu .sub-menu a,
.woocommerce-MyAccount-navigation a {
  color: #ffffff !important;
}

/* Shop "Default sorting" (the options dropdown, top-right of the catalogue) */
.woocommerce-ordering select,
select.orderby,
.woocommerce .woocommerce-ordering select {
  background: #1E2218 !important;
  color: #ffffff !important;
  border: 1px solid #C9A227 !important;
  font-weight: 600 !important;
  padding: 0.45rem 2rem 0.45rem 0.7rem;
}
.woocommerce-ordering select option,
select.orderby option {
  background: #1A1D16;
  color: #ffffff;
}
.woocommerce-result-count {
  color: #F4F1E8 !important;
  font-weight: 600;
}

/* CookieAdmin banner + preference "options" panel */
.cookieadmin_consent_inside,
.cookieadmin_law_container .cookieadmin_consent_inside {
  background: #1A1D16 !important;
  color: #F4F1E8 !important;
  border-color: #3a4030 !important;
}
#cookieadmin_notice_title,
#cookieadmin_notice,
.cookieadmin_preference_title,
.cookieadmin_cookie_modal,
.cookieadmin_cookie_modal label,
.cookieadmin_cookie_modal .stitle,
.cookieadmin_details_wrapper,
.cookieadmin_desc {
  color: #F4F1E8 !important;
}
.cookieadmin_cookie_modal,
.cookieadmin_preference_details {
  background: #1A1D16 !important;
  border-color: #3a4030 !important;
}
.cookieadmin_customize_btn,
.cookieadmin_reject_btn {
  background: #2a2f24 !important;
  color: #ffffff !important;
  border: 1px solid #C9A227 !important;
  font-weight: 700 !important;
}
.cookieadmin_accept_btn,
.cookieadmin_save_btn {
  background: #6B7A3A !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* Cookie banner sits under the hero CTA, not on top of it */
.home .jd-hero {
  padding-bottom: 210px;
}
.cookieadmin_law_container {
  max-width: min(420px, calc(100vw - 24px));
}

/* WP admin bar (only when Chris is logged in). Default text is pale grey. */
#wpadminbar .ab-item,
#wpadminbar a.ab-item,
#wpadminbar > #wp-toolbar span.ab-label,
#wpadminbar > #wp-toolbar span.noticon,
#wpadminbar #wp-admin-bar-user-info .display-name,
#wpadminbar .ab-submenu .ab-item {
  color: #ffffff !important;
}
#wpadminbar .ab-icon::before,
#wpadminbar .ab-item::before,
#wpadminbar .ab-item::after {
  color: #ffffff !important;
}
