/* STYLE-SITE */

* {  
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Bellota Text', sans-serif;
	caret-color: transparent; /* Убирает мигающий курсор на странице */
    font-size: 18px;
	color: #222222;
}
img {
    user-select: none;
	-webkit-user-select: none; /* Safari */
	-moz-user-select: none; /* Firefox */
	-ms-user-select: none; /* Internet Explorer/Edge */
}
p {
	padding-bottom: 16px;
	font-size: 19px;
}
h1 {
	font-size: 31px;
	text-align: center;
	line-height: 1.1;
}
.h1-product {
	width: 100%;
	max-width: 420px;
}
.h1-catalog {
	margin-top: 14px;
	width: 100%;
	max-width: 700px;
	text-align: center;
	color: #888;
}
h2 {
	margin: 22px 0 24px 0;
}
.h2-style {
	font-weight: 900;
	color: red;
}
.home-text {
	font-size: 22px;
	line-height: 1.4;
	margin-top: 20px;
	padding: 0 24px;
	text-align: left;
}




/* Общая разметка */
.wrap {
	display: grid;
	width: 100%;
    justify-items: center;
}
.container {
	display: grid;
	width: 100%;
	max-width: 800px;
}
.content-left-right {
	display: grid;
	padding: 0 5px;
	width: 100%;
    justify-items: center;
}
.content {
	display: grid;
	width: 100%;
	max-width: 480px;
    justify-items: center;
	margin: 0 auto;
}



/* Топбар */
.topbar {
	display: grid;
	grid-template-columns: 149px 1fr 58px;
	height: 64px;
	align-items: center;
	border-bottom: 0px solid #E9E9E9; 
	user-select: none;
	-webkit-user-select: none; /* Safari */
	-moz-user-select: none; /* Firefox */
	-ms-user-select: none; /* Internet Explorer/Edge */
}
.btn-cat-grid {
	display: grid;
	grid-template-columns: 127px 20px;
	align-items: center;
	font-size: 26px;
	height: 34px;
	cursor: pointer;
	padding-right: 16px;
}
.btn-cat {
	display: grid;
	align-items: center;
	font-size: 26px;
	font-weight: 700;
	height: 34px;
	color: #000;
	padding-left: 8px;
}
.btn-cat:hover {
	color: #757575;
}
.btn-cat-line {
	border-bottom: 4px solid #FFFF00;
	width: 102px;
}
.btn-cat-str {
	display: grid;
	align-items: center;
	height: 34px;
}
.btn-cat-str-img {
	height: 29px;
	transition: transform 0.3s;
}
.btn-cat-str-img.rotate{
  transform: rotate(90deg);
}

.info-site {
	text-align: center;
}




/* Меню каталога */
.wmn {
	padding: 20px 5px 0 12px;
	background-color: #E9E9E9;
	width: 100%;
    max-width: 400px;
}
w {
    display:block;
}
m {
    display:block;
    padding-right: 40px;
    font-size: 19px;
	font-weight: 700;
    cursor:pointer;
    height: 45px;
    background: url('img/menu_str.png') #E9E9E9 no-repeat right 3% top 20%;
}
n {
    display:none;
    height: 46px;
    padding-right: 14px;
}
.menu-cat {
	border: none; 
	color: #222222;
	cursor: pointer;
	outline: none;
	font-size: 19px; 
	background: #E9E9E9;
	font-weight: 700;
	text-decoration: none;
}
.menu-sub {
	border: none; 
	color: #222222;
	cursor: pointer;
	outline: none;
	font-size: 19px;
	background: #E9E9E9;
	font-weight: 400;
	text-decoration: none;
}
.menu-brand {
	border: none; 
	color: #222222;
	cursor: pointer;
	outline: none;
	font-size: 19px;
	background: #E9E9E9;
	font-weight: 400;
	text-decoration: none;
}
.menu-form {
	border: 0px;
	background: #E9E9E9;
}
.menu-position {
	position: absolute;
	top: 64px;
	left: 0;
	z-index: 2;
	width: 100%;
	max-width: 400px;	
}
.menu-time {
	width: 100%;
	max-width: 350px;
	padding: 14px;
	margin: 0 auto;
}




/* Ротатор лого и текста в шапке сайта */
.rotator {
    width: 100%;
    max-width: 170px;
    height: 64px;
    overflow: hidden;
    position: relative;
}
.rotator-track {
    transition: transform 0.6s ease;
}
r {
	width: 100%;
    max-width: 170px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* прижато к левому краю */
    padding-left: 8px;
    box-sizing: border-box;
	font-size: 0px;	
}
.rotator-a {
	text-decoration: none;
}




