* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; background: #f5f7fb; color: #1f2937; }
.container { width: min(1100px, 94%); margin: 0 auto; }
.topbar { background: #111827; color: #fff; padding: 14px 0; margin-bottom: 20px; }
.nav { display: flex; justify-content: space-between; align-items: center; }
.nav a { color: #fff; text-decoration: none; margin-left: 14px; }
.brand { font-weight: 700; font-size: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: #fff; border-radius: 10px; padding: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.card img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; }
.filters { display: flex; gap: 10px; margin: 14px 0 20px; }
input, textarea, select, button { width: 100%; padding: 8px; margin-top: 6px; margin-bottom: 10px; }
button, .btn { background: #2563eb; border: none; color: #fff; border-radius: 6px; cursor: pointer; padding: 9px 12px; text-decoration: none; display: inline-block; }
button.danger { background: #dc2626; }
.btn.secondary { background: #4b5563; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 10px; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: top; }
.flash { background: #dcfce7; border: 1px solid #86efac; padding: 10px; border-radius: 8px; margin-bottom: 14px; }
.error { background: #fee2e2; border: 1px solid #fca5a5; padding: 10px; border-radius: 8px; margin-bottom: 14px; }
.muted { color: #6b7280; }
.row { display: flex; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.mt { margin-top: 10px; }
.checkout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.panel { background: #fff; border-radius: 10px; padding: 14px; margin: 12px 0; }
.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-form.compact { grid-template-columns: 1fr; }
.auth-form { max-width: 360px; background: #fff; padding: 14px; border-radius: 10px; }
.slides-create-btn { width: auto; margin: 0; white-space: nowrap; }
.products-create-btn { width: auto; margin: 0; white-space: nowrap; }
.hero-slider { position: relative; overflow: hidden; border-radius: 12px; margin-bottom: 18px; background: #111827; }
.hero-slider-track { display: flex; transition: transform 0.5s ease; }
.hero-slide { min-width: 100%; position: relative; }
.hero-slide img { width: 100%; height: 320px; object-fit: cover; display: block; opacity: 0.86; }
.hero-slide-content { position: absolute; inset: auto 20px 20px 20px; background: rgba(17,24,39,0.65); color: #fff; border-radius: 10px; padding: 16px; }
.hero-slide-content h2 { margin: 0 0 8px; font-size: 28px; }
.hero-slide-content p { margin: 0 0 12px; color: #e5e7eb; max-width: 680px; }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 999px; background: rgba(17,24,39,0.6); color: #fff; font-size: 18px; line-height: 1; }
.slider-nav.prev { left: 10px; }
.slider-nav.next { right: 10px; }
.admin-modal-backdrop { position: fixed; inset: 0; background: rgba(17,24,39,0.55); z-index: 50; display: flex; justify-content: center; align-items: center; padding: 18px; }
.admin-modal-backdrop[hidden] { display: none !important; }
.admin-modal { width: min(760px, 100%); max-height: 92vh; overflow: auto; background: #fff; border-radius: 10px; padding: 16px; }
body.modal-open { overflow: hidden; }
@media (max-width: 780px) {
  .checkout-grid, .admin-form, .filters { grid-template-columns: 1fr; display: grid; }
  .row { flex-wrap: wrap; }
  .hero-slide img { height: 220px; }
  .hero-slide-content h2 { font-size: 20px; }
  .admin-modal { max-height: 96vh; }
}

