@font-face {
  font-family: 'SF Pro Text Light';
  src: url(../fonts/SFProText-Light.ttf);
}

@font-face {
  font-family: 'SF Pro Text';
  src: url(../fonts/SFProText-Regular.ttf);
}

@font-face {
  font-family: 'SF Pro Text Medium';
  src: url(../fonts/SFProText-Medium.ttf);
}

@font-face {
  font-family: 'SF Pro Text Bold';
  src: url(../fonts/SFProText-Bold.ttf);
}


/* По умолчанию скрываем содержимое окна */
.window:not(.open) .drawer2-header,
.window:not(.open) #cart-items,
.window:not(.open) .drawer2-footer,
.window:not(.open) #close {
  display: none;
}


body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'SF Pro Text';
  z-index: 0;
}

canvas{
  width: 100%;
}

.image-container{
  height: 100vh;
  width: 100%;
  position: relative;
  display: block;
  margin: 0 auto;
  overflow: hidden;
  z-index: 0;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fadeOut {
  from {
    border-width: 2.3rem 2.3rem 2.3rem 2.3rem;
  }
  to {
    border-width: 0 0 0 0;
  }
}

.fade-out {
  animation: fadeOut ease-out forwards;
}


#watermark {
  width: 100px;
  height: 100px;
  position: fixed;
  bottom: 0%;
  left: 1%;
  background-image: url('../img/LOGO.png');
  background-size: contain;
  opacity: 0.7;
  pointer-events: none; /* This prevents the watermark from capturing mouse events */
  z-index: -1;
}

/***Window***/

#tabwin {
  width:30px;
  height:30px;
  position: fixed;
  top: 3.5%;
  right: 1.5%;
  background-image: url('/mebleIcon.png');
  background-size: contain;
  z-index: -1;
}

.window{
  position: absolute;
  float: right;
  width: 0%;
  height: 100%;
  right: 0%;
}

.drawer2-header h1 {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-family: "SF Pro Text Medium";
}

.window.open {
  width: 25%;
  padding: 2.0625rem;
  float: right;
  position: absolute;
  right: 0%;
  top:0;
  height: 100%;
  background: #fff;
  color: #383838;
  font-family: "SF Pro Text Medium";
  overflow: hidden;
  transition: right 0.5s ease;
  z-index: 1;
}

.window .closing {
  width: 0%;
  transition: right 0.5s ease;
}

.window h1{
  margin-bottom: 10%;
}

.window .p1{
  font-size: 19px;
  font-family: "SF Pro Text Bold";
}

#close{
  width:25px;
  height:25px;
  position: fixed;
  top: 3.5%;
  right: 1.5%;
  background-image: url('../img/close.svg');
  background-size: contain;
  display: none;
  transition: right 0.5s ease;
}

/*** Showrooms ***/

.loading-line {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  width: 0;
  background-color: black;
  z-index: 9999;
  transition: width 0.5s ease-out;
}

.loading{
  position: absolute;
  width: 100%;
  height: 100vh;
  color: #1D2022;
  /* display: none; */
}

.loading .background {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: url("../img/preview.jpg") no-repeat center center fixed;
    transition: 200ms opacity linear;
    z-index: 0;
}

.loading .panel-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.loading .main {
  margin-left: 2rem;
  margin-right: 2rem;
}