/* Каталог товаров */
.catalog {
	width: 100%;
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:7px;
	margin: 0 auto;
}
.catalog-select {
	display: block;
	font-size: 19px;
	border-bottom: 1px solid #222;
	border-top: 0;
	border-left: 0;
	border-right: 0;
	margin-top: 7px;
	background-color: #FFF;
	color: #222;
	border-radius: 0;
	margin-left: auto;
	margin-right: auto;
}
.catalog-select:focus {
	outline: none;
    box-shadow: none;
}
.catalog-text {
	font-size: 19px;
	width: 100%;
	padding: 27px 10px 28px 10px;
	text-align: left;
}



/* Каталог товаров плитки */
/*
@media (max-width:600px) {
  .catalog {
    grid-template-columns:repeat(2, 1fr);
  }
}*/
.cat-product {
	margin-bottom: 10px;
}
[id^="product-"] {
    scroll-margin-top: 120px;
}
.cat-product-img {
	width: 100%;
	max-width: 250px;
	border-radius: 10px;
	height: 250px;
	mix-blend-mode: multiply; /* Замена фона картинки */
}
.cat-product-img-square {
    width: 100%;            /* Можно ограничить max-width в пикселях */
    max-width: 250px;       /* максимальная ширина блока */
    aspect-ratio: 1 / 1;    /* квадрат */
    overflow: hidden;       /* обрезаем лишнее */
    display: flex;
    justify-content: center;
    align-items: center;
	border-radius: 10px;
    background-color: #f2f2f2; /* цвет фона, если картинка не полностью заполняет квадрат */
}
.cat-product-img-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* масштабируем картинку, обрезая края, чтобы заполнить квадрат */
    object-position: center; /* центрируем изображение */
    display: block;
}
.cat-product-name {
	padding-top: 5px;
	line-height: 1;
	font-size: 18px;
}
.cat-product-link {
	text-decoration: none;
	color: #000;
}
.cat-product-size {
	padding-top: 5px;
	line-height: 1;
	font-size: 16px;
	font-weight: 700;
	color: #777;
}
.cat-product-price {
	padding-top: 6px;
	font-weight: 600;
}
.cat-nextlist-btn {
	padding: 7px 16px;
	border: 1px solid #444;
	border-radius: 6px;
	cursor: pointer;
	background-color: #FFF;
	margin-top: 24px;
	font-size: 17px;
	color: #222;
}




