 /* 1. ПОДКЛЮЧАЕМ ШРИФТ С ЗАСЕЧКАМИ (ДЛЯ ЗАГОЛОВКОВ) */
@font-face {
    font-family: 'Playfair Display';
    src: url('/assets/fonts/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900; 
    font-style: normal;
    font-display: block;
}

/* 2. ПОДКЛЮЧАЕМ ВАРИАТИВНЫЙ INTER (ДЛЯ ТЕКСТА И МЕНЮ) */
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-VariableFont_opsz\,wght.ttf') format('truetype');
    /* Указываем диапазон жирности, который поддерживает Inter */
    font-weight: 100 900;
    font-style: normal;
    font-display: block;
}

:root{
--index: calc( 1vw + 1vh);
}

/* Полностью скрываем горизонтальный скролл на странице */
html, body {
  overflow-x: hidden;
}
* {
    -webkit-tap-highlight-color: transparent;
}

/* Убираем стандартное синее выделение текста */
::selection {
    background: transparent;
    color: inherit;
}

::-moz-selection {
    background: transparent;
    color: inherit;
}

/* Скрываем вертикальный скроллбар для ВСЕХ элементов (Chrome, Safari, Edge, Opera) */
*::-webkit-scrollbar {
  display: none;
}

/* Скрываем вертикальный скроллбар для ВСЕХ элементов (Firefox и IE) */
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

 body{
   
    background-color: #0B0F10;
 

 }


body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
 background-image: url('/assets/images/common/phone.webp');
  background-repeat: repeat; /* Повторять по горизонтали и вертикали (по умолчанию и так repeat) */
  background-position: top left; /* Позиция стартовой точки */
   background-attachment: scroll; /* Фон прокручивается вместе со страницей */
  filter: brightness(50%); /* Уменьшаем яркость фона до 40% */
  z-index: -1; /* Уводит фон под текст */
}

 header{
    display: flex;            
    justify-content: center; 
    align-items: center;
    margin-top: 2vh; 
    height: 10vh;
    background-color: rgba( 0, 0, 0, 0);
    position: relative;
    
 }

 .header_spanFirst{
     font-family: 'Playfair Display', serif;
    color: #F2F2F2 ;
  letter-spacing: 10px;
   font-weight: 350;
      font-size: calc(var(--index)*2);
      position: absolute;
      left: 5vw;
 }
 .header_spanSecond{
    font-family: 'Playfair Display', serif;
    color: #F2F2F2 ;
  letter-spacing: 10px;
   font-weight: 350;
      font-size: calc(var(--index)*2);
      position: absolute;
      right: 5vw;
 }

 .blockA{
      font-family: 'Playfair Display', serif;;
      font-weight: 350;
      font-size: calc(var(--index)*1.2);
     height: 100%;
     width: 40vw;
     display: flex;  
    align-items: center;
    color: #F2F2F2;
    position: relative;
 }

/* Исправляем выравнивание меню */
.blockA {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 40vw;
    height: 100%;
}


/* Блок с навигацией (меню) */
.blockA {
    font-family: 'Playfair Display', serif;
    font-weight: 350;
    font-size: calc(var(--index) * 1.2);
    height: 100%;
    
    /* Флекс автоматически распределит ссылки */
    display: flex;  
    align-items: center;
    justify-content: space-between; /* Ссылки встанут: одна слева, одна строго в центре, одна справа */
    
    width: 30vw; /* Немного уменьшили ширину, чтобы меню не поджималось слишком близко к логотипам */
    color: #DEDAD7;
}

/* Очищаем абсолютные свойства у ссылок, теперь за них отвечает flex-контейнер */
.blockA_aFirst,
.blockA_aSecond,
.blockA_aThird {
    position: static; /* Отменяет absolute */
    transform: none;  /* Сбрасываем центрирование через transform */
    width: auto;      /* Позволяет блоку быть ровно по ширине слова */
    text-align: center;
}

  .blockA_aFirst_span{
    border-bottom: 1px solid #B19A8C;
  }

/* Для центральной ссылки оставляем только ваше подчеркивание */
.blockA_aSecond {
     position: absolute;
     top: 50%;
    left: 50%;
     transform: translate(-50%, -50%);
}

/* */


/* Исправляем выравнивание меню */
.blockA {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 40vw;
    height: 100%;
}

