/* --------- Variables --------- */
:root {
  --bg-1: #1a0b2e;
  --bg-2: #311044;
  --accent: #fbe9a6;
  --muted: rgba(255, 255, 255, 0.85);
  --radius: 18px;
  --transition: 300ms cubic-bezier(.22, .9, .3, 1);
  --glass-bg: rgba(255, 255, 255, 0.08);
}

/* --------- Reset --------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at 30% 30%, var(--bg-2), var(--bg-1));
  color: var(--muted);
  line-height: 1.6;
  overflow-x: hidden;
  padding: 20px;
}

/* --------- Navbar --------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.05);
  padding: 12px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.08);
}
.nav-logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, #ffb6f9, #ffd86f);
  color: #2a0d1c;
  font-size: 1.5em;
  text-shadow: 0 0 10px rgba(255,255,255,0.4);
}
.nav-links {
  display: flex;
  gap: 18px;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* --------- Layout --------- */
.wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}
.sidebar {
  background: var(--glass-bg);
  padding: 24px;
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
}
.main {
  background: rgba(255,255,255,0.02);
  padding: 20px;
  border-radius: var(--radius);
}

/* --------- Hero Section --------- */
.hero {
  display: flex;
  gap: 24px;
}
.hero-left { flex: 1; }
.title {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(90deg,#fff,var(--accent));
  -webkit-background-clip: text;
  color: transparent;
}
.lead {
  margin: 10px 0 20px;
  color: rgba(255,255,255,0.7);
}

/* --------- Cards (Products) --------- */
.cards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
}
.card {
  flex: 1;
  min-width: 250px;
  background: rgba(255,255,255,0.05);
  padding: 16px;
  border-radius: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(255,255,255,0.08);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}
.card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}
.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.price { font-weight: 800; color: var(--accent); }
.desc { color: rgba(255,255,255,0.7); font-size: 14px; }
.btn-primary {
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(90deg,#ffcf6b,#ff8fc2);
  font-weight: 700;
  border: none;
  cursor: pointer;
  color: #2a0d1c;
  transition: all .3s ease;
}
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255,180,250,0.4);
}

/* --------- Gallery --------- */
.gallery-section {
  margin-top: 40px;
  padding: 20px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform .3s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  text-align: center;
  padding: 6px;
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery-item:hover .caption { opacity: 1; }

/* --------- Checkout --------- */
.checkout {
  margin-top: 30px;
  padding: 18px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
}
.field {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.field input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.9);
}
.checkout h3 { margin-bottom: 8px; }

/* --------- Best Sellers --------- */
.best-sellers {
  width: 260px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  text-align: center;
}
.best-sellers img {
  width: 100%;
  border-radius: 50%;
  margin-bottom: 14px;
}
.best-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.note {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

/* --------- Accordion --------- */
.accordion {
  margin-top: 30px;
  background: rgba(49, 16, 68, 0.85);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(245,231,122,0.35);
  box-shadow: 0 0 25px rgba(169,116,255,0.3);
}
.question {
  background: linear-gradient(90deg, #1a0b2e, #2e0d3b);
  color: #f7e8ff;
  padding: 14px 20px;
  cursor: pointer;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  font-family: 'Playfair Display', serif;
  transition: all 0.3s ease-in-out;
}
.question:hover {
  background: linear-gradient(90deg, #a974ff, #ffb6f9);
  color: #311044;
  box-shadow: 0 0 25px rgba(255,182,249,0.4);
}
.answer {
  background: rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  margin-top: 6px;
  border-radius: 10px;
  display: none;
  color: #fdf9ff;
  font-size: 16px;
  line-height: 1.5;
}

/* --------- Date & Button --------- */
#datetime {
  margin-top: 10px;
  font-size: 18px;
  background: linear-gradient(90deg,#fbe9a6,#fff6d0,#fbe9a6);
  color: #311044;
  border-radius: 10px;
  padding: 10px 16px;
  display: inline-block;
  font-family: 'Playfair Display', serif;
}

#showTimeBtn {
  margin-top: 10px;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #f9b24e, #ffda77);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  color: #5a3210;
  transition: transform 0.2s;
}
#showTimeBtn:hover {
  transform: scale(1.05);
}

#colorBtn, #themeToggle {
  margin-top: 12px;
  background: linear-gradient(90deg,#ffcf6b,#ff8fc2);
  color: #2a0d1c;
  font-weight: 700;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .3s ease;
}
#colorBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255,180,250,0.4);
}

