/* BareHonest — Store Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #0a0a0a;
  --cream: #f5f0e8;
  --rust: #c45a3c;
  --sage: #7a8c6e;
  --warm-gray: #3d3a36;
  --light-gray: #e8e4dc;
  --card-bg: #111110;
}

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--black);
  color: var(--cream);
  overflow-x: hidden;
}

.grain {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1000;
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 1.25rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 240, 232, 0.06);
  z-index: 100;
}

.nav-logo {
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream); text-decoration: none;
}

.nav-logo span { color: var(--rust); }

.nav-links {
  display: flex; gap: 2rem; list-style: none;
}

.nav-links a {
  color: var(--cream); text-decoration: none;
  font-size: 0.85rem; letter-spacing: 0.05em;
  opacity: 0.6; transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 1; }

/* Page wrapper */
.page { min-height: 100vh; padding-top: 70px; }

/* Hero / Header */
.store-header {
  padding: 5rem 2rem 3rem;
  text-align: center;
  position: relative;
}

.store-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(196, 90, 60, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.store-header h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700; line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.store-header p {
  color: rgba(245, 240, 232, 0.5);
  font-size: 1rem; max-width: 480px;
  margin: 0 auto; line-height: 1.6;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid rgba(245, 240, 232, 0.06);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.2s, transform 0.2s;
}

.product-card:hover {
  border-color: rgba(196, 90, 60, 0.3);
  transform: translateY(-2px);
}

.product-image {
  width: 100%; aspect-ratio: 1;
  background: #1a1918;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

.product-image-placeholder {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.15);
}

.product-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--rust); color: white;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.6rem; border-radius: 2px;
}

.product-info { padding: 1.25rem; }

.product-category {
  font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--sage);
  margin-bottom: 0.4rem;
}

.product-name {
  font-size: 1.1rem; font-weight: 600;
  margin-bottom: 0.5rem; line-height: 1.2;
}

.product-price {
  font-size: 1.25rem; font-weight: 700;
  color: var(--cream);
}

.product-price sup {
  font-size: 0.6em; vertical-align: super;
  font-weight: 400; opacity: 0.5;
}

/* Product Detail */
.product-detail {
  max-width: 1100px; margin: 0 auto;
  padding: 3rem 2rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}

@media (max-width: 700px) {
  .product-detail { grid-template-columns: 1fr; gap: 2rem; }
}

.product-detail-image {
  aspect-ratio: 1;
  background: var(--card-bg);
  border: 1px solid rgba(245, 240, 232, 0.06);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}

.product-detail-info { padding-top: 1rem; }

.product-detail-info .product-category {
  font-size: 0.75rem; margin-bottom: 0.75rem;
}

.product-detail-info h1 {
  font-size: 2rem; font-weight: 700;
  line-height: 1.1; margin-bottom: 1rem;
}

.product-detail-info .price {
  font-size: 2rem; font-weight: 700;
  margin-bottom: 2rem; display: flex; align-items: baseline; gap: 0.5rem;
}

.product-detail-info .price sup {
  font-size: 0.5em; vertical-align: super; font-weight: 400;
}

.product-detail-info .description {
  color: rgba(245, 240, 232, 0.6);
  line-height: 1.7; margin-bottom: 2rem;
}

/* Size selector */
.size-label {
  font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 0.75rem;
  color: rgba(245, 240, 232, 0.5);
}

.size-options { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }

.size-btn {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(245, 240, 232, 0.15);
  background: transparent; color: var(--cream);
  font-family: inherit; font-size: 0.85rem;
  cursor: pointer; border-radius: 4px;
  transition: border-color 0.15s, background 0.15s;
}

.size-btn:hover { border-color: rgba(245, 240, 232, 0.4); }
.size-btn.selected {
  border-color: var(--rust);
  background: rgba(196, 90, 60, 0.15);
  color: var(--rust);
}

/* Buy button */
.buy-btn {
  width: 100%; padding: 1rem;
  background: var(--rust); color: white;
  border: none; font-family: inherit;
  font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; border-radius: 4px;
  transition: background 0.2s, transform 0.1s;
}

.buy-btn:hover { background: #b05033; transform: translateY(-1px); }
.buy-btn:active { transform: translateY(0); }

/* Success state */
.success-banner {
  background: rgba(122, 140, 110, 0.15);
  border: 1px solid rgba(122, 140, 110, 0.3);
  border-radius: 6px; padding: 1.25rem;
  text-align: center; margin-bottom: 2rem;
}

.success-banner h2 { color: var(--sage); font-size: 1.1rem; margin-bottom: 0.3rem; }
.success-banner p { color: rgba(245, 240, 232, 0.5); font-size: 0.85rem; }

/* Error page */
.error-page {
  min-height: 100vh; display: flex;
  flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 2rem;
}

.error-page h1 { font-size: 4rem; font-weight: 700; margin-bottom: 1rem; color: var(--rust); }
.error-page p { color: rgba(245, 240, 232, 0.5); margin-bottom: 2rem; }

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--rust); color: white;
  text-decoration: none; border-radius: 4px;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}

.btn-primary:hover { background: #b05033; }

/* Footer */
.footer {
  border-top: 1px solid rgba(245, 240, 232, 0.06);
  padding: 2rem; text-align: center;
  color: rgba(245, 240, 232, 0.3);
  font-size: 0.8rem;
}