body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f2f2f2;
  padding: 0;
  padding-bottom: 80px;
  margin: 0;
}

/* ====== HEADER ====== */
.cart-header {
  background: linear-gradient(45deg, #ff8800, #f32603);
  color: white;
  padding: 10px 10px 10px;
  text-align: center;
  position: relative;
  border-radius: 0 0 25px 25px;
  box-shadow: 0 4px 15px rgba(239,108,0,0.3);
  margin-bottom: 20px;
}
.cart-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.cart-header h2::before {
  content: '🛒';
  font-size: 28px;
}
.cart-header p {
  margin: 8px 0 0;
  font-size: 13px;
  opacity: 0.9;
  font-weight: 500;
}

/* ====== CART CONTAINER ====== */
#cartContainer { 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
  padding: 0 15px;
}

/* ====== EMPTY CART ====== */
.empty-cart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  text-align: center;
  animation: fadeIn 0.6s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.empty-cart-icon {
  width: 250px;
  height: 250px;
  margin-bottom: 0px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.empty-cart-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}
.empty-cart-subtitle {
  font-size: 14px;
  color: #888;
  margin-bottom: 0px;
  line-height: 1.5;
}

/* ====== CART ITEM ====== */
.cart-item {
  display: flex; 
  background-color: white; 
  border-radius: 12px;
  padding: 12px; 
  align-items: center; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cart-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.cart-item img { 
  width: 80px; 
  height: 80px; 
  border-radius: 10px; 
  object-fit: cover; 
  margin-right: 12px; 
  border: 1px solid #eee;
}
.cart-item-info { flex: 1; }
.cart-item-title { 
  font-weight: 700; 
  margin-bottom: 5px; 
  font-size: 15px;
  color: #222;
}
.cart-item-variant { 
  font-size: 13px; 
  color: #777; 
  margin-bottom: 5px; 
}
.cart-item-price { 
  color: #ef6c00; 
  font-size: 14px; 
  margin-top: 5px; 
  font-weight: 600;
}
.quantity-controls { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  margin: 8px 0; 
}
.qty-btn { 
  padding: 2px 10px; 
  font-size: 16px; 
  border: none; 
  background-color: #ef6c00; 
  color: white; 
  border-radius: 6px; 
  cursor: pointer; 
  font-weight: bold;
  transition: background 0.2s ease;
}
.qty-btn:hover {
  background-color: #d45a00;
}
.qty-btn:active {
  transform: scale(0.95);
}
.remove-btn { 
  background-color: #ff4444; 
  color: white; 
  border: none; 
  padding: 8px 12px; 
  border-radius: 8px; 
  cursor: pointer; 
  font-weight: 600;
  font-size: 12px;
  transition: background 0.2s ease;
}
.remove-btn:hover {
  background-color: #cc0000;
}

/* ====== TOTAL & BUTTONS ====== */
.total { 
  text-align: right; 
  font-size: 15px; 
  font-weight: 800; 
  margin: 20px 25px 20px; 
  color: #f52906; 
}
.buy-all-btn, .continue-btn {
  background: linear-gradient(135deg, #ef6c00, #ff8f33);
  color: white; 
  font-weight: 700; 
  padding: 8px;
  border: none; 
  border-radius: 12px; 
  width: calc(100% - 30px); 
  margin: -5px 15px; 
  cursor: pointer;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(239,108,0,0.3);
}
.buy-all-btn:hover, .continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(239,108,0,0.4);
}
.buy-all-btn:active, .continue-btn:active {
  transform: translateY(0);
}
/* ─── Bottom Nav ─────────────────────────── */
.bar {
  position: fixed;
  bottom: 8px; left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: 92%; max-width: 400px;
  display: flex; justify-content: space-around;
  background: linear-gradient(135deg, #e53838, #ef6000);
  padding: 8px 6px 10px;
  border-radius: 26px;
  z-index: 9999;
  box-shadow: 0 8px 28px rgba(255,107,0,0.4), 0 2px 8px rgba(0,0,0,0.1);
  animation: slideUpBar 0.7s cubic-bezier(0.34,1.56,0.64,1) 0.2s forwards;
}

@keyframes slideUpBar {
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
  from { transform: translateX(-50%) translateY(120%); opacity: 0; }
}

.bar a {
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  font-family: 'Nunito', sans-serif;
  font-size: 10px; font-weight: 800;
  display: flex; flex-direction: column;
  align-items: center; gap: 2px;
  padding: 4px 12px; border-radius: 16px;
  flex: 1; text-transform: uppercase; letter-spacing: 0.6px;
  transition: all 0.25s ease;
}

.bar a img {
  width: 22px; height: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.bar a span { line-height: 1; margin-top: -1px; }

.bar a.active, .bar a:hover {
  color: white; background: rgba(255,255,255,0.22);
}

.bar a.active img, .bar a:hover img {
  opacity: 1; transform: translateY(-3px) scale(1.15);
}

.bar a.active::after {
  content: ''; width: 4px; height: 4px;
  background: white; border-radius: 50%; margin-top: 1px;
  box-shadow: 0 0 6px rgba(255,255,255,0.9);
}