/*Total settings*/
*{
	margin: 0px; /*Убираем отступ*/
	padding: 0px;
}

.hide{
	display: none;
}

.show{
	display: flex;
}

body {
	width: 100vw;
	background-color: #ededed; /*Фоновый цвет страницы*/
	overflow-y: auto;
}

body::-webkit-scrollbar {
   width: 0px;
}

header, main, footer{
	width: 1500px; /*Ширина блока*/
	margin: 0px auto; /*Выставляем блок по центру страницы*/
}

/*Start header*/
header {
	height: 140px; /* Высота блока */
	background-color: #373737;/*Color cap*/
	border-radius: 0px 0px 6px 6px;
}
	.basket{
		/*position: absolute;*/
		width: 304px; 
		height: 99px;
		color: #ffffff;
		top: 50%;
		margin-top: -49.5px;
		right: 0px;
	}
		.picturesBasket{
			width: 99px;
			height: 99px;
			float: left;
		}
		.checkout{
			position: relative;
			width: 190px;
			height: 99px;
			float: left;
			margin-left: 15px;
			font-size: 18px;
		}
			.checkout p{
				margin: 0px 0px 5px 0px;
			}
			.bottunBasket{
				position: absolute;
				width: 190px;
				height: 40px;
				background: url(../pictures/bottunBasket.png);
				color: #ffffff;
				border: none;
				font-size: 16px;
				bottom: 0px;
				left: 0px;
			}
/*Ehd header*/

/*Start main*/
main {
	margin-top: 15px; /*Отступ блока от header*/
	display: flex;
	justify-content: space-between;
}
	/*Left slice*/
	#left{
		width: 250px;
	}

	/*Style menu in file menu.php*/
						
/*Center slice*/
	/*Start top card*/
	.top-card {
		text-align: center;
	}

	.card {
		display: inline-block;
		width: 250px; height: 350px;
		margin: 20px 20px 0px 20px;
		background-color: #fff;
		border: 2px solid brown;
		border-radius: 6px;
		text-align: center;
		padding-top: 10px;
	}

	.card:hover {
		box-shadow: 0px 0px 6px 6px rgb(192, 192, 192, 0.3),
						0px 0px 6px 6px rgb(192, 192, 192, 0.3);
	}
	.card__name {
		font-weight: bolder;
		margin-top: 10px;
		font-size: 25px;
		padding: 0px 10px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.card__code {
		margin-top: 10px;
	}
	.card__price{
		margin: 10px 0px 10px;
		color: red;
		font-size: 25px;
	}
	/*End top card*/

	/*Start modal window new ads*/
	.wrapper_form {
		display: flex;
		justify-content: space-between;
	}

	form[name='new_advert']{
			width: 476.5px;
			border-right: 1px solid brown;
			text-align: center;
	}

	.addAdvert_name_field {
		font-size: 18px;
		margin: 0px;
		padding-bottom: 5px;
	}

	.category {
		width: 252px; height: 27px;
		border-color: brown;
		outline: none;
		margin-bottom: 20px;
	}

	input[name='name_goods'], input[name='price_goods']{
		width: 250px; height: 25px;
		border: 1px solid brown;
		outline: none;
		text-align: center;
		padding: 0px;
		margin-bottom: 20px;
	}

	fieldset, .block_append_photo {
		width: 320px;
		margin: 0px auto 20px;
		padding: 0px;
		border: none;
		display: flex;
		flex-wrap: wrap;
	}

	fieldset {
		justify-content: space-evenly;
	}

	.block_append_photo {
		justify-content: space-between;
	}

	.but_add_photo {
		width: 72px; height: 72px;
		background-color: #ffffff;
		border: 1px solid brown;
		cursor: pointer;
		margin-bottom: 10px;
		padding: 0px;
	}

	textarea[name='description_goods']{
		width: 320px; height: 120px;
		margin-bottom: 20px;
		border-color: brown;
		outline: none;
	}

	label {
		cursor: pointer;
	}

	.new_advert_description {
		width: 476.5px;
		height: 400px;
		padding-left: 20px;
	}

	.new_advert_description p {
		margin-top: 0px;
		padding: 0px;
		font-size: 18px;
	}
							
	#but_send_advert {
		position: relative;
		width: 100px; height: 25px;
		left: 50%;
		transform: translate(-50%, 0);
		border-radius: 6px;
		margin: 30px 0px;
		cursor: pointer;
		outline: none;
	}
			/*End modal window new ad*/

