/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ ОФОРМЛЕНИЯ ЗАКАЗА checkout.html ===== */

/* Основной контейнер страницы */
.checkout-page {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px 80px;
  font-family: 'Segoe UI', sans-serif;
}

/* Сетка с формой и сводкой заказа */
.checkout-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  margin-top: 30px;
}

/* Левая колонка с формой */
.checkout-main {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Правая колонка со сводкой */
.checkout-sidebar {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  height: fit-content;
  position: sticky;
  top: 20px;
}

/* Заголовки */
.page-title {
  font-size: 32px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

.checkout-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #111;
  margin-bottom: 20px;
}

/* Пустая корзина */
.empty-cart {
  text-align: center;
  padding: 60px 20px;
}

.empty-cart svg {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  stroke: #e5e5e5;
}

.empty-cart h3 {
  font-size: 20px;
  color: #666;
  margin-bottom: 10px;
}

.empty-cart p {
  font-size: 14px;
  color: #999;
  margin-bottom: 20px;
}

.back-btn {
  display: inline-block;
  background: linear-gradient(180deg, #ff2c9c, #d40073);
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(225, 0, 117, 0.4);
}

/* ===== МОДАЛЬНОЕ ОКНО УСПЕХА ===== */
.success-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.success-modal.active {
  display: flex;
}

.success-modal-content {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  animation: slideUp 0.4s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 50px;
  height: 50px;
  stroke: white;
  stroke-width: 3;
}

.success-modal-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}

.success-modal-content p {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.5;
}

.success-btn {
  background: linear-gradient(180deg, #ff2c9c, #d40073);
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.success-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(225, 0, 117, 0.4);
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(30px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ ===== */
@media (max-width: 900px) {
  body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom)) !important;
  }
  
  .checkout-page {
    margin: 20px auto 20px;
    padding: 0 15px 20px;
  }
  
  .checkout-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .checkout-main,
  .checkout-sidebar {
    padding: 20px;
  }
  
  .checkout-sidebar {
    position: static;
  }
  
  .page-title {
    font-size: 24px;
  }
  
  .section-title {
    font-size: 18px;
  }
}