/* ========== CART ========== */
.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: white;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.3s;
}

.cart-bar.visible { transform: translateY(0); }

.cart-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-count {
  background: var(--rust);
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.cart-total {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
}

.view-cart-btn {
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: 10px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.view-cart-btn:hover { background: #d4b76a; }

.cart-bar-home {
  background: none;
  border: none;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 8px 0;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cart-bar-home:hover {
  color: var(--cream);
}

/* ========== CART MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeInOverlay 0.2s;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cart-modal {
  background: white;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  border-radius: 16px 16px 0 0;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--light-gray);
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}

.cart-header h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--warm-gray);
  padding: 4px;
}

.clear-cart-btn {
  background: none;
  border: 1px solid var(--light-gray);
  color: var(--warm-gray);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.clear-cart-btn:hover {
  border-color: var(--rust);
  color: var(--rust);
}

.cart-items {
  padding: 16px 24px;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--light-gray);
}

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

.cart-item-info {
  min-width: 0;
}

.cart-item .item-actions {
  min-width: 0;
  width: auto;
  justify-content: center;
  gap: 6px;
}

.cart-item-line-total {
  font-weight: 700;
  text-align: right;
  font-family: 'Playfair Display', serif;
  min-width: 3.25rem;
  flex-shrink: 0;
}

.cart-item-name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
}

.cart-item-price {
  font-size: 13px;
  color: var(--warm-gray);
}

.remove-btn {
  background: none;
  border: none;
  color: var(--rust);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  font-weight: 600;
}

.cart-summary {
  padding: 20px 24px;
  background: var(--paper);
  border-top: 1px solid var(--light-gray);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 15px;
}

.summary-row.total {
  font-weight: 700;
  font-size: 20px;
  font-family: 'Playfair Display', serif;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 2px solid var(--ink);
}

