header{
	/*
	position: fixed;
	top:0px;
	left:0px;
	right:0px;
	*/
	z-index: 1000;
	box-shadow: 0 0 25px 0 rgba(0,0,0,0.5);
}
header .header-top{
	background: var(--secondary-bg);
	color:var(--secondary-color);
	padding: 10px 0;
}

header .header-top .btn.btn-outline-secondary{
	color:var(--secondary-color);
	border:none;
	font-weight: 400;
}

header .header-top .btn.btn-outline-secondary:hover{
	background: var(--secondary-bg);
	color:var(--secondary-color);
}

header .header-container{
	background: var(--header-bg);
	color:var(--header-color);
}

@media (max-width: 767.98px){
	header{
		position: static;
	}

	header .header-container{
		height:auto;
	}
}

header a{
	color:var(--header-color);;
}

header .header-contact-icon{
	margin-right: 15px;
}

header .header-contact-icon .fa{
	font-size:30px;
}

header .header-contact-mobile{
	display:none;
}

header .header-interface{
	border-radius: 7px;
	background: var(--header-bg) !important;
	color: var(--header-color);
	padding-left: 15px;
	padding-right: 15px;
}

@media (max-width: 767.98px){
	header .header-interface{
		margin-bottom: 15px;
	}
}

header .header-interface-list{
	list-style: none;
	padding: 0px;
	margin:0px;
}

header .header-logo{
	margin-right: 15px;
	padding: 15px 0;
}

header .header-logo img{
	max-width: 500px;
	max-height: 100px;
}

@media (max-width: 767.98px){
	header .header-logo{
		margin: 0px;
		padding: 15px;
		text-align: center;
		justify-content: center;
	}

	header .header-logo img{
		max-width: 100%;
		max-height: 100%;
	}
}

header .btn-header{
	border:none;
	background: none;
	padding: 5px;
	position: relative;
	color:var(--header-color);
	font-size: 20px;
}

header .header-interface-list > li:not(:first-child) {
    margin-left: 15px;
}

header .header-contact-mobile a{
	color:#000;
}

header .header-right{
	margin-top: 15px;
}

@media (max-width: 767.98px){
	header .header-right{
		margin-top: 0px;
	}
}

#menu.fixed {
  position: fixed;
	top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
	background-color: var(--primary-bg);
  box-shadow: 0 0 25px 0 rgba(0,0,0,0.3);
  transition: transform 0.3s ease, opacity 0.3s ease;
	margin-top: 0px;
	padding-left: 15px;
	padding-right: 15px;
}

#menu.fixed  .navbar-nav{
	margin: 0 auto;
}

.header-top,
.header-main-content {
    transition: all 0.3s ease;
}

.header-main{
	padding-top: 15px;
	padding-bottom: 15px;
}

header.compact .header-top,
header.compact .header-main-content {
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

header.compact .header-logo,
header.compact .header-right-row-1{
	display:none !important;
}

header.compact .header-container{
	height:0px;
}

.header-page-title-wrapper{
	position:absolute;
	left:50%;
	transform: translateX(-50%);
	top:144px;
	bottom:0px;
	width:100%;
	display: block;
	z-index: 11;
}

.header-page-title{
	padding:25px;
}

.header-page-title h1{
	font-size: 42px;
	color:var(--title-color);
	text-align: left;
	font-weight: 900;
	text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.header-page-title .subtitle{
	font-size: 24px;
	color:var(--title-color);
	text-align: left;
	font-weight: 700;
	text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 1157px) {
	.header-contact{
		display:none !important;
	}

	.header-contact-mobile{
		display: block !important;
	}

	.header-contact-mobile .header-contact-content{
		padding: 15px;
	}

	.header-contact-mobile .dropdown-menu{
			min-width: 300px;
	}
}

@media (max-width: 767.98px){
	.header-page-title-wrapper{
		width:100%;
		top:0px;
	}
	.header-page-title h1{
		font-size: 36px;
		text-align: center;
	}

	.header-page-title .subtitle{
		font-size: 18px;
		text-align: center;
	}
}

/*#########################*/
/*#### HEADER SEARCH */
/*#########################*/
.search-panel {
  position: fixed;
  top: 0;
  top: -100%;
  width: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1050;
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  padding-bottom: 100px;
}

.search-panel.open {
  top: 0;
}

.search-panel button.btn-close{
	position: absolute;
  	top: 15px;
  	right: 15px;
}

.search-panel button.btn-search{
	background: var(--primary-bg);
	color: var(--primary-color);
	border-color: var(--primary-bg);
}

.search-panel button.btn-search:hover{
	background: var(--secondary-bg);
	color: var(--secondary-color);
	border-color: var(--secondary-bg);
}

.search-panel-header h5{
	margin-top: 100px;
	text-align: center;
}

.search-panel-content{
	max-width: 500px;
	margin: 0px auto;
	padding-top: 25px;
	padding-left: 15px;
	padding-right: 15px;
}

.search-result-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: none;
}

.search-result-box a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.search-result-box a:hover {
  background-color: #f5f5f5;
}

.search-result-box::-webkit-scrollbar {
  width: 6px;
}
.search-result-box::-webkit-scrollbar-track {
  background: transparent;
}
.search-result-box::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}
/*#########################*/
/*#### HEADER MOBILE MENU */
/*#########################*/
#header-mobile-panel{
	position:fixed;
	left:-400px;
	bottom:0px;
	top:0px;
	width:100%;
	max-width:350px;
	background: var(--main-color);
	color: var(--main-color-contrast);
	box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.5);
	z-index:10000;
	padding: 15px;
	overflow:auto;
	transition: all 0.3s ease;
}

