/*
Theme Name: Hurtownia Dachowa Pobłoccy
Theme URI: https://debu.pl
Author: DeBu Media
Author URI: https://debu.pl
Description: Sklep internetowy, hurtownia
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hdpobloccy
Tags: custom-theme, responsive, white-background, red-black-accent
*/

/* ========== Reset ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
    font-family: var(--font-type);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;

}

/* ========== Zmienne kolorów ========== */
:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-accent-red: #e10600;
  --color-accent-red-dark: #b00500;
  --color-black: #000000;
  --color-gray-light: #f4f4f4;
  --color-gray-dark: #333333;
  --font-type: "Jost", sans-serif;

}

/* ========== Nagłówki z akcentem ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-type);
  color: #21313c;
  margin-bottom: 0.5em;
  font-weight: 400;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-accent-red);
  margin-top: 8px;
}
.no-border-bottom h2::after
{
  content: unset;
  display: unset;
  width: unset;
  height: unset;
  background: unset;
  margin-top: unset;
}
h1{    font-size: calc(1.278125rem + .3375vw);     letter-spacing: -.03rem;}
/* ========== Sekcje ========== */
.section {
  border-left: 4px solid var(--color-accent-red);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
  background-color: var(--color-gray-light);
  border-radius: 8px;
}

/* ========== Przycisk ========== */
.btn-primary {
  display: inline-block;
  background-color: var(--color-accent-red);
  color: white;
  padding: 0.75rem 1.25rem;
  border: none;
  border-bottom-right-radius: 6px;
  border-top-right-radius:6px;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  text-decoration: none;
  transition: background 0.3s ease;
  cursor: pointer;
  margin-left:-5px;
}
.button {
  display: inline-block;
  background-color: var(--color-accent-red);
  color: white;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.button:hover, .btn-primary:hover {
  background-color: var(--color-accent-red-dark);
}

/* ========== Call to Action ========== */
.call-to-action {
  background: linear-gradient(to right, var(--color-accent-red), var(--color-black));
  color: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}
/* ========== DeBu CMS Style =============*/ 
.text-center{
  text-align: center!important;
}
.pt-175{
  padding-top:1.75rem !important;
}
.align-items-center {
  align-items: center !important;
}
.justify-content-center{
  justify-content: center;
}
.justify-content-space-between{
  justify-content: space-between;
}
.row {
  display: flex;
  flex-wrap: wrap;
}
.lh-1{
  line-height: 1;
}
.mt-50{
  margin-top: 50px;
}
.mb-50 {
  margin-bottom: 50px;
}
.hr-decorate{
    margin: 1rem 0;
    color: #dfe2e1;
    border: 0;
    border-top: 1px solid #dfe2e1;
    opacity: 0.25;
    }
    /* Panel koszyka */
.side-cart {
  position: fixed;
  top: 0;
  right: -320px; /* ukryty poza ekranem */
  width: 320px;
  height: 100%;
  background-color: #fff;
  box-shadow: 3px 0 10px rgba(0,0,0,0.3);
  z-index: 9999;
  overflow-y: auto;
  transition: left 0.3s ease;
}
/* Lista produktów */
.woocommerce-mini-cart {
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce-mini-cart li {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}
.woocommerce-mini-cart li:last-child {
  border-bottom: none;
}

/* Miniatura */
.woocommerce-mini-cart img {
  width: 50px;
  height: auto;
  margin-right: 10px;
  border-radius: 6px;
}

/* Nazwa produktu */
.woocommerce-mini-cart a:not(.remove) {
  flex: 1;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  display: flex;
  align-items: center;
}
.woocommerce-mini-cart .quantity {
  font-weight: 600;
  font-size: 14px;
  margin-left: 10px;
}

/* Guziki na dole */
.woocommerce-mini-cart__buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.woocommerce-mini-cart__buttons .button {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
}
.woocommerce-mini-cart-item {
  position: relative;
}
.side-cart-content > .woocommerce ul.cart_list li a, .woocommerce ul.product_list_widget li a{
  display:flex!important;
}
.side-cart-content > .woocommerce ul.cart_list li a, .woocommerce ul.product_list_widget li a:hover{
  background: unset;
  color:#333333!important;
}
/* Widoczny stan */
.side-cart.open {
  right: 0;
}

/* Nagłówek */
.side-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #1E1E1E;
  color: #fff;
}
.side-cart-header h3{
  color:#dfe2e1;
}
/* Zawartość koszyka */
.side-cart-content {
  padding: 15px;
}

/* Zamknięcie */
.close-cart {
  font-size: 24px;
  cursor: pointer;
}
/* Modal tło */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

/* Modal okno */
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  position: relative;
}

