/* ============================================================
   Walkout Song — Apparel Pilot Page Styles
   File: Commerce/apparel-styles.css
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --bg: #eef4ff;
  --bg-soft: #ddeeff;
  --ink: #1a1a1a;
  --muted: #4f5c6b;
  --line: #b3d4ff;
  --panel: rgba(255, 255, 255, 0.9);
  --accent: #1e90ff;
  --accent-dark: #1565c0;
  --shadow: 0 18px 40px rgba(26, 26, 26, 0.16);
  --card-radius: 20px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 14%, rgba(255, 255, 255, 0.7) 0 140px, transparent 150px),
    radial-gradient(circle at 92% 86%, rgba(255, 255, 255, 0.62) 0 170px, transparent 180px),
    linear-gradient(165deg, var(--bg), var(--bg-soft));
}

img {
  display: block;
  max-width: 100%;
}

/* ---------- Layout Helpers ---------- */
.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ---------- Site Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(16, 31, 46, 0.1);
  background: rgba(220, 238, 255, 0.85);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Archivo Black", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.logo-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 999px;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: #fff;
  background: var(--accent);
  transform: translateY(-1px);
}

/* ---------- Page Hero ---------- */
.page-hero {
  padding: 56px 0 30px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-size: 0.82rem;
}

.page-hero h1 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 14px;
}

.page-hero .lead {
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
  max-width: 58ch;
}

/* ---------- Pilot Banner ---------- */
.pilot-banner {
  margin: 0 0 40px;
  padding: 14px 24px;
  background: rgba(30, 144, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--accent-dark);
  font-weight: 600;
}

.pilot-banner strong {
  font-weight: 800;
}

/* ---------- Product Grid ---------- */
.products-section {
  padding: 20px 0 80px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

/* ---------- Product Card ---------- */
.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 50px rgba(26, 26, 26, 0.2);
}

/* ---------- Product Image Area ---------- */
.product-img-wrap {
  background: #f5f9ff;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.04);
}

/* ---------- Product Body ---------- */
.product-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.size-field {
  margin-top: auto;
}

.product-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(30, 144, 255, 0.08);
  width: fit-content;
}

.product-name {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: 1.2rem;
  line-height: 1.2;
}

.product-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ---------- Size Selector ---------- */
.size-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}

.size-select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231e90ff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.size-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.18);
}

.size-select:hover {
  border-color: var(--accent);
}

/* ---------- Add to Cart Button ---------- */
.btn-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(110deg, var(--accent), #56b4ff);
  box-shadow: 0 10px 22px rgba(30, 144, 255, 0.34);
  transition: transform 220ms ease, box-shadow 220ms ease;
  letter-spacing: 0.02em;
}

.btn-cart:hover,
.btn-cart:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(21, 101, 192, 0.44);
}

.btn-cart:active {
  transform: translateY(0);
}

/* ---------- Coming Soon Badge ---------- */
.coming-soon-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(110deg, var(--accent), #56b4ff);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .nav-links a {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .page-hero {
    padding: 36px 0 20px;
  }
}
