/*
Theme Name: Voltaji
Theme URI: https://voltaji.ge
Description: Custom Astra child theme for voltaji.ge — portable EV chargers & adapters. Clean-grid design, WooCommerce-ready, bilingual (KA/EN via Polylang).
Author: Voltaji
Version: 1.0.0
Template: astra
Text Domain: voltaji
*/

/* ============================================================
   Design tokens
   ============================================================ */
:root{
  --vj-accent:#2549e6;
  --vj-accent-soft:#eef1ff;
  --vj-ink:#14161b;
  --vj-muted:#55585f;
  --vj-muted-2:#6a6d74;
  --vj-faint:#85888f;
  --vj-bg:#fbfbf9;
  --vj-surface:#ffffff;
  --vj-line:#e6e6e0;
  --vj-line-2:#eeeee8;
  --vj-max:1240px;
  --vj-sans:"Noto Sans Georgian", system-ui, -apple-system, sans-serif;
  --vj-display:"Space Grotesk", "Noto Sans Georgian", sans-serif;
  --vj-mono:"IBM Plex Mono", ui-monospace, monospace;
}

/* ============================================================
   Base / typography — applies site-wide (shop, product, cart)
   ============================================================ */
body,
.ast-container,
button, input, select, textarea{
  font-family: var(--vj-sans);
  color: var(--vj-ink);
}
body{ background: var(--vj-bg); }
h1,h2,h3,h4,h5,h6{ font-family: var(--vj-sans); color: var(--vj-ink); letter-spacing:-0.01em; }
a{ color: var(--vj-accent); }
a:hover{ opacity:.8; }

.vj-mono{ font-family:var(--vj-mono); }
.vj-display{ font-family:var(--vj-display); }

/* container helper */
.vj-wrap{ max-width:var(--vj-max); margin:0 auto; }
.vj-x{ padding-left:40px; padding-right:40px; }

/* ============================================================
   Buttons (site-wide, incl. WooCommerce)
   ============================================================ */