.next-btn, .back-btn {
  background: linear-gradient(90deg,#ffb6f9,#872472);
  color: #2a0d1c;
  font-weight: 700;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .3s ease;
}

/* --------- Footer --------- */
footer {
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.popup {
  display: none; position: fixed; top: 0; left: 0;
  width: 100%; height: 100%; background: rgba(0,0,0,0.6);
  justify-content: center; align-items: center;
}
.popup-content {
  background: white; padding: 20px; border-radius: 10px; position: relative;
  width: 300px; text-align: center;
  color:#1a0b2e;
}
.send {
  background: linear-gradient(90deg,#ffb6f9,#872472);
  color: #2a0d1c;
  font-weight: 700;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .3s ease;
}

/* Close button (X) */
.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  color: #777;
  cursor: pointer;
  transition: color 0.3s ease;
}
.close-btn:hover {
  color: #3a2c6a;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
  flex-wrap: wrap;
}

.filter-bar select {
  background: #1a0b2e;
  color: #fefbf3;
  border: 2px solid #a974ff;
  border-radius: 12px;
  padding: 10px 15px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.filter-bar select:hover {
  background: #311044;
}

.load-more-wrapper {
  text-align: center;
  margin: 3rem 0;
}

#loadMoreBtn {
  background: linear-gradient(45deg, #f5e77a, #a974ff);
  color: #1a0b2e;
  border: none;
  border-radius: 14px;
  font-size: 1.1rem;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

#loadMoreBtn:hover {
  transform: scale(1.05);
  background: linear-gradient(45deg, #ffdf6b, #c8a4ff);
}

.card {
  transition: all 0.4s ease;
}

.card.hide {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.filter-bar {
  margin: 2rem 0;
  text-align: center;
}

 .night-mode {
  background: radial-gradient(circle at top, #12061f, #000);
  color: whitesmoke;
}

/* ⭐ Star Rating Styles */
.stars {
  display: inline-flex;
  gap: 8px;
  cursor: pointer;
  font-size: 2rem;
  color: #ccc; /* default gray */
  transition: color 0.3s ease;
}

.star {
  transition: transform 0.2s, color 0.3s;
}

.star:hover {
  transform: scale(1.2);
  color: #b999ed; 
}

.star.active {
  color: #b999ed;
  text-shadow: 0 0 8px rgba(245, 231, 122, 0.7);
}

.quote {
  font-style: italic;
  margin-top: 1rem;
  color: rgb(218, 187, 187);
  opacity: 0.85;
  transition: opacity 0.4s;
}


.wonka-btn {
  margin-top: 25px;
  padding: 14px 18px;
  width: 100%;
  background: linear-gradient(90deg, #d68aca, #852e71);
  color: whitesmoke;
  border: none;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(245, 231, 122, 0.4), 0 0 30px rgba(169, 116, 255, 0.25);
  transition: all 0.3s ease;
}
.wonka-btn:hover {
  background: linear-gradient(90deg, var(--choco-light), var(--gold));
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(245, 231, 122, 0.6), 0 0 35px rgba(169, 116, 255, 0.4);
}

.form-step { display: none; }
.form-step.active { display: block; }
.buttons { display: flex; gap: 10px; margin-top: 10px; 
}

/* =============================
   jQuery Interactive Features
============================= */

/* 🔍 Search + Suggestions */
.search-wrapper {
  position: relative;
  margin: 15px 0;
}
#searchInput {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
}
.suggestions-list {
  list-style: none;
  background: white;
  border: 1px solid #ccc;
  color:#12061f;
  border-radius: 0 0 8px 8px;
  max-height: 150px;
  overflow-y: auto;
  position: absolute;
  width: 100%;
  z-index: 1000;
  display: none;
}
.suggestions-list li {
  padding: 8px;
  cursor: pointer;
}
.suggestions-list li:hover {
  background: #f4f4f4;
}
#autoSuggestions:not(:empty) {
  display: block;
}

/* ✨ Highlight */
mark {
  background: yellow;
  font-weight: bold;
}

/* 🧭 Scroll Progress */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 2000;
}
#scrollBar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff6ec7, #ffc400);
  transition: width 0.2s ease-out;
}

/* 🔢 Counter */
.counter {
  text-align: center;
  font-size: 20px;
  color: gold;
  font-weight: bold;
  margin-bottom: 15px;
}

/* ⏳ Spinner */
.spinner {
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: inline-block;
  animation: spin 0.8s linear infinite;
  margin-right: 6px;
}
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* 🔔 Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: -300px;
  background: #2ecc71;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: right 0.4s ease;
  z-index: 3000;
}
.toast.show {
  right: 20px;
}

/* 📋 Copy Button */
.copy-box {
  margin-top: 10px;
}
#copyBtn {
  background: #673ab7;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}
#copyBtn:hover {
  background: #512da8;
}

/* 🌞 LIGHT MODE THEME */
body.light-mode {
  background: radial-gradient(circle at 30% 30%, #f9f8ff, #e4e0f5);
  color: #1a0b2e;
  transition: background 0.6s ease, color 0.3s ease;
}

/* Navbar */
body.light-mode .navbar {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.05);
  color: #1a0b2e;
}
body.light-mode .nav-links a {
  color: #311044;
}
body.light-mode .nav-links a:hover,
body.light-mode .nav-links a.active {
  background: rgba(49,16,68,0.08);
  color: #000;
}

/* Layout */
body.light-mode .sidebar,
body.light-mode .main {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.05);
  color: #1a0b2e;
}