/* Zamknięcie */
.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  cursor: pointer;
}

/* Formularz */
.modal-content form input[type="text"],
.modal-content form input[type="password"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  box-sizing: border-box;
}

.modal-content form input[type="submit"] {
  background-color: #FF0000;
  color: white;
  border: none;
  padding: 12px;
  width: 100%;
  cursor: pointer;
}

.register-link {
  margin-top: 20px;
  font-size: 14px;
  text-align: center;
}
/* ========== Breakpointy (Mobile First) ========== */
.dm-container{
  width:100%;
  margin-right: auto;
  margin-left: auto;
}
.short-link{
  display:flex;
  justify-content: space-between;
  border-bottom: #a0a0a00e solid 0.5px;
}
.short-link ul {
  list-style: none;
  display: flex;
  flex-direction: row;
}
.short-link ul li a, .url, .commentmetadata a, .comment-edit-link{
  text-decoration: none;
  color:#111111;
  font-size: 0.85em;
  margin:0 5px;
  transition: color ease-in-out .15s;
}
.short-link ul li a:hover{
  color:var(--color-accent-red-dark);
}
.search-box{
  flex-shrink: 0;
    width: 100%;
    max-width: 100%;
}
.input-group {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}
.form-control {
  display: block;
  width: 100%;
  padding: .55rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.6;
  color: #21313c;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #dfe2e1;
  border-radius: .5rem;
  transition: all 1s ease-in-out;
}
.icon-navigation {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 1001;
    margin-left: 25px;
    width: 100vw;
    background: white;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    cursor: pointer;
    padding: 21px;
}
.icon-navigation span {display: none;}
.icon-nav-element{position: relative;  margin:0; }
.icon-nav-element:first-child {
    margin-left: 60px; /* przesuwa pierwszy element o 60px w prawo */
}
.basket i.astra-icon:after {
  content: attr(data-cart-total);
  position: absolute;
  font-family: var(--font-type);
  font-style: normal;
  top: -20px;
  right: -12px;
  font-weight: bold;
  box-shadow: 1px 1px 3px 0px rgba(0, 0, 0, 0.3);
  font-size: 11px;
  padding-left: 2px;
  padding-right: 2px;
  line-height: 17px;
  letter-spacing: -.5px;
  height: 18px;
  min-width: 18px;
  border-radius: 99px;
  text-align: center;
  background-color: #f70101;
  z-index: 3;
  color:#fff
}
.basket svg {
  height: 2.15em;
  width: 1.75em;
  fill: #424141;
}
.wc-block-product a{
  color:#1E1E1E;
  text-align: left;
}
.wc-block-product a:hover{
  color:#001e2b;
}
.icon-navigation a {text-decoration: none; color:#21313c}
.astra-icon {position: relative;}
.slider {width:100%; height:100%;}
.slider img {width:100%; height:100%; border-radius: 5px;}
.sidebar-toggle{
  border: none;
  background-color: #fff;
  padding:0;
  margin:0;
  width:48px;
  height: 48px;
  cursor: pointer;
}
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  background: none;
  border: none;
  color: #000;
  text-decoration: none;
  cursor: pointer;
  display:none;
}
.sidebar__category {
  position: fixed;
  top: 0;
  right: -700px; /* schowany po prawej */
  min-width:300px;
  height: 100vh;
  background: white;
  z-index: 9999;
  transition: right 0.3s ease-in-out;
  padding: 20px;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
}
.sidebar__category.active {
  right: 0;
	overflow-y:auto;
}
.sidebar__category ul ul {
  display: none;
  padding-left: 1rem;
	margin-left:-60px;
	width:calc(100% - 60px);
	  border:none;
}
.sidebar__category ul ul li{
	border-bottom:none!important;
	padding:0; 
}
.sidebar__category ul li.open > ul {
  display: block;
		margin-left:-80px;
	width:calc(100% + 60px);
	  border:none;
}
.close-btn.active {
 display: block;
}
.masterfooter{
 background: #2C2C2C;
  width: 100%;
  min-height: 250px;
  display: flex;
  flex-wrap: wrap;
}
.copyright{
color:#dfe2e1;
  width: 100%;
  margin: 20px 0 0 0;
  display: flex;
}
.copyright .right{
  display: flex;
    align-items: center;
    font-weight: 500;
    justify-content: center;
}
.footer-menu{
  color:#dfe2e1;
  display: flex;
  justify-content: space-between;
}
.footer-menu h1{
  color:#ccc;
  font-size: 1.45rem;
}
.footer-menu ul {list-style: none;}
.footer-menu ul li a {
  text-decoration: none;
  color:#dfe2e1;
  transition: color 0.45s ease-in-out;
}
.footer-menu ul li a:hover{
  color:#b00500;
}
.column{width:100%; text-align: center;}
.masterfooter img{
width:80%;
margin:0 10%;
}
.social-icon{
  width:100%;
  text-align: center;
  margin-top:20px;
  color:#dfe2e1;
  justify-content: center;
  display: flex;
}
.social-icon svg{
  fill:#fff;
  height: 1.45rem;
  margin:0 5px;
}
.sidebar__category ul  {
  list-style: none;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    
    color: #5c6c75;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
   
    border-radius: 0.5rem;
}
.sidebar__category ul li {
  border-bottom: 1px solid #dfe2e1 !important;
  display:flex;
  flex-direction: column;

}
.sidebar__category ul li a {
  text-decoration: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  color: #001e2b;
  padding: .5rem 0;
	justify-content: space-between;
}
/* 480px+ */
@media (min-width: 480px) {
  body {
    font-size: 17px;
  }
  .onlymobile{display:block;}
  
}