/* Убираем индивидуальное позиционирование ссылок */
.blockA_aFirst,
.blockA_aSecond,
.blockA_aThird {
    position: static;
    width: auto;
    margin: 0;
    transform: none;
}

/* Эффект при наведении */
.blockA_aFirst:hover,
.blockA_aSecond:hover,
.blockA_aThird:hover {
    transform: scale(1.05);
}



 /* main */

  main{
    width: 100vw;
     height: auto; 
  /* Если нужно, чтобы блок не сжимался меньше определенного значения: */
  min-height: 100vh; /* например, на всю высоту экрана */

 }

 .container-fluid{
    height: auto;
    min-height: 90vh;
    width: 90vw;
    margin-left: 5vw;
   /* background-color: rgba(255, 0, 0, 0.5);*/
    position: relative;
 }

 .wrapperForTitle{
 position: relative;
 width: 45vw;
 height: 20vh;
  font-family: 'Playfair Display', serif;
   display: flex;
  flex-direction: column;
 }

 .subtitle{
    color: rgba( 177, 154, 140, 0.5);
     font-size: calc(var(--index)*1);
     display: inline-block;
transform: translateY(5vh);
font-family: 'Inter';
 }

 .catalog-title{
  color:  #F2F2F2;
   margin-top: auto;
  margin-bottom: 0;
  font-size: calc(var(--index)*3);
 font-weight: 100;
 }

 /* nav */

 .catalog-controls{
   position: relative;
     display: flex;            
    align-items: center;    
   height: 10vh;
   width: 40vw;
    font-family: 'Inter';
    font-size: calc(var(--index)*0.9);
    word-spacing: 3vw;
 }

 .filter-btn{
color: rgba( 177, 154, 140, 0.5);
 }

 .filter-btn.active {
  color: rgba( 177, 154, 140, 1);
  border-bottom: 2px solid rgba( 177, 154, 140, 1);
}

.filter-btn:hover {
    color: rgba(177, 154, 140, 0.7);
}

/* products-grid */

.products-grid{
   height: auto;
   min-height: 100vh;
   width: 100vw;
   /* background-color: rgba( 0, 0, 0, 0.1);*/
  /*  display: flex;
     flex-wrap: wrap;
  justify-content: space-between; */
    display: grid;
  /* Четко создаем ровно 3 колонки. Все, что свыше 3, упадет вниз автоматически */
  grid-template-columns: repeat(3, 1fr); 
  
  /* Отступ между колонками (по горизонтали) и строками (по вертикали) */
  gap: 5vh 3vw; 
   row-gap: 10vh;
  margin-top: 3vh;
}

.product-card{
 width: 22vw;
 height: 58vh;
 position: relative;
  display: flex;
  transition: transform 0.3s ease;
  flex-direction: column;
  justify-content: space-between; 
}

.product-card__image{
   width: 100%;
  height: 75%;
transition: transform 0.3s ease;
 cursor: pointer;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
    border-radius: 20px;
}

