.site-header{
  background:#fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .header{
  display:flex;
  align-items:center;
  gap: 20px;
  height: 68px;
  padding: 0 4px;
}

/* LOGO */
.header__logo{
  display:flex;
  flex-shrink: 0;
}

/* WordPress custom logo */
.header__logo img,
.custom-logo{
  display:block;
  max-height: 42px;
  width: auto;
  max-width: 180px;
  height: auto;
  object-fit: contain;
}

/* Kategorie desktop (stary przycisk — ukryty, zastąpiony cat-bar) */
.header__cats{
  display:none;
}
.header__caret{ font-size: 14px; }

/* =========================
   CAT-BAR: Desktop category navigation
   ========================= */
.cat-bar{
  background: #fff;
  border-bottom: 1px solid #ebebeb;
  position: sticky;
  top: 68px;
  z-index: 99;
  padding: 6px 0;
}

.cat-bar .container{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  height: 42px;
  padding-top: 0;
  padding-bottom: 0;
  overflow: visible;
}

.cat-bar .container > *{
  flex-shrink: 0;
}

.cat-bar__link{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  color: #121212;
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 0;
  transition: color .15s ease;
}

/* Podkreślenie na hover */
.cat-bar__link::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #fed216;
  transform: scaleX(0);
  transition: transform .2s ease;
}

.cat-bar__link:hover::after,
.cat-bar__link:focus::after{
  transform: scaleX(1);
}

.cat-bar__link:hover,
.cat-bar__link:focus{
  color: #fed216;
}

.cat-bar__icon{
  color: #898989;
  flex-shrink: 0;
  transition: color .15s ease;
}

.cat-bar__link:hover .cat-bar__icon,
.cat-bar__link:focus .cat-bar__icon{
  color: #fed216;
}

/* Cat-bar dropdown (subkategorie) */
.cat-bar__item{
  position: relative;
}

.cat-bar__dropdown{
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.10);
  padding: 8px 0;
  min-width: 220px;
  z-index: 100;
}

.cat-bar__item:hover .cat-bar__dropdown{
  display: block;
}

.cat-bar__sub{
  display: block;
  padding: 8px 18px;
  font-size: 13px;
  color: #1a1a1a;
  text-decoration: none;
  white-space: nowrap;
}

.cat-bar__sub:hover{
  color: #fed216;
}

/* Separator + "Zobacz wszystko" */
.cat-bar__link--all{
  font-weight: 600;
  margin-left: 4px;
  padding-left: 20px;
  border-left: 1px solid #e0e0e0;
}

.cat-bar__link--all .cat-bar__icon{
  color: inherit;
}

/* Admin bar offset for sticky elements */
body.admin-bar .site-header{
  top: 32px;
}
body.admin-bar .cat-bar{
  top: 100px; /* 68px header + 32px admin bar */
}

@media (max-width: 782px){
  body.admin-bar .site-header{
    top: 0;
  }
}

@media (max-width: 980px){
  .cat-bar{ display: none; }
}

/* Search wrapper (live search positioning context) */
.liveSearch{
  position: relative;
  flex: 1 1 auto;
  max-width: 460px;
  margin-left: auto;
  margin-right: 0;
}

/* Search bar */
.header__search{
  display:flex;
  align-items:center;
  background: #f5f5f5;
  border: 1.5px solid #e8e8e8;
  border-radius: 12px;
  overflow:hidden;
  height: 42px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.header__search:focus-within{
  border-color: var(--yellow);
  box-shadow: 0 0 0 2px rgba(254,210,22,.2);
  background: #fff;
}
.header__searchInput{
  border:0;
  outline:0;
  flex: 1 1 auto;
  height: 100%;
  padding: 0 16px;
  font-size: 14px;
  font-family: inherit;
  background: transparent;
  color: #121212;
}
.header__searchInput::placeholder{
  color: #999;
}
.header__searchBtn{
  width: 44px;
  height: calc(100% - 6px);
  margin-right: 3px;
  border:0;
  border-radius: 9px;
  background: var(--yellow);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: background .15s ease;
}
.header__searchBtn:hover{
  background: #f5c800;
}

/* =========================
   LIVE SEARCH DROPDOWN
   ========================= */

.liveSearch__dropdown{
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 9998;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
  max-height: 420px;
  overflow-y: auto;
}

.liveSearch__dropdown[hidden]{ display: none; }

/* Loading spinner */
.liveSearch--loading::after{
  content: "";
  position: absolute;
  top: 50%;
  right: 56px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid #e0e0e0;
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: lsPin .6s linear infinite;
  z-index: 2;
}
@keyframes lsPin{ to{ transform: rotate(360deg); } }

/* Single result row */
.liveSearch__item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--black);
  transition: background .12s ease;
}

