/* Paid Anyway — Store Styles */

/* ============================================
   TOKENS — match landing page design system
   ============================================ */
:root {
  --black: #0a0a0a;
  --off-black: #141414;
  --dark-gray: #1a1a1a;
  --mid-gray: #2a2a2a;
  --gold: #c9a84c;
  --gold-light: #e8d48b;
  --white: #f5f0e8;
  --cream: #e8e0d0;
  --text-muted: #8a8278;
  --text-dim: #555048;
  --error: #c94c4c;
  --success: #4c9c6e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ============================================
   LAYOUT
   ============================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.05em;
}

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

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

.cart-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--gold);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s;
  border-radius: 2px;
}

.cart-btn:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }

.cart-count {
  background: var(--gold);
  color: var(--black);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
}

/* ============================================
   SHOP HERO
   ============================================ */
.shop-hero {
  padding: 9rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.shop-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.shop-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.shop-hero h1 span { color: var(--gold); }

.shop-hero p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.products-section { padding: 3rem 0 5rem; }

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(201, 168, 76, 0.15);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--off-black);
  border: 1px solid rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.product-card:hover {
  border-color: rgba(201, 168, 76, 0.2);
  transform: translateY(-3px);
}

.product-image-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--dark-gray);
  position: relative;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image-wrap img { transform: scale(1.04); }

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  background: var(--gold);
  color: var(--black);
}

.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.product-category {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.product-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.product-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
}

.product-price {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.4rem 0.9rem;
  transition: all 0.2s;
}

.product-link:hover { color: var(--gold); border-color: rgba(201, 168, 76, 0.3); }

/* ============================================
   PRODUCT DETAIL
   ============================================ */
.product-detail { min-height: 100vh; padding: 8rem 0 4rem; }

.product-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

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

.product-gallery {
  aspect-ratio: 1;
  background: var(--off-black);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
}

.product-gallery img { width: 100%; height: 100%; object-fit: cover; }

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

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--gold); }

.detail-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.detail-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.detail-price {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.detail-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 420px;
}

.size-selector { margin-bottom: 1.5rem; }

.size-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: block;
}

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

.size-btn {
  background: var(--dark-gray);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.15s;
  min-width: 48px;
  text-align: center;
}

.size-btn:hover, .size-btn.active {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.size-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.qty-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.qty-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.qty-controls {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.qty-btn {
  background: var(--dark-gray);
  border: none;
  color: var(--white);
  width: 36px;
  height: 36px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.qty-btn:hover { background: var(--mid-gray); }

.qty-value {
  width: 48px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  border-left: 1px solid rgba(255,255,255,0.1);
  border-right: 1px solid rgba(255,255,255,0.1);
  line-height: 36px;
}

.add-to-cart-btn {
  width: 100%;
  background: var(--gold);
  color: var(--black);
  border: none;
  padding: 1rem 2rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
  transition: all 0.2s;
  margin-bottom: 0.75rem;
}

.add-to-cart-btn:hover { background: var(--gold-light); transform: translateY(-1px); }
.add-to-cart-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.out-of-stock-msg {
  font-size: 0.75rem;
  color: var(--error);
  text-align: center;
}

.stock-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.5rem;
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-page { min-height: 100vh; padding: 8rem 0 4rem; }

.cart-page h1 {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
}

.cart-empty {
  text-align: center;
  padding: 6rem 0;
}

.cart-empty h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.cart-empty p { color: var(--text-muted); margin-bottom: 2rem; }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
}

.cart-items { display: flex; flex-direction: column; gap: 0.75rem; }

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 1rem;
  align-items: center;
  background: var(--off-black);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 1rem;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  background: var(--dark-gray);
}

.cart-item-info h3 {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.cart-item-info p { font-size: 0.75rem; color: var(--text-muted); }

.cart-item-price {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  white-space: nowrap;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
}

.cart-item-remove:hover { color: var(--error); }

.cart-summary {
  background: var(--off-black);
  border: 1px solid rgba(201, 168, 76, 0.1);
  padding: 1.75rem;
  position: sticky;
  top: 6rem;
}

.cart-summary h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.summary-line .label { color: var(--text-muted); }
.summary-line .value { font-weight: 600; }

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.email-input {
  width: 100%;
  background: var(--dark-gray);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}

.email-input:focus { outline: none; border-color: rgba(201, 168, 76, 0.4); }
.email-input::placeholder { color: var(--text-dim); }

.checkout-btn {
  width: 100%;
  background: var(--gold);
  color: var(--black);
  border: none;
  padding: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
  margin-top: 1rem;
  transition: background 0.2s;
}

.checkout-btn:hover { background: var(--gold-light); }

.secure-note {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.75rem;
}

/* ============================================
   CHECKOUT RESULT PAGES
   ============================================ */
.checkout-page {
  min-height: 100vh;
  padding: 8rem 0 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.checkout-page h1 {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.checkout-page .lead {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 420px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.cta-link {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  padding: 0.9rem 2.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.2s;
}

.cta-link:hover { background: var(--gold-light); }

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

.error-page h1 {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.error-page p { color: var(--text-muted); margin-bottom: 2rem; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 2.5rem 0;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold);
}

.footer-copy { font-size: 0.75rem; color: var(--text-dim); }

/* ============================================
   LOADING SPINNER
   ============================================ */
.btn-loading { position: relative; pointer-events: none; opacity: 0.75; }
.btn-loading::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* ============================================
   SUCCESS CHECKMARK ANIMATION
   ============================================ */
.check-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 2rem;
}

.check-circle circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-linecap: round;
  animation: dash 0.6s ease forwards;
}

@keyframes dash {
  to { stroke-dashoffset: 0; }
}