.product-card__info{
   height: 25%;
  box-sizing: border-box; 
  padding: 15px 0px 0px 0px;
  font-family: 'Playfair Display', serif;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.product-card__title{
 color: #B19A8C;
 font-weight: 400;
}

.product-card__tags{
  margin-bottom: 45px;
   color: rgba( 177, 154, 140, 0.8);
 font-weight: 400;
}

.product-card__footer{
   width: 100%;
   height: 40%;
   display: flex;
  align-items: end;
  font-size: calc(var(--index)*1);
  position: relative;
}

.product-card__add-btn {
    position: absolute;
    top: 50%;
    right: 5px;

    width: 32px;
    height: 32px;
    box-sizing: border-box;

    display: grid;
    place-items: center;

    padding: 0;
    margin: 0;

    border: 2px solid #F2F2F2;
    border-radius: 50%;
    background: transparent;
    color: #F2F2F2;

    cursor: pointer;
    transition: background-color 0.2s ease,
                color 0.2s ease;
    transform: translateY(-50%);
}

.product-card__add-btn::before,
.product-card__add-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 1.5px;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.product-card__add-btn::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.product-card__add-btn:hover {
    background-color: rgb(177, 154, 140);
    color: #fff;
}

.product-card__image:hover{
  transform: scale(1.05); 
}

.blockA_aFirst:hover{
   transform: scale(1.05); 
}

.blockA_aSecond:hover{
   transform: scale(1.05); 
}

.blockA_aThird:hover{
   transform: scale(1.05); 
}
/* решения принятые во время адаптива*/
.product-card__info{
  text-align: center;
}

/* ADAPTIVE */

@media (max-width: 1245px) {
.products-grid{
        grid-template-columns: repeat(2, 1fr); 
        width: 90vw;
        gap: 5vh 3vw; 
   row-gap: 10vh;
  margin-top: 3vh;
  justify-items: center;
    }

    .product-card{
        width: 300px;
        height: 400px;
  }
 
}

  @media (max-width: 1009px) {
.catalog-controls{
    width: 60vw;
  }
  }

  @media (max-width: 800px) {

    .product-card{
        width: 250px;
        height: 350px;
  }

  .filters{
    font-size: calc(var(--index)*1);
  }

  .wrapperForTitle{
       height: 17vh;
  }
  }

  @media (max-width: 743px) {
    .header_spanFirst{
      display: none;
    }
  .header_spanSecond{
    display: none; 
  }

.wrapperForTitle{
    width: 60vw;
    height: 16vh;
}

.blockA{
  font-size: calc(var(--index)*1.5);
  width: 70vw;
  font-weight: 200;
}

.catalog-controls{
  height: 7.5vh;
}
  }

  /* */
  @media (max-width: 634px) {
    .product-card{
        width: 220px;
        height: 320px;
  }

  
  .product-card__title{
    font-size: calc(var(--index)*1.7);
  }

.product-card__tags{
    font-size: calc(var(--index)*1);
}

.filters{
  font-size: calc(var(--index)*1.2);
  margin-bottom: 1.5vh;
}
  

  }

  @media (max-width:600px) {
    .catalog-controls{
    width: 80vw;
  }
  }

 


  @media (max-width:521px) {
      .products-grid{
        grid-template-columns: repeat(1, 1fr); 
        width: 90vw;
        gap: 5vh 3vw; 
   row-gap: 10vh;
  margin-top: 3vh;
  justify-items: center;
    }

  
  .product-card__title{
    font-size: calc(var(--index)*1.9);
  }

.product-card__tags{
    font-size: calc(var(--index)*1.3);
}

  .filters{
  font-size: calc(var(--index)*1.2);
}


.product-card{
        width: 250px;
        height: 350px;
  }

.wrapperForTitle{
  height: 14.5vh;
}

.products-grid{
  margin-top: 8vh;
}

}

@media (max-width: 445px) {
 .filters{
  font-size: calc(var(--index)*1.3);
}

.catalog-controls{
    width: 90vw;
  }

.wrapperForTitle{
  width: 100vw;
}
}

@media (orientation: landscape) and (max-height: 600px) {
  header {
    height: 48px;
    margin-top: 0;
  }

  .header_spanFirst,
  .header_spanSecond {
    display: none;
  }

  .blockA {
    width: min(70vw, 420px);
    height: 100%;
    font-size: clamp(14px, 2.2vw, 18px);
  }

  .container-fluid {
    width: 92vw;
    margin: 0 auto;
  }

  .catalog-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
  }

  .wrapperForTitle {
    width: auto;
    height: 100px;
    flex: 1 1 auto;
  }

  .subtitle {
    transform: none;
    font-size: 12px;
  }

  .catalog-title {
    font-size: clamp(28px, 5vw, 42px);
  }

  .catalog-controls {
    width: auto;
    height: auto;
    flex: 0 1 auto;
    padding-bottom: 8px;
    font-size: 13px;
    word-spacing: normal;
  }

  .filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 14px;
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    align-items: start;
    width: 100%;
    min-height: 0;
    gap: 28px 18px;
    margin-top: 18px;
  }

  .product-card {
    width: min(100%, 260px);
    height: clamp(220px, 58vh, 330px);
  }

  .product-card__info {
    padding-top: 8px;
  }

  .product-card__title {
    font-size: clamp(14px, 2vw, 20px);
  }

  .product-card__tags {
    margin-bottom: 12px;
    font-size: clamp(11px, 1.4vw, 14px);
  }
}

@media (orientation: landscape) and (max-height: 420px) {
  header {
    height: 40px;
  }

  .wrapperForTitle {
    height: 78px;
  }

  .catalog-title {
    font-size: clamp(24px, 4vw, 34px);
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    height: 210px;
  }
}