/* Premium Shopping Cart Styles - Light Theme */

/* Page Background Override */
body {
  background-color: #f4f5f7 !important;
  color: #333 !important;
}

/* Hero Section */
.cart-hero {
  background: #ffffff;
  padding: 60px 0 40px;
  text-align: center;
  color: #1a1a1a;
  margin-bottom: 40px;
  border-bottom: 1px solid #e1e4e8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.cart-hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin: 15px 0 10px;
  letter-spacing: -0.5px;
  color: #1a1a1a;
}

.cart-hero p {
  font-size: 16px;
  color: #666;
  font-weight: 500;
}

.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 107, 0, 0.1);
  color: #ff6b00;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 107, 0, 0.2);
}

/* Main Layout */
.cart-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.cart-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 380px;
  /* Main content + Sidebar */
  gap: 40px;
}

/* Cart Items Column */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.cart-item {
  background: #ffffff;
  border: 1px solid #e1e4e8;
  border-radius: 16px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 25px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.cart-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  /* Soft premium shadow */
  border-color: rgba(255, 107, 0, 0.3);
}

.item-image {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 12px;
  padding: 4px;
  background: #f8f9fa;
  border: 1px solid #eee;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.no-image-placeholder {
  width: 100%;
  height: 100%;
  background: #f0f2f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 32px;
}

.item-details {
  flex: 1;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.item-name {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s;
}

.item-name:hover {
  color: #ff6b00;
}

.item-price {
  font-size: 17px;
  font-weight: 800;
  color: #1a1a1a;
}

.item-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.qty-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.qty-input {
  width: 50px;
  border: none;
  text-align: center;
  padding: 8px;
  font-weight: 600;
  color: #1a1a1a;
  background: #fff;
}

.qty-input:focus {
  outline: none;
  background: #fafafa;
}

.btn-icon {
  background: #f8f9fa;
  border: none;
  border-left: 1px solid #eee;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
}

.qty-wrapper .btn-icon:first-child {
  border-left: none;
  border-right: 1px solid #eee;
}

.btn-icon:hover {
  background: #f0f0f0;
  color: #1a1a1a;
}

.btn-remove-text {
  background: none;
  border: none;
  color: #999;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-remove-text:hover {
  color: #dc3545;
  text-decoration: underline;
}

.item-subtotal-column {
  text-align: right;
  min-width: 100px;
}

.subtotal-label-mobile {
  display: none;
}

.subtotal-value {
  font-size: 18px;
  font-weight: 800;
  color: #ff6b00;
}

/* Sidebar & Summary */
.cart-sidebar {
  position: sticky;
  top: 40px;
  height: fit-content;
}

.cart-summary {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  border: 1px solid #e1e4e8;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  /* Soft shadow */
}

.cart-summary h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  color: #1a1a1a;
}

.summary-details {
  margin-bottom: 25px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 15px;
  color: #666;
  align-items: center;
}

.shipping-note {
  font-size: 13px;
  color: #999;
  font-style: italic;
}

.summary-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 25px 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 24px;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 30px;
}

.cart-actions-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-checkout {
  background: #ff6b00;
  color: #fff;
  text-align: center;
  padding: 16px;
  border-radius: 30px;
  /* Pill */
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 107, 0, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.btn-checkout:hover {
  background: #e55e00;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.35);
  color: #fff;
}

.btn-clear-text {
  width: 100%;
  background: #fff;
  border: 1px solid #e1e4e8;
  padding: 12px;
  border-radius: 30px;
  color: #666;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-clear-text:hover {
  border-color: #dc3545;
  color: #dc3545;
  background: #fff5f5;
}

.cart-continue-shopping {
  margin-top: 20px;
  text-align: center;
}

.btn-continue {
  color: #666;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.btn-continue:hover {
  color: #ff6b00;
}

/* Trust Badges */
.cart-trust-badges {
  margin-top: 25px;
  display: flex;
  gap: 20px;
  justify-content: center;
  color: #999;
  font-size: 13px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Premium Empty Cart */
.empty-cart-container {
  padding: 80px 20px;
  display: flex;
  justify-content: center;
}

.empty-cart-card {
  background: #fff;
  max-width: 500px;
  width: 100%;
  text-align: center;
  padding: 60px 40px;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  /* Soft shadow */
  border: 1px solid #e1e4e8;
}

.empty-icon-circle {
  width: 100px;
  height: 100px;
  background: rgba(255, 107, 0, 0.08);
  /* Light orange bg */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  color: #ff6b00;
  font-size: 40px;
  box-shadow: 0 5px 15px rgba(255, 107, 0, 0.15);
}

.empty-cart-card h2 {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.empty-cart-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 35px;
}

.btn-start-shopping {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  padding: 14px 35px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-start-shopping:hover {
  background: #ff6b00;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.25);
}


/* Responsive */
@media (max-width: 992px) {
  .cart-content-wrapper {
    grid-template-columns: 1fr;
  }

  .cart-sidebar {
    position: static;
    margin-top: 40px;
  }
}

@media (max-width: 576px) {
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .item-image {
    width: 100%;
    height: 200px;
    background: #fff;
  }

  .item-controls {
    width: 100%;
    justify-content: space-between;
    margin-top: 10px;
  }

  .item-subtotal-column {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
  }

  .subtotal-label-mobile {
    display: inline;
    color: #999;
    font-size: 14px;
  }
}