/* ==========================================================================
   xparts.ge — brand layer over Partdo
   Palette pulled from the logo: graphite wordmark + steel-blue "X".
   ========================================================================== */

/* Fonts: @font-face in fonts.css. */

:root {
  /* Brand */
  --xp-graphite: #1F2731;
  --xp-graphite-2: #2A3440;
  --xp-ink: #3A4652;
  --xp-steel: #4F6B8C;
  --xp-steel-dark: #3B5372;
  --xp-steel-mid: #6A849E;
  --xp-silver: #A4B6CC;
  --xp-mist: #EEF2F7;
  --xp-frost: #F6F8FB;
  --xp-chrome: linear-gradient(135deg, #6A849E 0%, #4F6B8C 45%, #3A4652 100%);
  --xp-night: radial-gradient(1200px 500px at 85% -10%, rgba(106, 132, 158, .35), transparent 60%),
              linear-gradient(160deg, #2A3440 0%, #1F2731 55%, #161C23 100%);
  --xp-shadow: 0 1px 2px rgba(31, 39, 49, .06), 0 8px 24px -8px rgba(31, 39, 49, .14);
  --xp-shadow-hover: 0 2px 4px rgba(31, 39, 49, .08), 0 18px 40px -12px rgba(59, 83, 114, .35);

  /* Partdo tokens */
  --color-text-primary: var(--xp-graphite);
  --color-text-description: #6B7684;
  --color-text-light: #A7B0BB;
  --color-text-lighter: #C9D1DB;
  --color-info: #E6EAF0;
  --color-info-dark: #D9DFE7;
  --color-info-light: #F3F5F8;
  --color-form-border: #D5DCE5;
  --color-form-active-shadow: rgba(79, 107, 140, .18);
  --color-form-placeholder: #9AA5B1;
  --color-primary: var(--xp-steel);
  --color-primary-dark: var(--xp-steel-dark);
  --color-primary-lighter: var(--xp-mist);
  --color-secondary: var(--xp-steel-mid);
  --color-secondary-dark: var(--xp-ink);
  --color-secondary-lighter: var(--xp-frost);
  --color-success: #2F9E77;
  --color-success-dark: #23805F;
  --color-success-lighter: #E7F6F0;
  --color-danger: #D64545;
  --color-danger-dark: #B23434;
  --color-danger-light: #FCEEEE;
  --color-gradient-1: var(--xp-chrome);

  --theme-primary-font: "TBCX", "Roboto", system-ui, sans-serif;
  --theme-secondary-font: "TBCX", "Roboto", system-ui, sans-serif;
  --theme-letter-spacing: 0;
  --theme-theme-radius-base: 14px;
  --theme-form-radius: 10px;
}

/* Site fonts follow Elementor → Site Settings → Global Fonts ("Text" for body,
   "Primary" for headings), so header, shop and footer change with them. The
   kit sets those variables on body, hence body rather than :root. */
body {
  --theme-primary-font: var(--e-global-typography-text-font-family, "TBCX"), "TBCX", "Roboto", system-ui, sans-serif;
  --theme-secondary-font: var(--e-global-typography-primary-font-family, "TBCX"), "TBCX", "Roboto", system-ui, sans-serif;
  font-family: var(--theme-primary-font);
  background-color: var(--xp-frost);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .product_title, .klbth-section-title {
  font-family: var(--theme-secondary-font);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--xp-graphite);
}

::selection { background: var(--xp-steel); color: #fff; }

/* Georgian in Mtavruli via the font's "case" feature (TBCX, FiraGO). Also
   settable per element / site-wide in Elementor (inc/elementor/font-features.php). */
.xp-case { font-feature-settings: "case" 1; }

/* ---------- Header ---------- */
.site-header .header-topbar {
  background: var(--xp-graphite);
  color: var(--xp-silver);
  border: 0;
}
.site-header .header-topbar a { color: #fff; }
.site-header .header-topbar a:hover { color: var(--xp-silver); }

.site-header .header-main {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-info);
}

.site-brand img, .site-header .site-brand img { max-height: 46px; width: auto; }

/* ---------- Buttons ---------- */
.button, button.button, .btn-primary,
input[type="submit"], .single_add_to_cart_button,
.woocommerce a.button.alt, .woocommerce button.button.alt,
.elementor-button {
  background: var(--xp-steel) !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: .01em;
  transition: background-color .2s ease, color .2s ease;
}
.button:hover, button.button:hover, .btn-primary:hover,
input[type="submit"]:hover, .single_add_to_cart_button:hover,
.elementor-button:hover {
  background: var(--xp-steel-dark) !important;
}

/* ---------- Product cards ---------- */
.product .product-wrapper, .products .product-inner, ul.products li.product .product-content {
  transition: box-shadow .25s ease, transform .25s ease;
}
ul.products li.product {
  background: #fff;
  border-radius: var(--theme-theme-radius-base);
}
ul.products li.product:hover {
  box-shadow: var(--xp-shadow-hover);
  transform: translateY(-2px);
  z-index: 2;
}
.price, .woocommerce-Price-amount { color: var(--xp-graphite); font-weight: 800; }
.price ins .woocommerce-Price-amount { color: var(--xp-steel); }

.product-badges .badge, .onsale {
  background: var(--xp-graphite);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
}

/* ---------- Forms / search selects ---------- */
input[type="text"], input[type="email"], input[type="search"], input[type="tel"],
input[type="number"], input[type="password"], select, textarea {
  border-color: var(--color-form-border);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--xp-steel) !important;
  box-shadow: 0 0 0 4px var(--color-form-active-shadow) !important;
}

/* ---------- Dark "chrome" sections ---------- */
.xp-night, .elementor-section.xp-night, .e-con.xp-night {
  background: var(--xp-night) !important;
  color: #DCE3EC;
}
.xp-night h1, .xp-night h2, .xp-night h3, .xp-night h4 { color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--xp-night);
  color: #B7C2CF;
}
.site-footer a { color: #DCE3EC; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-widgets .widget-title,
.site-footer h4, .site-footer h5 { color: #fff; }
.site-footer .footer-copyright {
  background: transparent;
  border-top: 1px solid rgba(164, 182, 204, .15);
  color: #8E9BAA;
}

/* ==========================================================================
   Homepage (page-templates/xparts-home.php)
   ========================================================================== */

.xp-home { background: var(--xp-frost); }
.xp-home .container { max-width: var(--theme-container); }

.xp-eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--xp-silver);
}
.xp-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; opacity: .7; }
.xp-eyebrow--dark { color: var(--xp-steel); }

