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);
}
/* ============================================
   🔥 COMPACT BOTTOM BAR - Gap Fix
   ============================================ */
.bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 90%;
  max-width: 380px;
  justify-content: space-around;
  display: flex;
  background: linear-gradient(45deg,#f32603, #ff8800);
  padding: 6px 10px 8px;
  text-align: center;
  z-index: 9998;
  box-shadow: 0 -3px 15px rgba(239,108,0,0.3), 0 6px 20px rgba(0,0,0,0.12);
  border-radius: 20px;
  animation: slideUpBar 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.3s;
}

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

.bar a {
  text-decoration: none;
  color: rgba(255,255,255,0.95);
  font-weight: 800;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  transition: all 0.3s ease;
  padding: 1px 8px 2px;
  border-radius: 10px;
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1;
}

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

.bar a:hover,
.bar a.active {
  color: white;
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

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

/* Active tab indicator dot */
.bar a.active::after {
  content: '';
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  margin-top: 1px;
  box-shadow: 0 0 4px rgba(255,255,255,0.8);
}