.liveSearch__item:not(:last-child){
  border-bottom: 1px solid #f0f0f0;
}

.liveSearch__item:hover,
.liveSearch__item--active{
  background: var(--gray);
}

/* Thumbnail */
.liveSearch__thumb{
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  background: #f5f5f5;
  flex-shrink: 0;
}

/* Text block */
.liveSearch__meta{
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.liveSearch__name{
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: #121212;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.liveSearch__cat{
  font-size: 12px;
  color: var(--muted);
}

/* Price */
.liveSearch__price{
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: #121212;
  white-space: nowrap;
}

/* Empty state */
.liveSearch__empty{
  padding: 20px 14px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* "See all results" footer */
.liveSearch__viewAll{
  display: block;
  text-align: center;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #121212;
  text-decoration: none;
  border-top: 1px solid #f0f0f0;
  transition: background .12s ease;
}
.liveSearch__viewAll:hover{
  background: var(--gray);
  color: var(--yellow);
}

/* Mobile: full-width dropdown */
@media (max-width: 980px){
  .liveSearch__dropdown{
    position: fixed;
    top: auto;
    left: 10px;
    right: 10px;
    max-height: 60vh;
  }
}

/* Ikony */
.header__actions{
  display:flex;
  align-items:center;
  gap: 2px;
  flex-shrink: 0;
}
.header__icon{
  position: relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 40px;
  height: 40px;
  text-decoration:none;
  color: #333;
  transition: color .15s ease;
}
.header__icon:hover{
  color: var(--yellow);
}
.icon{ display:block; }

.header__icon-img{
  width: 22px;
  height: 22px;
  display: block;
  opacity: .85;
  transition: opacity .15s ease;
}
.header__icon:hover .header__icon-img{
  opacity: 1;
}

/* Badge koszyka */
.header__badge{
  position:absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--yellow);
  color: #000;
  font-size: 10px;
  font-weight: 300;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 0;
  line-height: 1;
}

/* Burger (mobile) */
.header__burger{
  display:none;
  background: transparent;
  border: 0;
  padding: 6px 4px;
  cursor:pointer;
  color: var(--black);
}
.header__burgerLines{
  width: 22px;
  height: 14px;
  display:block;
  position: relative;
}
.header__burgerLines::before,
.header__burgerLines::after,
.header__burgerLines{
  background: transparent;
}
.header__burgerLines::before,
.header__burgerLines::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:2px;
  background: var(--black);
  border-radius: 2px;
}
.header__burgerLines::before{ top:0; }
.header__burgerLines::after{ bottom:0; }
/* środkowa linia */
.header__burgerLines{
  margin-top: 6px;
}
.header__burgerLines{
  box-shadow: 0 -6px 0 var(--black), 0 6px 0 var(--black);
  height:2px;
}