/* 640px+ */
@media (min-width: 640px) {
  .section {
    padding: 2rem;
  }
  .dm-container{
    max-width:604px;
  }
  .column{width:unset; text-align: unset;;}
.masterfooter img{
width:unset;
margin:unset;
}
.social-icon{
  width:unset;
  text-align: unset;
  margin-top:unset;
}
}

/* 768px+ */
@media (min-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }
  .dm-container{
    max-width:732px;
  }
  .text-md-start{
    text-align: left !important;
  }
  .logo img{
    width:auto;
    height: 70px;
    }
    .logo {width:25%;}
    .search-box{width:45%;}
    .icon-navigation{
      position: relative;
      bottom:unset;
    right:unset;
  width:30%;
justify-content: space-evenly;
margin-left:unset;}
   .icon-nav-element span {display: none;}
   .onlymobile{display: none!important;}
   .sidebar__category{
    position: relative;
  top: 0;
  right: 0; 
  width:calc(320px - 50px);
  margin-right:50px;
  min-width:unset;
  height: unset;
  background: white;
  z-index: unset;
  transition: unset;
  padding: unset;
  box-shadow: unset;
  float:left
   }
   .area{
    width:calc(100% - 330px); 
    float:left;
    margin-bottom:50px;
   }
	.icon-nav-element:first-child {
    margin-left: 5px; 
}
}

/* 1024px+ */
@media (min-width: 1024px) {
  body {
    font-size: 18px;
  }
  .dm-container{
    max-width: 988px;
  }
  .search-box {
  width:45%;
  }
.icon-navigation{
  width:30%;
  display: flex;
flex-direction: row;
justify-content: space-between;
padding-left: 80px;
}
.icon-nav-element a, .icon-nav-element a svg{
  transition: color .25s ease-in-out, fill .25s ease-in-out;
}

.icon-nav-element a:hover span, .icon-nav-element a:hover svg {
  color:#f70101;
  fill:#e10600;
 
}

}
@media (min-width: 1150px){
  .icon-nav-element span {display: inline-block; font-size:0.85rem}
}

