.cart-hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 50px;
  background: linear-gradient(135deg, var(--color-primary, #8A1551) 0%, var(--color-secondary, #6F1041) 60%, #450727 100%);
  text-align: center;
}

.cart-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(138, 21, 81, 0.22) 0%, transparent 65%);
  pointer-events: none;
}

.cart-hero-inner {
  position: relative;
  z-index: 3;
}

/* Breadcrumb */
.cart-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.cart-breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-breadcrumb a:hover {
  color: var(--color-gold);
}

.cart-breadcrumb a svg {
  width: 16px;
  height: 16px;
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 14px;
}

.breadcrumb-current {
  color: var(--color-gold);
  font-size: 13.5px;
  font-weight: 700;
}

.cart-hero-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 800;
  margin: 0 0 8px;
  background: linear-gradient(135deg, #FFFFFF 20%, var(--color-gold) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Decorative corner elements */
.cart-hero .hero-corner {
  position: absolute;
  width: 50px;
  height: 50px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.15;
}

.cart-hero .hero-corner::before,
.cart-hero .hero-corner::after {
  content: '';
  position: absolute;
  background: linear-gradient(135deg, var(--color-gold), rgba(212, 175, 55, 0.3));
}

.cart-hero .hero-corner::before {
  width: 100%;
  height: 2px;
}

.cart-hero .hero-corner::after {
  width: 2px;
  height: 100%;
}

.cart-hero .hero-corner--tr {
  top: 20px;
  right: 20px;
}

.cart-hero .hero-corner--tr::before,
.cart-hero .hero-corner--tr::after {
  top: 0;
  right: 0;
}

.cart-hero .hero-corner--tl {
  top: 20px;
  left: 20px;
}

.cart-hero .hero-corner--tl::before,
.cart-hero .hero-corner--tl::after {
  top: 0;
  left: 0;
}

.cart-hero .hero-corner--br {
  bottom: 20px;
  right: 20px;
}

.cart-hero .hero-corner--br::before,
.cart-hero .hero-corner--br::after {
  bottom: 0;
  right: 0;
}

.cart-hero .hero-corner--bl {
  bottom: 20px;
  left: 20px;
}

.cart-hero .hero-corner--bl::before,
.cart-hero .hero-corner--bl::after {
  bottom: 0;
  left: 0;
}

/* ─── Cart Page Content ─── */
.cart-page-sec {
  padding: 60px 0 100px;
  background-color: var(--color-background);
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

/* ─── Cart Items Column ─── */
.cart-items-wrapper {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
  padding: 24px;
}

.cart-items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px dashed #f5f5f5;
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.cart-items-header h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark-bg);
  margin: 0;
}

.cart-items-count {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(138, 21, 81, 0.06);
  padding: 4px 14px;
  border-radius: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #f9f9f9;
  transition: all 0.3s ease;
  position: relative;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item:hover {
  transform: translateX(-4px);
}

.cart-item-img-wrap {
  width: 95px;
  height: 105px;
  border-radius: 16px;
  overflow: hidden;
  background: #f7f7f7;
  border: 1px solid rgba(0, 0, 0, 0.02);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-brand {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.cart-item-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark-bg);
  margin: 0 0 6px;
}

.cart-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #777;
  margin-bottom: 12px;
}

.meta-size {
  background: #f5f5f5;
  padding: 2px 10px;
  border-radius: 6px;
  font-weight: 600;
}

.meta-stock-warning {
  color: #e53e3e;
  font-weight: 700;
  font-size: 12px;
}

/* Quantity Control */
.cart-item-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.cart-qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid #eee;
  border-radius: 10px;
  background: #fafafa;
  overflow: hidden;
}

.cart-qty-btn {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.cart-qty-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.cart-qty-val {
  width: 36px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-dark-bg);
}

/* Prices */
.cart-item-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cart-item-price {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--color-primary);
}

.cart-item-old-price {
  font-size: 13px;
  text-decoration: line-line-through;
  text-decoration: line-through;
  color: #aaa;
}

/* Remove button */
.btn-remove-item {
  background: none;
  border: none;
  color: #bbbbbb;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove-item:hover {
  color: #e53e3e;
  background: rgba(229, 62, 62, 0.05);
}

.btn-remove-item svg {
  width: 18px;
  height: 18px;
}

