/* Shared lightweight styles (Tailwind via CDN handles layout) */
:root {
  --brand: #0f766e;
  --brand-dark: #0d5c56;
  --ink: #0f172a;
  --muted: #64748b;
  --surface: #f8fafc;
  --line: #e2e8f0;
  --danger: #dc2626;
  --success: #059669;
}

body {
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
}

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

.toast-root {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  min-width: 220px;
  max-width: 360px;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: #fff;
  background: #334155;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: #0f766e; }

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

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

.admin-sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #134e4a 100%);
  color: #e2e8f0;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.5rem;
  color: #cbd5e1;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  backdrop-filter: blur(14px);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
}

.site-header--overlay {
  position: fixed;
  border-color: transparent;
  background: transparent;
  color: #fff;
  backdrop-filter: none;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.site-header--overlay.is-scrolled {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(3, 7, 18, 0.94);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(14px);
  text-shadow: none;
}

.site-header__brand,
.site-header__link,
.site-header__nav a {
  color: inherit;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-header__nav a:hover,
.site-header__link:hover {
  color: #5eead4;
}

.site-header--solid .site-header__nav {
  color: #475569;
}

.site-header--solid .site-header__link {
  color: #334155;
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}

.store-hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(15, 118, 110, 0.25), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.18), transparent 40%),
    linear-gradient(135deg, #ecfdf5 0%, #f0f9ff 50%, #f8fafc 100%);
}

/* Everest-style full-bleed homepage hero slider */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 1440 / 768;
  max-height: min(78vh, 820px);
}

@media (max-width: 768px) {
  .hero-slider {
    aspect-ratio: 600 / 780;
    max-height: none;
  }
}

.hero-slider__track {
  position: absolute;
  inset: 0;
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  z-index: 1;
}

.hero-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slider__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(15, 23, 42, 0.28);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-slider__nav:hover {
  background: rgba(15, 23, 42, 0.55);
  border-color: #fff;
}

.hero-slider__nav--prev { left: 0.85rem; }
.hero-slider__nav--next { right: 0.85rem; }

.hero-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.hero-slider__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-slider__dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider__slide {
    transition: none;
  }
}

.product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
