/* Modern Cart Page Styles */

/* Page Header */
.cart-page-header {
  background: linear-gradient(135deg, #fef9f3 0%, #ffffff 100%);
  border-bottom: 1px solid #e5e7eb;
  padding: 3rem 0 2rem 0;
}

.cart-breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
  justify-content: center;
}

.cart-breadcrumb .breadcrumb-item a {
  color: #cd743d;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cart-breadcrumb .breadcrumb-item a:hover {
  color: #a0541f;
}

.cart-breadcrumb .breadcrumb-item.active {
  color: #6b7280;
}

.cart-title {
  font-family: "El Messiri", serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.5rem;
}

.cart-subtitle {
  color: #6b7280;
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Main Section */
.cart-main-section {
  background-color: #f9fafb;
  padding: 3rem 0;
  min-height: 70vh;
}

/* Cart Items Container */
.cart-items-container {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.cart-items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f3f4f6;
}

.cart-items-header h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #374151;
  margin: 0;
}

.cart-items-header i {
  color: #cd743d;
  font-size: 1.25rem;
}

.cart-items-header .items-count {
  background: #f3f4f6;
  color: #6b7280;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Cart Items List */
.cart-items-modern {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Modern Cart Item */
.cart-item-modern {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s ease;
  position: relative;
}

.cart-item-modern:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-color: #cd743d;
}

/* Product Image */
.item-image-container {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f9fafb;
  border: 2px solid #e5e7eb;
}

.item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.cart-item-modern:hover .item-image {
  transform: scale(1.05);
}

/* Product Details */
.item-details-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.item-info {
  margin-bottom: 1rem;
}

.item-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.item-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.item-weight {
  background-color: #f3f4f6;
  color: #6b7280;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.item-price-info {
  margin-top: 0.5rem;
}

.unit-price {
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Item Actions */
.item-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.quantity-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f9fafb;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.quantity-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.cart-item-management {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.quantity-select {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.375rem 0.5rem;
  font-size: 0.9rem;
  background-color: #ffffff;
  min-width: 80px;
}

.quantity-select:focus {
  outline: none;
  border-color: #cd743d;
  box-shadow: 0 0 0 2px rgba(205, 116, 61, 0.1);
}



.remove-item-btn {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.remove-item-btn:hover {
  background: #fecaca;
  border-color: #f87171;
  transform: translateY(-1px);
}

/* Price Container */
.item-price-container {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
  min-width: 120px;
}

.quantity-info {
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.total-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #cd743d;
  font-family: "El Messiri", serif;
}

/* Continue Shopping */
.continue-shopping {
  margin-top: 1.5rem;
  text-align: center;
}

.continue-shopping-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #cd743d;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: 2px solid #cd743d;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.continue-shopping-btn:hover {
  background: #cd743d;
  color: #ffffff;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Cart Summary */
.cart-summary-modern {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: sticky;
  top: 2rem;
}

.summary-header {
  background: linear-gradient(135deg, #fef9f3 0%, #ffffff 100%);
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.summary-header h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #374151;
  margin: 0;
}

.summary-header i {
  color: #cd743d;
}

/* Price Breakdown */
.price-breakdown-modern {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.price-row:last-child {
  margin-bottom: 0;
}

.price-row span:first-child {
  color: #6b7280;
  font-weight: 500;
}

.price-row .price {
  text-align: right;
  font-weight: 600;
  color: #374151;
}

.original-price {
  color: #9ca3af;
  font-size: 0.85rem;
  text-decoration: line-through;
  display: block;
}

.price-row.discount span:first-child,
.price-row.automatic-discount span:first-child {
  color: #059669;
}

.discount-amount {
  color: #059669;
  font-weight: 700;
}

.free-shipping {
  color: #059669;
  font-weight: 700;
}

/* Discount Section */
.discount-section-modern {
  padding: 1.5rem;
  background: #fafafa;
  border-bottom: 1px solid #e5e7eb;
}

.discount-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.discount-header i {
  color: #cd743d;
}

.discount-form {
  margin-bottom: 0.75rem;
}

.discount-input-group {
  display: flex;
  gap: 0.5rem;
}

.discount-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9rem;
  background-color: #ffffff;
}

.discount-input:focus {
  outline: none;
  border-color: #cd743d;
  box-shadow: 0 0 0 2px rgba(205, 116, 61, 0.1);
}

.discount-input:disabled {
  background-color: #f9fafb;
  color: #6b7280;
}

.discount-btn,
.remove-discount-btn {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.discount-btn {
  background: #cd743d;
  color: #ffffff;
}

.discount-btn:hover {
  background: #b8632d;
  transform: translateY(-1px);
}

.remove-discount-btn {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.remove-discount-btn:hover {
  background: #fecaca;
  border-color: #f87171;
  transform: translateY(-1px);
  text-decoration: none;
}

.discount-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.discount-message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.discount-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Total Section */
.cart-total-modern {
  padding: 1.5rem;
  background: linear-gradient(135deg, #fef9f3 0%, #ffffff 100%);
  border-bottom: 1px solid #e5e7eb;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.total-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #374151;
}

.total-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #cd743d;
  font-family: "El Messiri", serif;
}

.total-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.8rem;
}

.total-note i {
  color: #9ca3af;
}

/* Checkout Section */
.checkout-section {
  padding: 1.5rem;
}

.checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #cd743d 0%, #b8632d 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
}

.checkout-btn:hover {
  background: linear-gradient(135deg, #b8632d 0%, #a0541f 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #ffffff;
}

.security-features {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
}

.security-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
}

.security-feature i {
  color: #cd743d;
  font-size: 1rem;
}

/* Empty Cart */
.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-cart-content {
  max-width: 400px;
  margin: 0 auto;
}

.empty-cart-content i {
  font-size: 4rem;
  color: #d1d5db;
  margin-bottom: 1.5rem;
}

.empty-cart-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 1rem;
}

.empty-cart-content p {
  color: #6b7280;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.start-shopping-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #cd743d 0%, #b8632d 100%);
  color: #ffffff;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.start-shopping-btn:hover {
  background: linear-gradient(135deg, #b8632d 0%, #a0541f 100%);
  transform: translateY(-2px);
  text-decoration: none;
  color: #ffffff;
}

/* ============================================
   REMOVE ITEM MODAL
============================================ */
.remove-modal {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.remove-modal .modal-header {
  background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(220, 38, 38, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.remove-modal .modal-title {
  color: #dc2626;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  line-height: 1.2;
}

.remove-modal .modal-title i {
  font-size: 1.25rem;
  color: #f59e0b;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.remove-modal .modal-title span {
  font-weight: 600;
  color: #dc2626;
}

.remove-modal .btn-close {
  margin: 0;
  box-shadow: none !important;
  padding: 0.5rem;
  opacity: 0.6;
  border: none;
  background: none;
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.remove-modal .btn-close:hover,
.remove-modal .btn-close:focus {
  opacity: 1;
  background: rgba(220, 38, 38, 0.1) !important;
  border-radius: 50%;
  transform: none !important;
}

.remove-modal .modal-body {
  padding: 1rem 1.5rem;
}

.remove-message {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.5;
}

.product-info-modal {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.modal-product-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.modal-product-details h6 {
  color: #1f2937;
  font-weight: 600;
  margin: 0;
}

.modal-product-details small {
  color: #6b7280;
  font-size: 0.85rem;
}

.remove-modal .modal-footer {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  background: #fafafa;
}

.remove-modal .btn {
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.remove-modal .btn-secondary {
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  color: #374151;
}

.remove-modal .btn-secondary:hover {
  background: #d1d5db;
  border-color: #9ca3af;
  color: #111827;
  transform: translateY(-1px);
}

.remove-modal .btn-danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border: none;
  color: white;
}

.remove-modal .btn-danger:hover {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.remove-modal .btn-danger:disabled {
  background: #9ca3af;
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}

/* Modal Responsive */
@media (max-width: 576px) {
  .remove-modal .modal-dialog {
    margin: 1rem;
  }
  
  .remove-modal .modal-header {
    padding: 1rem 1.25rem;
  }
  
  .remove-modal .modal-title {
    font-size: 1rem;
    gap: 0.5rem;
  }
  
  .remove-modal .modal-title i {
    font-size: 1.1rem;
    width: 20px;
    height: 20px;
  }
  
  .remove-modal .btn-close {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }
  
  .remove-modal .modal-body {
    padding: 1rem 1.25rem;
  }
  
  .product-info-modal {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  
  .modal-product-img {
    width: 50px;
    height: 50px;
  }
  
  .modal-product-details h6 {
    font-size: 0.9rem;
  }
  
  .remove-modal .modal-footer {
    padding: 1rem 1.25rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .remove-modal .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
  }
}

/* Responsive Design */
@media (max-width: 991px) {
  .cart-summary-modern {
    position: static;
    margin-top: 2rem;
  }
  
  .cart-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .cart-page-header {
    padding: 2rem 0 1.5rem;
  }
  
  .cart-title {
    font-size: 1.75rem;
  }
  
  .cart-subtitle {
    font-size: 1rem;
  }
  
  .cart-items-container,
  .cart-summary-modern {
    padding: 1.5rem;
  }
  
  .cart-items-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .cart-item-modern {
    flex-direction: column;
    gap: 1rem;
  }
  
  .item-image-container {
    width: 80px;
    height: 80px;
    align-self: center;
  }
  
  .item-price-container {
    align-items: center;
    text-align: center;
    min-width: auto;
  }
  
  .item-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .discount-input-group {
    flex-direction: column;
  }
  
  .security-features {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .cart-main-section {
    padding: 2rem 0;
  }
  
  .cart-items-container,
  .cart-summary-modern {
    padding: 1rem;
  }
  
  .summary-header,
  .price-breakdown-modern,
  .discount-section-modern,
  .cart-total-modern,
  .checkout-section {
    padding: 1rem;
  }
  
  .empty-cart {
    padding: 3rem 1rem;
  }
  
  .empty-cart-content i {
    font-size: 3rem;
  }
  
  .empty-cart-content h2 {
    font-size: 1.5rem;
  }
} 