:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --card-bg: #ffffff;
  --accent: #0f766e;
  --accent-soft: rgba(15, 118, 110, 0.08);
  --accent-strong: #0d9488;
  --text-main: #111827;
  --text-subtle: #6b7280;
  --border-subtle: #e5e7eb;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.09);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(1200px 800px at 0% 0%, rgba(59, 130, 246, 0.08), transparent 70%),
    radial-gradient(1200px 800px at 100% 0%, rgba(16, 185, 129, 0.08), transparent 70%),
    var(--bg);
}

.container {
  width: min(1120px, 94vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(245, 245, 247, 0.96), rgba(245, 245, 247, 0.88));
  border-bottom: 1px solid rgba(209, 213, 219, 0.6);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, #a5f3fc, #0f766e);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ecfeff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 13px;
}

.brand-tagline {
  font-size: 11px;
  color: var(--text-subtle);
}

.nav {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-pill {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 6px 12px;
  font-size: 12px;
  background: transparent;
  color: var(--text-subtle);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.nav-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.7);
}

.nav-pill.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: rgba(34, 197, 94, 0.32);
}

.nav-pill.is-active::before {
  background: #22c55e;
}

.nav-pill:hover {
  background: rgba(249, 250, 251, 0.9);
  transform: translateY(-0.5px);
}

main.container {
  padding: 26px 0 40px;
}

.hero {
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(26px, 3.1vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.hero p {
  margin: 0;
  max-width: 560px;
  color: var(--text-subtle);
  font-size: 14px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.product-card {
  position: relative;
  background: radial-gradient(280px 220px at 0 0, rgba(59, 130, 246, 0.05), transparent 55%), var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 12px 12px 14px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.13s ease, box-shadow 0.13s ease, border-color 0.12s ease, background 0.16s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(148, 163, 184, 0.7);
  background: radial-gradient(320px 260px at 0 0, rgba(56, 189, 248, 0.12), transparent 55%), var(--card-bg);
}

.product-thumb-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0f172a;
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 0.18s ease-out;
}

.product-card:hover .product-thumb {
  transform: scale(1.04);
}

.badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
  background: rgba(15, 118, 110, 0.94);
  color: #ecfeff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.price {
  font-weight: 600;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text-subtle);
}

.rating-stars {
  color: #fbbf24;
  font-size: 11px;
}

.rating-score {
  font-weight: 500;
}

.rating-count {
  opacity: 0.8;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.tag-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(243, 244, 246, 0.9);
  color: var(--text-subtle);
}

.cta-button {
  border-radius: 999px;
  padding: 7px 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  background: var(--accent);
  color: #ecfeff;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.65);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.cta-button svg {
  width: 14px;
  height: 14px;
}

.cta-button:hover {
  background: var(--accent-strong);
  box-shadow: 0 16px 36px rgba(15, 118, 110, 0.75);
  transform: translateY(-0.5px);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.6);
}

.skeleton-card {
  border-radius: var(--radius-lg);
  padding: 12px;
  background: linear-gradient(120deg, #e5e7eb, #f3f4f6, #e5e7eb);
  background-size: 200% 100%;
  animation: skeleton 1.3s ease-in-out infinite;
  min-height: 220px;
}

@keyframes skeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.site-footer {
  border-top: 1px solid rgba(209, 213, 219, 0.8);
  padding: 16px 0 22px;
  background: rgba(248, 250, 252, 0.96);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.disclosure {
  margin: 0;
  font-size: 11px;
  color: var(--text-subtle);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-subtle);
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a[aria-disabled="true"] {
  opacity: 0.7;
  cursor: default;
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

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

  .product-card {
    padding: 12px;
  }
}

