body {
    font-family: Arial, sans-serif;
    background-color: var(--tg-theme-bg-color);
    color: var(--tg-theme-text-color) ;
    /* width: 320px; */
}

.products {
    display: grid;
    /* width: 576px;  */
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
}

.product {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    position: relative;
    border-radius: 12px;
}
/* .price{
    font-family: Inter,-apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif;
    font-size: 15px;
    font-weight: 500;
} */

.product-info {
    margin-bottom: 10px;
}

/* .add-to-cart {
    background-color: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    width: 150px; /* Задайте фиксированную ширину */
    /* height: 40px; Задайте фиксированную высоту */
/* } */ 

.cart-quantity {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #4CAF50;
    color: white;
    border-radius: 50%;
    padding: 5px;
    display: none;
}

.cart-quantity.show {
    display: inline;
    width: 30px;
    height: inherit;
}

.quantity-controls {
    display: none;
    justify-content: center;
    margin-top: 10px;

}


.increment,
.decrement {
    background-image: linear-gradient(#0dccea, #0d70ea);
    border: 0;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, .3) 0 5px 15px;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    font-family: Montserrat,sans-serif;
    font-size: .9em;
    margin: 5px;
    padding: 10px 15px;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    font-family: Inter,-apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif;
    font-size: 15px;
    font-weight: 500;
    margin: 0 10px; /* Небольшое расстояние между кнопками */
}

.cart {
    border: 1px solid #000;
    padding: 10px;
    width: 300px;
    float: right;
}
.product img {
    width: 150px;
    height: 150px;
}

/* Обновленный CSS для стилей полей */
.field-pair {
    display: flex;
    margin-bottom: 10px;
    min-width: 300px;
}

.field-pair input {
    width: 100%; /* Распределение полей по 2 в ряду */
    height: 50px;
    border: 2px solid black; /* Черная рамка */
    border-radius: 5px; /* Скругленные углы */
    padding: 5px; /* Отступ вокруг текста */
}

body {
    font-family: Arial, sans-serif;
}

/* ... остальной CSS ... */
.title{
    text-align: center;
}
.warning{
    text-align: center;
}
/* CSS */
.add-to-cart {
    appearance: none;
    backface-visibility: hidden;
    background-color: #2f80ed;
    border-radius: 10px;
    border-style: none;
    box-shadow: none;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: Inter,-apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif;
    font-size: 15px;
    font-weight: 500;
    height: 50px;
    letter-spacing: normal;
    line-height: 1.5;
    outline: none;
    overflow: hidden;
    /* padding: 14px 30px; */
    position: relative;
    text-align: center;
    text-decoration: none;
    transform: translate3d(0, 0, 0);
    transition: all .3s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: top;
    white-space: nowrap;
  }
  
  .add-to-cart:hover {
    background-color: #1366d6;
    box-shadow: rgba(0, 0, 0, .05) 0 5px 30px, rgba(0, 0, 0, .05) 0 1px 4px;
    opacity: 1;
    transform: translateY(0);
    transition-duration: .35s;
  }
  
  .add-to-cart:hover:after {
    opacity: .5;
  }
  
  .add-to-cart:active {
    box-shadow: rgba(0, 0, 0, .1) 0 3px 6px 0, rgba(0, 0, 0, .1) 0 0 10px 0, rgba(0, 0, 0, .1) 0 1px 4px -1px;
    transform: translateY(2px);
    transition-duration: .35s;
  }
  
  .add-to-cart:active:after {
    opacity: 1;
  }
  
  @media (min-width: 768px) {
    .add-to-cart {
      padding: 14px 22px;
      width: 176px;
    }
  }
.field1,
.field2,
.field3,
.field4{
    font-family: Inter,-apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif;
    font-size: 15px;
    font-weight: 500;
    height: 50px;
    letter-spacing: normal;
}