/* MOBILE: 2 rzędy */
@media (max-width: 980px){
  .site-header .header{
    display:flex !important;
    flex-wrap: wrap !important;
    align-items:center !important;
    gap: 8px 10px !important;
    height:auto !important;
    padding: 8px 10px !important;
  }

  /* 1. rząd: logo lewo, ikony prawo */
  .site-header .header__logo{
    order: 1 !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
  }
  .site-header .header__actions{
    order: 2 !important;
    flex: 0 0 auto !important;
    justify-content:flex-end !important;
    margin:0 !important;
  }

  /* wymusza nową linię */
  .site-header .header::before{
    content:"";
    order: 3;
    flex: 0 0 100%;
    height: 0;
  }

  /* 2. rząd: burger + search */
  .site-header .header__burger{
    order: 4 !important;
    flex: 0 0 auto !important;
    display:inline-flex !important;
  }
  .site-header .liveSearch{
    order: 5 !important;
    flex: 1 1 auto !important;
    max-width: none !important;
    margin:0 !important;
  }
  .site-header .liveSearch .header__search{
    height: 38px !important;
  }

  .site-header .header__cats--desktop{ display:none !important; }
}

/* DRAWER / OFF-CANVAS (Kategorie) */
.drawer[hidden]{ display:none; }

.drawer{
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.drawer__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.drawer__panel{
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: min(360px, 90vw);
  background: #fff;
  transform: translateX(-100%);
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;
}

.drawer.is-open .drawer__panel{
  transform: translateX(0);
}

.drawer__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 16px;
  border-bottom: 1px solid var(--gray);
}

.drawer__content{
  padding: 10px 16px 18px;
  overflow: auto;
}

.drawer__content ul{
  list-style:none;
  margin:0;
  padding:0;
}

.drawer__content li{
  border-bottom: 1px solid var(--gray);
}

.drawer__content a{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 6px;
  color: var(--black);
  text-decoration:none;
  font-size: 15px;
}

.drawer__content a:hover{
  color: var(--yellow);
}

.drawer__icon{
  display: inline-flex;
  color: #898989;
  flex-shrink: 0;
}

.drawer__content a:hover .drawer__icon{
  color: var(--yellow);
}

.drawer__all a{
  font-weight: 600;
}

.drawer__content .children{
  padding-left: 12px;
}

.drawer__content .children li{
  border-bottom: 0;
}

.drawer__content .children a{
  padding: 8px 6px 8px 36px;
  font-size: 13px;
  color: #666;
}

.drawer__content .children a:hover{
  color: var(--yellow);
}

.cart-hover{ position: relative; }

.mini-cart{
  position:absolute;
  top: calc(100% + 4px);
  right: 0;
  width: 360px;
  background:#fff;
  border: 1px solid var(--gray);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
  padding: 12px;
  display:none;
  z-index: 9999;
}

.cart-hover:hover .mini-cart,
.cart-hover:focus-within .mini-cart{
  display:block;
}

/* mobile: wyłącz hover dropdown */
@media (max-width: 980px){
  .mini-cart{ display:none !important; }
}

.drawer--right .drawer__panel{
  left: auto;
  right: 0;
  transform: translateX(100%);
}

.drawer--right.is-open .drawer__panel{
  transform: translateX(0);
}

.mini-cart::before{
  content:"";
  position:absolute;
  top: -12px;
  left: -10px;
  right: -10px;
  height: 16px;
}

/* ===== Zonics mini cart ===== */
.z-miniCart{ list-style:none; margin:0; padding:0; max-height:520px; overflow:auto; }
.z-miniCart__item{
  display:flex; align-items:center; gap:12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray);
}

.z-miniCart__thumb img{
  width:54px; height:54px; border-radius:12px; object-fit:cover; display:block;
}

.z-miniCart__meta{ flex:1 1 auto; min-width:0; }
.z-miniCart__title{
  display:block;
  font-weight:400;
  color: var(--black);
  text-decoration:none;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  line-height:1.2;
}
.z-miniCart__line{
  margin-top: 4px;
  font-weight:400;
  color: var(--muted); /* #898989 */
  font-size:14px;
  display:flex;
  gap:6px;
}

.z-miniCart__remove{
  margin-left:auto;
  color:#000;
  text-decoration:none;
  font-size:18px;
  line-height:1;
  padding: 6px 8px;
}

