
:root {
  --ink: #000000;
  --muted: #333333;
  --paper: #f6f3ee;
  --accent: #d97706;
  --accent-2: #0f766e;
  --shadow: 0 14px 28px rgba(0,0,0,0.12);
  --ring: rgba(0,0,0,0.12);
  --deep-green: #0f3d2e;
  --deep-green-2: #0c2f24;
  --bright-green: #2e7d5b;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Gmarket Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #ffffff;
  min-height: 100vh;
}

.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 28px 20px 80px;
}

 .legacy-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align items to the left */
  gap: 20px;
  padding: 16px 0 24px;
  width: 100%;
}

.logo-link {
  align-self: center; /* Center the logo */
  text-decoration: none;
}

.logo-text {
  font-family: "DM Serif Display", serif;
  font-size: 54px;
  color: #ffffff;
  margin: 0;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

hr {
  width: 100%;
  border: none;
  height: 1px;
  background-color: #ddd;
  margin: 0;
}

.top-nav {
  display: flex;
  gap: 16px;
  font-weight: 500;
  color: var(--muted);
  font-size: 14px;
  width: 100%;
  justify-content: flex-end;
}

.top-nav a {
  color: inherit;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.top-nav a.active {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
}

.is-hidden {
  display: none !important;
}

.logo-link.active .logo-text {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 10px;
  text-decoration-color: var(--accent);
}

.site-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo img {
  height: 56px;
  width: auto;
  max-width: 400px;
  object-fit: contain;
  display: none;
}

.logo-preview {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid #efe7dd;
  background: #fff;
  padding: 12px;
  display: none;
  justify-content: center;
}

.logo-preview img {
  width: 400px;
  height: 90px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .site-logo img {
    height: 42px;
  }
}

.category-bar {
  width: 100%;
  height: 52px;
  background: #ffffff;
  color: var(--deep-green);
  border-radius: 14px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #eef2ef;
}

.category-hamburger {
  font-size: 20px;
  color: var(--deep-green);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
}

.category-hamburger:hover {
  background: #f0f6f2;
}

.category-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.category-link,
.dropdown-toggle {
  color: var(--deep-green);
  font-weight: 600;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.category-link.active,
.dropdown-toggle.active {
  font-weight: 700;
  border-bottom-color: var(--deep-green);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 36px;
  left: 0;
  width: 200px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
  padding: 8px;
  display: none;
  z-index: 30;
}

.dropdown-menu a {
  display: block;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--deep-green);
  font-weight: 600;
  border-radius: 8px;
  font-size: 13px;
}

.dropdown-menu a:hover {
  background: #e9f7ef;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  display: block;
}

@media (max-width: 768px) {
  .category-bar {
    padding: 8px 12px;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .category-links {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    display: none;
  }

  .category-links.open {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: 1px solid #eef2ef;
    margin-top: 6px;
  }
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: #ffffffc9;
  border: 1px solid #efe7dd;
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.banner-wrap {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 20px;
}

.main-banner {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.main-banner img {
  width: 100%;
  max-width: 1920px;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .main-banner img {
    max-height: 280px;
  }
}

@media (max-width: 1024px) {
  .best-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .best-section {
    padding: 24px;
  }

  .best-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.banner-preview {
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #efe7dd;
  background: #fff;
  display: none;
}

.banner-preview img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.best-section {
  background: #f5f6f7;
  padding: 36px;
  border-radius: 24px;
  margin: 12px 0 36px;
}

.section-header h2 {
  font-size: 24px;
  margin: 0 0 8px;
}

.section-header .muted {
  margin: 0 0 18px;
}

.best-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.best-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.best-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.12);
}

.best-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.best-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.hero h1 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(34px, 4vw, 54px);
  margin: 0 0 12px;
}

.hero p {
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.6;
}

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

.btn {
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--ring);
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border: none;
  color: #ffffff;
}

.hero-card {
  background: #fff;
  border-radius: 22px;
  padding: 22px;
  border: 1px solid #efe7dd;
  box-shadow: var(--shadow);
}

.stats {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.stat {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}

.section {
  margin-top: 38px;
}

.section h2 {
  font-size: 24px;
  margin: 0 0 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: #fff;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #efe7dd;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.tag {
  font-size: 12px;
  color: #fff;
  background: var(--accent-2);
  padding: 4px 8px;
  border-radius: 999px;
  width: fit-content;
}

.price {
  font-size: 18px;
  font-weight: 700;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.service {
  display: grid;
  gap: 12px;
  background: #fff;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid #efe7dd;
  box-shadow: var(--shadow);
}

.auth-card {
  max-width: 480px;
  width: 100%;
  margin: 48px auto;
  background: #fff;
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid #efe7dd;
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-header h1 {
  font-size: 28px;
  margin: 0 0 8px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.field input {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.inline-check {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.status {
  font-size: 12px;
  color: var(--muted);
  min-height: 16px;
}

.status.ok { color: #0f766e; }
.status.bad { color: #b91c1c; }
.status.info { color: var(--accent-2); }

.notice {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 12px;
  margin: 0 0 12px;
  display: none;
}

.notice.success {
  display: block;
  background: #e9f7ef;
  border: 1px solid #10b981;
  color: #0f766e;
}

.notice.error {
  display: block;
  background: #fdecec;
  border: 1px solid #ef4444;
  color: #b91c1c;
}

.admin-panel {
  max-width: 980px;
}

.admin-section h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.admin-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #efe7dd;
  background: #fff;
}

.admin-item .meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

footer {
  margin-top: 48px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
