@import '../fonts/fonts.css';

.wrapper {
    width: 1400px;
    margin: 0 auto;
}

@media screen and (max-width: 1399px){
    .wrapper {
        width: 100%;
        padding: 0 20px;
    }
}

@media screen and (max-width: 1000px) {
    body {
        overflow-x: hidden;
    }
}


     *{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Geologica", sans-serif;}
    body{
    display: flex;
    flex-direction: column;
    gap:20px;
    justify-content: space-between;
    height: 100vh;
    }


    .page{
     display:flex;
    flex-direction:column;
        gap:40px;
        }
    @media(max-width:768px){
    .page{
    gap:20px;}
        } 
        
        
/*AUTOFILL стили*/
.content-head{
    display: flex;
    justify-content: center;
    align-items:center;
    flex-direction:column;
    gap:20px;
}
.content-head-title{
    all: unset;
    font-size: 30px !important;
    line-height: 40px;
    text-align: center;
    letter-spacing: -0.01em;
}

.content-body{
    display: flex;
    justify-content: center;
    align-items:center;
    flex-direction:column;
    gap:20px;
}


/*Стили для модального окошка отправки на почту*/

    /* Оверлей — фон */
    .modal-overlay   {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 2001;
        padding: 20px;
        box-sizing: border-box;
    }
    .modal-overlay-custom{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 2001;
        padding: 20px;
        box-sizing: border-box;
    }

    /* Модальное окно */
    .modal {
        display: flex;
        flex-direction: column;
        gap: 60px;
        width: 100%;
        max-width: 600px;
        background-color: #ffffff;
        padding: 90px 40px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        position: relative;
    }

    /* Заголовок */
    .header-modal p {
        font-size: 21px;
        line-height: 1.6;
        color: #121212;
        margin: 0;
    }

    /* Форма */
    .form, .form-order{
        display: flex;
        flex-direction: column;
        gap: 60px;
    }

    .field-form {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    /* Обёртка для валидации */
    .input-wrapper {
        position: relative;
        width: 100%;
    }
    .input-form input{
        padding: 10px 0;
    }

    /* Иконка внутри поля */
    .input-icon {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    /* Статус: ошибка — восклицательный знак */
    .input-wrapper.error .input-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e53935'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
        opacity: 1;
    }

    /* Статус: успех — галочка */
    .input-wrapper.success .input-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
        opacity: 1;
    }

    /* Подчёркивание при ошибке */
    .input-wrapper.error input,
    .input-wrapper.error input:focus {
        border-bottom-color: #e53935 !important;
    }

    /* Подвал */
    .footer-modal {
        margin-top: -40px;
    }

    .footer-modal p {
        font-size: 14px;
        line-height: 20px;
        color: rgba(18, 18, 18, 0.6);
        margin: 0;
    }

    .footer-modal p > a {
        color: rgba(18, 18, 18, 0.6);
        text-decoration: underline;
        text-underline-offset: 2px;
        transition: color 0.3s ease, text-decoration-color 0.3s ease;
    }

    .footer-modal p > a:hover {
        color: rgba(3, 3, 3, 0.8);
        text-decoration-color: #000;
    }

    /* Кнопка */
    .form-btn button {
        padding: 14px 20px 15px;
        color: #12121299;
    }


    /*Стили для  боковой панели свойств*/

    .side-property-cladding-cotainer,  .side-property-package-cotainer, .side-property-legs-cotainer{
      display: none;
      position: fixed;
      top: 0;
      bottom: 0;
      left: auto;
      right: 0;
      z-index: 2000;
      width: 40%;
      background-color: #ffffff;
      overflow-y: auto;
    }


    .side-property {
      display:flex;
      flex-direction: column;
      width: 100%;
      height: 100%;
      box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
      padding: 24px;
      gap: 24px;
    }

    .side-property-header p {
      font-size: 21px;
      font-weight: 600;
      text-align: center;
      margin: 0 0 12px 0;
      letter-spacing: -0.01em;
    }

    /* Блок категории с тенью*/
    .property-category-block {
      background-color: #ffffff;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
      padding: 16px;
      display: flex;
      flex:1;
      flex-direction: column;
      gap: 16px;
      border: 1px solid #f0f0f0;
    }

    .property-block-header {
      margin: 0;
      padding: 0 0 8px 0;
    }

    .property-block-header p {
      font-size: 16px;
      font-weight: 600;
      color: #333;
      margin: 0;
    }

    .side-property-content {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
    }

    .property-card, .property-card-package, .package-not, .property-card-legs, .property-card-caps {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      max-width:250px;
      cursor: pointer;
      overflow: hidden;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }


    .property-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    }

    .property-card.selected {
      border: 2px solid #2c2c2cff;
      transform: translateY(-1px);
    }


    .property-card-legs:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    }

    .property-card-legs.selected {
      border: 2px solid #2c2c2cff;
      transform: translateY(-1px);
    }

    .property-card-caps:hover{
      transform: translateY(-2px);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    }
    .property-card-caps.selected {
      border: 2px solid #2c2c2cff;
      transform: translateY(-1px);
    }

    .property-card-package:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    }

    .property-card-package.selected {
      border: 2px solid #2c2c2cff;
      transform: translateY(-1px);
    }

    .package-not:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    }



    .property-card-image {
      width: 100%;
      height: 150px;
      overflow: hidden;
      background-color: #f8f8f8;
    }
    .property-card-help{
      display:flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 150px;
      overflow: hidden;
      background-color: #f8f8f8;
    }

    .property-card-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .property-card-text {
      margin-top: 6px;
      text-align: center;
      width: 100%;
    }

    .property-card-text p {
      margin: 0;
      font-size: 13px;
      font-weight: 500;
      color: #333;
    }

    /* Галочка поверх изображения */
    .checkmark {
      position: absolute;
      top: 6px;
      right: 6px;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background-color: #6b6b6b7e;
      display: none;
      justify-content: center;
      align-items: center;
      color: white;
      font-size: 14px;
      font-weight: bold;
    }

    .property-card.selected .checkmark {
      display: flex;
    }

    .property-card.selected .checkmark::after {
      content: "✓";
    }

    .property-card-legs.selected .checkmark {
      display: flex;
    }
    .property-card-legs.selected .checkmark::after {
      content: "✓";
    }

    .property-card-package.selected .checkmark {
      display: flex;
    }
    .property-card-package.selected .checkmark::after {
      content: "✓";
    }

    /* Блок выбранного свойства */
    .side-property-bottom {
      display: flex;
      flex-direction: column;
      gap: 16px;
      padding-top: 16px;
      border-top: 1px dashed #e0e0e0;
    }

    .selected-property {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px;
      background-color: #f9f9f9;
      border: 1px solid #e8e8e8;
    }

    .selected-property-image {
      width: 50px;
      height: 50px;
      border-radius: 8px;
      overflow: hidden;
      flex-shrink: 0;
    }

    .selected-property-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .selected-property-description {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .selected-property-description p {
      margin: 0;
      font-size: 14px;
      color: #333;
    }

    .added-price {
      font-weight: 600;
      color: #007bff;
    }

    @media (max-width: 1200px) {
    .side-property-package-cotainer, .side-property-cladding-cotainer{
      width: 50%;
    }

    }



    @media (max-width: 768px) {
    .side-property-package-cotainer, .side-property-cladding-cotainer{
      width: 100%;
    }
    
      .side-property {
        padding: 16px;
        gap: 16px;
        border-radius: 12px 0 0 12px;
      }
      .side-property-header p {
        font-size: 18px;
      }
      .property-card-image {
        height: 120px;
      }
    }

    @media (max-width: 500px) {

      .property-card-image {
        height: 100px;
      }
    }


    /*Стили для корзины и избранного*/
.cart-favourites-section{
    display:flex;
    width: 100%;
    justify-content: center;
}
.cart-favourites-wrapper{
    display:flex;
    flex-direction:column;
    width: 100%;
    max-width:2560px;
    padding: 40px 90px;
    gap: 40px;
}

  