:root {
  --bg: #100e0c;
  --bg-glow-1: #3a2410;
  --bg-glow-2: #1c1410;
  --surface: #1a1613;
  --surface-2: #242019;
  --border: #33291d;
  --text: #f5efe6;
  --text-dim: #b3a690;
  --gold: #e0a95c;
  --gold-bright: #f4c67a;
  --gold-deep: #c98a3b;
  --coral: #ff6f5e;
  --success: #6bcf9a;
  --danger: #ff6f5e;
  --radius: 18px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(900px 480px at 15% -8%, var(--bg-glow-1) 0%, transparent 60%),
    radial-gradient(800px 420px at 100% 10%, var(--bg-glow-2) 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
}

h1, h2, .brand {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 90px;
}

/* ---- Shop header ---- */
.shop-header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(16, 14, 12, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.shop-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand .brand-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 10px rgba(224, 169, 92, 0.5));
}

.shop-header nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 999px;
  transition: all 0.15s ease;
}

.shop-header nav a:hover {
  color: var(--bg);
  background: var(--gold);
  border-color: var(--gold);
}

header.hero {
  text-align: center;
  margin-bottom: 36px;
  padding-top: 8px;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}

header.hero h1 {
  font-size: clamp(1.9rem, 6.5vw, 2.75rem);
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

header.hero h1 .accent {
  color: var(--gold-bright);
  font-style: italic;
}

header.hero p {
  color: var(--text-dim);
  margin: 0 auto;
  max-width: 560px;
  font-size: 1.02rem;
  line-height: 1.5;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.stat-chip {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.stat-chip strong {
  color: var(--gold-bright);
  font-size: 1.1rem;
  font-family: 'Playfair Display', serif;
}

/* ---- Grid & cards ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.card {
  background: linear-gradient(180deg, var(--surface) 0%, #171310 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-deep);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(224, 169, 92, 0.15);
}

.card.reserved:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}

.card-image {
  width: 100%;
  height: 280px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.card:hover .card-image img {
  transform: scale(1.06);
}

.card-image, .card-body h3 {
  cursor: pointer;
}

.card.reserved .card-image img {
  filter: grayscale(0.6) brightness(0.55);
}

.card-image .placeholder {
  font-size: 2.6rem;
  opacity: 0.25;
}

.ribbon {
  position: absolute;
  top: 14px;
  right: -34px;
  transform: rotate(40deg);
  padding: 5px 40px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
  z-index: 2;
}

.ribbon-reserved {
  background: linear-gradient(90deg, #8a3f36, var(--coral));
  color: #fff;
}

.ribbon-free {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  color: #1a1310;
}

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.card-body .reserve-btn {
  width: 100%;
  padding: 13px 18px;
}

.card-body h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  line-height: 1.35;
}

.card-body p.desc {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.86rem;
  line-height: 1.45;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.price {
  font-weight: 700;
  color: var(--gold-bright);
  font-size: 1rem;
  font-family: 'Playfair Display', serif;
}

.link-out {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px dashed var(--border);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.link-out:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

button, .btn {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 11px;
  padding: 11px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: filter 0.15s ease, transform 0.1s ease, background 0.15s ease;
}

button:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #201509;
  box-shadow: 0 6px 18px -6px rgba(224, 169, 92, 0.55);
}

.btn-primary:hover { filter: brightness(1.08); }

.btn-primary:disabled {
  background: var(--surface-2);
  color: var(--text-dim);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--gold-deep);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-reserved {
  background: rgba(255, 111, 94, 0.14);
  color: var(--coral);
}

.badge-free {
  background: rgba(107, 207, 154, 0.14);
  color: var(--success);
}

.empty-state {
  text-align: center;
  padding: 90px 20px;
  color: var(--text-dim);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 0.9rem;
  z-index: 100;
  box-shadow: 0 10px 34px rgba(0,0,0,0.5);
}

.toast.error { border-color: var(--danger); color: var(--danger); }
.toast.success { border-color: var(--success); color: var(--success); }

/* ---- Product detail modal ---- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 4, 0.72);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
  animation: fadeIn 0.15s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.product-modal {
  background: linear-gradient(180deg, var(--surface) 0%, #171310 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  padding: 0;
}

.modal-close:hover { background: rgba(0,0,0,0.6); }

.gallery {
  position: relative;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  border-radius: 22px 0 0 22px;
  overflow: hidden;
}

.gallery-main {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-main .placeholder {
  font-size: 4rem;
  opacity: 0.25;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(20, 16, 12, 0.65);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.gallery-arrow:hover { background: rgba(224, 169, 92, 0.85); color: #201509; }
.gallery-arrow.prev { left: 14px; }
.gallery-arrow.next { right: 14px; }

.gallery-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  padding: 0;
  cursor: pointer;
}

.gallery-dot.active { background: var(--gold-bright); }

.product-details {
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-details h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.3;
  padding-right: 20px;
}

.product-details .desc {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.product-details .price {
  font-size: 1.35rem;
}

.product-details-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
}

.product-details-actions .btn-primary,
.product-details-actions .link-out.btn-outline {
  width: 100%;
  text-align: center;
  display: block;
}

.link-out.btn-outline {
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 18px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.link-out.btn-outline:hover {
  border-color: var(--gold-deep);
  color: var(--gold-bright);
}

@media (max-width: 720px) {
  .product-modal {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }
  .gallery {
    border-radius: 22px 22px 0 0;
    min-height: 260px;
  }
  .gallery-main { min-height: 260px; }
}

/* ---- Admin ---- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
  max-width: 380px;
  width: 100%;
  margin: 0 20px;
  background: linear-gradient(180deg, var(--surface) 0%, #171310 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}

.login-box .brand-icon { font-size: 2rem; display:block; margin-bottom: 14px; }

.login-box h1 {
  font-size: 1.5rem;
  margin: 0 0 6px;
}

.login-box p {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin: 0 0 20px;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.admin-toolbar h1 {
  font-size: 1.7rem;
  margin: 0;
}

.admin-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 13px 18px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

th {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--surface-2);
}

tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(224, 169, 92, 0.04); }

td.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.form-grid .full { grid-column: 1 / -1; }

.form-grid label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.form-grid input, .form-grid textarea, .login-box input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 0;
}

.login-box input { margin-bottom: 14px; }

.form-grid textarea { resize: vertical; min-height: 60px; }

.form-grid input:focus, .form-grid textarea:focus, .login-box input:focus {
  outline: none;
  border-color: var(--gold);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 26px;
}

.panel h2 {
  margin-top: 0;
  font-size: 1.15rem;
  color: var(--gold-bright);
}

footer.shop-footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  padding: 30px 20px 10px;
  opacity: 0.7;
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }

  .container { padding: 0 14px 70px; }

  .shop-header-inner { padding: 12px 14px; }
  .brand .brand-text { display: none; }
  .brand .brand-icon { font-size: 1.6rem; }
  .shop-header nav { display: flex; gap: 8px; }
  .shop-header nav a { padding: 8px 13px; font-size: 0.82rem; white-space: nowrap; }

  header.hero { margin-bottom: 26px; }
  header.hero p { font-size: 0.94rem; }
  .stats-row { gap: 18px; margin-top: 18px; }
  .stat-chip { font-size: 0.8rem; }
  .stat-chip strong { font-size: 1rem; }

  .grid { grid-template-columns: 1fr; gap: 16px; }
  .card-image { height: 62vw; max-height: 320px; }
  .card-body { padding: 15px 16px 16px; }

  .admin-toolbar { flex-direction: column; align-items: flex-start; }
  .admin-toolbar h1 { font-size: 1.4rem; }

  .gallery-arrow { width: 40px; height: 40px; font-size: 1.05rem; }

  .toast { left: 14px; right: 14px; transform: none; text-align: center; }

  .login-box { padding: 26px 22px; }
}