/* 1280px+ */
@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
  }
  .logo{width:20%}
  .search-box{width:40%}
  .icon-navigation{
    width:40%; 
    padding-left:60px;
  }
}

/* 1536px+ */
@media (min-width: 1536px) {
  .call-to-action {
    font-size: 1.25rem;
  }
  .dm-container{
    max-width:1320px;
  }
  .search-box {width:45%;}
    .logo{width:20%;}
    .icon-navigation {width:35%; padding-left:80px;}

}


/*Menu */
/* Reset + podstawy */
.main-menu, .main-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-menu a {
  text-decoration: none;
  color: #333333;
  padding: 1.2rem;
  display: block;
  line-height: 1rem;
}
.main-menu > li {
  position: relative;
}
.sub-menu {
  display: none;
}
.menu-item-has-children.open > .sub-menu {
  display: block;
}

/* Aktywne/hover */
.main-menu a:hover,
.main-menu .current-menu-item > a {
  color: red;
}

/* DESKTOP */
@media (min-width: 768px) {
  .main-menu {
    display: flex;
    justify-content: flex-start;
    background: white;
   /* border-top: 1px solid red; 
    border-bottom:1px solid red; */
  }
  .main-menu a:nth-child(1){
    padding-left:0;
  }
  .mobile-nav-toggle {
    display: none;
  }

  .main-menu {
    display: flex;
  }
  .main-menu a {
    font-size: 1.2rem;
    line-height: 1.35rem;
  }

  .main-menu li:hover > .sub-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border: 1px solid #ccc;
    border-radius:6px;
    z-index: 10;
    padding:1rem;
  }
}

/* MOBILE */
@media (max-width: 767px) {
	.cky-revisit-bottom-left{display:none!important;}
  /* Burger przyklejony do dołu */
  .mobile-nav-toggle {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 1001;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0;
  }
  
  .mobile-nav-toggle span {
    position: absolute;
    width: 26px;
    height: 3px;
    background: black;
    border-radius: 2px;
    transition: 0.3s ease;
  }
  
  /* Linia górna */
  .mobile-nav-toggle span:nth-child(1) {
    top: 14px;
  }
  
  /* Linia środkowa */
  .mobile-nav-toggle span:nth-child(2) {
    top: 22px;
  }
  
  /* Linia dolna */
  .mobile-nav-toggle span:nth-child(3) {
    top: 30px;
  }
  
  /* Aktywny burger jako X */
  .mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 22px;
  }
  
  .mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 22px;
  }

  /* Menu full screen, ukryte domyślnie */
  .main-menu {
    position: fixed;
    top: 0;
    left: -100vw;
    width: 100vw;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    padding: 3rem 1rem;
    z-index: 1000;
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
  }

  .main-menu.active {
    left: 0;
  }

  .main-menu li {
    border-bottom: 1px solid #eee;
    text-align: left;
  }

  .sub-menu {
    padding-left: 1rem;
  }
}
/* --- ARCHIVE PAGE STYLE --- */


.archive-header {
  text-align: center;
  margin-bottom: 40px;
}

.archive-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #c70000; /* czerwony akcent */
  margin-bottom: 10px;
}

.archive-description {
  font-size: 1rem;
  color: #555;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.archive-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}

.archive-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.archive-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.archive-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.archive-card-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.archive-card-title a {
  color: #000;
  text-decoration: none;
  transition: color .2s;
}

.archive-card-title a:hover {
  color: #c70000;
}

.archive-excerpt {
  flex-grow: 1;
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 15px;
}

.archive-readmore, .comment-body p a {
  display: inline-block;
  padding: 8px 16px;
  background: #c70000;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: background .2s;
  align-self: flex-start;
}

.archive-readmore:hover {
  background: #000;
}

/* PAGINATION */
.archive-pagination {
  text-align: center;
  margin-top: 40px;
}

.archive-pagination .page-numbers {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  color: #000;
  border: 1px solid #ddd;
  transition: all .2s;
}

.archive-pagination .current,
.archive-pagination .page-numbers:hover {
  background: #c70000;
  color: #fff;
  border-color: #c70000;
}
.price{color: #001e2b !important;;}
/* SINGLE */

.single-title {
  font-size: 2.2rem;
  color: #c70000;
  margin-bottom: 10px;
}
.single-meta {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 20px;
}
.single-thumb img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}
.single-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #222;
}
.single-footer {
  margin-top: 30px;
  font-size: 0.9rem;
  color: #444;
}
.single-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

