:root {
    --primary-color: #4CAF50;
    --secondary-color: white;
    --text-color: black;
    --hover-background: white;
    --hover-color: #4CAF50;
    --border-color: #4CAF50;
    --font-size-large: 2rem;
    --font-size-medium: 1.4rem;
    --font-size-small: 19px;
    --font-size-xlarge: 36pt;
    --padding-small: 1%;
    --border-radius: 10px;
	--font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

/* Загальні стилі для тіла */
body {
    margin: 0;
	font-family: var(--font-primary);
	background-color: #f9f9f9;
	color: var(--text-color);
	font-size:var(--font-size-small);
}

/* Ссилки */
a {
    text-decoration: none;
    color: inherit;
}

/* Хедер */
#hdr {
    height: 9vh;
    min-height: 50px;
    background: var(--primary-color);
    display: flex;
    text-decoration: none;
}

/* Мінімальні блоки в хедері */
.minsa {
	display:flex;
    text-decoration: none;
    height: 100%;
    transition: 0.3s;
    background: var(--primary-color);
    width: 10%;
    min-width: 140px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}
.mins {
	display:flex;
    text-decoration: none;
    height: 100%;
    transition: 0.3s;
    background: var(--primary-color);
    width: 10%;
    min-width: 140px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mins:hover {
    transition: 0.3s;
    background: var(--hover-background);
    color: var(--hover-color);
    text-decoration: none;
}

/* Центральний текст */
.cenal {
	margin-left:5px;
    font-size: var(--font-size-medium);
}
#mari{
	border:3px solid white;
	padding:8px 12px 8px 12px;
	font-size:var(--font-size-medium);
}
#cats{
	margin-left:27%;
}
#jscor {
    display: flex;
    text-decoration: none;
    height: 100%;
    transition: 0.3s;
    background: var(--primary-color);
    width: 10%;
    min-width: 140px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

#jscor.active {
    background: white;
    color: #4CAF50;
}

#jscor.inactive {
    background: #4CAF50;
    color: white;
}

#jscor:hover {
    background: var(--hover-background);
    color: var(--hover-color);
    text-decoration: none;
}
#cats {
    width: 10%; /* явно встановлюємо ширину для cats */
}
#ser {
    position: absolute;
    right: 0;
    width: 20%;
    min-width: 200px;
    border-left: 2px solid var(--primary-color);
    background-color: var(--secondary-color);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Поле для введення пошуку */
#inps {
	margin-top:1%;
    width: 59%;
    padding: var(--padding-small);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-left: 10%;
    font-size: 1.2rem;
    transition: border-color 0.3s ease;
}

#inps:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Кнопка пошуку */
#buts {
    font-size: var(--font-size-small);
    width: 18%;
    padding: var(--padding-small);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

#buts:hover {
    background-color: #f9f9f9;
    color: var(--primary-color);
} 

#akart{
	padding:5px;
	overflow-x: hidden; /* Сховати горизонтальну прокрутку */
	overflow-y: scroll;
	border:2px solid var(--primary-color);
	background:white;
	width:25%;
	min-width:200px;
	margin-right:2%;
	color:black;
	border-radius:10px;
	z-index:10;
	position:absolute;
	right:1%;
	top:10%;
	visibility:hidden;
}
.yoc{
	font-family:var(--font-secondary);
	margin-bottom:5px;
	padding-bottom:5px;
	margin-left:10%;
	width:80%;
	text-align:center;
	font-size:var(--font-size-large);
	border-bottom:1px solid var(--primary-color);
}
.dostav{
	font-weight:bold;
	width:100%;
	text-align:center;
}
.cfilds{
	margin-bottom:0;
	width:100%;
	text-align:center;
	margin-top:3%;
}
.fotkart{
	display:inline-block;
	cursor:pointer;
	margin-left:10%;
	margin-top:1.5%;
	margin-bottom:1.5%;
	border:1px solid var(--primary-color);
	background:white;
	color:black;
	width:80%;
	text-align:center;
	padding-top:1%;
	padding-bottom:1%;
}
.fotkart:hover{
	background:var(--primary-color);
	color:white;
}
.cinp{
	margin-top:0;
	width:78%;
	margin-left:10%;
	padding-top:1%;
	padding-bottom:1%;
	font-size:var(--font-size-small);
}
#order-btn{
	display:inline-block;
	cursor:pointer;
	margin-left:10%;
	margin-top:1.5%;
	margin-bottom:1.5%;
	border:1px solid var(--primary-color);
	background:var(--primary-color);
	color:white;
	width:80%;
	text-align:center;
	padding-top:1%;
	padding-bottom:1%;
	font-size:var(--font-size-medium);
}
#order-btn:hover{
	background:white;
	color:black;
}
#cart-list{
	padding-left:1%;
}
.totalsu{
	display:inline-block;
	font-weight:bold;
	font-family: var(--font-primary);
}
.cpr{
	margin-left:9%;
	width:80%;
	text-align:center;
	border-bottom:1px solid var(--primary-color);
	margin-bottom:4%;
	padding-bottom:2%;
}
li{
	list-style-type: none;
}
li img{
	margin:0;
	padding:0;
}


