/* ========================================================================== */
/* ========================= PAGE LAYOUT & BACKGROUND ======================= */
/* ========================================================================== */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), /* dark overlay */
    url('wood-bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff; /* readable text */
  position: relative;
  overflow-x: hidden;
}

/* Container Grid */
.cart-container {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  padding: 20px;
  align-items: start;
}

/* ========================================================================== */
/* ============================= GLASS BOX SECTIONS ========================= */
/* ========================================================================== */
.cart-section {
  display: flex;
  flex-direction: column;
  padding: 15px;
}

.glass-box {
  background: rgba(0, 0, 0, 0.55); /* darker glass for contrast */
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  color: #f5f5f5; /* readable text */
}

.section-heading {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff; /* bright headings */
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 8px;
}

/* ========================================================================== */
/* =============================== LEFT PANEL =============================== */
/* ========================================================================== */
.cart-left {
  flex: 1;
  max-height: 70vh;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.3s;
}
.cart-item:hover {
  background: rgba(255, 255, 255, 0.25);
}
.cart-item img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  margin-right: 12px;
  object-fit: cover;
  cursor: pointer;
}
.cart-info {
  flex: 1;
  cursor: pointer;
  color: #fff;
}
.cart-info h3 {
  margin: 0;
  font-size: 16px;
  color: #fff;
}
.cart-info p {
  margin: 2px 0 0;
  font-size: 14px;
  color: #ddd;
}

/* Remove Button */
.remove-btn {
  background: rgba(231, 76, 60, 0.9);
  border: none;
  border-radius: 6px;
  color: white;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}
.remove-btn:hover {
  background: rgba(192, 57, 43, 1);
}

/* ========================================================================== */
/* ============================= CENTER PRODUCT ============================= */
/* ========================================================================== */
.cart-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.product-display {
  text-align: center;
  color: #fff;
}
.product-display img {
  max-width: 280px;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}
.product-display h2 {
  font-size: 22px;
  margin: 10px 0;
  color: #fff;
}
.product-display .price {
  font-size: 18px;
  font-weight: bold;
  color: #2ecc71; /* green price */
}
.product-display .offer {
  color: #f39c12; /* orange offer */
  font-weight: 500;
}
.product-display .info {
  font-size: 15px;
  margin-top: 10px;
  color: #ccc;
}
.empty-center {
  color: #aaa;
  font-size: 16px;
}

/* ========================================================================== */
/* ================================ BILL PANEL ============================== */
/* ========================================================================== */
#bill-section {
  max-height: 60vh;
  overflow-y: auto;
  color: #fff;
}

.bill-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.bill-table th, .bill-table td {
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}
.bill-table th {
  font-weight: 600;
  color: #ffdd88; /* golden heading */
}
.bill-table td {
  color: #f0f0f0;
}
.bill-total {
  margin-top: 10px;
  font-size: 18px;
  text-align: right;
  font-weight: bold;
  color: #00e676; /* bright green total */
}

/* Buy Now Button */
.buy-now {
  margin-top: 20px;
  padding: 12px;
  background: linear-gradient(135deg, #f4a261, #e76f51);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
}
.buy-now:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* ========================================================================== */
/* ========================= ANIMATED BACKGROUND ============================ */
/* ========================================================================== */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.ball {
  position: absolute;
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.15),
    rgba(210, 180, 140, 0.25)
  );
  border-radius: 50%;
  animation: float infinite ease-in-out;
  opacity: 0.7;
}

/* Floating balls - sizes & animation speeds */
.ball:nth-child(1) { width: 80px; height: 80px; top: 10%; left: 5%; animation-duration: 20s; }
.ball:nth-child(2) { width: 120px; height: 120px; top: 20%; left: 85%; animation-duration: 22s; }
.ball:nth-child(3) { width: 50px; height: 50px; top: 70%; left: 15%; animation-duration: 15s; }
.ball:nth-child(4) { width: 150px; height: 150px; top: 80%; left: 60%; animation-duration: 24s; }
.ball:nth-child(5) { width: 90px; height: 90px; top: 40%; left: 40%; animation-duration: 19s; }
.ball:nth-child(6) { width: 60px; height: 60px; top: 90%; left: 8%; animation-duration: 18s; }
.ball:nth-child(7) { width: 70px; height: 70px; top: 15%; left: 30%; animation-duration: 21s; }
.ball:nth-child(8) { width: 130px; height: 130px; top: 35%; left: 75%; animation-duration: 17s; }
.ball:nth-child(9) { width: 40px; height: 40px; top: 65%; left: 25%; animation-duration: 23s; }
.ball:nth-child(10) { width: 160px; height: 160px; top: 85%; left: 50%; animation-duration: 26s; }
.ball:nth-child(11) { width: 100px; height: 100px; top: 55%; left: 45%; animation-duration: 16s; }
.ball:nth-child(12) { width: 75px; height: 75px; top: 92%; left: 90%; animation-duration: 25s; }

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
  50% { transform: translateY(-50px) translateX(20px) rotate(180deg); }
}
/* ========================================================================== */
/* ========================== MOBILE RESPONSIVENESS ======================== */
/* ========================================================================== */  


/* ========================================================================== */
/* ========================== MOBILE RESPONSIVENESS ======================== */
/* ========================================================================== */

/* For tablets & below */
@media (max-width: 992px) {
  .cart-container {
    grid-template-columns: 1fr; /* stack into single column */
  }

  .cart-section {
    margin-bottom: 20px; /* spacing between sections */
  }

  /* Reorder sections on mobile */
  .cart-container .cart-section:nth-child(1) {
    order: 1; /* 🛒 Cart Items */
  }
  .cart-container .cart-section:nth-child(2) {
    order: 2; /* 📦 Product Details */
  }
  .cart-container .cart-section:nth-child(3) {
    order: 3; /* 💳 Bill & Checkout */
  }

  /* Adjust heights so scrolling works nicely */
  .cart-left {
    max-height: none;
  }
  #bill-section {
    max-height: none;
  }
}




/* ==================== EMPTY CART INSTRUCTION ==================== */
.empty-instruction {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 80vh;
  padding: 30px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.empty-instruction h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #ffdd88; /* golden title */
}

.empty-instruction p {
  font-size: 18px;
  margin: 8px 0;
  color: #f0f0f0;
}

.go-products {
  margin-top: 20px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.3s;
}

.go-products:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