.xp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: 52px; padding: 0 28px; border-radius: 5px; border: 0;
  font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
/* .xp-btn.xp-btn--* outranks Partdo's "button:not(.link)" grey background */
.xp-btn.xp-btn--primary { background: var(--xp-steel); color: #fff; }
.xp-btn.xp-btn--primary:hover { color: #fff; background: var(--xp-steel-dark); }
.xp-btn.xp-btn--light { background: #fff; color: var(--xp-graphite); }
.xp-btn.xp-btn--light:hover { color: var(--xp-graphite); background: var(--xp-mist); }

/* Hero */
.xp-hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 8vw, 120px); }
.xp-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(164,182,204,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(164,182,204,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
}
.xp-hero__car {
  position: absolute; right: -6%; bottom: 6%; width: min(72vw, 1100px); max-width: none;
  opacity: .07; pointer-events: none; z-index: 0;
}
.xp-hero .container { position: relative; z-index: 1; }
.xp-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.xp-hero__title {
  margin: 18px 0 18px; color: #fff !important;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: 1.05; font-weight: 800; letter-spacing: -.02em;
}
.xp-hero__title span {
  background: linear-gradient(90deg, #C9D6E6 0%, #8FA6C2 60%, #6A849E 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.xp-hero__lead { max-width: 34em; font-size: 1.08rem; line-height: 1.65; color: #B7C2CF; margin: 0 0 34px; }
.xp-hero__stats { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; }
.xp-hero__stats li { padding: 0 28px; border-left: 1px solid rgba(164,182,204,.2); }
.xp-hero__stats li:first-child { padding-left: 0; border-left: 0; }
.xp-hero__stats strong { display: block; font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1.2; }
.xp-hero__stats span { font-size: .85rem; color: #8E9BAA; }

/* Finder card */
.xp-finder {
  position: relative;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(164,182,204,.18);
  border-radius: 20px; padding: 10px 26px 26px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
}
.xp-finder__tabs { display: flex; gap: 6px; padding: 6px; margin: 8px 0 22px; background: rgba(0,0,0,.25); border-radius: 12px; }
.xp-finder__tabs button {
  flex: 1; height: 40px; border: 0; border-radius: 5px; background: transparent;
  color: #A7B3C1; font-weight: 700; font-size: .9rem; cursor: pointer; transition: all .2s ease;
}
.xp-finder__tabs button.is-active { background: #fff; color: var(--xp-graphite); }
.xp-finder__panel { display: none; }
.xp-finder__panel.is-active { display: grid; gap: 14px; }
.xp-finder__panel .xp-btn { width: 100%; margin-top: 6px; }
.xp-field { display: grid; gap: 7px; margin: 0; }
.xp-field__label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8E9BAA; }
.xp-field select, .xp-field input,
.xp-finder .select2-container--default .select2-selection--single {
  height: 50px !important; border-radius: 12px !important;
  background: rgba(255,255,255,.96) !important; border: 1px solid transparent !important;
  color: var(--xp-graphite); font-weight: 600;
}
.xp-field input { padding: 0 16px; width: 100%; }
.xp-finder .select2-container { width: 100% !important; }
.xp-finder .select2-selection__rendered { line-height: 50px !important; padding-left: 16px !important; color: var(--xp-graphite) !important; }
.xp-finder .select2-selection__arrow { height: 50px !important; right: 10px !important; }
.xp-finder .select2-container--disabled .select2-selection--single { background: rgba(255,255,255,.55) !important; }
.xp-finder__hint { margin: 0; font-size: .82rem; color: #8E9BAA; }
.xp-finder__vin {
  display: block; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(164,182,204,.15);
  color: #C9D6E6; font-size: .9rem; font-weight: 600; text-decoration: none;
}
.xp-finder__vin:hover { color: #fff; }

/* Sections */
.xp-section { padding: clamp(56px, 7vw, 96px) 0; }
.xp-section--tight { padding-top: 0; }
.xp-section--muted { background: #fff; border-block: 1px solid var(--color-info); }
.xp-head { margin-bottom: 36px; }
.xp-head h2 { margin: 12px 0 0; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; }
.xp-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.xp-link { font-weight: 700; color: var(--xp-steel); text-decoration: none; }
.xp-link:hover { color: var(--xp-graphite); }

/* Steps */
.xp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.xp-steps li {
  position: relative; background: #fff; border: 1px solid var(--color-info); border-radius: 18px;
  padding: 30px 28px 32px; box-shadow: var(--xp-shadow); overflow: hidden;
}
.xp-steps li::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--xp-chrome); transform: scaleX(.18); transform-origin: left; transition: transform .4s ease;
}
.xp-steps li:hover::after { transform: scaleX(1); }
.xp-steps__n {
  display: inline-block; font-size: 2.6rem; font-weight: 800; line-height: 1;
  background: var(--xp-chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.xp-steps h3 { margin: 18px 0 10px; font-size: 1.2rem; }
.xp-steps p { margin: 0; color: var(--color-text-description); line-height: 1.6; }

/* Conditions */
.xp-conditions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.xp-condition {
  position: relative; display: grid; gap: 8px; padding: 30px 28px; border-radius: 18px; text-decoration: none;
  background: var(--xp-night); color: #DCE3EC; overflow: hidden; min-height: 150px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.xp-condition:nth-child(2) { background: var(--xp-chrome); }
.xp-condition:nth-child(3) { background: linear-gradient(135deg, #E9EEF5 0%, #D3DCE8 100%); color: var(--xp-graphite); }
.xp-condition:hover { transform: translateY(-3px); box-shadow: var(--xp-shadow-hover); color: inherit; }
.xp-condition__label { font-size: 1.35rem; font-weight: 800; color: #fff; }
.xp-condition:nth-child(3) .xp-condition__label { color: var(--xp-graphite); }
.xp-condition__note { font-size: .92rem; opacity: .8; }
.xp-condition__arrow { position: absolute; right: 26px; bottom: 22px; font-size: 1.4rem; transition: transform .25s ease; }
.xp-condition:hover .xp-condition__arrow { transform: translateX(4px); }

/* Brands */
.xp-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.xp-brand {
  display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-radius: 14px;
  background: var(--xp-frost); border: 1px solid var(--color-info); text-decoration: none;
  transition: all .2s ease;
}
.xp-brand__name { font-weight: 800; color: var(--xp-graphite); font-size: 1.02rem; }
.xp-brand__count { font-size: .8rem; color: var(--color-text-description); }
.xp-brand:hover { background: var(--xp-graphite); border-color: var(--xp-graphite); transform: translateY(-2px); }
.xp-brand:hover .xp-brand__name { color: #fff; }
.xp-brand:hover .xp-brand__count { color: var(--xp-silver); }

/* CTA */
.xp-cta { padding: clamp(48px, 6vw, 80px) 0; }
.xp-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.xp-cta h2 { margin: 0 0 8px; color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.xp-cta p { margin: 0; color: #B7C2CF; }

@media (max-width: 991px) {
  .xp-hero__grid { grid-template-columns: 1fr; }
  .xp-steps, .xp-conditions { grid-template-columns: 1fr; }
  .xp-hero__car { width: 140vw; right: -30%; bottom: 2%; }
}
@media (max-width: 575px) {
  .xp-hero__stats li { padding: 0 16px; }
  .xp-hero__stats strong { font-size: 1.3rem; }
  .xp-finder { padding: 8px 16px 20px; }
}

/* ==========================================================================
   Fixes after first review
   ========================================================================== */

/* Georgian has no lowercase/uppercase pair in everyday text — text-transform
   switches to Mtavruli, which reads poorly in UI labels. */
.xp-eyebrow, .xp-field__label { text-transform: none; letter-spacing: .02em; font-size: .82rem; }

/* Top notice bar: graphite with a steel hairline, no countdown. */
.site-header .header-notify {
  background: var(--xp-graphite) !important;
  background-image: none !important;
  color: #C9D6E6;
  border-bottom: 1px solid rgba(164, 182, 204, .12);
}
.site-header .header-notify .column.right { display: none; }
.site-header .header-notify-messages li { color: #C9D6E6; }

/* Brighter primary on dark backgrounds. */
.xp-night .xp-btn--primary { background: #5E7DA3; }
.xp-night .xp-btn--primary:hover { background: var(--xp-steel); }

/* Homepage flows straight into the footer. */
.page-template-xparts-home .site-footer,
.page-template-page-templatesxparts-home-php .site-footer { margin-top: 0; }
.xp-home + .site-footer, .xp-home ~ .site-footer { margin-top: 0; }

/* Footer contact column */
.site-footer .company-phone a { color: #fff; font-size: 1.35rem; font-weight: 800; }
.site-footer .company-works p { margin: 0 0 4px; }
.site-footer .company-logo img { max-width: 170px; height: auto; }

/* Banners keep light text on their dark media. */
.klbth-banner.color-scheme-light .entry-title,
.klbth-banner.color-scheme-light .entry-excerpt,
.klbth-banner.color-scheme-light .entry-excerpt p,
.klbth-banner.color-scheme-light .btn.link { color: #fff; }
.klbth-banner.color-scheme-light .entry-excerpt p { color: #C9D6E6; }
.shop-banner .badge { background: rgba(164, 182, 204, .18); color: #DCE3EC; backdrop-filter: blur(6px); }
.shop-banner { border-radius: 18px; overflow: hidden; }
.xp-btn--primary, .xp-btn--primary:hover, .xp-btn--primary:focus { color: #fff !important; }

/* Brand tiles with logos */
.xp-brands { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.xp-brand { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
.xp-brand__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.xp-brand__logo {
  flex: 0 0 56px; width: 56px; height: 56px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--color-info); padding: 8px;
  transition: background .2s ease, border-color .2s ease;
}
.xp-brand__logo img {
  width: 100%; height: 100%; object-fit: contain;
  filter: grayscale(1) contrast(1.05); opacity: .8;
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}
.xp-brand__logo.is-empty {
  background: var(--xp-chrome); border-color: transparent;
  color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: .02em;
}
.xp-brand:hover .xp-brand__logo { background: #fff; border-color: transparent; }
.xp-brand:hover .xp-brand__logo img { filter: none; opacity: 1; transform: scale(1.06); }
.xp-brand:hover .xp-brand__logo.is-empty { background: linear-gradient(135deg, #8FA9C9, #4F6B8C); }

@media (max-width: 575px) {
  .xp-brands { grid-template-columns: repeat(2, 1fr); }
  .xp-brand { padding: 12px; gap: 10px; }
  .xp-brand__logo { flex-basis: 44px; width: 44px; height: 44px; }
}

/* ==========================================================================
   Elementor widgets (inc/elementor/widgets.php)
   ========================================================================== */

/* Our widgets bring their own spacing; strip Elementor's around them. */
.elementor-widget[class*="elementor-widget-xparts-"] { margin-bottom: 0 !important; }
.e-con.xp-flush, .e-con.xp-flush > .e-con-inner { padding: 0 !important; gap: 0 !important; max-width: none; }
.elementor-page .site-content, .elementor-page .site-primary { padding-top: 0; }

.xp-section--small { padding: clamp(28px, 4vw, 48px) 0; }
.xp-section--none { padding: 0; }
.xp-section--tight { padding-top: 0; }
.xp-head__text { margin: 14px 0 0; max-width: 46em; color: var(--color-text-description); font-size: 1.05rem; line-height: 1.7; }
.xp-night .xp-head__text { color: #B7C2CF; }
.xp-night .xp-head h2, .xp-night .xp-heading-block__title { color: #fff; }

/* Heading widget */
.xp-heading-block .xp-head { margin-bottom: 0; }
.xp-heading-block.is-center .xp-head { text-align: center; }
.xp-heading-block.is-center .xp-head__text { margin-inline: auto; }
.xp-heading-block.is-center .xp-eyebrow { justify-content: center; }
.xp-heading-block__title { margin: 12px 0 0; line-height: 1.15; }
.xp-heading-block__title.is-h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.xp-heading-block__title.is-h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.xp-heading-block__title.is-h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }

/* Cards widget column variants */
.xp-steps--cols-2 { grid-template-columns: repeat(2, 1fr); }
.xp-steps--cols-4 { grid-template-columns: repeat(4, 1fr); }
.xp-steps__link { display: inline-block; margin-top: 14px; }
.xp-steps li p { white-space: normal; }

/* Hero variants */
.xp-hero--compact { padding: clamp(40px, 6vw, 72px) 0; }
.xp-hero--compact .xp-hero__title { font-size: clamp(2rem, 4vw, 3.2rem); }
.xp-hero--solo .xp-hero__grid { grid-template-columns: 1fr; max-width: 760px; }

/* CTA card variant */
.xp-cta--card { padding: clamp(40px, 5vw, 64px) 0; }
.xp-cta--card .xp-cta__inner { border-radius: 22px; padding: clamp(28px, 4vw, 48px); }

/* Contact form */
.xp-form-card {
  background: #fff; border: 1px solid var(--color-info); border-radius: 20px;
  padding: clamp(24px, 4vw, 44px); box-shadow: var(--xp-shadow); max-width: 820px;
}
.xp-form-card .wpcf7-form p { margin: 0 0 16px; }
.xp-form-card label { display: block; font-weight: 700; font-size: .88rem; color: var(--xp-ink); }
.xp-form-card .wpcf7-form-control:not(.wpcf7-submit) {
  width: 100%; margin-top: 6px; min-height: 50px; padding: 12px 16px;
  border: 1px solid var(--color-form-border); border-radius: 12px; background: var(--xp-frost);
}
.xp-form-card textarea.wpcf7-form-control { min-height: 140px; }
.xp-form-card .xp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.xp-form-card .wpcf7-submit { height: 52px; padding: 0 32px; border-radius: 5px; cursor: pointer; }

/* Long-form text (policies): wrap the Text Editor widget in a container with class xp-prose */
.xp-prose .elementor-widget-text-editor {
  max-width: 820px; margin-inline: auto; background: #fff; border: 1px solid var(--color-info);
  border-radius: 20px; padding: clamp(24px, 4vw, 48px); line-height: 1.8; color: var(--xp-ink);
}
.xp-prose h2, .xp-prose h3 { margin: 1.6em 0 .5em; font-size: 1.25rem; }
.xp-prose h2:first-child, .xp-prose h3:first-child { margin-top: 0; }
.xp-prose ul { padding-left: 1.2em; }
.xp-prose .xp-draft-note {
  padding: 12px 16px; border-radius: 12px; background: #FFF8E6; border: 1px solid #F3D48B; color: #7A5A12; font-size: .9rem;
}

@media (max-width: 991px) {
  .xp-steps--cols-2, .xp-steps--cols-4 { grid-template-columns: 1fr; }
  .xp-form-card .xp-form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Hero — "banner" layout: rounded dark card, search on one row
   ========================================================================== */

.xp-banner-wrap { padding: clamp(16px, 2.5vw, 28px) 0 clamp(8px, 1.5vw, 16px); }
.xp-banner {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 10px;
  padding: clamp(28px, 4.5vw, 60px) clamp(22px, 4.5vw, 64px) clamp(26px, 3.5vw, 44px);
  color: #fff;
  background-color: #151A20;
}
/* Steel glow that shows through the gaps between the hexagons */
.xp-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(460px 280px at 80% 108%, rgba(160, 188, 222, 1), rgba(106, 132, 158, .5) 45%, transparent 75%),
    radial-gradient(520px 320px at 70% 20%, rgba(79, 107, 140, .45), transparent 70%),
    radial-gradient(600px 400px at 10% 0%, rgba(58, 70, 82, .6), transparent 70%);
}
/* Left-side shade so the text stays readable (opacity set in Elementor) */
.xp-banner::after {
  content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(21, 26, 32, .92) 0%, rgba(21, 26, 32, .55) 45%, rgba(21, 26, 32, .15) 100%);
}
.xp-banner.no-glow::before { display: none; }
/* Hexagon cells over the glow, under the shade */
.xp-banner__hex {
  position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='69.28' height='120' viewBox='0 0 69.28 120'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%232B343F'/%3E%3Cstop offset='.55' stop-color='%231D242C'/%3E%3Cstop offset='1' stop-color='%23171D24'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='url%28%23g%29' stroke='url%28%23g%29' stroke-width='7' stroke-linejoin='round'%3E%3Cpolygon points='34.64,5.00 64.95,22.50 64.95,57.50 34.64,75.00 4.33,57.50 4.33,22.50'/%3E%3Cpolygon points='0.00,65.00 30.31,82.50 30.31,117.50 0.00,135.00 -30.31,117.50 -30.31,82.50'/%3E%3Cpolygon points='69.28,65.00 99.59,82.50 99.59,117.50 69.28,135.00 38.97,117.50 38.97,82.50'/%3E%3Cpolygon points='0.00,-55.00 30.31,-37.50 30.31,-2.50 0.00,15.00 -30.31,-2.50 -30.31,-37.50'/%3E%3Cpolygon points='69.28,-55.00 99.59,-37.50 99.59,-2.50 69.28,15.00 38.97,-2.50 38.97,-37.50'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 83px 144px repeat;
}
.xp-banner-wrap--full .container { max-width: none; padding-inline: 0; }
.xp-banner-wrap--full .xp-banner { border-radius: 0; }
.xp-banner__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 24px; }
.xp-banner__title {
  margin: 0; color: #fff !important;
  font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; font-weight: 800; letter-spacing: -.01em;
}
.xp-banner__title span {
  background: linear-gradient(90deg, #C9D6E6 0%, #8FA6C2 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.xp-banner__lead { margin: 10px 0 0; color: #DCE3EC; font-size: 1.02rem; }
.xp-banner__rule { display: block; border: 0; border-top: 1px solid rgba(220, 227, 236, .3) !important; height: 0; margin: clamp(22px, 3vw, 34px) 0 !important; background: none; opacity: 1; }

/* Card chrome from the split layout is not wanted here */
.xp-finder.xp-finder--bare {
  background: none; border: 0; border-radius: 0; padding: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none;
}
.xp-banner__tabs { margin: 4px 0 0; background: rgba(0, 0, 0, .35); }
.xp-banner__tabs button { flex: 0 0 auto; padding: 0 18px; white-space: nowrap; }

.xp-finder__panel.xp-banner__row.is-active {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: clamp(12px, 1.6vw, 22px); align-items: end;
}
.xp-banner__row--oem.is-active { grid-template-columns: minmax(0, 1fr) auto; }
.xp-banner__row .xp-field__label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.xp-banner .xp-field select, .xp-banner .xp-field input,
.xp-banner .select2-container--default .select2-selection--single {
  height: 48px !important; border-radius: 10px !important;
  background: #fff !important; border: 1px solid rgba(255, 255, 255, .6) !important;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .6);
  color: var(--xp-graphite); font-weight: 500;
}
.xp-banner .xp-field input { padding: 0 18px; width: 100%; font-size: .95rem; }
.xp-banner .select2-container { width: 100% !important; }
.xp-banner .select2-selection__rendered { line-height: 46px !important; padding-left: 18px !important; padding-right: 64px !important; font-size: .95rem; color: var(--xp-graphite) !important; }
.xp-banner .select2-selection__placeholder { color: #8E99A6 !important; }
.xp-banner .select2-selection__arrow { height: 48px !important; right: 14px !important; }
.xp-banner .select2-container--disabled .select2-selection--single { background: rgba(255, 255, 255, .78) !important; }

.xp-btn--outline {
  height: 48px; padding: 0 30px; border-radius: 5px;
  background: transparent !important; color: #fff !important;
  border: 2px solid #fff !important; box-shadow: none !important;
  font-weight: 800; font-size: 1rem;
}
.xp-btn--outline:hover, .xp-btn--outline:focus { background: #fff !important; color: var(--xp-graphite) !important; }

.xp-banner__note { margin: clamp(22px, 3vw, 34px) 0 0; color: #DCE3EC; font-size: .98rem; }
.xp-banner__note a { color: #fff; font-weight: 700; white-space: nowrap; }
.xp-banner__note a:hover { color: var(--xp-silver); }

@media (max-width: 991px) {
  .xp-finder__panel.xp-banner__row.is-active { grid-template-columns: 1fr 1fr; }
  .xp-banner__row .xp-btn--outline { grid-column: 1 / -1; width: 100%; }
  .xp-banner__head { grid-template-columns: 1fr; }
  .xp-banner__tabs { width: 100%; }
  .xp-banner__tabs button { flex: 1; }
}
@media (max-width: 575px) {
  .xp-banner { border-radius: 18px; }
  .xp-finder__panel.xp-banner__row.is-active,
  .xp-banner__row--oem.is-active { grid-template-columns: 1fr; }
}
.xp-finder__panel.xp-banner__row .xp-btn { width: auto; margin-top: 0; }
@media (max-width: 991px) { .xp-finder__panel.xp-banner__row .xp-btn { width: 100%; } }

/* Select2 inside the finders: arrow (theme SVG background) and clear button
   centred vertically at any field height. */
.xp-finder .select2-container--default .select2-selection--single { position: relative; }
.xp-finder .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 0 !important; bottom: 0 !important; height: auto !important; width: 24px !important;
  right: 14px !important; background-position: center center !important; background-repeat: no-repeat !important;
}
.xp-finder .select2-container--default .select2-selection--single .select2-selection__clear {
  position: absolute; top: 50%; right: 42px; transform: translateY(-50%);
  margin: 0; height: auto; line-height: 1; padding: 2px 4px; color: #8E99A6; background: none; border: 0;
}
.xp-finder .select2-container--disabled .select2-selection--single .select2-selection__clear { display: none !important; }

/* ==========================================================================
   Brands widget — "cards" layout: big logo on top, name below
   ========================================================================== */

.xp-brand-cards {
  --xp-gap: clamp(12px, 1.4vw, 20px);
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--xp-gap);
}
.xp-brand-cards.is-left { justify-content: flex-start; }
.xp-brand-card {
  flex: 0 0 auto;
  width: min(190px, calc((100% - (var(--xp-cols, 5) - 1) * var(--xp-gap)) / var(--xp-cols, 5)));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 20px 14px 18px;
  border-radius: 14px; background: #EEF3FB; text-decoration: none; text-align: center;
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}
.xp-brand-card__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 84px; }
.xp-brand-card__logo img {
  max-width: 76%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  mix-blend-mode: multiply; /* blends white JPG backgrounds into the card */
  transition: transform .3s ease;
}
.xp-brand-card__logo.is-empty span {
  display: flex; align-items: center; justify-content: center;
  width: 68px; aspect-ratio: 1; border-radius: 50%;
  background: var(--xp-chrome); color: #fff; font-weight: 800; font-size: 1.3rem; letter-spacing: .02em;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), 0 10px 24px -12px rgba(59, 83, 114, .8);
}
.xp-brand-card__name { font-weight: 800; font-size: .88rem; letter-spacing: .04em; text-transform: uppercase; color: #1E2A44; }
.xp-brand-card__count { margin-top: -8px; font-size: .78rem; color: var(--color-text-description); }
.xp-brand-card:hover { background: #fff; box-shadow: var(--xp-shadow-hover); transform: translateY(-3px); }
.xp-brand-card:hover .xp-brand-card__logo img { transform: scale(1.05); }

@media (max-width: 767px) { .xp-brand-card { width: calc((100% - 2 * var(--xp-gap)) / 3); } .xp-brand-card__logo { height: 70px; } }
@media (max-width: 480px) { .xp-brand-card { width: calc((100% - var(--xp-gap)) / 2); } }

/* Shop sidebar vehicle finder (inc/vehicle-finder.php) */
.xp-sidebar-finder__text { margin: -4px 0 14px; color: var(--color-text-description); font-size: .9rem; }
.xp-sidebar-finder .xp-finder__panel.is-active { display: grid; gap: 10px; }
.xp-sidebar-finder .xp-field__label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.xp-sidebar-finder .select2-container { width: 100% !important; }
.xp-sidebar-finder .select2-container--default .select2-selection--single {
  height: 46px !important; border-radius: 10px !important;
  background: #fff !important; border: 1px solid var(--color-form-border) !important;
}
.xp-sidebar-finder .select2-selection__rendered { line-height: 44px !important; padding-left: 16px !important; padding-right: 60px !important; color: var(--xp-graphite) !important; font-size: .92rem; }
.xp-sidebar-finder .select2-container--disabled .select2-selection--single { background: var(--xp-frost) !important; }
.xp-sidebar-finder .xp-btn { width: 100%; height: 46px; margin-top: 4px; }

/* CTA: buttons stacked (WhatsApp, then form popup) */
.xp-cta__actions { display: flex; flex-direction: column; gap: 12px; min-width: 240px; }
.xp-cta__actions .xp-btn { width: 100%; height: 52px; }

/* Form popup (<dialog>) */
html.xp-modal-open { overflow: hidden; }
.xp-modal {
  width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  padding: 0; border: 0; background: transparent; overflow: visible;
}
.xp-modal::backdrop { background: rgba(21, 26, 32, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.xp-modal[open] { animation: xp-modal-in .22s ease-out; }
@keyframes xp-modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.xp-modal__box {
  position: relative; max-width: none; max-height: calc(100vh - 32px); overflow: auto;
  box-shadow: 0 40px 90px -30px rgba(21, 26, 32, .7);
}
.xp-modal__box .xp-head { margin-bottom: 22px; padding-right: 40px; }
.xp-modal__box .xp-head h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.xp-modal__close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 5px;
  border: 0; background: var(--xp-frost); color: var(--xp-graphite); font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.xp-modal__close:hover { background: var(--color-info); transform: rotate(90deg); }

@media (max-width: 767px) { .xp-cta__actions { width: 100%; min-width: 0; } }
.xp-form-card textarea.wpcf7-form-control { height: 130px !important; min-height: 0 !important; resize: vertical; }

/* ==========================================================================
   Buttons — flat: no shadows or gradients, corners ≤ 5px.
   Covers Partdo/Woo/Elementor/plugin buttons the rules above don't name.
   ========================================================================== */
button, .button, .btn, .submit, input[type="submit"], input[type="button"], input[type="reset"],
.xp-btn, .elementor-button, .wpcf7-submit, .klbth-module-header .tab-link {
  border-radius: 5px !important;
  box-shadow: none !important;
  background-image: none !important;
  text-shadow: none !important;
}
.klbth-module-header .klbt-module-tab-links.style-2 .tab-item.active .tab-link { background: var(--xp-steel) !important; }

/* "ყველა კატეგორია" button: square top corners */
.site-header .dropdown-cats .dropdown-toggle { border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; }

/* "კალათის ნახვა" link Woo injects after an AJAX add — not shown.
   Only .added_to_cart: .wc-forward alone also marks mini-cart/notice buttons. */
a.added_to_cart { display: none !important; }

/* Add to cart — yellow, graphite text (loop, list-view icon, single product).
   The .woocommerce variants tie ".woocommerce button.button.alt" above and win by order. */
:root { --xp-cart: #FFC21A; --xp-cart-hover: #F2B000; }
.button.add_to_cart_button, .button.single_add_to_cart_button,
.woocommerce a.button.add_to_cart_button, .woocommerce button.button.single_add_to_cart_button,
.product .product-cart-form a.button {
  background: var(--xp-cart) !important;
  color: var(--xp-graphite) !important;
}
.button.add_to_cart_button:hover, .button.single_add_to_cart_button:hover,
.woocommerce a.button.add_to_cart_button:hover, .woocommerce button.button.single_add_to_cart_button:hover,
.product .product-cart-form a.button:hover {
  background: var(--xp-cart-hover) !important;
  color: var(--xp-graphite) !important;
}
