:root{
  --max-width: 1100px;
  --container-pad: 20px;
  --gap: 14px;
  --booth-size: 110px;
  --radius: 12px;
  --color-bg: #ffffff;
  --color-text: #0f172a;
  --accent: #2563eb;
  --accent-strong: #1f4fc1;
  --muted: #f6f8fb;
  --muted-2: #eef2f7;
  --booked: #f2f6fa;
  --selected: #fff7ed;
  --success: #10b981;
  --danger: #ef4444;
  --shadow: 0 8px 26px rgba(2,6,23,0.06);
}

/* Reset & layout */
* { box-sizing: border-box; }
html,body { height:100%; margin:0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial; color:var(--color-text); background:var(--color-bg); -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }

.container { max-width: var(--max-width); margin:0 auto; padding: var(--container-pad); }

/* Top accent bar */
.top-bar { background: linear-gradient(90deg,var(--accent-strong),var(--accent)); color:white; }
.top-bar-inner { padding:8px 0; font-weight:700; text-align:center; font-size:0.95rem; }

/* Header / Hero */
.site-header .header-grid { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; }
.site-header h1 { margin:0; font-size:1.6rem; }
.lead { margin:8px 0 0; color:#334155; max-width:720px; }

.meta { display:flex; flex-direction:column; gap:8px; align-items:flex-end; }
.available-count { background:var(--muted-2); padding:8px 10px; border-radius:8px; font-weight:700; color:#0f172a; }
.cart-count { font-weight:700; color:#0f172a; }

/* Main grid */
.main-grid { display:grid; grid-template-columns: 1fr 360px; gap:24px; align-items:start; margin-top:18px; }

/* Responsive */
@media (max-width: 1000px) {
  .main-grid { grid-template-columns: 1fr 320px; }
  :root { --booth-size: 96px; }
}
@media (max-width: 900px) {
  .main-grid { grid-template-columns: 1fr; }
  #cart-section { order: 2; }
}
@media (max-width: 600px) {
  .container { padding:12px; }
  :root { --booth-size: 88px; --container-pad:12px; }
  .section-title { font-size:1.05rem; }
  .meta { align-items:flex-start; }
}

/* Section title */
.section-title { margin:0 0 10px; font-size:1.1rem; }

/* Floor grid */
.floor-grid {
  display:grid;
  gap: var(--gap);
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--muted-2);
  background: linear-gradient(180deg,#ffffff,#fbfdff);
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

/* Booth card */
.booth {
  position:relative;
  min-height: var(--booth-size);
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:linear-gradient(180deg,#fff,#fcfeff);
  border:1px solid #e6eef8;
  cursor:pointer;
  transition: transform .14s ease, box-shadow .14s ease;
  overflow:hidden;
  padding:8px;
}
.booth:focus { outline: 3px solid rgba(37,99,235,0.12); }
.booth:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.booth-label { font-weight:800; color: #0f172a; letter-spacing:0.02em; }
.overlay {
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78));
  opacity:0; transform: translateY(8px); transition: opacity .16s ease, transform .16s ease;
  text-align:center; padding:8px;
}
.booth:hover .overlay, .booth[aria-pressed="true"] .overlay { opacity:1; transform:translateY(0); }

.price { font-weight:800; font-size:0.98rem; color:var(--color-text); }
.add-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  cursor:pointer;
  font-weight:700;
  box-shadow: 0 6px 10px rgba(37,99,235,0.12);
}
.add-btn[disabled] { background:#94a3b8; cursor:not-allowed; opacity:0.9; }

/* Booked state */
.booth.booked { background: var(--booked); color:#6b7280; cursor:not-allowed; transform:none; box-shadow:none; }
.booked-badge { position:absolute; top:8px; right:8px; background:var(--danger); color:white; padding:6px 8px; border-radius:8px; font-weight:700; }

/* Selected state & added pulse */
.booth[aria-pressed="true"] { background: var(--selected); border:1px dashed #f59e0b; }
.booth.added { animation: addedPulse .42s ease; }
@keyframes addedPulse { 0%{transform:scale(1)} 50%{transform:scale(1.03)} 100%{transform:scale(1)} }

/* Cart */
.cart { border-radius: var(--radius); padding: 16px; border: 1px solid var(--muted-2); background: #fff; box-shadow: 0 2px 10px rgba(2,6,23,0.03); display:flex; flex-direction:column; gap:12px; min-height: 140px; position: sticky; top: 20px; }
.cart-list { list-style:none; padding:0; margin:0; max-height: 360px; overflow:auto; display:flex; flex-direction:column; gap:8px; }
.cart-item { display:flex; justify-content:space-between; align-items:center; background:var(--muted); padding:10px; border-radius:10px; font-weight:700; transform-origin:left; }
.cart-item.slide-in { animation: slideIn .28s ease both; }
@keyframes slideIn { from { transform: translateX(8px); opacity:0 } to { transform: translateX(0); opacity:1 } }
.remove-btn { background:transparent; border:0; color:var(--danger); cursor:pointer; font-weight:800; }

/* Cart footer */
.cart-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.cart-actions { display:flex; gap:8px; align-items:center; }
.cart-total { font-weight:900; font-size:1.1rem; padding:6px 8px; border-radius:8px; }
.cart-total.total-flash { background: rgba(16,185,129,0.12); transition: background .28s ease; }

/* Buttons */
.btn { padding:8px 12px; border-radius:10px; border:0; cursor:pointer; font-weight:800; }
.btn-primary { background:var(--accent-strong); color:white; box-shadow: 0 6px 12px rgba(31,79,193,0.12); }
.btn-secondary { background:#111827; color:white; }

/* Cart hint */
.cart-hint { color:#64748b; font-size:0.85rem; margin-top:6px; }

/* Notice */
.notice { position: fixed; left:50%; transform:translateX(-50%); bottom:22px; background:#111827; color:white; padding:8px 12px; border-radius:8px; opacity:0; transition:opacity .18s ease; z-index:9999; }
.notice.show { opacity:1; }

/* small devices: make buttons bigger and sticky checkout visible */
@media (max-width: 480px) {
  .add-btn { padding:10px 14px; font-size:1rem; }
  .btn-primary { padding:12px 16px; font-size:1rem; }
}
