:root {
  --bg-1: #ffffff;
  --bg-2: #fff;
  --ink: #1b1b1b;
  --accent: #1f6f8b;
  --accent-2: #e07a5f;
  --muted: #596164;
  --card: #ffffff;
  --border: #e1ddd2;
  --shadow: 0 14px 40px rgba(27, 27, 27, 0.08);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(120deg, var(--bg-1), var(--bg-2));
  color: var(--ink);
  min-height: 100vh;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* .container {
  width: min(1120px, 92%);
  margin: 0 auto;
} */

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
}

.nav-toggle-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle-btn span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  display: block;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: space-between;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-bottom-nav {
  display: none;
}

.site-bottom-link {
  text-decoration: none;
}

.site-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.lang-switch select {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 6px 12px;
  background: #fff;
  font-size: 0.85rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}

.nav-cta:hover {
  background: #175b72;
  color: #fff;
}

.nav-admin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #2563eb;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

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

.nav-admin-secondary {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #2563eb;
  background: #fff;
  text-decoration: none;
  font-weight: 600;
}

.nav-admin-secondary:hover {
  background: rgba(37, 99, 235, 0.08);
}

.site-main {
  flex: 1;
  padding: 36px 0 48px;
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  flex-wrap: wrap;
}

.footer-note {
  font-size: 0.9rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
  margin-bottom: 36px;
  animation: fadeUp 0.6s ease-out;
}

.hero-card {
  background: var(--card);
  padding: 28px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-card h1 {
  margin-top: 0;
  font-size: 2.2rem;
}

.hero-card p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(31, 111, 139, 0.1);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 16px;
}

.section-title--filters {
  gap: 12px;
}

.product-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-form select {
  min-width: 180px;
}

.section-title h2 {
  margin: 0;
}

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

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(27, 27, 27, 0.06);
  animation: fadeUp 0.6s ease-out;
}

.product-media {
  background: #f0f2f3;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

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

.product-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: start;
}

.product-gallery {
  display: grid;
  gap: 12px;
}

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

.thumb {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f0f2f3;
  aspect-ratio: 1 / 1;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-info h1 {
  margin-top: 12px;
  margin-bottom: 8px;
}

.product-title {
  margin: 0;
  font-size: 1.05rem;
}

.product-price {
  font-weight: 700;
  color: var(--accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(224, 122, 95, 0.12);
  color: var(--accent-2);
}


.button-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.form-card {
  background: var(--card);
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 520px;
}

.form-card-space {
  margin-bottom: 18px;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  margin-top: 6px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.table th {
  background: #faf8f2;
}

.messages {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.message {
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: #f1f3f5;
  color: var(--muted);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .hero-card h1 {
    font-size: 1.7rem;
  }
}

@media (max-width: 900px) {
  .nav-toggle-btn {
    display: flex;
  }

  .nav-group {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 12px;
  }

  .nav-toggle:checked ~ .nav-group {
    display: flex;
  }

  .nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .site-main {
    padding-bottom: 110px;
  }

  .site-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid var(--border);
    z-index: 20;
  }

  .site-bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 0.72rem;
  }

  .hero-card h1 {
    font-size: 1.7rem;
  }

  .section-title--filters {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-filter-bar,
  .filter-form {
    width: 100%;
  }

  .filter-form select {
    width: 100%;
  }
}