/*Start window advert user*/
.user_advert{
	border-radius: 6px;
	background: #fff;
}

.tads, .sales, .purchases, .message {
	list-style: none;
}

.tabs-item{
	position: relative;
	display: inline-block;
	width: 220px; height: 40px;
	border: 1px solid brown;
	text-align: center;
	font-size: 18px;
	line-height: 40px;
	border-radius: 6px 6px 0px 0px;
	z-index: 2;
	cursor: pointer;
}

.tabs-item:first-child {
	margin-left: 10px;
}

.active{
	font-weight: bolder;
	border-bottom: 1px solid #fff;
}

.content_tab{
	position: relative;
	border-top: 1px solid brown;
	margin-top: -1px;
	z-index: 1;
}

.hat_ads{
	height: 40px;
	background-color: #ebebeb;
	margin: 15px 10px 0px;
	border-radius: 6px;
	padding-left: 10px;
	display: flex;
	align-items: center;
}

.hat_ads input, .card_ad input {
	margin-right: 20px;
	width: 15px; height: 15px;
}

.hat_ads button{
	background-color: #ffffff;
	border: none;
	border-radius: 2px;
	margin-right: 10px;
}

.hat_ads button:hover{
	cursor: pointer;
	background-color: #e9e9e9;
}

.box{
	margin-top: 15px;
}

.card_ad {
	height: 100px;
	margin: 0px 10px 10px;
	padding-left: 10px;
	border-radius: 6px;
	display: flex;
	align-items: center;
}

.card_ad:hover {
	background-color: #ffefe0;
}

.card_ad ul {
	margin-left: 40px;
}

.card_ad li {
	list-style: none;
	font-size: 16px;
}
/*End modal window advert user*/

/*Start modal window trading user*/
.sold-goods-list {
	margin-top: 15px;
}

.sold-goods-item, .purchased-goods-item {
	list-style: none;
}

.sold-goods-item input, .purchased-goods-item input {
	margin-right: 20px;
	width: 15px; height: 15px;
}
.card-trading {
	display: flex;
	align-items: center;
}
.card-data {
	list-style: none;
}
.data-buyer, .data-seller {
	margin-left: 40px;
}

.rating {
	display: flex;
	justify-content: start;
	align-items: center;   /* <-- добавить */
	gap: 8px;              /* опционально: расстояние между элементами */
	flex-wrap: nowrap;     /* <-- запретить перенос */
}

.rating__stars {
    position: relative;
    font-size: 22px;
    display: inline-flex;    /* новый */
    align-items: center;     /* центр по вертикали */
    line-height: 1;          /* надёжный расчёт высоты */
    height: 1em;             /* задаёт базовую высоту для абсолютных детей */
}
.rating__stars::before {
    content: "★★★★★";
    color: #fff;
    display: block;          /* чтобы ::before занимал высоту контейнера */
    line-height: 1;
}
.rating__active {
    position: absolute;
    height: 100%;
    top: 0; left: 0;
    overflow: hidden;
    display: block;
}
.rating__active::before {
    content: "★★★★★";
    color: #ffd300;
    display: block;
    line-height: 1;
}
.rating__value {
	font-size: 18px;
}

.block-button {
	width: 220px;
	margin-left: 40px;
	display: flex;
	justify-content: space-between;
}

.but-ask, .but-review {
   width: 100px;
   border: none;
   border-radius: 6px;
   cursor: pointer;
}
/*End modal window trading user*/

/*Start modal window chat*/
.chat {
   border-radius: 6px;
   background: #fff;
}

.header-box{
   display: flex;
   height: 80px;
   padding: 0px 30px;
   justify-content: space-between;
}

.header-box-name{
   line-height: 80px;
   font-size: 22px;
}

.core {
   width: 100%;
   display: flex;
   border-top: 1px solid #373737;
}

.core-left {
   width: 35%;
   border-right: 1px solid #373737;
   padding-top: 10px;
}

.list-goods, .list-partners {
   height: 250px;
   overflow-y: auto;
   list-style: none;
}

.list-partners {
	border-top: 1px solid brown;
}

:is(.list-goods, .list-partners, .message)::-webkit-scrollbar {
   width: 0px;
}

.partner {
	position: relative;
}

.partner img, .heading-info-user img {
	vertical-align: middle; 
}

.item-list-goods, .partner {
   height: 45px;
   margin-top: 5px;
   padding: 5px 18px 5px 10px;
}

.item-list-goods {
	position: relative;
	display: flex;
}

