.basket-section {
  max-width: 100%;
  margin: 0 auto;
  padding: 25px;
  background: #fff;
}

.basket {
    margin-top: 20px;
    padding-top: 10px;
}

.basket h2 {
    text-align: center;
    font-weight: 700;
}

.basket-item {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 10px;
    background-color: #ffffff;
    border-radius: 5px;
}
.basket-item-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.basket-item img {
      width: 60px;
      height: 80px;
      object-fit: cover;
      margin-right: 15px;
      border-radius: 4px;
  }

.basket-item-row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.basket-item-name {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
}
.remove-from-basket {
    width: 25px;
    height: 25px;
    border: 1px solid rgb(118,118,118);
    border-radius: 50%;
    background-color: #ffffff;
    color: rgb(118,118,118);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: flex-start;
    margin-left: 10px;
}
.remove-from-basket i {
    font-size: 1em;
}

.basket-item-row2 {
    display: flex;
    align-items: center;
}
.basket-item-price {
  font-size: 16px;
  font-weight: 300;
  margin-left: 15px;
}
.basket-item-quantity {
    width: 50px;
    text-align: center;
    margin-right: 10px;
}

.basket-total {
    text-align: right;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
}
.add-to-basket-btn {
    width: 100%;
    background-color: #28a745;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 5px;
}
.add-to-basket-btn:hover {
    background-color: #218838;
}

.basket-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background-color: #ffffff;
    opacity: 0.95;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    z-index: 1000;
}

.basket-icon:hover {
    background-color: #f0f0f0;
}

.basket-count-badge {
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 12px;
    font-weight: 300;

    position: absolute;
    bottom: 5px;
    right: -5px;
    background-color: #ff3b3b;
    color: #ffffff;
    border-radius: 50%;

    text-align: center;
}

.basket-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    max-width: 400px;
    max-height: 80%;
    background-color: #ffffff;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding: 20px;
    z-index: 1001;
    overflow-y: auto;
}

.basket-popup.hidden {
    display: none;
}

.close-popup {
    background: transparent;
    border: none;
    font-size: 1.5em;
    float: right;
    cursor: pointer;
}

.quantity-controls {
    display: flex;
    align-items: center;
}

.decrease-quantity, .increase-quantity {
    width: 25px !important;
    height: 25px !important;
    border: 1px solid #ccc;
    border-radius: 50% !important;
    background-color: #ffffff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s;
    margin: 0 5px;

    font-family: 'Montserrat';
    font-weight: 100;
    -webkit-appearance: none !important;
    box-sizing: border-box !important;
    padding: 0;
}

.decrease-quantity:hover, .increase-quantity:hover {
    background-color: #f0f0f0;
}

.basket-item-quantity {
  width: 25px;
  border: none;
  background-color: transparent;
  margin: 0;
  font-family: 'Montserrat';
  font-size: 16px;
  font-weight: 300;
  text-align: center;

  pointer-events: none;
  -moz-appearance: none;
  -webkit-appearance: none;
}

.basket-form {
  margin: 30px 0;
}

#customer-name, #customer-phone {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
    box-sizing: border-box;
}
#customer-name:focus, #customer-phone:focus {
    border-color: #007bff;
    outline: none;
}

#customer-name::placeholder,
#customer-phone::placeholder {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #888;
    font-weight: 400;
}

#basket-checkout-btn, #clear-basket-btn {
    /*width: 49%;*/
    width: 100%;
    background-color: #007bff;
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
    box-sizing: border-box;
}
#basket-checkout-btn:hover, #clear-basket-btn:hover {
    background-color: #0056b3;
}
#basket-checkout-btn:active, #clear-basket-btn:active {
    transform: scale(0.98);
}
#clear-basket-btn {
    background-color: #dc3545;
}
#clear-basket-btn:hover {
    background-color: #c82333;
}

.added-to-cart {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 1em;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
}

.added-to-cart.show {
    opacity: 1;
    visibility: visible;
}

#basket-checkout-btn:disabled {
    background-color: #f5c6cb;     /* светло-красный оттенок */
    color: #721c24;               /* тёмный текст */
    cursor: not-allowed;
    opacity: 1;
    border: 1px solid #f1aeb5;
    box-shadow: none;
}

.basket-actions {
  display: flex;
  flex-direction: column;
  gap: 12px; /* ✔️ Отступ между кнопками */
  align-items: stretch;
  margin-top: 20px;
}

.forward-btn {
  display: inline-block;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 5px;
  background-color: #007bff;
  color: #fff;
  border: none;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
}

.forward-btn:hover {
  background-color: #0056b3;
}

.forward-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