/* PAGE */

.page-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #c70000;
}
.page-content {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ERROR 404 */

.error-code {
  font-size: 6rem;
  color: #c70000;
  margin-bottom: 10px;
}
.error-message {
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.error-animation img {
  max-width: 400px;
  margin: 20px auto;
  display: block;
}
.error-home {
  display: inline-block;
  padding: 10px 20px;
  background: #c70000;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s;
}
.error-home:hover {
  background: #000;
}
/* --- COMMENTS --- */
.comments-area {
  margin-top: 50px;
}

.comments-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #c70000;
}

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

.comment-list li {
  margin-bottom: 25px;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fafafa;
  transition: box-shadow .2s;
}

.comment-list li:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.comment-author {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.comment-author img {
  border-radius: 50%;
  margin-right: 12px;
}

.comment-author .fn {
  font-weight: 600;
  color: #000;
}

.comment-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 10px;
}

.comment-content {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  margin-bottom: 10px;
}

.comment-reply-link {
  font-size: 0.85rem;
  color: #c70000;
  text-decoration: none;
  font-weight: 600;
}

.comment-reply-link:hover {
  text-decoration: underline;
}

/* --- COMMENT FORM --- */
.comment-respond {
  margin-top: 40px;
}

.comment-reply-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #c70000;
}

.comment-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #444;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 1rem;
  transition: border .2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: #c70000;
  outline: none;
}

.comment-submit {
  background: #c70000;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s;
}

.comment-submit:hover {
  background: #000;
}
/* --- MOJE KONTO WooCommerce --- */


/* Lewy panel z linkami */
.woocommerce-MyAccount-navigation {
  flex: 0 0 250px;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  text-decoration: none;
  color: #000;
  font-weight: 500;
  transition: all .2s ease;
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
  background: #c70000;
  color: #fff;
  border-color: #c70000;
}

/* Prawy panel z treścią */
.woocommerce-MyAccount-content {
  flex: 1;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 30px;
  font-size: 1rem;
  color: #333;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

/* Formularze (adres, konto, zamówienia) */
.woocommerce-MyAccount-content form {
  display: grid;
  gap: 20px;
}

.woocommerce-MyAccount-content form p {
  margin: 0;
}

.woocommerce-MyAccount-content label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content input[type="tel"],
.woocommerce-MyAccount-content textarea,
.woocommerce-MyAccount-content select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border .2s;
}

.woocommerce-MyAccount-content input:focus,
.woocommerce-MyAccount-content textarea:focus,
.woocommerce-MyAccount-content select:focus {
  border-color: #c70000;
  outline: none;
}

/* Przyciski */
.woocommerce-MyAccount-content button,
.woocommerce-MyAccount-content .button {
  display: inline-block;
  padding: 10px 20px;
  background: #c70000;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
}

.woocommerce-MyAccount-content button:hover,
.woocommerce-MyAccount-content .button:hover {
  background: #000;
}

/* Tabela zamówień */
.woocommerce-MyAccount-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.95rem;
}

.woocommerce-MyAccount-content table th,
.woocommerce-MyAccount-content table td {
  padding: 12px 15px;
  border: 1px solid #eee;
  text-align: left;
}

.woocommerce-MyAccount-content table th {
  background: #f9f9f9;
  font-weight: 600;
}

.woocommerce-MyAccount-content table tr:nth-child(even) {
  background: #fafafa;
}
/* --- LOGIN & REGISTER WooCommerce --- */
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 30px;
  max-width: 450px;
  margin: 0 auto 40px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.woocommerce-form-login h2,
.woocommerce-form-register h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  text-align: center;
  color: #c70000;
}

/* POLA */
.woocommerce-form-login label,
.woocommerce-form-register label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 6px;
  font-weight: 600;
  color: #444;
}