/* Страница продукта */
.product {
	display: grid;
    justify-items: center;
	width: 100%;	
}
.product-img {
	display: block;
	width: 100%;
    margin:0 auto;
	border-radius: 22px;
    transition:0.3s;	
}
.product-img-div {
	position: relative;
	width: 100%;
}
.product-id {
	position: absolute;
	right: 16px;
	bottom: 16px;
}
.product-id-span {
	font-size: 11px;
	background-color: #EEEEEE;
	color: #777777;
	border-radius: 30px;
	padding: 1px 5px 0 5px;
	font-weight: 700;
}
.product-back {
	display: block;
	position: absolute;
	top: 12px;
	left: 12px;
	pointer-events: auto;
	z-index:0;
	cursor: pointer;
}
.product-orig {
	text-transform: uppercase;
	margin:10px 0 9px 0;
	text-align: center;
	font-size: 14px;
	letter-spacing: 6px;
}
.product-price {
	display: grid;
	justify-content: center;
	grid-template-columns: 130px 40px 130px;
	margin-top:14px;
	font-size: 24px;
	font-weight: 500;
	align-items: center;
	user-select: none;
	-webkit-user-select: none; /* Safari */
	-moz-user-select: none; /* Firefox */
	-ms-user-select: none; /* Internet Explorer/Edge */
	position: relative;
}
.product-price-stat {
	position: relative;
	text-align: right;
	font-size: 24px;
	font-weight: 500;
	padding-right: 20px;
	align-items: center;
}
.product-price-center {
	position: absolute;
	left: 38%;
    top: 5px;
	font-size: 24px;
	font-weight: 500;
}
.product-price-sale {	
	display: grid;
	width: 44px;
	height: 44px;
	background: #222222;
	border-radius: 100%;
	text-align: center;
	align-items: center;
	font-size: 13px;
	font-weight: 900;
	color: white;
}
.product-price-new {
	position: relative;
	text-align: left;
	font-size: 24px;
	font-weight: 500;
	padding-left: 20px;
	align-items: center;
}
.product-price-text {
	position: relative;
}
.product-ship-sale {
	position: absolute;
	width: 100%;
	bottom: 0;
	font-size: 15px;
	font-weight: 900;
	margin-bottom: -22px;
	color: #777;
}
.product-size {
	text-align: center;
	font-size: 21px;
	font-weight: 600;
	margin-top: 27px;
	line-height: 2.1;
	user-select: none;
	-webkit-user-select: none; /* Safari */
	-moz-user-select: none; /* Firefox */
	-ms-user-select: none; /* Internet Explorer/Edge */	
}
.product-size-style {
	padding: 0 4px;
	margin: 0 1px;
	border-radius: 8px;
	border: 6px solid #bcbcbc;
	text-decoration: none;
	color: #222222;
	white-space: nowrap;
}
.product-size-text {
	color: #555555;
	text-align: center;
	font-size: 15px;
	font-weight: 900;
	line-height: 1.2; 
}
.product-info-btn {
	display: block;
	width: 100%;
	max-width: 360px;
	padding: 17px 0;
	border: 2px solid #222222;
	background-color: #FFF;
	color: #222222;
	text-align: center;
	font-size: 18px;
	font-weight: 400;
	margin-top: 20px;
	margin-left: auto;
	margin-right: auto;
	cursor: pointer;
}
.product-info-btn:hover {
	font-size: 18px;
	font-weight: 700;
	border-bottom: 2px solid #000000;
}
.product-heads {
	display: grid;
	justify-items: center;
	width: 100%;	
}
.product-head {
	width: 150px;
	font-size: 24px;
	font-weight: 600;
	border-bottom: 2px solid #222222;
	padding: 3px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 44px;
	margin-bottom: 20px;
	text-align: center;
}
.product-description {
	font-size: 19px;
	line-height: 1.7;
	padding: 0 12px;
}
/* ВИДЕО ПРОДУКТА */
.product-video {
	display: block;
	position: absolute;
	bottom: 12px;
	left: 12px;
	width: 45px;
	height: 45px;
	pointer-events:auto;
	z-index:0;
	cursor: pointer;
}
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
	top: 0;
    width: 100%;
	height: 100%;
    background: #FFF;
	margin: 0;
	padding: 0;
}
.video-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.video-wrapper {  /* ВЕРТИКАЛЬНОЕ ВИДЕО */
    width: 480px; /* ширина */
    height: 853px; /* 9:16 */
    max-width: 100%;
    max-height: 100%;
	position: relative;	
}
.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;	
}
.video-close {
    position: absolute;
	width: 56px;
	height: 56px;
	background-color: #000;
    top: 0;
    right: 0;
    color: #FFF;
    font-size: 46px;
    cursor: pointer;
	display: flex;
    justify-content: center;
    align-items: center;
}
/* Плавная прокрутка вверх при нажатии кнопки купить с Авито доставкой */
html {
  scroll-behavior: smooth;
}




/* Страница доставки */
.container {
	position: relative;
}
.infopage-position {
	padding: 20px;
	position: absolute;
	top: 64px;
	right: 0;
	z-index: 1;
	width: 100%;
	max-width: 400px;
    background-color: #fcfcfc;
	border-top: 2px solid #E9E9E9;
	border-left: 2px solid #E9E9E9;
	border-right: 2px solid #E9E9E9;
	border-bottom: 10px solid #E9E9E9; 
}
.infopage {
	display: grid;
	justify-items: end;
}
.info-page-img {
    height: 42px;
	padding-right: 10px;
	cursor: pointer;
}
.info-page-img:hover {
    opacity: 0.9;
}



/* Стрелка СкролАп наверх */
.upbtn {
  opacity: 0.8;
  z-index: 11;
  width: 30px;
  height: 30px;
  position: fixed;
  bottom: -80px; /* скрыта по умолчанию */
  right: 8px;
  cursor: pointer;
  transition: bottom 0.7s ease-in-out, opacity 0.3s;
  background: url(img/scrollup.png) no-repeat;
}
.upbtn:hover {
  opacity: 1;
}



/* Подсветка размеров, подсказка, уменьшение фото */ 
.img-size-bg-active {
    background:yellow;
}
#img-size-bg-tooltip {
    position:absolute;
    left:50%;
    top: -64px;
    transform:translateX(-50%);
    margin-bottom: 0;
    display: none;
    background:#444444;
    color: #FFFF99;
    padding: 31px 10px;
    font-size:23px;
	line-height: 1.4;
	border: 0px solid #222222;
	width: 100%;
	max-width: 420px;
	z-index: 5;
	text-align: center;
}
.img-size-bg-tooltip-span {
	font-size:26px;
}
.price-img-size-bg.price-img-size-bg-active {
  background: yellow;
}



/* Главная страница */
.home-slider {
	margin: 0 0 30px 0;
	text-align: center;
}




/* Подвал сайта */
.footer {
	display: grid;
	align-items: center;
	border-top: 1px dashed #555;
	color: #777;
	width: 100%;
	height: 70px;
	text-align: center;
	margin-top: auto;
	background-color: #F9F9F9;
}




