@charset "UTF-8";
/* === Базовые стили === */
#do_bootstrap {
  font-family: Calibri, Verdana, Arial, sans-serif;
  margin: 20px;
  background: #f9f9f9;
  /* === Кнопки === */
  /* === ПОЛОЖЕНИЕ КНОПКИ КОРЗИНЫ === */
  /* === Список товаров === */
  /* === BADGE === */
  /* === MODAL WINDOW === */
  /* === MODAL CART === */
  /* === АНИМАЦИЯ ПОДТВЕРЖДЕНИЯ ДОБАВЛЕНИЯ В КОРЗИНУ === */
  /* === ОБЛОЖКА ТОВАРА === */
  /* === СТИЛИ ДЛЯ ФОРМЫ ОФОРМЛЕНИЯ ЗАКАЗА === */
}
#do_bootstrap h1 {
  text-align: center;
}
#do_bootstrap .cart-button,
#do_bootstrap #clearFilters,
#do_bootstrap #checkoutBtn,
#do_bootstrap #addToCartBtn {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#do_bootstrap .cart-button:hover,
#do_bootstrap #clearFilters:hover,
#do_bootstrap #checkoutBtn:hover,
#do_bootstrap #addToCartBtn:hover {
  background-color: #2980b9;
}
#do_bootstrap .cart-button:disabled,
#do_bootstrap #clearFilters:disabled,
#do_bootstrap #checkoutBtn:disabled,
#do_bootstrap #addToCartBtn:disabled {
  background-color: #999;
}
#do_bootstrap .cart-button:disabled:hover,
#do_bootstrap #clearFilters:disabled:hover,
#do_bootstrap #checkoutBtn:disabled:hover,
#do_bootstrap #addToCartBtn:disabled:hover {
  background-color: #999;
}
#do_bootstrap .page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#do_bootstrap .product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
#do_bootstrap .card {
  position: relative;
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  /* Чтобы карточки были одинаковой высоты */
}
#do_bootstrap .card:hover {
  transform: translateY(-5px);
}
#do_bootstrap .card h2 {
  font-size: 18px;
  margin: 0 0 10px;
  flex: 1;
}
#do_bootstrap .card p {
  font-size: 14px;
  color: #555;
}
#do_bootstrap .price {
  font-weight: bold;
  color: #2c3e50;
}
#do_bootstrap .special-price {
  color: red;
  font-weight: bold;
}
#do_bootstrap .tags span {
  display: inline-block;
  background: #eee;
  padding: 3px 8px;
  margin: 4px 4px 0 0;
  border-radius: 4px;
  font-size: 12px;
}
#do_bootstrap .badge {
  position: static;
  align-self: flex-start;
  padding: 4px 8px;
  font-size: 12px;
  color: white;
  border-radius: 4px;
  font-weight: bold;
  text-align: right;
  width: calc(100% + 16px);
  margin-top: -16px;
  margin-left: -16px;
  margin-bottom: 16px;
}
#do_bootstrap .badge.discount {
  background-color: #e74c3c;
}
#do_bootstrap .badge.promo {
  background-color: #f39c12;
}
#do_bootstrap .badge.profit {
  background-color: #2ecc71;
}
#do_bootstrap .badge.blackfriday {
  background-color: #8e44ad;
}
#do_bootstrap .modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}
#do_bootstrap .modal #modalTitle {
  margin-bottom: 1rem;
}
#do_bootstrap .modal #modalDescription {
  margin-bottom: 1rem;
}
#do_bootstrap .modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
#do_bootstrap .close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
#do_bootstrap .close:hover {
  color: black;
}
#do_bootstrap #quantityWithFormula {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  font-size: 16px;
}
#do_bootstrap #quantityWithFormula input[type=number] {
  width: 70px;
  padding: 5px;
  font-size: 16px;
  text-align: center;
}
#do_bootstrap .modal-cart {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}
#do_bootstrap .modal-cart h2 {
  margin-top: 0;
}
#do_bootstrap .modal-cart-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
#do_bootstrap .cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
#do_bootstrap .cart-item:last-child {
  border-bottom: none;
}
#do_bootstrap .cart-item-name {
  flex: 1;
  min-width: 150px;
}
#do_bootstrap .cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
#do_bootstrap .cart-item-controls input {
  width: 60px;
  text-align: center;
}
#do_bootstrap .cart-item-price {
  min-width: 80px;
  text-align: right;
}
#do_bootstrap .cart-total {
  text-align: right;
  font-size: 18px;
  margin-top: 15px;
  font-weight: bold;
}
#do_bootstrap .cart-actions {
  margin-top: 20px;
  text-align: right;
}
#do_bootstrap .highlight {
  animation: highlight 0.6s ease-in-out;
}
#do_bootstrap .card-cover {
  width: 100%;
  /*height: 150px;*/
  aspect-ratio: 1/1;
  background-color: #e0e0e0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 10px;
  position: relative;
}
#do_bootstrap .card-cover.fallback::after {
  content: "Нет обложки";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  color: #999;
}
#do_bootstrap .modal-cover {
  width: 200px;
  height: 200px;
  background-color: #e0e0e0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /*margin-right: 20px;*/
  flex-shrink: 0;
  position: relative;
}
#do_bootstrap .modal-cover.fallback::after {
  content: "Нет обложки";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  color: #999;
}
#do_bootstrap .filters {
  margin-bottom: 2rem;
}
#do_bootstrap .filters label {
  margin: 0.5rem 0.1rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid grey;
  display: inline-block;
}
#do_bootstrap #sortSelect {
  padding: 1rem;
  border: 1px solid grey;
  border-radius: 0.5rem;
}
#do_bootstrap #checkoutForm {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
#do_bootstrap #checkoutForm label {
  font-weight: bold;
}
#do_bootstrap #checkoutForm input {
  padding: 8px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#do_bootstrap #checkoutForm #teacher_idx, #do_bootstrap #checkoutForm [for=teacher_idx] {
  display: none;
}
#do_bootstrap #submitOrderBtn {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
}
#do_bootstrap #submitOrderBtn:hover {
  background-color: #27ae60;
}
#do_bootstrap #orderMessage {
  margin-top: 15px;
  font-size: 16px;
  text-align: center;
}
#do_bootstrap #orderMessage.success {
  color: green;
}
#do_bootstrap #orderMessage.error {
  color: red;
}

@keyframes highlight {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@media (max-width: 600px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .badge {
    /*margin-left: 0;
    margin-top: 4px;*/
  }
}
/* === МОБИЛЬНЫЕ СТИЛИ === */
@media (max-width: 768px) {
  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  /*
    .badge {
      margin-top: 4px;
      margin-left: 0;
    }
  */
  #modalInner {
    flex-direction: column;
    gap: 10px;
  }
  .modal-cover {
    width: 100%;
    height: 200px;
  }
  #modalTitle {
    font-size: 18px;
  }
  #quantityWithFormula {
    flex-wrap: wrap;
  }
}/*# sourceMappingURL=dshop.css.map */