:root {
  --ink: #0f172a;
  --muted: #64748b;
  --cream: #f8fbff;
  --linen: #e8f1ff;
  --walnut: #1d4ed8;
  --charcoal: #111827;
  --sage: #0f766e;
  --gold: #2563eb;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.font-display {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.focus-ring:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .35);
  outline-offset: 3px;
}

.glass-nav {
  backdrop-filter: blur(18px);
  background: rgba(248, 251, 255, .92);
}

.top-bar {
  background: linear-gradient(90deg, #0f172a, #1d4ed8);
}

.brand-mark {
  background: linear-gradient(135deg, #0f172a, #2563eb);
  box-shadow: 0 14px 28px rgba(37, 99, 235, .22);
}

.nav-link {
  align-items: center;
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  min-height: 38px;
  padding: .45rem .75rem;
  position: relative;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav-link:hover,
.nav-link.active {
  background: #e8f1ff;
  color: #1d4ed8;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-dropdown {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-icon {
  background: white;
  border: 1px solid rgba(15, 23, 42, .1);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.nav-icon:hover {
  background: #e8f1ff;
  border-color: rgba(37, 99, 235, .28);
  color: #1d4ed8;
  transform: translateY(-1px);
}

.mobile-menu-panel {
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  box-shadow: 0 22px 44px rgba(15, 23, 42, .12);
}

.mobile-nav-link {
  align-items: center;
  background: white;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  min-height: 46px;
  padding: .75rem .9rem;
}

.hero-slide {
  min-height: clamp(560px, 84vh, 860px);
}

.slide-dot {
  background: rgba(255, 255, 255, .46);
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 999px;
  height: 10px;
  transition: background .2s ease, transform .2s ease, width .2s ease;
  width: 10px;
}

.slide-dot.active {
  background: white;
  transform: translateY(-1px);
  width: 34px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-primary {
  align-items: center;
  background: var(--charcoal);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-weight: 700;
  gap: .5rem;
  justify-content: center;
  min-height: 44px;
  padding: .78rem 1.25rem;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.btn-primary:hover {
  background: #0b1220;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .18);
  transform: translateY(-2px);
}

.btn-secondary {
  align-items: center;
  border: 1px solid rgba(15, 23, 42, .18);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 700;
  gap: .5rem;
  justify-content: center;
  min-height: 44px;
  padding: .72rem 1.1rem;
  transition: background .2s ease, border-color .2s ease;
}

.btn-secondary:hover {
  background: white;
  border-color: rgba(37, 99, 235, .55);
}

.product-card {
  background: white;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
  box-shadow: 0 24px 54px rgba(15, 23, 42, .12);
  transform: translateY(-4px);
}

.product-image {
  aspect-ratio: 4 / 3;
  background: #e8f1ff;
  object-fit: cover;
  width: 100%;
}

.field {
  background: white;
  border: 1px solid rgba(15, 23, 42, .16);
  border-radius: 8px;
  min-height: 44px;
  padding: .72rem .9rem;
  width: 100%;
}

.label {
  color: var(--muted);
  display: block;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: .35rem;
}

.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.surface {
  background: white;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
}

.toast {
  animation: toast-in .25s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: #0f172a;
  color: #f8fbff;
}

.admin-link {
  align-items: center;
  border-radius: 8px;
  display: flex;
  gap: .65rem;
  padding: .72rem .85rem;
}

.admin-link:hover,
.admin-link.active {
  background: rgba(255, 255, 255, .1);
}

.admin-card {
  background: white;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  padding: 1rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  padding: .8rem;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: .76rem;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    display: none;
  }
}