.language-selector{
	position:fixed;
	left:1%;;
	top:50%;
}
.lang-switch{
	background:white;
	cursor:pointer;
	height:0;
	opacity:0;
  display: flex;
	justify-content: center;
    align-items: center;
	transition:0.3s;
width:0;
border-radius:10px;
border:1px solid var(--primary-color); 	
margin-bottom:1px;
}
.lang-switch:hover{
	color:white;
	background: var(--primary-color);
}
#curl{
    background:#f9f9f9;
	cursor:pointer;
	display:flex;
	justify-content: center;
    align-items: center;
	transition:0.3s;
width:40px;
height:40px;
border-radius:100%;
border:2px solid var(--primary-color); 	
}

.language-selector:hover .lang-switch{
	opacity:1;
  height:30px;
  width:100px;
}

#fot{
	border-top:2px solid var(--primary-color);
	background: #f9f9f9;
	width:100%;
	padding-top:1%;
	padding-bottom:1%;
	margin-top:1%;
}
.fot{
	display:inline-block;
	width:40%;
	margin-left:5%;
}
#fotph{
	font-size:1.5rem;
}



#cont{
	overflow:hidden;
	border-radius:0;
	height: 9vh;
    min-height: 50px;
	position:absolute;
	right:20px;
	display:flex;
	text-decoration: none;
    transition: width 0.3s ease-in-out, background-color 0.3s ease-in-out;
    background: var(--primary-color);
    color: var(--secondary-color);
    align-items: center;
    justify-content: center;
	z-index:99;
}
#cont:hover #conta{
	width:200px;
}
#conta{
	font-size: var(--font-size-medium);
	transition: width 0.3s ease-in-out, background-color 0.3s ease-in-out;
	width:0;
	overflow:hidden;
}
#cont:hover{
	color: var(--primary-color);
	border-radius:6px;
	background:white;
}
#picp{
	border:1px solid var(--primary-color);
	border-radius:100%;
	cursor:pointer;
	min-width:35px;
	min-height:35px;
	width:50px;
	height:50px;
	background-image: url('../img/pics/phone.png');
	transition:0.3s;
	background-size: contain;
	background-position: center; /* Центрує зображення */
	background-repeat: no-repeat; /* Запобігає повторенню зображення */
	
}
.clmar{
	color:white;
}
#picp2,#picp3,#picp4{
	width:30px;
	height:30px;
	background-position: center; /* Центрує зображення */
	background-repeat: no-repeat; /* Запобігає повторенню зображення */
}
#sorbdesal {
	padding-bottom: 5%;
	width: 100%;
	position: relative; /* Позиціонує відносно цього контейнера */
	overflow: hidden; /* Відсікає надлишки */
	}
#pis{
	position: absolute; /* Позиціює зображення абсолютно всередині контейнера */
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover; /* Зберігає пропорції зображення та відсікає надлишки */
	z-index: -1; /* Розташовує зображення на задній план */
}
@media screen and (max-width: 768px) {
    #cont{
        display:none;
    }
 .fot{
	display:inline-block;
	width:40%;
	margin-left:5%;
}
#fotph{
	font-size:1.2rem;
}
#cats{
	margin-left:0;
}
}
@media screen and (min-width: 768px) and (max-width: 1199px) {
    #cats {
        margin-left: 15%;
    }
}