.woocommerce-form-login input[type="text"],
.woocommerce-form-login input[type="password"],
.woocommerce-form-register input[type="text"],
.woocommerce-form-register input[type="password"],
.woocommerce-form-register input[type="email"],
.woocommerce-Input--text {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 1rem;
  transition: border .2s;
}

.woocommerce-form-login input:focus,
.woocommerce-form-register input:focus {
  border-color: #c70000;
  outline: none;
}

/* PRZYCISKI */
.woocommerce-form-login button,
.woocommerce-form-register button {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: #c70000;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.show-password-input{
  width: 20px !important;
}
.woocommerce-form-login button:hover,
.woocommerce-form-register button:hover {
  background: #000;
}

/* DODATKI */
.woocommerce-LostPassword {
  margin-top: 10px;
  text-align: right;
}

.woocommerce-LostPassword a, .woocommerce-privacy-policy-link, .edit, .prev a, .next a, .single-categories a, .logged-in-as a  {
  font-size: 0.9rem;
  text-decoration: none;
  color: #c70000;
}

.woocommerce-LostPassword a:hover {
  text-decoration: underline;
}

.woocommerce-form-login .woocommerce-form__label-for-checkbox {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.woocommerce-form-login .woocommerce-form__label-for-checkbox input {
  margin-right: 8px;
}

/* BŁĘDY / INFO */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.woocommerce-error {
  border-left: 4px solid #c70000;
  background: #ffe9e9;
  color: #900;
}

.woocommerce-message {
  border-left: 4px solid #2e7d32;
  background: #e9f9ec;
  color: #2e7d32;
}

.woocommerce-info {
  border-left: 4px solid #1976d2;
  background: #e9f3fb;
  color: #1976d2;
}
/* --- SINGLE PRODUCT --- */


.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.product-gallery {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.product-summary {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.product-summary .product_title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #000;
}

.woocommerce-product-rating {
  margin-bottom: 15px;
}

.woocommerce-product-rating .star-rating span {
  color: #c70000 !important;
}

.product-summary .price {
  font-size: 1.8rem;
  font-weight: 700;
  color: #c70000;
  margin-bottom: 20px;
}

.product-summary .woocommerce-product-details__short-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #444;
}

/* PRZYCISK KOSZYKA */
.single_add_to_cart_button {
  background: #c70000 !important;
  color: #fff !important;
  padding: 14px 25px !important;
  border-radius: 12px !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  transition: background 0.3s;
  border: none !important;
}

.single_add_to_cart_button:hover {
  background: #000 !important;
  color: #fff !important;
}

/* META (kategorie, tagi) */
.product_meta {
  margin-top: 25px;
  font-size: 0.95rem;
  color: #666;
}

.product_meta a {
  color: #c70000;
  font-weight: 600;
  text-decoration: none;
}

.product_meta a:hover {
  text-decoration: underline;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
/* --- TABS (opis / opinie / info) --- */
.woocommerce-tabs {
  margin-top: 50px;
  margin-bottom:50px;
  background: #fff;
  padding: 20px;
}

.woocommerce-tabs ul.tabs {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  border-bottom: 2px solid #eee;
}

.woocommerce-tabs ul.tabs li {
  margin: 0;
}

.woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 1rem;
  color: #444;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.woocommerce-tabs ul.tabs li.active a {
  color: #c70000;
  border-bottom: 3px solid #c70000;
}

.woocommerce-tabs ul.tabs li a:hover {
  color: #000;
}

.woocommerce-Tabs-panel {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  animation: fadeIn 0.3s ease-in-out;
}

/* Opinie (reviews) */
#reviews #comments {
  margin-top: 20px;
}

#reviews .commentlist {
  list-style: none;
  padding: 0;
  margin: 0;
}

#reviews .commentlist li {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fafafa;
}

#reviews .commentlist li .meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 10px;
}

#reviews .commentlist li .description {
  font-size: 1rem;
  color: #333;
}

/* Animacja fadeIn */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* --- SALE BADGE --- */
.woocommerce span.onsale {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #c70000!important; /* czerwony */
  color: #fff;          /* biały tekst */
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 10;
  transition: transform 0.3s, background 0.3s;
}