.indicator-messages, .number-new-message {
	position: absolute;
	right: 10px;
	width: 16px; height: 16px;
	background-color: brown;
	color: #fff;
	border-radius: 50%;
	text-align: center;
	line-height: 16px;
}

.box-img {
    width: 45px;
    height: 45px;
    margin-right: 10px;
    flex-shrink: 0;
}

.box-info {
	height: 45px;
	flex: auto;
   display: flex;
   flex-direction: column;
   justify-content: space-around;
}

.info-title {
	font-size: 16px;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

.info-brief {
   display: flex;
   justify-content: space-between;
}

:is(.item-list-goods, .partner):first-child {
   margin-top: 10px;
}

:is(.item-list-goods, .partner):hover {
	cursor: pointer;
	background-color: #ffefe0;
}

.purchases-item img {
   margin-right: 10px;
   vertical-align: middle;
}

.wrapper-icons {
	position: relative;
	display: inline-block;
	margin-right: 7px;
}

.icon-active {
	position: absolute;
	background-color: #fff;
	width: 13px; height: 13px;
	border-radius: 50%;
	top: 38.5px; left: 38.5px;
}

.indicator-active {
	position: relative;
	background-color: green;
	width: 10px; height: 10px;
	border-radius: 50%;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
}

.core-right {
   width: 75%;
}

.heading {
	height: 65px;
	display: flex;
	border-bottom: 1px solid #373737;
}

.heading-info-goods, .heading-info-user {
	width: 50%;
	padding: 10px;
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.heading-info-user {
   border-left: 1px solid #373737;
}

.but-delete-chat, .but-block-user {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    margin-left: 18px;
}

.messages-screen {
	width: 687px;
   height: 452px;
   padding: 10px;
   overflow-y: auto;
}

.messages-screen::-webkit-scrollbar {
   width: 0px;
}

.list-messages {
	list-style: none;
}

.chat .messages-box {
   padding-bottom: 10px;
}

.chat .messages-box p {
   word-wrap: break-word;
   padding: 4px 5px;
}

.chat .outgoing {
	display: flex;
	justify-content: end;
   margin-left: auto;
   width: calc(100% - 300px);
}

.chat .outgoing p {
	max-width: 100%;
	background-color: #dfdfdf;
	border-radius: 7px 7px 0px 7px;
}

.chat .incoming {
   display: flex;
   margin-right: auto;
   width: calc(100% - 300px);
}

.chat .incoming p {
	max-width: 100%;
   margin-left: 5px;
   background-color: #c0c0c0;
   border-radius: 0px 7px 7px 7px;
}

form[name="send_message"] {
   margin: 15px 15px;
   display: flex;
   justify-content: space-between;
   align-items: end;
}

form[name="send_message"] .typing-area {
	height: 28px;
	background-color: #fff;
	max-height: 65px;
   border: 1px solid black;
   outline: none;
   border-radius: 6px 6px 6px 6px;
   margin-right: 10px;
   flex: auto;
   text-align: center;
   padding: 5px 5px 0px;
   font-size: 15px;
   resize: none;
}

.but-send-message {
   width: 28px; height: 28px;
   background-color: #fff;
   cursor: pointer;
   outline: none;
   border: none;
   display: flex;
   justify-content: center;
   align-items: center;
}

.but-send-message:active img {
	width: 18px; height: 18px;
}
/*End modal window chat*/

#right{
	width: 250px; 
	height: 674px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.right-wrap{
	position: relative;
	width: 100%; height: 327px;
	perspective: 1000px
}
	#authorization, #cabinet {
		position: absolute;
		width: 100%; height: 100%;
		box-sizing: border-box;
		background-color: #373737;
		border: 3px solid brown;
		border-radius: 6px;
		transition: 1s;
		backface-visibility: hidden;
	}
	
				/*Start user cabinet*/
				#cabinet{
					transform: rotateY(180deg);
				}
					.cabinet-header {
						min-height: 62.4px;
						line-height: 62.4px;
						text-align: center;
					}
						.cabinet-header__title {
							font-size: 20px;
							color: #ffffff;
						}
					#cabinet-menu{
						padding: 15px 0px 12px 20px;
						border-top: 1px solid #666;
						color: #fff;
						list-style: none;
					}
						#cabinet-menu li{
							font-size: 18px;
							color: #fff;
							margin: 5px 15px;
							transition: padding-left 0.5s ease-in-out;
							cursor: pointer;
						}
						.number-messages {
							position: absolute;
							width: 23px; height: 23px;
							background-color: #fff;
							top: 160px; right: 15px;
							border-radius: 50%;
							line-height: 23px;
							font-size: 16px;
							font-weight: 500;
							text-align: center;
							color: red;
						}
							#cabinet-menu li:hover{
								color: #fc7b00;
								padding-left: 5px;
							}
							#cabinet-menu li:hover #cabinet-menu li span {
								color: #fff;
							}
					#but-out-cabinet{
						display: block;
						margin: 0px auto;
						color: #000;
						width: 100px; height: 25px;
						bottom: 0px;
						border-radius: 6px;
						cursor: pointer;
					}
	/*End user cabinet*/

	/*start window ask a question*/
	.ask {
		position: relative;
		right: -300px;
		width: 100%; height: 327px;
		box-sizing: border-box;
		background-color: #373737;
		border: 3px solid brown;
		border-radius: 6px;
		padding: 10px 10px;
		transition: all 0.5s ease-out;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}

	.show-ask {
		right: 0px;
	}

	.ask-header {
	   position: relative;
	   width: 100%;
	   height: 45px;
	   padding: 9px 0px 10px;
	   border-bottom: 1px solid #666;
	   color: #fff;
	}

	.ask-header .info-goods {
		display: flex;
	}

	.ask-header .header-box-cross {
		position: absolute;
		width: 18px; height: 18px;
	   top: 9px;
	   right: 0px;
	}

	.ask-header .cross {
		width: 2px; height: 16px;
	}

	.ask-header .cross::before,
	.ask-header .cross::after {
		width: 2px; height: 16px;
	   background-color: #fff;
	}

	.info-brief {
	   display: flex;
	   justify-content: space-between;
	   font-size: 12px;
	}
