/* Infinno DTC — Stokke-inspired premium baby-brand aesthetic
   - Generous whitespace
   - Large type (Playfair Display / serif for headings)
   - Soft warm palette (off-white, warm grey, muted terracotta accent)
   - Clean product grid with lifestyle-card proportions
*/

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

:root {
  /* Palette */
  --c-bg: #fafaf7;           /* off-white cream */
  --c-surface: #ffffff;
  --c-ink: #1c1c1c;
  --c-muted: #6b6558;
  --c-line: #e8e5dd;
  --c-accent: #8a5a3b;       /* warm terracotta */
  --c-accent-dark: #6e4529;
  --c-soft: #f3efe7;         /* soft beige */

  /* Type */
  --f-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --f-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --container-max: 1400px;
  --radius: 2px;             /* very subtle — premium brands use minimal rounding */
  --shadow-hover: 0 8px 32px rgba(28, 28, 28, 0.08);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-sans);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--c-ink); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--c-accent); }

h1, h2, h3 { font-family: var(--f-serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ==================== Header ==================== */
.site-header {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 40px;
  max-width: var(--container-max);
  margin: 0 auto;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}
.brand-mark {
  font-family: var(--f-serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--c-ink);
}
.brand-tag {
  font-size: 10px;
  color: var(--c-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}
.site-nav { display: flex; gap: 32px; align-items: center; }
.site-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink);
}
.site-nav a.snipcart-checkout {
  position: relative;
  padding: 10px 20px;
  border: 1px solid var(--c-ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.site-nav a.snipcart-checkout:hover {
  background: var(--c-ink);
  color: var(--c-bg);
}

/* ==================== Hero ==================== */
.hero {
  padding: 110px 0 80px;
  text-align: center;
  background: var(--c-bg);
}
.hero .eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 0 0 18px;
  font-weight: 500;
}
.hero h1 {
  font-family: var(--f-serif);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
  margin: 0 auto 24px;
  max-width: 880px;
  font-weight: 400;
  color: var(--c-ink);
}
.hero .subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-muted);
  max-width: 580px;
  margin: 0 auto;
  font-weight: 400;
}

/* ==================== Products Section ==================== */
.products { padding: 40px 0 120px; background: var(--c-bg); }
.section-title {
  font-family: var(--f-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--c-muted);
  margin: 0 0 40px;
  font-weight: 500;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 48px 32px;
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
}

.product-card {
  display: block;
  background: var(--c-bg);
  text-decoration: none;
  transition: transform 0.3s ease;
}
.product-card:hover { text-decoration: none; color: inherit; }
.product-card:hover .img-wrap { background: var(--c-soft); }
.product-card:hover img { transform: scale(1.03); }

.product-card .img-wrap {
  aspect-ratio: 1 / 1;
  background: var(--c-surface);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  margin-bottom: 18px;
}
.product-card img {
  max-width: 86%;
  max-height: 86%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}
.product-card .info { padding: 0 4px; }
.product-card .title {
  font-family: var(--f-sans);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 8px;
  font-weight: 500;
  color: var(--c-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .price {
  margin: 0;
  font-size: 14px;
  color: var(--c-ink);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.product-card .price-amount { font-weight: 500; }

/* ==================== Product Page ==================== */
.breadcrumb {
  padding: 24px 0;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg);
}
.breadcrumb a {
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.breadcrumb a:hover { color: var(--c-accent); }

.product-page { padding: 60px 0 100px; background: var(--c-bg); }
.product-grid-2col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .product-grid-2col { grid-template-columns: 1fr; gap: 40px; }
}

.product-image {
  background: var(--c-surface);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-image img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.product-info { padding-top: 8px; }
.product-info .eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 0 0 14px;
  font-weight: 500;
}
.product-title {
  font-family: var(--f-serif);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.2;
  margin: 0 0 28px;
  font-weight: 400;
  color: var(--c-ink);
}

.product-price {
  margin: 0 0 32px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--c-line);
}
.price-amount {
  font-family: var(--f-sans);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--c-ink);
}
.price-currency {
  font-size: 13px;
  color: var(--c-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.variation-block {
  margin: 0 0 28px;
  padding: 16px 20px;
  background: var(--c-soft);
  font-size: 13px;
  color: var(--c-ink);
  letter-spacing: 0.02em;
}
.variation-block strong {
  font-weight: 500;
  color: var(--c-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-right: 8px;
}

.btn-primary {
  display: inline-block;
  background: var(--c-ink);
  color: var(--c-bg);
  border: none;
  padding: 18px 40px;
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease;
  margin-bottom: 40px;
  width: 100%;
  max-width: 320px;
}
.btn-primary:hover { background: var(--c-accent); }

.product-meta {
  border-top: 1px solid var(--c-line);
  padding-top: 28px;
  margin-bottom: 32px;
}
.product-meta dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px 24px;
  margin: 0;
  font-size: 13px;
}
.product-meta dt {
  color: var(--c-muted);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}
.product-meta dd {
  margin: 0;
  color: var(--c-ink);
  font-weight: 400;
}
.product-meta code {
  font-family: "SFMono-Regular", "Menlo", Consolas, monospace;
  background: var(--c-soft);
  padding: 3px 10px;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--c-ink);
}

.product-description {
  border-top: 1px solid var(--c-line);
  padding-top: 28px;
}
.product-description h3 {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 0 0 14px;
  font-weight: 500;
  font-family: var(--f-sans);
}
.product-description p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-ink);
  margin: 0;
  font-weight: 400;
}

/* ==================== Footer ==================== */
.site-footer {
  border-top: 1px solid var(--c-line);
  padding: 60px 0 40px;
  background: var(--c-bg);
  margin-top: 40px;
}
.site-footer .copy {
  font-family: var(--f-serif);
  font-size: 18px;
  color: var(--c-ink);
  margin: 0 0 8px;
}
.site-footer .small {
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: 0.04em;
  margin: 0;
}
.site-footer .small a { color: var(--c-muted); border-bottom: 1px solid var(--c-line); }
.site-footer .small a:hover { color: var(--c-accent); }

/* ==================== Snipcart theme overrides (subtle integration) ==================== */
.snipcart-items-count {
  display: inline-block;
  min-width: 18px;
  text-align: center;
  margin-left: 6px;
  font-weight: 500;
}

/* ==================== Variant selector (Stokke-style chips) ==================== */
.variant-selector {
  margin: 0 0 28px;
  padding: 0 0 4px;
}
.variant-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 0 0 12px;
  font-weight: 500;
}
.variant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.variant-chip {
  display: inline-block;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-ink);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.variant-chip:hover {
  border-color: var(--c-ink);
  color: var(--c-ink);
  text-decoration: none;
}
.variant-chip.is-current {
  background: var(--c-ink);
  color: var(--c-bg);
  border-color: var(--c-ink);
  cursor: default;
}

.current-variant-label {
  font-size: 13px;
  color: var(--c-muted);
  margin: 0 0 24px;
  letter-spacing: 0.02em;
}
.current-variant-label strong {
  font-weight: 500;
  color: var(--c-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-right: 10px;
}

/* variant-count pill in homepage cards */
.variant-count {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  border: 1px solid var(--c-line);
}
