.cart-container {
  position: relative;
  display: inline-block;
}

.contacts-label {
  position: relative;
  top: 0px;
  right: 0px;
  background-color: rgba(49, 59, 209, 0.877);
  color: white;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 50%;
}


.product-basic {
  display: grid;
  grid-template-columns: 20% auto;
  place-items: center;
}

.quantity {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  place-items: center;
}


.group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid #ccc;
  padding: 20px;
  overflow: hidden;
  /* Hide overflow content */
  font-size: 32px;

}

.checkbox-container {
  display: flex;
  align-items: center;
}

.checkbox-container input[type="checkbox"] {
  margin-right: 155px;
  /* Adjust the margin to your preference */
}


.product-cont {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 5px;
  justify-items: center; /* Центрировать карточки */
  overflow-y: auto;
  
}



.product {
  width: 100%;
  max-width: 200px; /* Карточка будет максимум 200px шириной */
}
.product-card {
  width: 100%;
  
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  
  transition: transform 0.2s ease-in-out;
}

.product-card:hover {
  transform: scale(1.02);
}

.product-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.product-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.product-desc {
  font-size: 1rem;
  color: #333;
  line-height: 1.3;
  flex-grow: 1;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}



.add-to-cart {
  background: none;
  border: 1px solid #f44336;
  color: #f44336;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.9rem;
}

.add-to-cart:hover {
  background: #f44336;
  color: white;
}


.details-product {
 
  display: grid;
  grid-template-columns: 140px auto auto;
  place-items: center;
  
}
.deleteProduct {
 
  color: #ff3300;
  /* Blue color for text */

  padding: 10px;
}

#head {
  position: fixed;
  display: grid;
  grid-template-columns: repeat(3, auto);
  /* 3 columns with auto width */
 
  width: 100%;
  background-color: #e6e5e5;
  padding: 10px;
  text-align: center;
 
  left: 0;

}

.pay {
  padding: 5px;
  border-radius: 5px;
  background-color: azure;
}

.list-buttons {
  display: grid;
  grid-template-columns: repeat(4, auto);
  /* 3 columns with auto width */
  gap: 5px;
  /* Adjust the gap between grid items */
  align-items: center;
}

#search-form {
  position: fixed;
  bottom: 0;
  display: grid;
  grid-template-columns: auto;
  place-items: center;
  width: 100%;
  font-size: 16px;
  padding-left: 5px;
  padding-right: 5px;


}
.search {
  height: 55px;
}

#wallet-form{
  position: fixed;
  bottom: 0;

  display: grid;
  grid-template-columns: auto auto auto auto;
  place-items: center;
  width: 100%;
  font-size: 26px;
  padding-left: 5px;
  padding-right: 5px;
  background-color: #e6e5e5;
}





  #productForm {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 12px;
    background: #f9f9f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: sans-serif;
  }

  #productForm label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    font-size: 14px;
  }

  .productInput,
  #conditionSelect,
  #color-input,
  #size-input {
    width: 100%;
    padding: 10px;
    margin: 6px 0 16px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
  }

  button {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 5px;
  }

  button:hover {
    background-color: #0056b3;
  }

  #colors-list, #sizes-list {
    margin-bottom: 16px;
    color: #555;
  }

  #previewContainer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0;
  }

  #previewContainer img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
  }

  .product-adding-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
  }

  .button {
    font-size: 20px;
    padding: 6px 12px;
    background-color: #28a745;
    color: white;
    border-radius: 8px;
    border: none;
  }

  .button:hover {
    background-color: #218838;
  }


    .preview-box {
    position: relative;
    margin: 8px;
  }
  .preview-box img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
  }
  .preview-box button {
    position: absolute;
    top: 2px;
    right: 2px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
  }






  