.kp-header-elements-elementor {
    align-items center;
}
.kp-cart{
	font-size:15px;
}
.
.kp-header-elements-elementor a {
    text-decoration none;
    font-weight 500;
    display flex;
    align-items center;
    gap 5px;
}

.kp-header-elements-elementor .kp-search input {
    padding 5px;
    width 150px;
}
@media(max-width767px){
    .kp-header-elements-elementor {
        flex-direction column !important;
        gap 10px !important;
    }
    .kp-header-elements-elementor .kp-search input {
        width 100%;
    }
	.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5); /* dark background with 0.5 opacity */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Visible state */
.search-overlay.active {
  visibility: visible;
  opacity: 1;
}

}

.kp-header-elements-elementor {
  display: flex;
  flex-direction: row;
  gap: 25px; /* space between items */
  align-items: center; /* vertically center icons/text */
  flex-wrap: nowrap; /* keep them horizontal */
}

.kp-header-elements-elementor svg {
  width: 28px;
  height: 28px;
  fill: currentColor; /* makes icon inherit text color */
  display: inline-block;
  vertical-align: middle;
}

.kp-header-elements-elementor .kp-search,
.kp-header-elements-elementor .kp-cart,
.kp-header-elements-elementor .kp-account {
  display: flex;
  align-items: center;
  gap: 8px; /* spacing between icon and text */
  font-size: 18px; /* adjust text size */
  background-color:#871F1F;
  padding:8px;
  border-radius:50%;
  position:relative;
}
.kp-cart-count{
	position:absolute;
	top:-3px;
	background:white;
	color:red;
	border:solid 1px red;
	padding:5px;
	border-radius:100%;
	line-height:9.5px;
}
[id^="custom-search-wrapper"] {
    display: flex;
  align-items: center;
  gap: 3px; /* spacing between icon and text */
  font-size: 18px; /* adjust text size */
  background-color:#871F1F;
  padding:8px;
  border-radius:50%;
  position:relative;
	color:white;
}

[id^="search-popup"] {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc !important;
    padding: 10px;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.kp-searching-header{
	display: flex;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
    justify-content: space-between;
	}
.kp-searchint-text{
	width:86%;
	color:black;
}
.kp-searchint-btn{
	width:7%;
	color:black;
	text-align:right;
	margin-right:10px;
}
[id^="popup-search-results"]{
	position:absolute;
	background:white;
}
.searching-image{
	display:block;
	width:30%;
}
.kp-searching-header-main{
	width:40%;
}
.top-searching{
	display:flex; 
	flex-wrap:wrap; 
	width:100%; 
	align-items:center; 
	min-height:170px;
}
[id^="popup-search-input"] {
    width: 86% !important;
    padding: 5px;
    margin-right: 5px;
	color:black !important;
	border:solid 1px #ccc !important;
}
@media (max-width:786px){
	.kp-searching-header-main{
		width:97%;
	}
	.searching-image{
		display:none;
		width:0;
	}
	[id^="search-popup"]{
		position:fixed;
		top:0px;
		left:0px;
		width:100%;
		height:100vh;
	}
	[id^="popup-search-results"] ul{
		max-height: 300px;   /* adjust height as needed */
  		overflow-y: auto;    /* enables vertical scrolling */
		padding: 0;
  		margin: 0;
  		list-style: none;
  		border: 1px solid #eee;
  		background: #fff;
	}
	.kp-searchint-text{
		width:70%
	}
	.kp-searchint-btn{
		width:27%;
	}
	[id^="popup-search-input"]{
		width:75% !important;
	}
}

[id^="popup-search-btn"] {
    padding: 5px 10px;
    background: #871F1F;
    color: #fff;
    border: none;
    cursor: pointer;
	display:block;
	margin-left:auto;
	margin-top:5px;
}

[id^="popup-search-results"] ul li a {
    text-decoration: none;
    color: #333;
}

[id^="popup-search-results"] ul li:hover {
    background: #f5f5f5;
}