/* Breadcrumb Styling */
.breadcrumb {
  background-color: transparent;
  padding: 1rem 0;
  margin-bottom: 0;
}

.breadcrumb-item a {
  color: #6c757d;
  text-decoration: none;
}

.breadcrumb-item.active {
  color: #333;
}

/* Main Container */
.cart-container {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Page Title */
.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
}

.cart-summary {
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Cart Items Section */
.cart-section {
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.items-count {
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 400;
}

/* Cart Item */
.cart-item {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f3f4;
  gap: 1rem;
}

.cart-item:last-child {
  border-bottom: none;
}

.item-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.item-details {
  flex: 1;
  min-width: 0;
}

.item-name {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.item-variant {
  color: #6c757d;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.stock-status {
  color: #28a745;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Quantity Controls */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 1rem;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #dee2e6;
  background: #f8f9fa;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.quantity-btn:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.quantity-input {
  width: 50px;
  text-align: center;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 0.25rem;
  font-size: 0.9rem;
}

/* Price and Remove */
.item-price-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.item-price {
  font-size: 1rem;
  font-weight: 700;
  color: #039040;
}

.price-per-unit {
  font-size: 0.8rem;
  color: #6c757d;
}

.remove-btn {
  border: none;
  background: none;
  color: #dc3545;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}


/* Promo Code Section */
.promo-section {
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.promo-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.promo-input-group {
  display: flex;
  gap: 0.5rem;
}

.promo-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 0.9rem;
}

.promo-input:focus {
  border-color: #048d20;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: none;
}

.apply-btn {
  padding: 0.75rem 1.5rem;
  background-color: #039806;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.apply-btn:hover {
  background-color: #00b31b;
}

/* Right Sidebar */
.sidebar-section {
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
}

/* Shipping Address */
.address-info {
  line-height: 1.5;
  color: #333;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.edit-link {
  color: #01b20a;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}

.edit-link:hover {
  text-decoration: underline;
}

/* Shipping Method */
.shipping-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shipping-option:hover {
  border-color: #05ab02;
  background-color: #f8f9fa;
}

.shipping-option.selected {
  border-color: #16bf04;
  background-color: #e3f2fd;
}

.shipping-option input[type="radio"] {
  margin-right: 0.75rem;
  accent-color: #02a117;
}

.shipping-info {
  flex: 1;
}

.shipping-name {
  font-weight: 500;
  color: #333;
  font-size: 0.9rem;
}

.shipping-time {
  color: #6c757d;
  font-size: 0.8rem;
}

.shipping-price {
  font-weight: 600;
  color: #06a338;
  font-size: 0.9rem;
}

/* Order Summary */
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.summary-row:last-child {
  margin-bottom: 0;
}

.summary-label {
  color: #333;
}

.summary-value {
  font-weight: 500;
  color: #333;
}

.total-row {
  border-top: 1px solid #dee2e6;
  padding-top: 1rem;
  margin-top: 1rem;
  font-size: 1.1rem;
}

.total-row .summary-label {
  font-weight: 600;
}

.total-row .summary-value {
  font-weight: 700;
  color: #01b00a;
  font-size: 1.2rem;
}

/* Confirm Order Button */
.confirm-btn {
  width: 100%;
  padding: 1rem;
  background-color: #0a6629ff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 1.5rem;
}

.confirm-btn:hover {
  background-color: #00b303;
}

.note-input {
  width: 100%;
  min-height: 100px;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  outline: none;
  box-sizing: border-box;
  background-color: #fff;
  color: #333;
  transition: border-color 0.2s ease-in-out;
}

/* Responsive Design */
@media (max-width: 992px) {
  .cart-container {
    padding: 1.5rem;
  }

  .sidebar-section {
    position: static;
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .cart-container {
    padding: 1rem;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .item-details-row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 1rem;
  }

  .quantity-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .promo-input-group {
    flex-direction: column;
  }

  .apply-btn {
    width: 100%;
  }
  .remove-btn{
    align-self: flex-end;
    color: red;
  }
}

@media (max-width: 576px) {
  .cart-container {
    padding: 0.75rem;
  }

  .cart-section,
  .promo-section,
  .sidebar-section {
    padding: 1rem;
  }

  .item-image {
    width: 50px;
    height: 50px;
  }

  .quantity-controls {
    margin: 0;
  }

  .quantity-btn {
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
  }

  .quantity-input {
    width: 40px;
    font-size: 0.85rem;
  }
}