.ask .messages {
	width: 100%;
	height: 179px;
	box-sizing: border-box;
	margin-top: 10px;
	background-color: #fff;
	padding: 0px 5px;
	border-radius: 6px 6px 6px 6px;
	list-style: none;
   overflow-y: auto;
}

	.ask .messages-box {
	   margin-bottom: 10px;
	}

	.ask .messages-box p {
	   word-wrap: break-word;
	   padding: 4px 5px;
	}

	.ask .outgoing {
	   margin-left: auto;
	   width: calc(100% - 80px);
	   background-color: #dfdfdf;
	   border-radius: 7px 7px 0px 7px;
	}

	.ask .incoming {
	   display: flex;
	   margin-right: auto;
	   width: calc(100% - 50px);
	}

	.ask .incoming p {
	   margin-left: 5px;
	   background-color: #c0c0c0;
	   border-radius: 0px 7px 7px 7px;
	}
			
		form[name='ask_question'] {
		   margin: 15px 0px 5px;
		   display: flex;
		   justify-content: space-between;
		   align-items: end;
		}
			.typing-area {
				height: 28px;
				max-height: 65px;
			   border: none;
			   outline: none;
			   border-radius: 6px 6px 6px 6px;
			   margin-right: 10px;
			   flex: auto;
			   padding: 5px 5px 0px;
			   font-size: 15px;
			   resize: none;
			}

			:is(.messages, .typing-area)::-webkit-scrollbar {
				width: 0px;
			}

			form[name='ask_question'] .but-send-question {
			   width: 25px; height: 25px;
			   background-color: #373737;
			   cursor: pointer;
			   outline: none;
			   border: none;
			   display: flex;
			   justify-content: center;
			   align-items: center;
			}

			.but-send-question:active img {
				width: 15px; height: 15px;
			}
	/*end window ask a question*/
	
footer {
	/*	width: 1500px; Ширина блока*/
	/*	margin: 0px auto; Выставляем блок по центру страницы*/
	margin: 0px auto; /* ‚ûðàâíèâàåì øàïêó ïî öåíòðó */
	width: 960px; /* ˜èðèíà áëîêà */
}
				.basket, .list, .confirm{
				float: left;
				width: 320px;
				text-align: center;
				}
					#listOrderedGoods{
						text-align: left;
					}
				.total{
						margin: 10px 81px;
						border-radius: 6px 6px 6px 6px;
						border-style: none;
						background-color: #eaeaea; /* –âåò ôîíà âåá-ñòðàíèöû */
						width: 154px; /* ˜èðèíà áëîêà */
						font-family: Verdana, sans-serif;
						}

/*Start user registration*/
	.wrapper-form{
		display: flex;
		justify-content: flex-start;
	}
	form[name='registrationMoveOne'],
	form[name='registrationMoveTwo'],
	form[name='forgotPassword'] {
		width: 476px;
		margin: 0px;
		text-align: center;
	}

	.name-field:first-child {
		margin-top: 0px;
	}

	.name-field {
		display: block;
		margin: 20px 0px 5px 0px;
		font-size: 20px;
	}

