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

:root {
  --crimson: #8B0000;
  --gold: #D4A017;
  --cream: #FFF8F0;
  --ink: #1A1A1A;
  --warm-gray: #2A2420;
  --blush: #F5E6D8;
  --crimson-light: #A52A2A;
  --gold-dim: rgba(212,160,23,0.3);
  --text-muted: rgba(255,248,240,0.55);
  --text-dim: rgba(255,248,240,0.35);
  --border-subtle: rgba(255,248,240,0.08);
  --border-gold: rgba(212,160,23,0.15);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--ink);
  color: var(--cream);
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cream); }

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(26,26,26,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

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

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

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

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

.cart-link {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--crimson);
  color: var(--cream);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.cart-count.has-items { display: flex; }

/* ─── PAGE WRAPPER ─── */
.page {
  padding-top: 80px;
  min-height: 100vh;
}

/* ─── SECTION HEADERS ─── */
.section-header {
  text-align: center;
  padding: 4rem 2rem 3rem;
}

.section-header h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-label {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

/* ─── PRODUCT GRID ─── */
.products-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.product-card {
  background: rgba(255,248,240,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover {
  background: rgba(255,248,240,0.06);
  border-color: var(--gold-dim);
  transform: translateY(-6px);
  color: inherit;
}

.product-card-image {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139,0,0,0.08), rgba(212,160,23,0.04));
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

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

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

.product-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(26,26,26,0.8), transparent);
  z-index: 1;
}

.product-card-body {
  padding: 1.5rem;
}

.product-card-body h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 0.4rem;
}

.product-card-body .tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.product-card-body .price {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--crimson);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--crimson-light);
  transform: translateY(-2px);
  color: var(--cream);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: #E8B520;
  transform: translateY(-2px);
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--border-gold);
}

.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(212,160,23,0.08);
  color: var(--cream);
}

.btn-sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 1.2rem 3.5rem;
  font-size: 0.9rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ─── SIZE SELECTOR ─── */
.size-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.5rem;
}

.size-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
}

.size-btn:hover {
  border-color: var(--gold);
  background: rgba(212,160,23,0.08);
}

.size-btn.selected {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

/* ─── QUANTITY ─── */
.qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-gold);
  border-radius: 2px;
  overflow: hidden;
  width: fit-content;
}

.qty-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--cream);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}

.qty-btn:hover { background: rgba(212,160,23,0.1); }

.qty-value {
  width: 50px;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--cream);
  border-left: 1px solid var(--border-gold);
  border-right: 1px solid var(--border-gold);
  padding: 0.5rem 0;
}

/* ─── FOOTER ─── */
.store-footer {
  padding: 3rem 2rem;
  text-align: center;
  background: var(--ink);
  border-top: 1px solid var(--border-subtle);
}

.store-footer .footer-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

.store-footer .footer-location {
  font-size: 0.8rem;
  color: rgba(255,248,240,0.15);
  margin-top: 0.5rem;
}

/* ─── LOADING ─── */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-gold);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── EMPTY STATE ─── */
.empty-state {
  text-align: center;
  padding: 6rem 2rem;
}

.empty-state .icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

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

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

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--gold);
  color: var(--ink);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 1rem 2rem;
  border-radius: 4px;
  z-index: 1000;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.75rem; }
  .products-grid { padding: 0 1rem 4rem; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
  .product-card-image { height: 200px; font-size: 3.5rem; }
  .product-card-body { padding: 1rem; }
  .section-header { padding: 3rem 1.5rem 2rem; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .nav-brand { font-size: 0.9rem; }
}