#header-mobile-panel .btn-close{
	width: 30px;
	height:30px;
	display:flex;
	justify-content: center;
	align-items: center;
	background-color: var(--primary-color);
	border-radius: 50%;
}


.btn-close{
	color: var(--primary-color) !important;

}
#header-mobile-panel .accordion{
		background:#000 !important;
}
#header-mobile-panel.open{
	left: 0px;
}

#header-mobile-panel::-webkit-scrollbar {
  width: 6px;
}
#header-mobile-panel::-webkit-scrollbar-track {
  background: transparent;
}
#header-mobile-panel::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

#header-mobile-menu{
	margin-top: 25px;
}

#header-mobile-panel  .accordion-item {
	  background-color: var(--main-color);
	  border: 1px solid rgba(255, 255, 255, 0.1);
	  border-radius: 0.5rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
	  overflow: hidden;
		box-shadow: none;
		padding: 0px !important;
		margin-bottom:1px;
}

#header-mobile-panel .accordion-body{
	 padding: 0px !important;
}

#header-mobile-panel .accordion-body ul li a{
		color:var(--primary-bg) !important;
}

#header-mobile-panel .accordion-body ul li a:hover{
		color:var(--primary-color);
}

#header-mobile-panel .accordion-button:not(.collapsed) {
		color: var(--primary-bg) !important;
		background-color: var(--primary-color) !important;
		border: var(--bs-accordion-border-width) solid var(--primary-color);
}

#header-mobile-panel .supplementary-menu ul li a {
  display: block;
  padding: 8px;
	color: var(--primary-color) !important;
  background: var(--primary-bg) !important;
  margin-bottom: 1px;
  text-align: center;
}

#header-mobile-panel  .accordion-button{
	color: var(--primary-color) !important;
	background: var(--primary-bg) !important;
}

#mobileMenuAcc{
	overflow:hidden;
	border-radius:15px;
}

.supplementary-menu{
	margin-top: 25px;
}

.supplementary-menu ul{
	list-style: none;
	padding: 0px;
	margin: 0px;
	overflow:hidden;
	border-radius: 15px;
}

.supplementary-menu ul li{
	display: block;
}

.supplementary-menu ul li a{
	display: block;
	padding: 8px;
	color: var(--tertiary-bg) !important;
	background: var(--tertiary-color) !important ;
	margin-bottom: 1px;
	text-align: center;
}

/*#########################*/
/*#### HEADER BIG MENU */
/*#########################*/
/* Główne menu – bez zmian kolorów */
#menu {
	position: relative;
	z-index: 1000;
}

/* Sub-menu (mega-menu) */
.mega-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #000;
	color: #fff;
	box-shadow: 0 10px 25px rgba(0,0,0,0.4);
	padding:25px;
}