.z-miniCart__total{
  text-align:center;
  padding-top: 12px;
  margin-top: 12px;
  font-weight:400;
}
.z-miniCart__totalLabel{ font-weight:600; }
.z-miniCart__actions{ margin-top: 12px; }

.z-miniCart__checkout{
  background: #000 !important;
  color: #fff !important;
  font-weight: 600 !important;
  height: 46px !important;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

@media (max-width: 980px){
  .z-miniCart__checkout{
    height: 36px !important;
    font-size: 13px !important;
    padding: 0 20px !important;
  }
}

/* Cart drawer — override generic .drawer__content a/li styles
   (.drawer__content a = 0-1-1, these selectors = 0-2-0+, always win) */
.drawer__content .z-miniCart__item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray);
}

.drawer__content .z-miniCart__thumb{
  flex-shrink: 0;
  width: 54px;
  height: 54px;
}

.drawer__content .z-miniCart__thumb a{
  display: block !important;
  padding: 0 !important;
  gap: 0 !important;
  width: 54px !important;
  height: 54px !important;
}

.drawer__content .z-miniCart__thumb img{
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  min-height: 54px !important;
  max-width: 54px !important;
  max-height: 54px !important;
  border-radius: 12px !important;
  object-fit: cover !important;
  display: block !important;
}

