:root {
  --ink: #102038;
  --muted: #5c6c83;
  --line: #dce6f3;
  --surface: #ffffff;
  --brand: #0f5ca4;
  --brand2: #00a88f;
  --accent: #ff7a18;
  --bg: #f3f8ff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Hind", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 5%, #e7f4ff 0%, transparent 25%),
    radial-gradient(circle at 95% 10%, #e7fff8 0%, transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}
.container { width: min(1160px, 92%); margin: 0 auto; }
.topbar {
  background: linear-gradient(90deg, #ff7a18 0%, #ff9f1a 100%);
  color: #fff;
  text-align: center;
  padding: 9px 12px;
  font-size: 14px;
}
.navbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(16,32,56,0.1);
}
.nav-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 22px;
}
.brand b { color: var(--brand); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.chip {
  text-decoration: none;
  border: 1px solid var(--line);
  color: #1d3d62;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 13px;
  background: #fff;
}
.chip.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.search {
  flex: 1;
  max-width: 420px;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.search input { flex: 1; border: none; padding: 11px 13px; outline: none; }
.search button { border: none; background: #e9f3ff; color: #1b4b7a; width: 42px; cursor: pointer; }
.hero {
  margin: 22px 0;
  min-height: 420px;
  border-radius: 22px;
  padding: 34px;
  color: #fff;
  display: grid;
  align-content: center;
  background:
    linear-gradient(125deg, rgba(16,32,56,0.9) 0%, rgba(15,92,164,0.75) 45%, rgba(0,168,143,0.72) 100%),
    url('https://picsum.photos/id/913/1600/900') center/cover no-repeat;
}
.hero h1 {
  font-family: "Sora", sans-serif;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  margin-bottom: 12px;
}
.hero p { max-width: 620px; margin-bottom: 16px; }

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: center;
}

.hero-product-panel {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 21, 37, 0.35);
  border-radius: 16px;
  padding: 12px;
  overflow: hidden;
}

.hero-product-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.hero-product-head strong {
  font-family: "Sora", sans-serif;
  font-size: 14px;
}

.hero-product-head small {
  color: rgba(255, 255, 255, 0.85);
}

.hero-product-strip {
  display: flex;
  transition: transform 300ms ease;
}

.hero-group {
  width: 100%;
  flex: 0 0 100%;
  display: grid;
  gap: 8px;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-mini-cover {
  height: 64px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

.hero-mini-card h4 {
  font-size: 13px;
  line-height: 1.2;
  margin-bottom: 3px;
}

.hero-mini-card p {
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.84);
}

.hero-mini-card strong {
  font-family: "Sora", sans-serif;
  font-size: 14px;
}

.hero-dots {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.hero-dot.active {
  width: 20px;
  background: #fff;
}
.btn {
  border: none;
  border-radius: 12px;
  padding: 11px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.btn.primary { background: linear-gradient(90deg, #ff7a18 0%, #ff9f1a 100%); color: #fff; }
.btn.ghost { border: 1px solid rgba(255,255,255,0.5); color: #fff; background: transparent; }
.section-title {
  margin: 18px 0 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.section-title h2 { font-family: "Sora", sans-serif; font-size: clamp(24px, 3vw, 32px); }
.section-title p { color: var(--muted); font-size: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pill {
  border: 1px solid #cfe0f7;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}
.pill.active { background: #eaf4ff; border-color: #8db7e8; color: #174f85; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
}
.card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(16,32,56,0.06);
}
.card-cover { height: 160px; background-size: cover; background-position: center; }
.card-body { padding: 12px; }
.card-body h3 { font-size: 17px; margin-bottom: 5px; min-height: 42px; }
.meta { color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.price { font-family: "Sora", sans-serif; font-weight: 800; font-size: 20px; }
.old { color: #8ea0b9; text-decoration: line-through; font-size: 12px; margin-left: 5px; }
.rating { font-size: 12px; color: #2b5278; margin: 7px 0; }
.card-actions { display: flex; gap: 8px; margin-top: 9px; }
.muted { color: var(--muted); }
.page {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(16,32,56,0.06);
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.image-box {
  min-height: 340px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
}
.list { list-style: none; }
.list li { margin-bottom: 8px; color: #355679; }
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  border-bottom: 1px solid #edf2fa;
  text-align: left;
  padding: 10px 6px;
}
.footer {
  margin-top: 24px;
  background: #0c182c;
  color: #ced8eb;
  padding: 28px 0;
}
.footer p { margin-bottom: 10px; }
.footer-info {
  font-size: 13px;
  color: #93a9c8;
  margin-bottom: 16px;
  line-height: 1.8;
}
.footer-info strong { color: #ced8eb; }
.footer-info a { color: #7fafd4; text-decoration: none; }
.footer-info a:hover { color: #fff; text-decoration: underline; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 12px;
}
.footer-links a {
  color: #7fafd4;
  text-decoration: none;
  font-size: 13px;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer small { color: #93a9c8; }
.form-grid { display: grid; gap: 10px; }
.form-grid input, .form-grid select {
  width: 100%;
  border: 1px solid #d6e3f4;
  border-radius: 10px;
  padding: 10px 12px;
}
.msg { font-size: 13px; margin-top: 6px; }
.msg.err { color: #b22a1f; }
.msg.ok { color: #0c8050; }
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #bce9df;
  background: #ecfcf8;
  color: #007563;
  font-size: 11px;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.auth-modal.open {
  display: block;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 22, 40, 0.45);
}

.auth-panel {
  position: relative;
  width: min(440px, 92vw);
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #dce6f3;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(16, 32, 56, 0.25);
}

.auth-close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: none;
  background: transparent;
  color: #45668e;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.auth-title {
  font-family: "Sora", sans-serif;
  font-size: 22px;
  margin-bottom: 5px;
}

.auth-sub {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f0f6ff;
  border: 1px solid #d8e7fb;
  border-radius: 10px;
  overflow: hidden;
}

.auth-tab {
  border: none;
  background: transparent;
  padding: 9px 10px;
  color: #2f4f75;
  cursor: pointer;
  font-weight: 600;
}

.auth-tab.active {
  background: #dcebff;
  color: #154b7d;
}

[data-auth-slot] {
  display: inline-flex;
  gap: 8px;
}

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .hero-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr; }
  .search { order: 3; width: 100%; max-width: none; }
}