.mega-menu.active {
	display: block;
	animation: fadeIn .2s ease-in-out;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(-10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Accordion */
.mega-menu .accordion-button {
	color: #fff;
	background: transparent;
	box-shadow: none;
	font-size: 0.9rem;
}
.mega-menu .accordion-button:not(.collapsed) {
	background-color: rgba(255,255,255,0.1) !important;
	color: #000;
}
.mega-menu .accordion-body a:hover {
	color: #fff;
}
.header-button-accordion{
		padding:7px;

}
.accordion-header{
		border-radius: 7px !important;
}
.header-accordion-wrapper{
		margin-bottom: 2px;
}

.mega-menu .accordion-button::after {
	filter: invert(1);
	opacity: 0.9; /* opcjonalnie, żeby nie były zbyt jaskrawe */
}

/* dla otwartego stanu – nadal białe */
.mega-menu .accordion-button:not(.collapsed)::after {
	filter: invert(1);
}
/*#########################*/
/*#### HEADER CART */
/*#########################*/
.cart-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
	background: var(--main-color);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1050;
  transition: right 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

.cart-panel.open {
  right: 0;
}

.cart-panel-header {
  padding: 1rem;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: flex-end;
}

.cart-panel-content {
  padding: 1rem;
  overflow-y: auto;
  flex-grow: 1;
}

.btn-remove{
	background: none;
	border:none;
	padding: 0px;
	color:var(--primary-bg);
}

.row-cart{
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px #ccc solid;
}

.quantity-group {
    max-width: 100px;
    margin-top: 10px;
}
.quantity-group .form-control {
    text-align: center;
    padding: 0 0.4rem;
    height: 26px;
    line-height: 1;
    font-size: 0.8rem;
}

.quantity-group .btn {
    padding: 0 0.4rem;
    height: 26px;
    font-size: 0.8rem;
    line-height: 1;
}
.cart-loader {
    display: none;
    text-align: center;
    padding: 1rem;
	position: absolute;
	left:0px;
	right:0px;
	top:0px;
	bottom:0px;
	background: rgba(255, 255, 255, 0.8);
	z-index: 2;
}

.cart-count-badge-container{
	position: relative;
}

.cart-loader i{
	position: absolute;
	left:50%;
	top:50%;
	transform: translate(-50%, -50%);
	font-size: 42px;
}

.cart-count-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #dc3545; /* czerwony Bootstrapowy */
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    line-height: 1;
    display: inline-block;
    min-width: 18px;
    text-align: center;
}

@media screen and (max-width: 400px) {
	.cart-panel {
	  position: fixed;
	  top: 0;
	  right: -100%;
	  width: 100%;
	  height: 100%;
	  background: #fff;
	  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
	  z-index: 1050;
	  transition: right 0.3s ease-in-out;
	  display: flex;
	  flex-direction: column;
	}
}
/*#########################*/
/*#### HEADER TOP MENU */
/*#########################*/
.dc-top-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
		margin-left: 15px;
}
.dc-top-menu-item a {
    color:var(--primary-color);
    text-decoration: none;
}

@media (max-width: 767.98px){
	.header-top-menu{
		display:  none;
	}
}

/*#########################*/
/*#### HEADER MENU */
/*#########################*/
.header-menu,
#menu{
	background: var(--primary-bg);
}
#menu{
	margin-top: 0px;
	padding-top: 15px;
	border-top: 1px solid var(--secondary-bg-solid);
}
#menu a.nav-link{
	color:var(--primary-color);
	background: none;
	font-size: 18px;
	font-weight: 700;
	transition: all 0.3s ease-in-out;
	text-transform: uppercase;
	white-space: nowrap;
}

#menu .dropdown-menu a.nav-link{
	font-size: 14px;
	color:#000;
	font-weight: 400;
}

#menu a.nav-link:hover{
	background: var(--secondary-bg);
	color:var(--secondary-color);
}

#menu .header-menu-title{
	color:var(--secondary-bg);
	font-weight: 700;
	font-size: 18px;
}

#menu button.navbar-toggler,
#menu button.navbar-toggler .navbar-toggler-icon{
	color:var(--secondary-bg) !important;
}

/* usuń strzałkę z pozycji bez submenu (tych, które są <a>) */
.mobile-menu .accordion-button::after {
	filter: invert(1); /* białe strzałki dla rozwijanych – zostaje */
}

.mobile-menu a.accordion-button::after {
	display: none !important;
	content: none !important;
}

@media (max-width: 991.98px) {
		#menu{
				display: none !important;
		}
}

/*#########################*/
/*#### HEADER SHIPPING */
/*#########################*/
.header-shipping-info{
	font-size: 14px;
	font-weight: 700;
}

.header-shipping-info i{
	font-size: 26px;
	margin-right: 15px;
}

@media screen and (max-width: 1200px) {
	.header-shipping-info{
		display:none !important;
	}
}
