/* Cart Styles */
.cart-page {
  background-color: #f1f3f6;
  min-height: 100vh;
  padding: 20px 0;
}

.cart-item {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1);
  margin-bottom: 16px;
  padding: 16px;
  transition: all 0.3s ease;
}

.cart-item:hover {
  box-shadow: 0 3px 16px 0 rgba(0,0,0,0.11);
  transform: translateY(-2px);
}

.cart-product-image {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.cart-product-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.cart-product-image:hover img {
  transform: scale(1.05);
}

.product-details {
  padding: 0 24px;
}

.product-name {
  font-size: 16px;
  font-weight: 500;
  color: #212121;
  margin-bottom: 8px;
}

.bundle-badge {
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 3px;
  font-weight: 500;
  display: inline-block;
  margin-left: 8px;
}

.bundle-badge.bundle {
  background-color: #2874f0;
  color: white;
}

.bundle-badge.single {
  background-color: #f0f0f0;
  color: #666;
}

.specifications {
  font-size: 14px;
  color: #878787;
  margin-bottom: 16px;
}

.specifications div {
  margin-bottom: 4px;
}

.price-tag {
  font-size: 28px;
  font-weight: 500;
  color: #212121;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.price-per-unit {
  font-size: 14px;
  color: #878787;
  font-weight: normal;
}

.quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  width: fit-content;
  margin: 16px 0;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background-color: #fff;
  cursor: pointer;
  color: #2874f0;
  font-size: 16px;
  transition: all 0.2s ease;
}

.qty-btn:hover {
  background-color: #f5f5f5;
}

.qty-btn:active {
  background-color: #e0e0e0;
}

.qty-btn.minus {
  border-right: 1px solid #e0e0e0;
}

.qty-btn.plus {
  border-left: 1px solid #e0e0e0;
}

.qty-input {
  width: 45px;
  height: 32px;
  border: none;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #212121;
}

.remove-btn {
  border: none;
  background: none;
  color: #2874f0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.remove-btn:hover {
  background-color: #ffeef1;
  color: #ff4444;
}

.remove-btn i {
  margin-right: 4px;
}

/* Cart Summary Styles */
.cart-summary {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1);
  padding: 16px;
  position: sticky;
  top: 20px;
}

.summary-header {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.summary-header h4 {
  margin: 0;
  color: #878787;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  color: #212121;
}

.summary-item .green {
  color: #388e3c;
}

.summary-total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #e0e0e0;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
}

.place-order-btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 500;
  background-color: #fb641b;
  color: #fff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  margin: 16px 0;
  transition: all 0.3s ease;
}

.place-order-btn:hover:not(:disabled) {
  background-color: #f85b0c;
  box-shadow: 0 2px 8px rgba(251, 100, 27, 0.3);
}

.place-order-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.continue-shopping {
  display: block;
  text-align: center;
  color: #2874f0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px;
  transition: all 0.2s ease;
}

.continue-shopping:hover {
  background-color: #f5f5f5;
  border-radius: 4px;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .cart-summary {
    position: static;
    margin-top: 20px;
  }
  
  .product-details {
    padding: 16px 0 0 0;
  }
}

@media (max-width: 767px) {
  .cart-page {
    padding: 10px;
  }

  .cart-item {
    padding: 12px;
  }

  .product-name {
    font-size: 14px;
  }

  .price-tag {
    font-size: 24px;
  }

  .bundle-badge {
    display: block;
    margin: 8px 0;
  }

  .quantity-controls {
    margin: 12px 0;
  }
}

/* Empty Cart Styles */
.empty-cart {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1);
}

.empty-cart img {
  width: 180px;
  margin-bottom: 20px;
}

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

.empty-cart p {
  color: #878787;
  margin-bottom: 20px;
}

.shop-now-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #2874f0;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.shop-now-btn:hover {
  background: #1c5cc9;
  box-shadow: 0 2px 8px rgba(40, 116, 240, 0.3);
}