:root {
  --primary: #4361ee;
  --primary-light: #e0e7ff;
  --secondary: #3f37c9;
  --dark: #1e1e1e;
  --light: #f8f9fa;
  --success: #4cc9f0;
  --danger: #f72585;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f5f7ff;
  color: var(--dark);
}

.product-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.product-img-container {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7ff 0%, #e0e7ff 100%);
}

.product-img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-img:hover {
  transform: scale(1.03);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.product-stock {
  font-size: 0.9rem;
  color: #6c757d;
}

.product-stock.in-stock {
  color: var(--success);
}

.product-stock.low-stock {
  color: orange;
}

.product-stock.out-of-stock {
  color: var(--danger);
}

.payment-method {
  border: 2px solid #e9ecef;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 7px;
  cursor: pointer;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-method:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.1);
}

input[type="radio"]:checked + .payment-method {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.payment-icon {
  font-size: 1.5rem;
  color: var(--primary);
}

.form-control,
.form-select {
  border-radius: 10px;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

.btn-primary {
  background-color: var(--primary);
  border: none;
  border-radius: 10px;
  padding: 15px 0;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.4s ease;
}

.btn-primary:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.btn-secondary {
  border-radius: 10px;
  padding: 12px 0;
  font-weight: 600;
  transition: all 0.3s ease;
}

.section-title {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-weight: 600;
}

.section-title:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.order-summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.order-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  border-top: 2px dashed #e9ecef;
  padding-top: 15px;
  margin-top: 15px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quantity-btn:hover {
  background: var(--primary);
  color: white;
}

.quantity-input {
  width: 60px;
  text-align: center;
  font-weight: 600;
}

@media (max-width: 768px) {
  .product-img {
    height: 300px;
  }

  .product-price {
    font-size: 1.5rem;
  }
}
