/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Template: astra
Author: Brainstorm Force
Author URI: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
Description: The Astra WordPress theme is lightning-fast and highly customizable. It has over 1 million downloads and the only theme in the world with 6,000+ five-star reviews! It’s ideal for professional web designers, solopreneurs, small businesses, eCommerce, membership sites and any type of website. It offers special features and templates so it works perfectly with all page builders like Spectra, Elementor, Beaver Builder, etc. Fast performance, clean code, mobile-first design and schema markup are all built-in, making the theme exceptionally SEO-friendly. It’s fully compatible with WooCommerce, SureCart and other eCommerce plugins and comes with lots of store-friendly features and templates. Astra also provides expert support for free users. A dedicated team of fully trained WordPress experts are on hand to help with every aspect of the theme. Try the live demo of Astra: https://zipwp.org/themes/astra/
Tags: custom-menu,custom-logo,entertainment,one-column,two-columns,left-sidebar,e-commerce,right-sidebar,custom-colors,editor-style,featured-images,full-width-template,microformats,post-formats,rtl-language-support,theme-options,threaded-comments,translation-ready,blog
Version: 4.11.14.1762520881
Updated: 2025-11-07 13:08:01

*/
.ast-primary-header-bar .ast-container{
  display:grid;
  grid-template-columns: auto 1fr auto auto auto; /* logo | search | CTA | porównaj | koszyk */
  gap:16px;
  align-items:center;
}

/* żeby elementy nie miały dziwnych marginesów */
.ast-primary-header-bar .ast-container > * { margin:0 !important; }

/* — Szukajka — */
.ast-primary-header-bar form.search-form,
.ast-primary-header-bar .woocommerce-product-search,
.ast-primary-header-bar form[role="search"]{
  max-width:780px;  /* możesz zmienić np. na 680px */
  width:100%;
}
.ast-primary-header-bar input[type="search"],
.ast-primary-header-bar .search-field{
  height:44px;
  padding:0 14px;
  border-radius:6px;
  line-height:44px;
}

/* — CTA „Wyceń montaż” — (Astra Button albo link z klasą .header-cta) */
.ast-primary-header-bar .ast-header-button-1 .ast-custom-button,
.ast-primary-header-bar a.header-cta,
.ast-primary-header-bar .main-header-menu .menu-link.button-cta{
  height:44px;
  padding:0 18px;
  display:inline-flex;
  align-items:center;
  border-radius:22px;
}

/* — Porównaj — (obsługa popularnych wtyczek) */
.ast-primary-header-bar a[href*="compare"],
.ast-primary-header-bar .ti-compare-button a,
.ast-primary-header-bar .woosc-menu-bar .woosc-menu-item a{
  height:44px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  border-radius:22px;
}

/* — Koszyk w headerze (Astra) — */
.ast-primary-header-bar .ast-site-header-cart{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:44px;
  width:44px;
  border-radius:22px;
  margin-left:10px; /* odstęp od przycisku „Porównaj” */
}
.ast-primary-header-bar .ast-site-header-cart .count{ line-height:1; }

/* — Delikatny cień i warstwa nad treścią — */
.site-header{ position:sticky; top:0; z-index:1000; background:#fff; box-shadow:0 2px 10px rgba(0,0,0,.05); }
body.admin-bar .site-header{ top:32px; }
@media (max-width:782px){ body.admin-bar .site-header{ top:46px; } }

/* === TOPBAR (pasek z hasłami i telefonem) ================================ */
.ast-above-header-wrap .ast-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  font-size:13px;
  line-height:1.2;
  padding:6px 0;
}

/* === RESPONSYWNOŚĆ – na tabletach CTA pod szukajką ======================= */
@media (max-width:1024px){
  .ast-primary-header-bar .ast-container{
    grid-template-columns:auto 1fr auto;
    grid-template-areas:
      "logo search actions"
      "cta  cta   cta";
  }
  .ast-primary-header-bar .site-branding{ grid-area:logo; }
  .ast-primary-header-bar form.search-form,
  .ast-primary-header-bar .woocommerce-product-search,
  .ast-primary-header-bar form[role="search"]{ grid-area:search; }
  /* dowolny z poniższych selektorów, który masz – trafi w CTA */
  .ast-primary-header-bar .ast-header-button-1,
  .ast-primary-header-bar a.header-cta,
  .ast-primary-header-bar .main-header-menu .menu-link.button-cta{
    grid-area:cta; justify-self:start; margin-top:6px;
  }
}

/* USTAWIENIA WSPÓLNE */
:root{
  --hdr-btn-h: 44px;      /* wysokość przycisków */
  --hdr-btn-r: 22px;      /* zaokrąglenie */
}

/* wyrównanie elementów w belce nagłówka */
.ast-primary-header-bar .ast-container{
  display:grid;
  align-items:center;        /* klucz: pionowe wyśrodkowanie */
  gap:16px;
}

/* WYCEŃ MONTAŻ (przycisk Astry lub własny link z klasą .header-cta) */
.ast-primary-header-bar .ast-header-button-1 .ast-custom-button,
.ast-primary-header-bar a.header-cta,
.ast-primary-header-bar .main-header-menu .menu-link.button-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:var(--hdr-btn-h);
  line-height:1;             /* brak „pompowania” wysokości */
  padding:0 18px;
  border-radius:var(--hdr-btn-r);
  margin:0 !important;       /* usuń ewentualne górne/dolne marginesy */
  vertical-align:middle;
}

/* PORÓWNAJ (różne popularne wtyczki) – nadajemy identyczne wymiary */
.ast-primary-header-bar a[href*="compare"],
.ast-primary-header-bar .ti-compare-button a,
.ast-primary-header-bar .woosc-menu-bar .woosc-menu-item a,
.ast-primary-header-bar a[href*="porown"]{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:var(--hdr-btn-h);
  line-height:1;
  padding:0 18px;
  border-radius:var(--hdr-btn-r);
  margin:0 !important;
  vertical-align:middle;
}

/* KOSZYK (jeśli obok) – dopasuj do linii przycisków */
.ast-primary-header-bar .ast-site-header-cart{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:var(--hdr-btn-h);
  width:var(--hdr-btn-h);
  border-radius:var(--hdr-btn-r);
  margin:0 0 0 10px;
}

/* Na wszelki wypadek: usuń nietrafione marginesy w contencie headera */
.ast-primary-header-bar .ast-container > *{ margin:0 !important; }