.loading .border {
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2.3rem solid #fff;
  pointer-events: none;
  /* -webkit-transition: 400ms border-width ease-out;
  -moz-transition: 400ms border-width ease-out;
  -ms-transition: 400ms border-width ease-out;
  -o-transition: 400ms border-width ease-out;
  transition: 400ms border-width ease-out; */
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

.loading .panel {
  padding: 2.0625rem;
  float: left;
  position: relative;
  height: 100%;
  background: #fff;
  color: #383838;
  font-family: "SF Pro Text Medium";
  overflow: hidden;
}

.title {
  margin-top: 30%;
  margin-bottom: 55px;
  font-family: 'SF Pro Text Bold';
  font-size: 3rem;
  text-transform: uppercase;
  line-height: 1em;
}

.title p{
  margin-top: 0;
  margin-bottom: 1rem;
}

.progress.show {
  display: flex;
}

.subtitle:before {
  content: '';
  display: block;
  float: left;
  background: url('../img/mobsr-icon.svg') no-repeat center center;
  width:53px;
  height: 33px;
  margin-left: 2px;
  margin-right: 15px;
  margin-top: 1.3%;
}

.subtitle{
  margin-bottom: 70px;
}

.subtitle p{
  margin-top: 0;
  margin-bottom: 0;
  font-family: 'SF Pro Text Light';
  font-size: 17px;
}

.showroom-btn{
  width: 220px;
  height: 48px;
  border-radius: 25px;
  border: 2px solid #1D2022;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showroom-btn a {
  position: absolute;
  width: 225px;
  height: 48px;
  border-radius: 25px;
  border: 0px solid #1D2022; 
  font-family: 'SF Pro Text Medium';
  font-size: 17px;
  text-decoration: none;
  color: #1D2022;
  background-color: transparent;
  cursor: pointer;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showroom-btn a:hover{
  background: #1D2022;
  color: #FFF;
}

.showroom-footer{
  position: absolute; 
  bottom: 100px;
  width: 77%;
}

.showroom-icons{
  margin-right: 5%;
  margin-bottom: 15px;
}

.showroom-footer img{
  max-width: 64px;
  float: left;
  margin-top: 1%;
  margin-right: 3%;
  margin-bottom: 3%;
}

.showroom-footer p{
  font-size: 14px;
  margin-bottom: 0;
}

.showroom-footer p a{
  color: #1D2022;
}

.showroom-text{
  font-size: 13px;
}

@media only screen and (max-width: 480px) {

  .loading .main{
    margin-left: 0rem;
    margin-right: 0rem;
    width: 90%;
    padding-right: 5%;
    padding-left: 5%;
    margin-top: 15%;
  }

  .loading .panel {
    padding: 0rem;
    width: 100%;
  }

  .loading .border {
    display: none;
  }

  .title {
    margin-top: 20px;
    margin-bottom: 20px;
    line-height: 1em;
    font-size: 2rem;
  }
  
  .title p{
    font-size: 35px;
  }
  
  .subtitle:before {
    content: '';
    display: block;
    float: left;
    background: url('../img/mobsr-icon.svg') no-repeat center center;
    width:53px;
    height: 33px;
    margin-left: 2px;
    margin-right: 15px;
    margin-top: 1%;
  }

  .subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .showroom-mob {
    width: 100%;
    height: 100%;
    text-align: center;
    background: url('../img/sr1.webp') no-repeat center;
  }

  .showroom-mob, ::after, ::before {
    box-sizing: border-box;
  }

  .showroom-btn {
    position: relative;
    margin-top: 10%;
    display: flex;
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

  .img-fluid {
    max-width: 100%;
    height: auto;
  }

  #watermark {
    width: 85px;
    height:85px;
    bottom: 0vh;
    right: 1vh;
    position: fixed;
  }

  .showroom-btn a:hover{
    display: none;
  }

  .showroom-footer{
    position: absolute; 
    bottom: 1%;
    width: 80%;
  }
  
  .showroom-icons{
    margin-right: 5%;
    margin-bottom: 15px;
  }
  
  .showroom-footer img{
    max-width: 64px;
    float: left;
    margin-top: 1%;
    margin-right: 3%;
    margin-bottom: 3%;
  }
  
  .showroom-footer p{
    font-size: 0.7rem;
    margin-bottom: 0;
  }
  
  .showroom-footer p a{
    color: #1D2022;
  }
  
  .showroom-text{
    margin-top: 1.5%;
    font-size: 0.7rem;
  }

  .window.open {
    padding: 0rem;
    padding-top: 15%;
    width: auto;
    float: right;
    position: absolute;
    right: 0%;
    top:0;
    height: 100%;
    background: #fff;
    color: #383838;
    font-family: "SF Pro Text Medium";
    overflow: hidden;
    transition: right 0.5s ease;
  }
}

@media only screen and (min-width: 481px) and (max-width: 767px) {

  .loading .main{
    margin-left: 0rem;
    margin-right: 0rem;
    width: 90%;
    padding-right: 5%;
    padding-left: 5%;
    margin-top: 15%;
  }

  .loading .panel {
    padding: 0rem;
    width: 100%;
  }

  .loading .border {
    display: none;
  }

  .title {
    margin-top: 20px;
    margin-bottom: 20px;
    line-height: 1em;
    font-size: 2rem;
  }

  .title p{
    font-size: 35px;
  }

  #tabwin {
    width:30px;
    height:30px;
    position: fixed;
    top: 3.5%;
    right: 2.5%;
    background-image: url('/mebleIcon.png');
    background-size: contain;
    z-index: -1;
  }
  
  #close{
    width:25px;
    height:25px;
    position: fixed;
    top: 3.5%;
    right: 2.5%;
    background-image: url('../img/close.svg');
    background-size: contain;
    display: none;
    transition: right 0.5s ease;
  }

  .subtitle:before {
    content: '';
    display: block;
    float: left;
    background: url('../img/mobsr-icon.svg') no-repeat center center;
    width:53px;
    height: 33px;
    margin-left: 2px;
    margin-right: 15px;
    margin-top: 1%;
  }

  .subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .showroom-mob {
    width: 100%;
    height: 100%;
    text-align: center;
    background: url('../img/sr1.webp') no-repeat center;
  }

  .showroom-mob, ::after, ::before {
    box-sizing: border-box;
  }

  .showroom-btn {
    position: relative;
    margin-top: 10%;
    display: flex;
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

  .img-fluid {
    max-width: 100%;
    height: auto;
  }

  #watermark {
    width: 100px; 
    height: 100px; 
    bottom: 0vh; 
    right: 1vh; 
    position: fixed;
  }

  .showroom-btn a:hover{
    display: none;
  }

  .showroom-footer{
    position: absolute; 
    bottom: 1%;
    width: 80%;
  }

  .showroom-icons{
    margin-right: 5%;
    margin-bottom: 25px;
  }
  
  .showroom-footer img{
    max-width: 64px;
    float: left;
    margin-top: 1%;
    margin-right: 3%;
    margin-bottom: 3%;
  }
  
  .showroom-footer p{
    font-size: 0.7rem;
    margin-bottom: 0;
  }
  
  .showroom-footer p a{
    color: #1D2022;
  }

  .window.open {
    padding: 0rem;
    padding-top: 15%;
    width: auto;
    float: right;
    position: absolute;
    right: 0%;
    top:0;
    height: 100%;
    background: #fff;
    color: #383838;
    font-family: "SF Pro Text Medium";
    overflow: hidden;
    transition: right 0.5s ease;
  }

  .window.open .about {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {

  .showroom-mob {
    display: none;
  }

  .loading .border {
    width: 100%;
    height: 100%;
  }

  .title {
    margin-bottom: 0;
  }

  .subtitle:before {
    content: '';
    display: block;
    float: left;
    background: url('../img/mobsr-icon.svg') no-repeat center center;
    width:53px;
    height: 33px;
    margin-left: 2px;
    margin-right: 15px;
    margin-top: 1.3%;
  }

  #watermark {
    width: 100px; 
    height: 100px; 
    bottom: 0vh; 
    right: 1vh; 
    position: fixed;
  }

  .showroom-btn a:hover{
    display: none;
  }

  .window.open{
    width: 35%
  }

  .window.open .about {
    margin-top: 10%;
  }

  #tabwin {
    width:30px;
    height:30px;
    position: fixed;
    top: 3.5%;
    right: 2.5%;
    background-image: url('/mebleIcon.png');
    background-size: contain;
    z-index: -1;
  }
  
  #close{
    width:25px;
    height:25px;
    position: fixed;
    top: 3.5%;
    right: 2.5%;
    background-image: url('../img/close.svg');
    background-size: contain;
    display: none;
    transition: right 0.5s ease;
  }
}

