/* styles.css — shared across all pages */
:root{
  --bg:#0b0f17;
  --card:#121826;
  --text:#e6edf3;
  --muted:#9fb0c0;
  --accent:#6dc5ff;
  --accent-2:#42f5b0;
  --border:#223047;
  --shadow:0 10px 30px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, Noto Sans, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 10% 0%, #0e1626 0%, var(--bg) 45%);
  color:var(--text);
  line-height:1.6;
}

/* Layout */
.container{ max-width:1100px; margin:0 auto; padding:20px; }

/* Header / Nav */
.header{
  position:sticky; top:0; z-index:10;
  border-bottom:1px solid var(--border);
  backdrop-filter: blur(6px);
  background: rgba(11,15,23,.75);
}
.nav{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0; }
.brand{ display:flex; align-items:center; gap:12px; font-weight:700; letter-spacing:.4px; }
.brand .logo{
  width:36px; height:36px; border-radius:12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow);
}
.nav a{
  color:var(--muted); text-decoration:none; padding:8px 12px;
  border-radius:10px; transition:.18s ease;
}
.nav a:hover{ color:var(--text); background:#0f172a; }
.nav a.active{
  color:#091218; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight:700;
}

/* Hero / Cards */
.hero{
  display:grid; grid-template-columns:1.2fr 1fr; gap:24px; align-items:center; margin-top:28px;
}
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border:1px solid var(--border);
  border-radius:18px; padding:22px; box-shadow: var(--shadow);
}

/* Typography */
h1,h2{ line-height:1.2; margin:0 0 8px; }
h1{ font-size: clamp(28px, 3.6vw, 44px); }
h2{ font-size: clamp(22px, 2.4vw, 28px); }
p.lead{ color:var(--muted); font-size:clamp(16px,1.6vw,18px); margin-top:6px; }

/* Features grid */
.grid{ display:grid; gap:18px; grid-template-columns:repeat(3,1fr); margin-top:22px; }
.feature{ padding:18px; border-radius:14px; border:1px dashed var(--border); }
.feature h3{ margin:0 0 6px; font-size:18px; }
.feature p{ margin:0; color:var(--muted); }

/* Footer */
.footer{
  border-top:1px solid var(--border);
  margin-top:40px;
  color:var(--muted);
}
.footer .row{ display:flex; gap:16px; justify-content:space-between; align-items:center; padding:26px 0; }
.footer a{ color:var(--muted); text-decoration:none; }
.footer a:hover{ color:var(--text); }

/* Buttons / Badges */
.button{
  display:inline-block; margin-top:6px; padding:10px 14px; border-radius:12px;
  border:1px solid var(--border); text-decoration:none; color:var(--text);
}
.button:hover{ background:#0f172a; }
.badge{ font-size:12px; border:1px solid var(--border); border-radius:999px; padding:4px 10px; color:var(--muted); }

/* ===== Eco Socks product grid ===== */
.product-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-block: 2rem;
}
.product-card{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 1rem;
  transition: transform .15s ease, box-shadow .2s ease;
  text-align: center;
}
.product-card:hover{ transform: translateY(-2px); }
.product-card img{
  width: 100%;
  height: 180px;
  object-fit: cover;           /* change to contain if you hate cropping */
  border-radius: 12px;
  background:#0f172a;
}
.product-card h3{ font-size: 1.05rem; margin: 0.75rem 0; }
.btn{
  display:inline-block;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(90deg, #5eead4, #60a5fa);
  color: #0b1220;
  font-weight: 700;
}

/* Responsive tweaks */
@media (max-width: 860px){
  .hero{ grid-template-columns:1fr; }
  .grid{ grid-template-columns:1fr; }
}
@media (max-width: 600px){
  .product-card img{ height:150px; }
}

/* ===== Cart & accessibility niceties ===== */
#cart-link{ font-weight:700; }
.btn:disabled{ opacity:.7; cursor:default; }
.btn:focus-visible,
.nav a:focus-visible,
.button:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