.woocommerce span.onsale:hover {
  background: #000;  /* hover na czarny */
  transform: scale(1.05);
}

/* Dla produktów w siatce */
.products .product {
  position: relative;
}
/* --- SALE BADGE z procentem --- */
.woocommerce span.onsale {
  position: absolute!important;
  top: 15px!important;
  left: 15px!important;
  background: #c70000!important; /* czerwony */
  color: #fff!important;          /* biały tekst */
  font-weight: 700!important;
  font-size: 0.85rem!important;
  padding: 6px 12px!important;
  border-radius: 8px!important;
  text-transform: uppercase!important;
  letter-spacing: 0.5px!important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1)!important;
  z-index: 10!important;
  transition: transform 0.3s, background 0.3s;
  right:unset!important;
}

.woocommerce span.onsale:hover {
  background: #000;  /* hover na czarny */
  transform: scale(1.05);
}

.products .product {
  position: relative;
}
/* --- KATEGORIE PRODUKTÓW --- */
.woocommerce ul.products li.product-category {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.woocommerce ul.products li.product-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.woocommerce ul.products li.product-category a {
  color: #000;
  text-decoration: none;
  display: block;
}

.woocommerce ul.products li.product-category a:hover {
  color: #c70000;
}

.woocommerce ul.products li.product-category img {
  border-radius: 12px;
  margin-bottom: 12px;
  max-height: 150px;
  object-fit: cover;
}

/* NAZWY KATEGORII */
.woocommerce ul.products li.product-category h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: #000;
}

/* --- PRODUKTY --- */
.woocommerce ul.products li.product {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* MINIATURA */
.woocommerce ul.products li.product img {
  border-radius: 12px;
  margin-bottom: 15px;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* TYTUŁ PRODUKTU */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title:hover {
  color: #c70000;
}

/* CENA */
.woocommerce ul.products li.product .price {
  font-size: 1.1rem!important;
  font-weight: 700!important;
  color: #c70000!important;
  margin-bottom: 12px!important;
}

/* PRZYCISK DODAJ DO KOSZYKA */
.woocommerce ul.products li.product .button {
  background: #c70000;
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s;
  text-decoration: none;
}

.woocommerce ul.products li.product .button:hover {
  background: #000;
  color: #fff !important;
}

/* SALE BADGE (już mamy) */
.woocommerce span.onsale {
  top: 15px;
  left: 15px;
  font-size: 0.85rem;
  padding: 6px 12px;
}
.woocommerce .quantity .qty{
  height:45px; 
 width: 80px !important;;
}
/* Sekcja sliderów */
/* === Sekcja slidera === */
.product-slider-section {
    margin: 60px auto;
    max-width: 1200px;
    padding: 0 20px;
}

/* Nagłówek sekcji */
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.slider-title {
    font-size: 1.8em;
    font-weight: 600;
    margin: 0;
}

.slider-more-btn {
    background-color: #d10000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}
.slider-more-btn:hover {
    background-color: #a30000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(209, 0, 0, 0.3);
}

/* === Karta produktu === */
.product-slide {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
    min-height: 370px;
    position: relative;
    overflow: hidden;
}
.product-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* === Obrazek produktu + overlay === */
.product-image-wrapper, .woocommerce ul.products li.product a img {
    position: relative;
    width: 100%!important;
    height: 220px!important;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
}
.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

/* Efekt powiększenia */
.product-slide:hover img {
    transform: scale(1.05);
}

/* Overlay z przyciskiem */
.quick-view-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}
.quick-view-btn {
    background-color: #d10000;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    text-transform: uppercase;
}
.product-image-wrapper:hover .quick-view-overlay {
    opacity: 1;
    visibility: visible;
}

/* === Tytuł produktu === */
.product-slide {text-decoration:none;}
.product-slide h3, .woocommerce-loop-product__title  {
    font-size: 1em;
    margin: 12px 0 5px;
    color: #222;
    text-decoration: none; 
    line-height: 1.3em;
    height: 2.6em; 
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
	padding:unset!important;
}

/* === Cena === */
.price {
    display: block;
    color: #d10000;
    font-weight: bold;
    margin-top: auto;
}

/* === Strzałki nawigacji === */
.swiper-button-prev, .swiper-button-next {
    color: #000;
    transition: opacity 0.3s ease;
}
.swiper-button-prev:hover, .swiper-button-next:hover {
    opacity: 0.7;
}

/* === Responsywność === */
@media (max-width: 1024px) {
    .slider-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .slider-more-btn {
        align-self: flex-end;
    }
    .product-slide {
        min-height: 330px;
    }
}
@media (max-width: 768px) {
    .product-image-wrapper {
        height: 200px;
    }
    .product-slide h3 {
        font-size: 0.95em;
        height: 2.6em;
    }
}
@media (max-width: 480px) {
    .product-slide {
        min-height: 320px;
    }
    .product-image-wrapper {
        height: 180px;
    }
}
/* === Stylizacja sekcji filtra === */
.yith-wcan-filter {
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.yith-wcan-filter:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* === Nagłówek sekcji === */
.yith-wcan-filter .filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #111;
    border-bottom: 2px solid #e41e26; /* czerwony akcent */
    display: inline-block;
    padding-bottom: 4px;
}

/* === Lista === */
.yith-wcan-filter .filter-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* === Element listy === */
.yith-wcan-filter .filter-item {
    margin-bottom: 8px;
}

.yith-wcan-filter .filter-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
    transition: color 0.3s ease;
}

.yith-wcan-filter .filter-item:hover label {
    color: #e41e26;
}

/* === Ukrycie natywnego checkboxa === */
.yith-wcan-filter input[type="checkbox"] {
    display: none;
}

/* === Customowy checkbox === */
.yith-wcan-filter label::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%; /* okrągły */
    transition: all 0.3s ease;
    background: #fff;
}