@media screen and (min-width: 1025px) and (max-width: 1280px) {

  .showroom-mob {
    display: none;
  }

  .loading .border {
    width: 100%;
    height: 100%;
  }

  .title {
    margin-bottom: 0;
  }

  .subtitle:before {
    content: '';
    display: block;
    float: left;
    background: url('../img/mobsr-icon.svg') no-repeat center center;
    width:53px;
    height: 33px;
    margin-left: 2px;
    margin-right: 15px;
    margin-top: 1.3%;
  }

  #watermark {
    width: 100px; 
    height: 100px; 
    bottom: 1vh; 
    right: 1vh; 
    position: fixed;
  }
}

@media screen and (min-width: 1280px) {

  .showroom-mob {
    display: none;
  }

  .window {
    width: 25%;
    right: -50%;
  }

  /* #tabwin {
    display: none;
  } */
}

/* Линия */
.infospot-line {
  width: 2px;
  height: 80px;
  background: white;
  position: absolute;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 0.3s;
  opacity: 0;
}

/* Текст над линией */
.infospot-text {
  color: white;
  position: absolute;
  transform: translate(-50%, -100%);
  font-size: 14px;
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

/* Шторка */
/* .sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 300px;
  height: 100%;
  background-color: #111;
  color: white;
  z-index: 9999;
  transition: right 0.5s ease;
  padding: 20px;
}

.sidebar.show {
  right: 0;
} */

.drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background: white;
  box-shadow: -2px 0 8px rgba(0,0,0,0.3);
  transition: right 0.3s ease;
  z-index: 1000;
}

