/* Cart page styles — Frutiger Aero theme */

.cart-page {
  min-height: 100vh;
  padding: 100px 48px 60px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #E0F7FA 0%, #BAE6F5 40%, #90E0EF 100%);
}

.cart-bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.orb-1 {
  width: 500px; height: 500px;
  top: -100px; right: -150px;
  background: radial-gradient(circle, rgba(0,180,216,0.12), transparent 70%);
}
.orb-2 {
  width: 400px; height: 400px;
  bottom: -80px; left: -100px;
  background: radial-gradient(circle, rgba(144,224,239,0.2), transparent 70%);
}

.cart-container {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cart-header {
  margin-bottom: 32px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sky);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 16px;
  transition: gap 0.2s;
}
.back-link:hover { gap: 10px; }

.cart-title {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 2px 20px rgba(0,180,216,0.12);
}

/* Empty state */
.cart-empty {
  text-align: center;
  padding: 80px 20px;
}
.empty-icon { margin-bottom: 24px; }
.cart-empty h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--text);
}
.cart-empty p {
  color: var(--text-muted);
  margin-bottom: 32px;
}
.btn-browse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sky);
  color: white;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(0,180,216,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-browse:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,180,216,0.45), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Cart layout */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

/* Glass panel base */
.glass-panel {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 12px 40px rgba(0,180,216,0.15),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

.panel-header {
  padding: 18px 24px 14px;
  border-bottom: 1px solid rgba(0,180,216,0.1);
}
.panel-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Cart items */
.cart-items-panel { padding-bottom: 0; }

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0,180,216,0.08);
  transition: background 0.15s;
}
.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: rgba(0,180,216,0.04); }

.item-icon { flex-shrink: 0; }

.item-info { min-width: 0; }
.item-name {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.item-unit-price {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Quantity control */
.item-qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 100px;
  background: rgba(0,180,216,0.08);
  border: 1px solid rgba(0,180,216,0.18);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
.qty-btn {
  width: 32px; height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--sky);
  font-weight: 500;
  transition: background 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: rgba(0,180,216,0.12); }
.qty-display {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  border-left: 1px solid rgba(0,180,216,0.12);
  border-right: 1px solid rgba(0,180,216,0.12);
}

/* Subtotal + remove */
.item-subtotal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 80px;
}
.subtotal-amount {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sky);
}
.remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(13,43,62,0.35);
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.remove-btn:hover {
  color: #E63946;
  background: rgba(230,57,70,0.08);
}

/* Order summary panel */
.cart-summary-panel {}

.summary-rows { padding: 0 24px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,180,216,0.06);
}
.summary-row:last-child { border-bottom: none; }
.sr-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.sr-value {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
}

.summary-divider {
  height: 1px;
  background: rgba(0,180,216,0.15);
  margin: 12px 24px;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 24px 20px;
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.total-amount {
  color: var(--sky);
  text-shadow: 0 1px 8px rgba(0,180,216,0.2);
}

.btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: calc(100% - 48px);
  margin: 0 24px 16px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #00B4D8, #00CED1);
  color: white;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow:
    0 6px 24px rgba(0,180,216,0.45),
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -1px 0 rgba(0,0,0,0.1);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.btn-checkout:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 12px 36px rgba(0,180,216,0.55),
    inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-checkout:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(0,180,216,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}

.secure-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .cart-page { padding: 90px 20px 40px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-item {
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
  }
  .item-qty-control { grid-column: 2; }
  .item-subtotal { grid-column: 3; flex-direction: row; align-items: center; }
  .subtotal-amount { font-size: 0.9rem; }
  .remove-btn { display: none; }
}