.drawer__content .z-miniCart__title{
  display: block;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.drawer__content .z-miniCart__remove{
  display: inline-flex;
  padding: 6px 8px;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.subbar{
  background: #f8f8f8;
}

.subbar .container--wide{
  max-width: 1460px;
  margin: 0 auto;
  padding: 20px 10px;
}

.breadcrumbs{
  font-size: 13px;
  color: rgba(18,18,18,.75);
}

.breadcrumbs a{
  color: #121212;
  text-decoration: none;
}

/* =========================
   SECTION new
   ========================= */

.section-new{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;

  border-bottom:1px solid #e5e5e5; /* szara linia do końca */
  margin-bottom:24px;
}

/* tytuł */
.section-new__title{
  position:relative;
  margin:0;
  padding-bottom:10px;

  font-size:22px;
  font-weight:600;
  line-height:1.2;
}

/* żółte podkreślenie tylko pod tekstem */
.section-new__title::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-1px;

  width:100%;
  height:3px;
  background:#FED160; /* żółty */
}

/* link po prawej */
.section-new__link{
  font-size:14px;
  font-weight:500;
  color:#000;
  text-decoration:none;

  display:inline-flex;
  align-items:center;
  gap:6px;
  padding-bottom:10px; /* wyrównanie do linii */
}

.section-new__link:hover{
  text-decoration:underline;
}

/* =========================
   PRODUCT GRID — full-width via CSS Grid
   ========================= */

.woocommerce ul.products.columns-4{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.woocommerce ul.products.columns-4::before,
.woocommerce ul.products.columns-4::after{
  display: none;
  content: none;
}

.woocommerce ul.products.columns-4 li.product{
  width: auto;
  float: none;
  margin: 0;
}

@media (max-width: 900px){
  .woocommerce ul.products.columns-4{
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px){
  .woocommerce ul.products.columns-4{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
   PRODUCT CARD — FORCE (no !important)
   ========================= */

.woocommerce ul.products li.product.p-card{
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  position:relative;

  padding:12px;
  display:grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "img img"
    "title title"
    "price cart";
  column-gap:12px;
  row-gap:10px;

  transition: box-shadow .2s ease, transform .2s ease, padding .2s ease;
}

.woocommerce ul.products li.product.p-card:hover{
  box-shadow:0 12px 28px rgba(0,0,0,.12);
  transform:translateY(-2px);
  padding:14px;
}

/* wyczyść style Woo na środku karty */
.woocommerce ul.products li.product.p-card,
.woocommerce ul.products li.product.p-card *{
  box-sizing:border-box;
}

/* LINK ma przepuszczać dzieci do grida */
.woocommerce ul.products li.product.p-card > a.p-card__link{
  display: contents;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  margin: 0;
}


/* MEDIA */
.woocommerce ul.products li.product.p-card .p-card__media{
  grid-area:img;
  justify-self:center;
  display:block;
}

.woocommerce ul.products li.product.p-card .p-card__media img{
  display:block;
  max-width:100%;
  height:auto;
  margin:0 auto;
}

/* TITLE */
.woocommerce ul.products li.product.p-card .p-card__title{
  grid-area:title;
  margin:0;
  padding:0;
  line-height:1.25;
  font-weight:500;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size: 16px;
}

/* PRICE */
.woocommerce ul.products li.product.p-card .p-card__price{
  grid-area:price;
  align-self:center;
  justify-self:start;

  margin-top:8px;
  font-size:16px;
  font-weight:300;
}

/* ACTIONS */
.woocommerce ul.products li.product.p-card .p-card__actions{
  grid-area:cart;
  align-self:center;
  justify-self:end;
  margin:0;
  padding:0;
}

/* usuń typowe marginesy Woo na przycisku */
.woocommerce ul.products li.product.p-card .p-card__actions a,
.woocommerce ul.products li.product.p-card .p-card__actions a.button{
  margin:0;
  padding:0;
  border:0;
  box-shadow:none;
  line-height:1;
  text-decoration:none;
}

/* BUTTON */
.woocommerce ul.products li.product.p-card .p-card__actions a.button{
  width:44px;
  height:44px;
  min-width:44px;
  min-height:44px;

  border-radius:999px;
  background:#b9b9b9;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  font-size:0;
  overflow:hidden;

  transition: background .2s ease, transform .2s ease;
}

.woocommerce ul.products li.product.p-card .p-card__actions a.button:hover{
  background:#f2c200;
  transform:translateY(-1px);
}

.woocommerce ul.products li.product.p-card .p-card__actions a.button::after{
  display:none;
}

/* ICON */
.woocommerce ul.products li.product.p-card .p-card__actions a.button::before{
  content:"";
  width:20px;
  height:20px;
  background:#fff;
  display:block;

  -webkit-mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path fill='black' d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2Zm10 0c-1.1 0-1.99.9-1.99 2S15.9 22 17 22s2-.9 2-2-.9-2-2-2ZM7.16 14h9.45c.75 0 1.41-.41 1.75-1.03L21 8.5a1 1 0 0 0-.87-1.5H6.21L5.27 5H2v2h2l3.6 7.59-1.35 2.44A2 2 0 0 0 8 20h12v-2H8l1.1-2ZM6.16 7h12.27l-2.1 4H8.53L6.16 7Z'/>\
<path fill='black' d='M11 2h2v3h3v2h-3v3h-2V7H8V5h3z'/>\
</svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path fill='black' d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2Zm10 0c-1.1 0-1.99.9-1.99 2S15.9 22 17 22s2-.9 2-2-.9-2-2-2ZM7.16 14h9.45c.75 0 1.41-.41 1.75-1.03L21 8.5a1 1 0 0 0-.87-1.5H6.21L5.27 5H2v2h2l3.6 7.59-1.35 2.44A2 2 0 0 0 8 20h12v-2H8l1.1-2ZM6.16 7h12.27l-2.1 4H8.53L6.16 7Z'/>\
<path fill='black' d='M11 2h2v3h3v2h-3v3h-2V7H8V5h3z'/>\
</svg>") no-repeat center / contain;
}

/* HIDE "view cart" */
.woocommerce ul.products li.product.p-card a.added_to_cart{
  display:none;
}

/* SALE */
.woocommerce ul.products li.product.p-card .onsale{
  position:absolute;
  top:12px;
  right:12px;
  left:auto;
  margin:0;

  background:#000;
  color:#fff;
  border-radius:20px;
  padding:5px 14px !important;
  font-size:12px;
  font-weight:400;
  line-height:1.236 !important;
  min-height: 1.236em !important;
}

/* zielone kółko */
.woocommerce ul.products li.product.p-card .p-card__actions a.button.added{
  background:#2ecc71;
}

/* zmiana ikony na check */
.woocommerce ul.products li.product.p-card .p-card__actions a.button.added::before{
  background:#fff;

  -webkit-mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path fill='black' d='M9.55 18.2 3.85 12.5l1.4-1.4 4.3 4.3 9.1-9.1 1.4 1.4Z'/>\
</svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path fill='black' d='M9.55 18.2 3.85 12.5l1.4-1.4 4.3 4.3 9.1-9.1 1.4 1.4Z'/>\
</svg>") no-repeat center / contain;
}

/* =========================
   FRONT-PAGE: Aktualności
   ========================= */

.home-news{
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

.home-news__inner{
  background: #f8f8f8;
  border-radius: 22px;
  padding: 26px;
}

.home-news__header{
  margin-bottom: 16px;
}

.home-news__title{
  margin: 0;
  font-size: 26px;
  color: #121212;
}

/* grid na wpisy */
.home-news__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1200px){
  .home-news__grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px){
  .home-news__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px){
  .home-news__inner{ padding: 18px; }
  .home-news__grid{ grid-template-columns: 1fr; }
}

/* =========================
   KAFELKI KATEGORII – /aktualnosci
   ========================= */

.news-cats{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 22px 0 32px;
}

.news-cat{
  width: 170px;
  height: 130px;
  background: #f8f8f8;
  border-radius: 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;

  text-decoration: none;
  color: #121212;
}

.news-cat:hover{
  filter: brightness(0.98);
}

.news-cat__icon{
  width: 36px;
  height: 36px;
  color: #fed216; /* ŻÓŁTY */
}

.news-cat__icon svg{
  width: 100%;
  height: 100%;
}

.news-cat__title{
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  padding: 0 10px;
}

/* RESPONSIVE */
@media (max-width: 900px){
  .news-cat{ width: 160px; height: 120px; }
}
@media (max-width: 600px){
  .news-cat{ width: calc(49% - 8px); }
}

/* Licznik wpisów w kafelku (tylko na archive) */
.news-cats--archive .news-cat{
  position: relative;
}

.news-cats--archive .news-cat__count{
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(18,18,18,.10);
  color: #121212;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Podświetlenie aktywnej kategorii */
.news-cats--archive .news-cat.is-active{
  border-color: rgba(254,210,22,.9);
  box-shadow: 0 0 0 3px rgba(254,210,22,.20);
  filter: none;
}

.news-page form.search-form{
  display: flex;
  gap: 10px;
  max-width: 520px;
}

.news-page .search-field{
  flex: 1 1 auto;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(18,18,18,.12);
  background: #fff;
}

.news-page .search-submit{
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  background: #fed216;
  color: #121212;
  font-weight: 500;
}

/* === PROMO DUO (front-page) === */

.promo-duo{
  margin: 20px 0;
}

.promo-duo__grid{
  display: flex;
  gap: 20px;
}

.promo-card{
  position: relative;
  flex: 1 1 50%;
  height: 180px;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
}

/* placeholder backgrounds – PODMIENISZ */
.promo-card--left{
  background-image: url('/wp-content/uploads/2026/02/najlepsze%20s%C5%82uchawki%20do%20500%20z%C5%82.webp');
}
.promo-card--right{
  background-image: url('/wp-content/uploads/2026/02/nowe-produkty.webp');
}

/* overlay dla czytelności */
.promo-card::before{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(0,0,0,.55),
    rgba(0,0,0,.15)
  );
  z-index: 1;
}

.promo-card__content{
  position: relative;
  z-index: 2;
  padding: 24px;
  max-width: 70%;
  text-align: right;
}

.promo-card__content h3{
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.2;
}

.promo-card__content p{
  margin: 0 0 12px;
  font-size: 14px;
  opacity: .9;
}

.promo-card__btn{
  display: inline-block;
  background: #fed216;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

/* hover – delikatnie */
.promo-card:hover::before{
  background: linear-gradient(
    to left,
    rgba(0,0,0,.65),
    rgba(0,0,0,.25)
  );
}

/* mobile */
@media (max-width: 768px){
  .promo-duo__grid{
    flex-direction: column;
  }
  .promo-card{
    height: 160px;
  }
  .promo-card__content{
    max-width: 90%;
  }
}

/* =========================
   FRONT: Gorący strzał + Promocje
   ========================= */

/* === PROMO DEALS (hot shot + sale grid) === */
.promo-deals{
  margin: 36px 0 40px;
}

.promo-deals,
.promo-deals *{
  box-sizing: border-box;
}

.promo-deals__wrap{
  display: flex;
  gap: 28px;
  align-items: stretch;
}

/* --- HOT SHOT (lewa kolumna) --- */
.promo-hot{
  flex: 0 0 350px;
  min-width: 0;
  background: #fff;
  border: 1px solid #fed216;
  border-radius: 18px;
  position: relative;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.promo-hot__badge{
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #fed216;
  color: #1a1a1a;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .3px;
  white-space: nowrap;
  z-index: 1;
}

.promo-hot__media{
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 12px;
}

.promo-hot__img{
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
}

.promo-hot__title{
  display: block;
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #1a1a1a;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.promo-hot__price{
  font-size: 20px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.promo-hot__countdown{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 6px 0 14px;
}

.promo-hot__countdown .cd-box{
  background: #fed216;
  border-radius: 10px;
  padding: 8px 0;
  min-width: 54px;
  text-align: center;
}

.promo-hot__countdown .cd-num{
  display: block;
  font-weight: 800;
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1;
}

.promo-hot__countdown .cd-lbl{
  display: block;
  font-size: 10px;
  color: #1a1a1a;
  margin-top: 2px;
}

.promo-hot .add_to_cart_button,
.promo-hot .single_add_to_cart_button,
.promo-hot a.button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  background: #1a1a1a !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 12px 18px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  border: none !important;
  margin-top: auto;
  transition: background .2s ease;
}

.promo-hot .add_to_cart_button:hover,
.promo-hot .single_add_to_cart_button:hover,
.promo-hot a.button:hover{
  background: #fed216 !important;
  color: #1a1a1a !important;
}

/* --- PROMO GRID (prawa kolumna) --- */
.promo-grid{
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.promo-grid__title{
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.promo-grid__items{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/*
 * WooCommerce shortcode inside promo-grid renders:
 *   .promo-grid__items > div.woocommerce > ul.products > li.product.p-card
 */

/* WooCommerce wrapper — fill height */
.promo-grid__items > .woocommerce{
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Product grid — 4 columns, 2 equal rows filling height */
.promo-grid__items .woocommerce ul.products{
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  grid-template-rows: 1fr 1fr !important;
  gap: 10px !important;
  flex: 1 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Kill WooCommerce clearfix pseudo-elements */
.promo-grid__items .woocommerce ul.products::before,
.promo-grid__items .woocommerce ul.products::after{
  display: none !important;
  content: none !important;
}

/* Reset WooCommerce layout + compact card sizing */
.promo-grid__items .woocommerce ul.products li.product{
  margin: 0 !important;
  width: auto !important;
  float: none !important;
}

.promo-grid__items .woocommerce ul.products li.product.p-card{
  padding: 8px !important;
  row-gap: 4px !important;
  column-gap: 6px !important;
}

/* Smaller image area */
.promo-grid__items .woocommerce li.product.p-card .p-card__media img{
  max-height: 120px !important;
  object-fit: contain;
}

/* Compact title — max 2 lines */
.promo-grid__items .woocommerce li.product.p-card .p-card__title{
  font-size: 12px !important;
  line-height: 1.25 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  max-height: calc(2 * 12px * 1.25) !important;
}

/* Compact price */
.promo-grid__items .woocommerce li.product.p-card .p-card__price{
  font-size: 13px !important;
}

/* Smaller cart button */
.promo-grid__items .woocommerce li.product.p-card .p-card__actions a.button{
  padding: 6px 10px !important;
  font-size: 0 !important;
  min-width: 34px !important;
  min-height: 34px !important;
}

/* ---- Responsive ---- */
@media (max-width: 1100px){
  .promo-hot{ flex: 0 0 260px; }
  .promo-grid__items .woocommerce ul.products{
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 980px){
  .promo-deals__wrap{ flex-direction: column; align-items: center; }
  .promo-hot{ flex: none; width: 100%; max-width: 340px; }
  .promo-grid{ width: 100%; }
  .promo-grid__items .woocommerce ul.products{
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 700px){
  .promo-grid__items .woocommerce ul.products{
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 480px){
  .promo-grid__items .woocommerce ul.products{
    grid-template-columns: repeat(2, 1fr) !important;
  }
}


/* === HIGHLIGHT === */

.highlight{
  margin: 20px 0;
}

.highlight__banner{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 260px;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;

  background-image: url('/wp-content/uploads/2026/02/najlepsze-glosniki-bluetooth.webp');
  background-size: cover;
  background-position: center;
}

/* overlay od DOŁU */
.highlight__banner::before{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.7),
    rgba(0,0,0,.2)
  );
  z-index: 1;
}

/* treść wyśrodkowana */
.highlight__content{
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 520px;
  padding: 32px;
}

.highlight__content h3{
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
}

.highlight__content p{
  margin: 0 0 18px;
  font-size: 16px;
  opacity: .95;
}

/* używamy TEJ SAMEJ klasy guzika */
.highlight__btn{
  display: inline-block;
  background: #fed216;
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

/* hover */
.highlight__banner:hover::before{
  background: linear-gradient(
    to top,
    rgba(0,0,0,.8),
    rgba(0,0,0,.3)
  );
}

/* mobile */
@media (max-width: 768px){
  .highlight__banner{
    min-height: 200px;
  }
  .highlight__content h3{
    font-size: 22px;
  }
}


/* =========================
   FOOTER
   ========================= */

.site-footer{
  background: #f8f8f8;
  padding: 46px 0 22px;
  margin-top: 60px;
}

.footer-grid{
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-col{
  flex: 1 1 220px;
  min-width: 220px;
}

.footer-brand{
  flex: 1.3 1 320px;
  min-width: 260px;
}

.footer-logo{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #121212;
  margin-bottom: 12px;
}

.footer-brand .custom-logo{
  max-height: 44px;
  width: auto;
}

.footer-text{
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(18,18,18,.78);
  max-width: 420px;
}

.footer-title{
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #121212;
}

.footer-links{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-links a{
  font-size: 14px;
  color: #121212;
  text-decoration: none;
}

.footer-links a:hover{
  color: #fed216;
}

/* bottom bar */
.footer-bottom{
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(18,18,18,.10);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-social{
  display: flex;
  gap: 10px;
}

.footer-social__link{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(18,18,18,.10);
  color: #121212;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.footer-social__link svg{
  width: 18px;
  height: 18px;
}

.footer-social__link:hover{
  color: #fed216;
  border-color: rgba(254,210,22,.55);
}

.footer-copy{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;

  font-size: 14px;
  color: rgba(18,18,18,.78);
}

.footer-copy a{
  color: rgba(18,18,18,.78);
  text-decoration: none;
}

.footer-copy a:hover{
  color: #fed216;
}

.footer-sep{
  opacity: .5;
}

/* mobile */
@media (max-width: 700px){
  .site-footer{ padding: 34px 0 18px; }
  .footer-brand{ flex-basis: 100%; }
}

/* =========================
   WooCommerce info notice
   ========================= */
.woocommerce-info{
  border-top: none !important;
  background: transparent !important;
  color: #555;
  padding: 12px 12px 12px 42px !important;
  font-size: 14px;
}
.woocommerce-info::before{
  content: "i" !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yellow) !important;
  color: #000 !important;
  font-size: 13px;
  font-weight: 600;
  font-style: italic;
  font-family: Georgia, serif;
  top: 50% !important;
  transform: translateY(-50%);
}