.drawer.open {
  right: 0;
}

.drawer-content {
  padding: 20px;
  position: relative;
}

/* Кнопка закрытия */
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #000; /* или другой цвет под твой стиль */
}


/* Заголовок HOMAGE */
.brand-title {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-family: "SF Pro Text Medium";
}

/* Фото товара */
.product-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 15px;
}

/* Блок с деталями */
.product-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* Левая колонка */
.left-info {
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 10px 0;
}

/* Цвета */
.colors {
  display: flex;
  gap: 8px;
}

.color {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
}

.color.selected {
  border: 2px solid black;
}

.color1 { background:rgb(201, 199, 195)} /* Оранжевый */
.color2 { background:rgb(140, 140, 140)} /* Серый */
.color3 { background:hsl(188, 72%, 17%); } /* Бежевый */

/* Правая колонка */
.collection-name {
  font-size: 14px;
  color: #aaa;
  font-style: italic;
  margin: 0 0 10px 0; /* убираем margin-top */
}

.size-info {
  font-size: 12px;
  color: #333;
}

.size-info strong {
  font-weight: bold;
}

/* Блок с ценой */
.price-block {
  margin-top: 40px;
  text-align: center;
  font-size: 20px;
}

.price-block strong {
  font-weight: bold;
}

@media (max-width: 768px) {
  .drawer {
    width: 80%;
    right: -100%; /* Скрыть с правой стороны */
  }

  .drawer.open {
    right: 0;
  }

  .drawer-content {
    padding: 15px;
  }

  /* Кнопка закрытия */
  .close-btn {
    top: 15px;
    right: 15px;
    font-size: 20px;
  }

  /* Заголовок */
  .brand-title {
    font-size: 20px;
    margin-bottom: 15px;
  }

  /* Фото товара */
  .product-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  /* Левый блок */
  .left-info {
    font-size: 12px;
  }

  .product-name {
    font-size: 16px;
  }

  /* Блок цветов */
  .colors {
    gap: 6px;
  }

  .color {
    width: 20px;
    height: 20px;
  }

  /* Правая колонка */
  .collection-name {
    font-size: 12px;
  }

  .size-info {
    font-size: 10px;
  }

  /* Блок с ценой */
  .price-block {
    margin-top: 30px;
    font-size: 16px;
  }

}

.drawer2-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.drawer2-header h1 {
  font-size: 18px;
  font-weight: normal;
}
.cart-item {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 15px;
}
.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-right: 15px;
  border-radius: 5px;
}
.cart-item-content {
  flex-grow: 1;
}
.cart-item-title {
  font-weight: normal;
}
.cart-item-subtitle {
  color: #aaa;
  font-style: italic;
  font-size: 14px;
}
.cart-item-price {
  font-weight: bold;
}
.delete-button {
  background: none;
  border: none;
  color: red;
  font-size: 10px;
  cursor: pointer;
  margin-left: 10px;
}

.drawer2-footer {
  border-top: 2px solid black; 
  padding-top: 10px; 
  margin-top: 20px; 
  font-size: 22px; 
}


#total-price {
  font-size: 20px;
  font-weight: normal;
}

.total-amount {
  font-weight: bold; /* Делаем сумму жирной */
}

.currency {
  font-weight: normal; /* Оставляем символ $ обычным */
}


@media (max-width: 767px) {
  .window {
    width: 90%;   /* фиксируем ширину */
    transition: right 0.4s ease;
    height: 100%;
  }

  #total-price {
    font-size: 14px;
    font-weight: normal;
  }

  .window.open {
    right: 0;     /* выезжает внутрь */
    width: 80%;
    padding: 1rem;
  }

  .drawer2-header h1 {
    font-size: 16px;
  }

  .cart-item {
    padding: 8px;
    margin-bottom: 10px;
  }

  .cart-item img {
    width: 50px;
    height: 50px;
  }

  .cart-item-title {
    font-size: 14px;
  }

  .cart-item-subtitle {
    font-size: 10px;
  }

  .cart-item-price {
    font-size: 13px;
  }

  .drawer2-footer {
    font-size: 14px;
  }
}

