/* 
 * Cart Page Specific Styles - Professional Premium Redesign
 */

:root {
  --premium-gold: #feeb00;
  --premium-gold-dark: #fead00;
  --card-bg-modern: rgba(255, 255, 255, 0.03);
  --border-glass-modern: rgba(255, 255, 255, 0.08);
  --theme-primary: #feeb00;
}

.cart-section {
  min-height: 80vh;
  background: #0a0a0a;
  padding-top: 140px !important;
  padding-bottom: 100px !important;
  color: #fff;
}

.cart-list-header {
  color: #ffffff !important;
  opacity: 0.9;
}

.summary-total-label {
  color: #ffffff !important;
}

/* Light Theme Overrides */
.light-theme .cart-section {
  background: #f8f9fa;
  color: #212529;
}

.light-theme .glass-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.light-theme .cart-item-modern {
  border-color: rgba(0, 0, 0, 0.05);
}

.light-theme .cart-item-modern:hover {
  background: #fdfdfd;
  border-color: var(--premium-gold-dark);
}

.light-theme h6.fw-bold a,
.light-theme h6.fw-bold,
.light-theme .text-white {
  color: #212529 !important;
}

.light-theme .text-muted {
  color: #6c757d !important;
}

.light-theme .quantity-input {
  color: #212529 !important;
}

.light-theme .input-group {
  background: #f1f3f5 !important;
}

.light-theme .sticky-summary-card {
  background: #ffffff;
}

.light-theme .cart-list-header {
  color: #6c757d !important;
  opacity: 1;
}

.light-theme .summary-total-label {
  color: #212529 !important;
}

.light-theme .border-top,
.light-theme .border-bottom {
  border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Glass Card Base */
.glass-card {
  background: var(--card-bg-modern);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-glass-modern);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Modern Cart Item */
.cart-item-modern {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-glass-modern);
}

.cart-item-modern:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  border-color: rgba(254, 235, 0, 0.2);
}

.cart-item-image-box img {
  transition: transform 0.6s ease;
}

.cart-item-modern:hover .cart-item-image-box img {
  transform: scale(1.1);
}

.hover-theme-color {
  transition: color 0.2s ease;
}

.hover-theme-color:hover {
  color: var(--premium-gold) !important;
}

/* Quantity Input Modernization */
.quantity-input {
  font-weight: 700;
  color: #fff !important;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.update-quantity-btn {
  background: var(--premium-gold) !important;
  border: none !important;
  color: #000 !important;
  transition: all 0.2s ease !important;
  width: 32px !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.update-quantity-btn:hover {
  background: #fff !important;
  transform: scale(1.05);
}

.update-quantity-btn i {
  font-size: 0.7rem !important;
}

/* Sticky Summary Card */
.sticky-summary-card {
  position: sticky;
  top: 120px;
  z-index: 10;
}

.letter-spacing-1 {
  letter-spacing: 1px;
}

/* Premium Button */
.buy-btn-premium {
  background: linear-gradient(135deg, var(--premium-gold) 0%, var(--premium-gold-dark) 100%) !important;
  border: none !important;
  color: #000 !important;
  font-weight: 900 !important;
  box-shadow: 0 8px 25px rgba(254, 235, 0, 0.2) !important;
  transition: all 0.3s ease !important;
}

.buy-btn-premium:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 30px rgba(254, 235, 0, 0.3) !important;
  filter: brightness(1.1);
}

/* Empty Cart View */
.empty-cart-container {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.empty-cart-icon-wrapper {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  border: 1px solid var(--border-glass-modern);
}

.light-theme .empty-cart-icon-wrapper {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
}

.cashback-reward {
  border: 1px solid rgba(40, 167, 69, 0.2) !important;
  background: rgba(40, 167, 69, 0.05) !important;
  color: #28a745 !important;
}

.light-theme .cashback-reward {
  background: rgba(40, 167, 69, 0.05) !important;
  border-color: rgba(40, 167, 69, 0.1) !important;
  color: #198754 !important;
}

/* Responsive */
@media (max-width: 991.98px) {
  .sticky-summary-card {
    position: static;
    margin-top: 30px;
  }
}

@media (max-width: 575.98px) {
  .cart-section {
    padding-top: 120px !important;
  }

  .cart-item-image-box {
    width: 70px !important;
    height: 55px !important;
  }
}

/* Utils */
.fw-black {
  font-weight: 900;
}