/* Hero section — keep it bright, but not too white */
body.light-mode .hero {
  background: linear-gradient(180deg, #fff, #f5f2ff);
  color: #1a0b2e;
}
body.light-mode .title {
  background: linear-gradient(90deg,#2a0d1c,#7e5a9b);
  -webkit-background-clip: text;
  color: transparent;
}
body.light-mode .lead {
  color: #4b3b5d;
}

/* Cards */
body.light-mode .card {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.07);
  color: #1a0b2e;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
body.light-mode .desc {
  color: #4c3b62;
}
body.light-mode .price {
  color: #7b45a8;
}

/* Buttons */
body.light-mode .btn-primary,
body.light-mode #colorBtn,
body.light-mode #themeToggle,
body.light-mode .wonka-btn {
  background: linear-gradient(90deg,#ffd86f,#ffb6f9);
  color: #2a0d1c;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
body.light-mode .btn-primary:hover,
body.light-mode #colorBtn:hover,
body.light-mode #themeToggle:hover,
body.light-mode .wonka-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Gallery */
body.light-mode .gallery-section {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.05);
}
body.light-mode .caption {
  background: rgba(255,255,255,0.85);
  color: #1a0b2e;
}

/* Accordion */
body.light-mode .accordion {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
}
body.light-mode .question {
  background: linear-gradient(90deg,#fff,#eae3f5);
  color: #1a0b2e;
}
body.light-mode .question:hover {
  background: linear-gradient(90deg,#ffd86f,#b794ff);
  color: #311044;
}
body.light-mode .answer {
  background: rgba(240,240,250,0.9);
  color: #1a0b2e;
}

/* Checkout, Best Sellers, etc. */
body.light-mode .checkout,
body.light-mode .best-sellers {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.05);
  color: #1a0b2e;
}

/* Footer */
body.light-mode footer {
  color: #4c3b62;
}

/* Popup */
body.light-mode .popup-content {
  background: #fff;
  color: #1a0b2e;
}

/* Inputs, selects */
body.light-mode input,
body.light-mode select {
  background: #fff;
  color: #1a0b2e;
  border: 1px solid rgba(0,0,0,0.1);
}

/* Toasts */
body.light-mode .toast {
  background: #2ecc71;
  color: #fff;
}

/* Smooth transitions */
body.light-mode * {
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Default (dark mode) */
.open-hours {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* Light mode override */
body.light-mode .open-hours {
  color: rgba(26, 11, 46, 0.7); /* deep violet text, slightly muted */
}

/* Fixed iPhone-style toggle in top-right corner */
.theme-switch-wrapper {
  position: fixed;      /* stay in place */
  top: 20px;            /* distance from top */
  right: 20px;          /* distance from right */
  z-index: 9999;        /* above all content */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2); /* optional soft glow */
  padding: 6px 8px;
  border-radius: 50px;  /* circular pill shape */
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc; /* default track */
  transition: 0.4s;
  border-radius: 34px;
}

.slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* --- Open hours --- */
.open-hours {
  font-family: 'Inter', sans-serif;
  color: var(--cream);
  background: rgba(49, 16, 68, 0.7);
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 231, 122, 0.3);
  box-shadow: 0 0 15px rgba(162, 116, 255, 0.2);
  transition: all 0.3s ease;
}

.open-hours strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
}

/* --- Open hours (Light Mode) --- */
body.light-mode .open-hours {
  font-family: 'Inter', sans-serif;
  color: var(--choco-dark); /* dark text for readability */
  background: rgba(255, 255, 255, 0.85); /* soft light panel */
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.1); /* subtle border */
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.15); /* soft shadow */
  transition: all 0.3s ease;
}

body.light-mode .open-hours strong {
  display: block;
  margin-bottom: 6px;
  color: var(--choco-light); /* soft purple accent */
}


/* Checked state */
input:checked + .slider {
  background-color: #a974ff; /* active track */
}

input:checked + .slider::before {
  transform: translateX(24px); /* move the circle */
}

/* --- Filter Bar (Light Mode) --- */
body.light-mode .filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
  font-family: 'Inter', sans-serif;
  color: var(--choco-dark);
}

