/* Home page enhancements for PrintShirtLab */

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(150%) blur(8px);
  background: color-mix(in oklab, var(--color-background) 82%, transparent);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-4);
}
.brand-link {
  font-weight: 900;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  color: var(--color-text);
}
.primary-nav { position: relative; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
}
.nav-toggle:focus-visible { box-shadow: var(--ring-primary); }
.nav-toggle-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-text);
  margin: 4px 2px;
  border-radius: 2px;
}
.nav-list { display: flex; gap: var(--space-6); align-items: center; }
.nav-list a { color: var(--color-text); }
.nav-list a:hover { text-decoration: underline; }
.header-cta { display: flex; align-items: center; gap: var(--space-3); }
.cart-link { display: inline-flex; align-items: center; gap: 6px; color: var(--color-text); }
.cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--color-danger); color: #fff; border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 800;
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { left: 16px; top: 16px; width: auto; height: auto; padding: 8px 12px; background: var(--color-primary); color: #fff; border-radius: var(--radius-sm); z-index: 100; }

/* Hero */
.hero {
  background: linear-gradient(135deg, color-mix(in oklab, var(--color-primary) 12%, transparent), transparent),
              radial-gradient(1200px 400px at 10% -10%, rgba(20,97,255,0.12), transparent 60%);
  padding-block: clamp(40px, 8vw, 100px);
}
.hero-inner { text-align: center; }
.hero .lead { font-size: var(--text-lg); color: var(--gray-700); max-width: 70ch; margin-inline: auto; }
.search { margin-top: var(--space-6); display: grid; grid-template-columns: 1fr auto; gap: var(--space-3); align-items: start; }
.search-input { background: var(--color-surface); }
.search-help { color: var(--gray-500); grid-column: 1 / -1; }
.search-suggestions { grid-column: 1 / -1; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); display: none; max-height: 280px; overflow: auto; }
.search-suggestions.show { display: block; }
.search-suggestions li { padding: 10px 14px; border-bottom: 1px solid var(--gray-100); }
.search-suggestions li:last-child { border-bottom: 0; }
.search-suggestions button { width: 100%; text-align: left; background: transparent; border: 0; padding: 0; color: var(--color-text); }

/* Sections */
.section { padding-block: clamp(40px, 6vw, 96px); }
.section-head { margin-bottom: var(--space-6); }
.section-head p { color: var(--gray-600); }

.collection-card img, .trend-card img { border-radius: var(--radius-lg); margin-bottom: var(--space-4); }
.card .card-body { margin-top: var(--space-2); }

/* Promo */
.promo-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: center; }
.promo-media img { border-radius: var(--radius-lg); }
.promo-content .countdown { font-weight: 900; font-size: var(--text-3xl); color: var(--color-primary); margin: var(--space-3) 0; }
.promo-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* Recommendations */
.recommendations .card { display: grid; gap: var(--space-2); }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.price { font-weight: 900; }
.badges { display: inline-flex; gap: 6px; }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border: 1px solid var(--color-border); border-radius: var(--radius-full); font-size: var(--text-xs); color: var(--gray-700); }

/* Palette */
.palette-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-6); align-items: center; }
.palette-media img { border-radius: var(--radius-lg); }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.swatch { background: var(--sw); color: #000; min-height: 72px; border-radius: var(--radius-md); display: grid; place-items: end start; padding: var(--space-3); box-shadow: var(--shadow-sm); }
.swatch span { background: rgba(255,255,255,0.8); border-radius: var(--radius-sm); padding: 2px 6px; font-weight: 700; }

/* Reviews */
.review .stars { color: var(--color-warning); font-weight: 900; letter-spacing: 1px; margin-bottom: var(--space-2); }
.review footer { color: var(--gray-600); margin-top: var(--space-2); }

/* Brand */
.brand-wrap { padding: clamp(20px, 2vw, 28px); }

/* Social */
.social-links { display: inline-flex; gap: var(--space-5); margin-top: var(--space-3); }
.social-links a { color: var(--color-text); font-weight: 700; }

/* Blog */
.blog-card { display: grid; gap: var(--space-2); border-style: dashed; }

/* Newsletter */
.newsletter-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-6); align-items: center; }
.newsletter-form { display: grid; grid-template-columns: 1fr auto; gap: var(--space-3); align-items: center; }
.newsletter-feedback { color: var(--color-success); min-height: 1.25rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--color-border); padding-block: var(--space-10); background: color-mix(in oklab, var(--color-surface) 90%, transparent); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); }
.footer-title { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.footer-nav ul li, .footer-legal ul li { margin-bottom: 8px; }
.footer-news-form { display: grid; grid-template-columns: 1fr auto; gap: var(--space-3); }
.footer-bottom { margin-top: var(--space-8); border-top: 1px solid var(--color-border); padding-top: var(--space-6); color: var(--gray-600); }

/* Cookie banner */
.cookie-banner { position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: none; }
.cookie-banner.show { display: block; }
.cookie-inner { margin: var(--space-4); padding: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); display: grid; grid-template-columns: 1fr auto; gap: var(--space-4); align-items: center; }
.cookie-actions { display: inline-flex; gap: var(--space-3); }
.cookie-link { color: var(--gray-700); }

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-wrap, .palette-wrap, .promo-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 840px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: absolute; right: 0; top: calc(100% + 8px);
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-4);
    display: none; flex-direction: column; gap: var(--space-3);
    min-width: 220px;
  }
  .primary-nav.open .nav-list { display: flex; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .search { grid-template-columns: 1fr; }
  .newsletter-form { grid-template-columns: 1fr; }
}