/* === Aktywny checkbox === */
.yith-wcan-filter input[type="checkbox"]:checked + a.term-label::before,
.yith-wcan-filter input[type="checkbox"]:checked + span.term-label::before {
    border-color: #e41e26;
    background: radial-gradient(circle at center, #e41e26 0%, #b8141b 100%);
}

/* === Naprawa pozycji customowego checkboxa === */
.yith-wcan-filter label {
    position: relative;
}

.yith-wcan-filter label::before {
    position: relative;
    top: 1px;
}

/* === Styl linku (usuwa niebieskie podkreślenia) === */
.yith-wcan-filter .term-label {
    text-decoration: none;
    color: inherit;
    position: relative;
    padding-left: 0;
}

.yith-wcan-filter .term-label:hover {
    text-decoration: none;
    color: #e41e26;
}

/* === Po zaznaczeniu checkboxa – pogrub tekst === */
.yith-wcan-filter input[type="checkbox"]:checked + .term-label {
    font-weight: 600;
    color: #e41e26;
}

/* === Responsywność === */
@media (max-width: 768px) {
    .yith-wcan-filter {
        padding: 15px;
        border-radius: 10px;
    }

    .yith-wcan-filter .filter-title {
        font-size: 1rem;
    }

    .yith-wcan-filter .filter-item label {
        font-size: 0.9rem;
    }
}
.wc-block-product-categories-list-item__image{
	width:48px!important;
	height:48px!important;
}
.wc-block-product-categories-list-item__name{
	width:100%; 
}
.wc-block-product-categories-list--has-images .wc-block-product-categories-list-item {
width: calc(100% - 40px);}
.toggle-arrow {
  font-size: 12px;
  margin-left: 8px;
  transition: transform 0.2s ease;
}

/* Obracanie strzałki po rozwinięciu */
.wc-block-product-categories-list-item.open > a .toggle-arrow {
  transform: rotate(180deg);
}
/* === ODDZIELENIE SUBMENU OD RESZTY === */
.wc-block-product-categories-list-item.open > .wc-block-product-categories-list::after {
  content: "";
  display: block;
  margin-top: 5px;
  border-bottom: 2px solid #ddd;
  opacity: 0.6;
}

.wc-block-product-categories-list .wc-block-product-categories-list .wc-block-product-categories-list-item > a {
  background: #fdfdfd;
  font-size: 0.9em;
}
.wp-block-buttons>.wp-block-button.wp-block-button__width-25{
	width:auto!important;
}