/* Sepet Sayfası Stilleri */
.cart-page {
  padding: 120px 20px 60px;
  min-height: calc(100vh - 300px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #1e3a8a;
  text-align: center;
}

.cart-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Boş sepet stili */
.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.empty-cart i {
  font-size: 64px;
  color: #d1d5db;
  margin-bottom: 20px;
}

.empty-cart h2 {
  font-size: 1.8rem;
  color: #374151;
  margin-bottom: 10px;
}

.empty-cart p {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 30px;
}

/* Sepet sayfası butonları */
.cart-button-primary {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.cart-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(37, 99, 235, 0.2);
}

.cart-button-secondary {
  background: #f3f4f6;
  color: #4b5563;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.cart-button-secondary:hover {
  background: #e5e7eb;
}

/* Sepet içeriği stilleri */
.cart-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .cart-content {
    grid-template-columns: 2fr 1fr;
  }
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  color: #6b7280;
  font-weight: 600;
}

.cart-table td {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

.cart-item {
  display: flex;
  align-items: center;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 16px;
}

.cart-item-details h4 {
  font-size: 1rem;
  margin-bottom: 5px;
  color: #1f2937;
}

.quantity-selector {
  display: flex;
  align-items: center;
  max-width: 120px;
}

.quantity-btn {
  background: #f3f4f6;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.quantity-btn:hover {
  background: #e5e7eb;
}

.quantity-input {
  width: 40px;
  height: 32px;
  text-align: center;
  border: 1px solid #e5e7eb;
  font-size: 14px;

  margin: 0 5px;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.remove-item {
  color: #ef4444;
  font-size: 18px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.remove-item:hover {
  color: #dc2626;
}

/* Kupon kodu stilleri */
.coupon-section {
  margin: 0 0 20px;
  padding: 15px;
  background: #f1f5f9;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
}

.coupon-section p {
  margin: 0 0 8px;
  font-size: 14px;
  color: #475569;
}

.coupon-input-group {
  display: flex;
  gap: 8px;
}

.coupon-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
}

.coupon-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.coupon-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.coupon-btn:hover {
  background: #1d4ed8;
}

.coupon-message {
  margin-top: 10px;
  font-size: 13px;
  display: none;
}

.coupon-message.success {
  color: #16a34a;
  display: block;
}

.coupon-message.error {
  color: #dc2626;
  display: block;
}

.discount-row {
  color: #16a34a;
  font-weight: 500;
}

/* Sepet özeti stilleri güncelleme */
.cart-summary {
  background: #f9fafb;
  padding: 24px;
  border-radius: 8px;
}

.cart-summary h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #1f2937;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 16px;
  color: #4b5563;
}

.summary-row.total {
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
  margin-top: 12px;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.cart-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }
  
  .cart-table {
    font-size: 14px;
  }
  
  .cart-table thead {
    display: none;
  }
  
  .cart-table tr {
    display: block;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
  }
  
  .cart-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 16px;
  }
  
  .cart-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #6b7280;
  }
  
  .cart-table td:last-child {
    border-bottom: none;
  }
  
  .cart-item {
    width: 100%;
    justify-content: space-between;
  }
  
  .cart-item-image {
    width: 60px;
    height: 60px;
  }
  
  .cart-item-details h4 {
    font-size: 0.9rem;
  }
}

/* Saatlik fiyat gösterimi için ek stiller */
.price-period {
  font-size: 0.8em;
  color: #6b7280;
  margin-left: 2px;
}

.price-info {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

/* Saat seçimi için stiller */
.duration-selector {
  display: flex;
  align-items: center;
  max-width: 120px;
  margin-top: 10px;
}

.duration-label {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 5px;
  display: block;
}

.duration-fixed {
  padding: 8px 12px;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.quantity-duration-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.duration-input {
  width: 40px;
  height: 32px;
  text-align: center;
  border: 1px solid #e5e7eb;
  font-size: 14px;

  margin: 0 5px;
}

.duration-input::-webkit-outer-spin-button,
.duration-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@media (max-width: 768px) {
  .quantity-duration-container {
    width: 100%;
    align-items: flex-end;
  }
}

/* WhatsApp İletişim Mesajı */
.extend-time-info {
  margin-top: 20px;
  background: linear-gradient(135deg, #fff3cd, #fef7e3);
  border: 1px solid #fbbf24;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}

.info-content {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 15px;
}

.info-content i.fas {
  color: #f59e0b;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.info-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-title {
  font-weight: 600;
  color: #92400e;
  font-size: 0.95rem;
}

.info-description {
  font-size: 0.85rem;
  color: #b45309;
  opacity: 0.9;
}

.whatsapp-contact-btn {
  background: #25d366;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.whatsapp-contact-btn:hover {
  background: #22c55e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-contact-btn i {
  font-size: 1rem;
}

/* Mobil uyumluluğu */
@media (max-width: 768px) {
  .extend-time-info {
    margin-top: 15px;
  }
  
  .info-content {
    padding: 14px 16px;
    gap: 12px;
  }
  
  .info-content i.fas {
    font-size: 1.2rem;
  }
  
  .info-title {
    font-size: 0.9rem;
  }
  
  .info-description {
    font-size: 0.8rem;
  }
  
  .whatsapp-contact-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .info-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .whatsapp-contact-btn {
    align-self: stretch;
    justify-content: center;
  }
}