.vj-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt{
  display:inline-flex; align-items:center; justify-content:center;
  padding:14px 28px; border-radius:10px;
  background:var(--vj-accent); color:#fff;
  font-family:var(--vj-sans); font-weight:600; font-size:16px;
  border:none; line-height:1.1; text-decoration:none; transition:.15s;
}
.vj-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover{ background:#1c3bc0; color:#fff; opacity:1; }

.vj-btn--ghost{
  background:transparent; color:var(--vj-ink);
  border:1.5px solid #d5d5cd;
}
.vj-btn--ghost:hover{ background:transparent; border-color:var(--vj-accent); color:var(--vj-accent); }
.vj-btn--dark{ background:var(--vj-ink); color:#fff; }
.vj-btn--dark:hover{ background:#000; }

/* ============================================================
   Homepage
   ============================================================ */
.vj-home{ background:var(--vj-bg); }
.vj-home section{ border-bottom:1px solid var(--vj-line); }

/* hero */
.vj-hero{ display:grid; grid-template-columns:1fr 1fr; }
.vj-hero__copy{ padding:76px 40px; display:flex; flex-direction:column; gap:24px; justify-content:center; border-right:1px solid var(--vj-line); }
.vj-eyebrow{ font-family:var(--vj-mono); font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--vj-accent); }
.vj-hero__copy h1{ margin:0; font-size:52px; line-height:1.05; font-weight:800; text-wrap:balance; }
.vj-hero__copy p{ margin:0; font-size:17px; line-height:1.55; color:var(--vj-muted); max-width:440px; }
.vj-hero__cta{ display:flex; gap:12px; flex-wrap:wrap; }
.vj-hero__media{ position:relative; min-height:460px; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(160deg,#f6f6f1,#eef0f5); overflow:hidden; padding:32px; }
.vj-hero__img{ max-width:100%; max-height:420px; width:auto; height:auto; object-fit:contain;
  filter:drop-shadow(0 30px 50px rgba(20,22,27,.18)); }
.vj-badge-live{ position:absolute; right:24px; bottom:24px; display:flex; align-items:center; gap:12px;
  padding:13px 17px; border-radius:12px; background:#fff; border:1px solid var(--vj-line);
  box-shadow:0 12px 30px -14px rgba(0,0,0,.25); }
.vj-dot{ width:10px; height:10px; border-radius:50%; background:var(--vj-accent); }
.vj-ph{ font-family:var(--vj-mono); font-size:13px; color:#a4a49a; }

/* chip strip */
.vj-chips{ display:flex; }
.vj-chips > div{ flex:1; padding:16px; text-align:center; font-family:var(--vj-mono); font-size:13px; color:var(--vj-muted); border-right:1px solid var(--vj-line); }
.vj-chips > div:last-child{ border-right:none; }

/* section head */
.vj-sec{ padding:72px 40px; }
.vj-sec__head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:32px; flex-wrap:wrap; }
.vj-sec__head h2{ margin:0; font-size:34px; font-weight:800; max-width:560px; }
.vj-sec__head p{ margin:0; color:var(--vj-muted-2); font-size:15px; max-width:340px; }
.vj-sec h2.vj-h{ font-size:30px; font-weight:800; margin:0 0 8px; }
.vj-sec p.vj-sub{ margin:0 0 28px; color:var(--vj-muted-2); font-size:15px; }

/* connector guide */
.vj-guide{ border:1px solid var(--vj-line); border-radius:14px; overflow:hidden; }
.vj-guide__row{ display:flex; align-items:center; gap:18px; padding:22px 26px; border-bottom:1px solid var(--vj-line-2); background:#fff; }
.vj-guide__row:last-child{ border-bottom:none; }
.vj-guide__flag{ font-size:30px; }
.vj-guide__txt{ flex:1; display:flex; flex-direction:column; gap:3px; }
.vj-guide__txt b{ font-weight:600; font-size:17px; }
.vj-guide__txt span{ color:var(--vj-faint); font-family:var(--vj-mono); font-size:12px; }
.vj-guide__arrow{ font-family:var(--vj-mono); font-size:11px; color:#a4a49a; }
.vj-std{ padding:8px 16px; border-radius:8px; background:var(--vj-accent-soft); color:var(--vj-accent);
  font-family:var(--vj-display); font-weight:700; font-size:15px; min-width:78px; text-align:center; }

/* categories */
.vj-cats{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.vj-cat{ display:flex; flex-direction:column; gap:14px; padding:24px; border:1px solid var(--vj-line);
  border-radius:14px; background:#fff; transition:.15s; text-decoration:none; }
.vj-cat:hover{ border-color:var(--vj-accent); opacity:1; transform:translateY(-2px); }
.vj-cat__icon{ font-size:28px; }
.vj-cat b{ font-weight:600; font-size:17px; color:var(--vj-ink); }
.vj-cat span{ font-family:var(--vj-mono); font-size:12px; color:var(--vj-faint); }

/* bestseller */
.vj-best{ display:grid; grid-template-columns:1fr 1fr; }
/* bestseller — product image ALWAYS 1:1, never cropped or stretched */
.vj-best__media{ position:relative; display:flex; align-items:center; justify-content:center;
  background:#fff; border-right:1px solid var(--vj-line); overflow:hidden; padding:40px; }
.vj-best__media img,
.vj-best__img{ width:auto !important; height:auto !important; max-width:100%; max-height:380px;
  aspect-ratio:1 / 1; object-fit:contain; display:block; margin:auto; }
.vj-tag{ position:absolute; top:18px; left:18px; padding:6px 12px; border-radius:6px; background:var(--vj-ink);
  color:#fff; font-size:12px; font-weight:700; font-family:var(--vj-mono); z-index:2; }
.vj-best__body{ padding:56px 40px; display:flex; flex-direction:column; gap:18px; justify-content:center; }
.vj-best__body h3{ margin:0; font-size:28px; font-weight:800; line-height:1.2; }
.vj-price{ display:flex; align-items:baseline; gap:14px; }
.vj-price ins{ font-family:var(--vj-display); font-size:36px; font-weight:700; text-decoration:none; color:var(--vj-ink); background:none; }
.vj-price del{ font-size:19px; color:#a4a49a; }

/* how + why */
.vj-steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--vj-line);
  border:1px solid var(--vj-line); border-radius:14px; overflow:hidden; }
.vj-step{ display:flex; flex-direction:column; gap:10px; padding:28px; background:#fff; }
.vj-step__n{ font-family:var(--vj-display); font-size:30px; font-weight:700; color:var(--vj-accent); }
.vj-step b{ font-weight:600; font-size:17px; }
.vj-step span{ color:var(--vj-muted-2); font-size:14px; line-height:1.5; }
.vj-why{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:44px; }
.vj-why__item{ display:flex; flex-direction:column; gap:8px; padding-top:18px; border-top:2px solid var(--vj-accent); }
.vj-why__item b{ font-weight:700; font-size:17px; }
.vj-why__item span{ color:var(--vj-muted-2); font-size:14px; line-height:1.5; }

/* contact cta */
.vj-cta{ padding:60px 40px; background:var(--vj-ink); display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap; }
.vj-cta h2{ margin:0 0 8px; font-size:30px; font-weight:800; color:#fff; }
.vj-cta p{ margin:0; color:#9a9da4; font-size:16px; max-width:480px; }

/* ============================================================
   WooCommerce restyle (shop grid, product, cart)
   ============================================================ */
.woocommerce ul.products li.product{ border:1px solid var(--vj-line); border-radius:14px; background:#fff; padding:14px; transition:.15s; }
.woocommerce ul.products li.product:hover{ border-color:var(--vj-accent); transform:translateY(-2px); }
.woocommerce ul.products li.product .woocommerce-loop-product__title{ font-weight:600; font-size:16px; padding:.4em 0; }
.woocommerce ul.products li.product .price{ color:var(--vj-ink); font-family:var(--vj-display); font-weight:700; }
.woocommerce ul.products li.product .price del{ color:#a4a49a; font-weight:400; }
.woocommerce span.onsale{ background:var(--vj-ink); border-radius:6px; font-family:var(--vj-mono); font-weight:700; min-height:auto; min-width:auto; padding:6px 12px; line-height:1; }
.woocommerce div.product .product_title{ font-weight:800; }
.woocommerce div.product p.price,
.woocommerce div.product span.price{ color:var(--vj-ink); font-family:var(--vj-display); font-weight:700; }
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info{ border-top-color:var(--vj-accent); }
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before{ color:var(--vj-accent); }
.woocommerce-store-notice, p.demo_store{ background:var(--vj-accent); }

/* ============================================================
   Custom header / footer
   ============================================================ */
.vj-header{ position:sticky; top:0; z-index:100; background:rgba(251,251,249,.88);
  backdrop-filter:blur(12px); border-bottom:1px solid var(--vj-line); transition:box-shadow .2s, background .2s; }
.vj-header.is-stuck{ box-shadow:0 8px 30px -18px rgba(20,22,27,.35); background:rgba(251,251,249,.96); }
.vj-header__inner{ max-width:var(--vj-max); margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:14px 40px; }
.vj-logo{ display:flex; align-items:center; flex-shrink:0; }
.vj-logo img{ height:34px; width:auto; display:block; }
.vj-nav{ flex:1; display:flex; justify-content:center; }
.vj-menu{ display:flex; align-items:center; gap:30px; list-style:none; margin:0; padding:0; }
.vj-menu li{ margin:0; }
.vj-menu a{ color:var(--vj-muted); font-size:15px; font-weight:500; text-decoration:none; transition:color .15s; }
.vj-menu a:hover, .vj-menu .current-menu-item > a{ color:var(--vj-accent); opacity:1; }
.vj-header__actions{ display:flex; align-items:center; gap:14px; flex-shrink:0; }
.vj-lang{ display:flex; align-items:center; border:1px solid var(--vj-line); border-radius:8px; overflow:hidden; }
.vj-lang__item{ padding:7px 11px; font-family:var(--vj-mono); font-size:12px; color:var(--vj-muted); text-decoration:none; line-height:1; }
.vj-lang__item.is-active{ background:var(--vj-ink); color:#fff; }
.vj-lang__item:hover{ opacity:1; color:var(--vj-accent); }
.vj-lang__item.is-active:hover{ color:#fff; }
.vj-cart{ position:relative; display:inline-flex; align-items:center; gap:6px; padding:8px 12px; border-radius:8px;
  background:var(--vj-accent-soft); color:var(--vj-accent); text-decoration:none; font-family:var(--vj-mono); font-size:13px; }
.vj-cart:hover{ opacity:1; background:#e2e7ff; }
.vj-cart__ico{ font-size:15px; }
.vj-burger{ display:none; flex-direction:column; gap:4px; background:none; border:none; cursor:pointer; padding:8px; }
.vj-burger span{ width:22px; height:2px; background:var(--vj-ink); border-radius:2px; }

.vj-footer{ background:var(--vj-bg); border-top:1px solid var(--vj-line); }
.vj-footer__inner{ max-width:var(--vj-max); margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; padding:32px 40px; }
.vj-footer__logo img{ height:28px; width:auto; display:block; }
.vj-footer__meta{ font-family:var(--vj-mono); font-size:12px; color:var(--vj-faint); }

/* connector guide: photo + list */
.vj-guide-grid{ display:grid; grid-template-columns:0.85fr 1.15fr; gap:20px; align-items:stretch; }
.vj-guide-photo{ margin:0; border:1px solid var(--vj-line); border-radius:14px; overflow:hidden; background:#fff; min-height:300px; display:flex; }
.vj-guide-photo img{ width:100%; height:100%; object-fit:cover; }

/* ============================================================
   Scroll reveal + motion
   ============================================================ */
.vj-reveal{ opacity:0; transform:translateY(30px); transition:opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); will-change:opacity, transform; }
.vj-reveal--left{ transform:translateX(-46px); }
.vj-reveal--right{ transform:translateX(46px); }
.vj-reveal--zoom{ transform:scale(.9); }
.vj-reveal.vj-in{ opacity:1; transform:none; }

/* staggered children (cards, steps) */
.vj-stagger > *{ opacity:0; transform:translateY(28px); transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.vj-stagger.vj-in > *{ opacity:1; transform:none; }
.vj-stagger.vj-in > *:nth-child(1){ transition-delay:0ms; }
.vj-stagger.vj-in > *:nth-child(2){ transition-delay:90ms; }
.vj-stagger.vj-in > *:nth-child(3){ transition-delay:180ms; }
.vj-stagger.vj-in > *:nth-child(4){ transition-delay:270ms; }
.vj-stagger.vj-in > *:nth-child(5){ transition-delay:360ms; }
.vj-stagger.vj-in > *:nth-child(6){ transition-delay:450ms; }

/* hero charger: dramatic entrance, then gentle float */
@keyframes vj-float{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-16px); } }
.vj-hero__img{ transition:opacity 1s ease, transform 1s cubic-bezier(.16,.8,.3,1); }
.vj-hero__media:not(.vj-in) .vj-hero__img{ opacity:0; transform:translateY(60px) scale(.94); }
.vj-hero__media.vj-in .vj-hero__img{ opacity:1; transform:translateY(0) scale(1); }
.vj-hero__media.vj-in.vj-floating .vj-hero__img{ animation:vj-float 5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce){
  .vj-reveal, .vj-stagger > *, .vj-hero__img{ opacity:1 !important; transform:none !important; transition:none !important; }
  .vj-hero__img{ animation:none !important; }
}

/* responsive */
@media (max-width: 900px){
  .vj-header__inner{ padding:12px 20px; }
  .vj-guide-grid{ grid-template-columns:1fr; }
  .vj-guide-photo{ min-height:220px; }
  .vj-nav{ position:fixed; inset:60px 0 auto 0; background:#fff; border-bottom:1px solid var(--vj-line);
    display:none; padding:16px 20px; }
  .vj-menu{ flex-direction:column; align-items:flex-start; gap:16px; }
  .vj-menu-open .vj-nav{ display:flex; }
  .vj-burger{ display:flex; }
  .vj-hero, .vj-best{ grid-template-columns:1fr; }
  .vj-hero__copy{ border-right:none; border-bottom:1px solid var(--vj-line); padding:48px 24px; }
  .vj-hero__copy h1{ font-size:38px; }
  .vj-best__media{ border-right:none; border-bottom:1px solid var(--vj-line); }
  .vj-cats{ grid-template-columns:repeat(2,1fr); }
  .vj-steps, .vj-why{ grid-template-columns:1fr; }
  .vj-x, .vj-sec, .vj-hero__copy, .vj-best__body, .vj-cta{ padding-left:24px; padding-right:24px; }
  .vj-chips{ flex-wrap:wrap; }
  .vj-chips > div{ flex:1 0 33%; border-bottom:1px solid var(--vj-line); }
}