body.light-mode .filter-bar label {
  font-weight: 600;
  color: var(--choco-light);
}

body.light-mode .filter-bar select {
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.2);
  background: #fff;
  color: var(--choco-dark);
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

body.light-mode .filter-bar select:hover,
body.light-mode .filter-bar select:focus {
  border-color: var(--choco-light);
  box-shadow: 0 0 12px rgba(162, 116, 255, 0.2);
  outline: none;
}

/* --- Wonka Quote (Light Mode) --- */
body.light-mode #quoteArea {
  color: var(--choco-dark); /* readable dark tone */
  background: rgba(255, 255, 255, 0.85); /* soft white bubble */
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--choco-light); /* stylish accent line */
  padding: 14px 18px;
  margin-top: 10px;
  border-radius: var(--radius);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* Optional subtle animation when quote appears */
body.light-mode #quoteArea.show {
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* --------- Responsive Layouts --------- */

/* Tablet and small laptop adjustments */
@media (max-width: 900px) {
  .wrap {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .cards-row {
    flex-direction: column;
    align-items: center;
  }
  .best-sellers {
    width: 100%;
  }
  .sidebar {
    width: 100%;
    position: relative;
    padding: 20px;
  }
  .container2 {
    width: 100%;
  }
}

/* Phone (portrait) — narrow screens */
@media (max-width: 600px) {
  body {
    font-size: 14px;
    overflow-x: hidden;
  }

  .wrap {
    padding: 12px;
    grid-template-columns: 1fr;
  }

  header nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .menu a {
    display: block;
    margin: 6px 0;
    text-align: center;
  }

  .hero img {
    width: 100%;
    max-width: 300px;
  }

  .cards-row, .shop {
    flex-direction: column;
    align-items: center;
  }

  .product-card {
    width: 90%;
    margin-bottom: 16px;
  }

  .container2,
  .wonka-section,
  .accordion,
  .sidebar {
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
  }

  .theme-switch-wrapper {
    top: 10px;
    right: 10px;
    transform: scale(0.9);
  }

  h1, h2, h3 {
    text-align: center;
  }

  button, input, select {
    font-size: 14px;
    width: 100%;
  }
}

/* --- CART SECTION --- */
.cart {
  background: rgba(49, 16, 68, 0.7);
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 0 20px rgba(162, 116, 255, 0.3);
  color: var(--cream);
}

body.light-mode .cart {
  background: rgba(255, 255, 255, 0.9);
  color: #2c2c2c;
  box-shadow: 0 0 10px rgba(255, 200, 100, 0.4);
}

.cart h3 {
  margin-bottom: 16px;
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  text-align: center;
}

/* --- Individual Cart Items --- */
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(162, 116, 255, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 10px;
  transition: transform 0.2s ease, background 0.3s ease;
}

.cart-item:hover {
  transform: scale(1.02);
  background: rgba(162, 116, 255, 0.2);
}

body.light-mode .cart-item {
  background: rgba(255, 250, 210, 0.5);
  border: 1px solid rgba(255, 210, 100, 0.4);
}

.cart-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 15px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.cart-info {
  flex: 1;
  text-align: left;
}

.cart-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
}

body.light-mode .cart-name {
  color: #804a00;
}

.remove-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 20px;
  transition: transform 0.2s ease;
}

.remove-btn:hover {
  transform: scale(1.2);
}

/* Clear Cart Button */
.clear-btn {
  background: linear-gradient(90deg, #7a3bff, #c7a7ff);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  width: 100%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.clear-btn:hover {
  background: linear-gradient(90deg, #955eff, #e4c1ff);
  transform: scale(1.05);
}

body.light-mode .clear-btn {
  background: linear-gradient(90deg, #ffd86b, #ffb347);
  color: #333;
}

body.light-mode .clear-btn:hover {
  background: linear-gradient(90deg, #ffe599, #ffc96b);
}