/* ─── Cart Summary Column ─── */
.cart-summary-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.summary-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
  padding: 28px;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.cart-summary-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.summary-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark-bg);
  margin: 0 0 20px;
  border-bottom: 1.5px dashed #f5f5f5;
  padding-bottom: 14px;
}

/* Modern Unified Embedded Coupon Box */
.coupon-box {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 22px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background: #fdfafb !important;
  border: 1.5px solid rgba(138, 21, 81, 0.15) !important;
  border-radius: 16px !important;
  padding: 4px 6px !important;
  transition: all 0.3s ease !important;
}

.coupon-box:focus-within {
  border-color: var(--color-primary, #8a1551) !important;
  box-shadow: 0 0 0 3px rgba(138, 21, 81, 0.1) !important;
  background: #ffffff !important;
}

.coupon-input {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: 100% !important;
  border: none !important;
  background: transparent !important;
  padding: 8px 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--color-dark-bg, #1a1a1a) !important;
  outline: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.btn-apply-coupon {
  flex: 0 0 auto !important;
  border: none !important;
  background: linear-gradient(135deg, var(--color-primary, #8a1551), var(--color-secondary, #6f1041)) !important;
  color: #fff !important;
  border-radius: 12px !important;
  padding: 0 16px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  box-shadow: 0 3px 10px rgba(138, 21, 81, 0.2) !important;
}

.btn-apply-coupon:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(138, 21, 81, 0.3) !important;
}

.btn-remove-coupon {
  background: rgba(220, 38, 38, 0.1) !important;
  color: #dc2626 !important;
  border: 1px solid rgba(220, 38, 38, 0.25) !important;
  box-shadow: none !important;
}

.btn-remove-coupon:hover {
  background: rgba(220, 38, 38, 0.2) !important;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
  display: inline-block;
}

.btn-remove-coupon .btn-spinner {
  border-color: rgba(220, 38, 38, 0.3);
  border-top-color: #dc2626;
}

@keyframes btnSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Bill rows */
.bill-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.bill-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #666;
  font-weight: 600;
}

.bill-row.discount-row {
  color: #2f855a;
}

.bill-row.total-row {
  border-top: 1.5px solid #f5f5f5;
  padding-top: 16px;
  margin-top: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-dark-bg);
}

.bill-row.total-row .total-price {
  color: var(--color-primary);
  font-size: 20px;
}

/* Checkout Button */
.btn-checkout {
  width: 100%;
  border: none;
  padding: 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 750;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 6px 20px rgba(138, 21, 81, 0.25);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(138, 21, 81, 0.35);
}

.btn-checkout svg {
  width: 18px;
  height: 18px;
}

/* Security notice */
.security-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #999;
  font-weight: 600;
  text-align: center;
}

.security-notice svg {
  width: 14px;
  height: 14px;
  color: #2f855a;
}

/* ─── Empty Cart State ─── */
.empty-cart-state {
  text-align: center;
  padding: 80px 24px;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

.empty-cart-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  background: rgba(138, 21, 81, 0.04);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.empty-cart-icon svg {
  width: 50px;
  height: 50px;
}

.empty-cart-state h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--color-dark-bg);
  margin-bottom: 10px;
}

.empty-cart-state p {
  font-size: 15px;
  color: #777;
  max-width: 420px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.btn-start-shopping {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  font-weight: 750;
  font-size: 14px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(138, 21, 81, 0.25);
  transition: all 0.3s ease;
}

.btn-start-shopping:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(138, 21, 81, 0.35);
}

.btn-start-shopping svg {
  width: 16px;
  height: 16px;
}

/* ─── Responsive ─── */
@media (max-width: 991px) {
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .cart-hero {
    padding: 80px 0 40px;
  }

  .cart-hero-title {
    font-size: 30px;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
  }

  .cart-item-img-wrap {
    width: 80px;
    height: 90px;
  }

  .cart-item-qty-row {
    width: 100%;
  }

  .btn-remove-item {
    position: absolute;
    top: 16px;
    left: 0;
  }

  .summary-card {
    padding: 18px 14px !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .coupon-box {
    margin-bottom: 16px !important;
    padding: 4px 5px !important;
    border-radius: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .coupon-input {
    font-size: 12px !important;
    padding: 6px 8px !important;
  }

  .btn-apply-coupon {
    padding: 0 12px !important;
    font-size: 12px !important;
    height: 35px !important;
    border-radius: 10px !important;
  }
}