.field-registration{
	width: 250px; height: 25px;
	border: 1px solid brown;
	border-radius: 6px;
	background-color: #fff;
	outline: none;
	text-align: center;
}
.area-сhoose-avatar {
	margin-top: 20px;
}

.btn-choose-avatar {
	cursor: pointer;
   width: 120px;
   height: 25px;
   border-radius: 6px;
   box-shadow: 4px 4px 5px #c0c0c0;
}

.btn-choose-avatar:active {
	box-shadow: none;
}

.extensions {
	margin-top: 5px;
}
	
	.error{
		padding-top: 5px;
		font-size: 16px;
		color: red;
	}
	.vertical_stripe{
		width: 2px; height: auto;
		background-color: brown;
	}
	.description{
		width: 476px;
		font-size: 18px;
	}

.description p {
	padding: 0px 10px 0px 10px;
}
	#but-registration-move-one, #but-registration-move-two,
	#but-forgot_password{
		position: relative;
		left: 50%;
		transform: translate(-50%, 0);
		width: 100px; height: 25px;
		border-radius: 6px;
		margin: 30px 0px;
		cursor: pointer;
		outline: none;
	}
/*End user registration*/

/*Start modal windows*/
	/*start general styles*/
	.modal{
		/*property "display: none" added as a separate class "hide"*/
		width: 100vw; height: 100vh;
		justify-content: center;
		align-items: center;
		position: fixed;
		background: rgb(0, 0, 0, 0.4);
		top: 0px;
		z-index: 9999;
	}
		.window{
			box-sizing: border-box;
			border: 3px solid brown;
			border-radius: 6px;
		}
.but-window{
	display: block;
	width: 100px; height: 25px;
	border-radius: 6px;
	margin: 20px auto;
	cursor: pointer;
	outline: none;
}
	/*end general styles*/

	/*start popup window*/
	.popup-window{
		width: 250px;
		background-color: #373737;
	}
		.message{
			text-align: center;
			color: #ffffff;
			font-family: Verdana, sans-serif;
			font-size: 18px;
			margin: 0px;
			padding: 20px 10px 0px 10px;
		}
	/*end popup window*/
	
	.modal-window__heading{
		display: flex;
		justify-content: space-between;
	}
	.little{
		width: 480px;
		background-color: #fff;
	}
	.big{
		width: 960px;
		background-color: #fff;
	}
	.little-heading{
		width: 450px; height: 50px;
		margin: 0px auto;
	}
	.little-heading-name{
		line-height: 50px;
		font-size: 22px;
	}
	.little-heading .wrapper-cross {
		position: relative;
		right: 8px;
	}
	.little-heading .wrapper-cross:hover {
		cursor: pointer;
	}

	/*Start user review*/
	.modal-window__content{
		width: 450px;
		margin: 0px auto;
	}
	.form-rating-list{
		list-style: none;
		font-size: 18px;
	}
	.form-rating-list__item{
		display: grid;
		grid-template-columns: 265px min-content min-content;
		justify-content: space-between;
		line-height: 22px;
	}
	.simple-rating-stars{
		position: relative;
		display: inline-block;
		font-size: 26px;
	}
	.simple-rating-stars::before{
		content: "★★★★★";
		display: block;
	}
	.list-points{
		position: absolute;
		width: 100%; height: 100%;
		top: 0px; left: 0px;
		display: flex;
		flex-direction: row-reverse;
		overflow: hidden;
	}
	.point{
		position: absolute;
		top: 0px; left: 0px;
		opacity: 0;
		visibility: hidden;
	}
	.point-label{
		flex: 0 0 20%;
		height: 100%;
		cursor: pointer;
		color: #ffef9f;
	}
	.point-label::before{
		content: "★";
		display: block;
		transition: color 0.3s ease 0s;
	}
	.point-label:hover{
		color: #ffd300;
	}
	.poind:checked{
		color: #ffd300;
	}
	.form-rating-comment{
		margin-top: 10px;
		font-size: 18px;
	}
	textarea[name='review-comment']{
		width: 100%; height: 100px;
	}
	.btn-user-review{
		display: block;
		margin: 25px auto;
		width: 100px; height: 25px;
		border-radius: 6px;
		cursor: pointer;
		outline: none;
	}
	/*End user review*/
/*End modal window*/