/* ═══════════════════════════════════════════════════════════
   3G STORE — Gangsta Gorilla Gwap
   Brand: Black + Gold + Gorilla Energy
   ═══════════════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #0a0a0a;
  --dark: #111111;
  --dark-2: #161616;
  --dark-3: #1a1a1a;
  --gold: #c9a227;
  --gold-light: #e8c84a;
  --gold-dim: rgba(201, 162, 39, 0.15);
  --gold-border: rgba(201, 162, 39, 0.12);
  --white: #f5f5f0;
  --gray: #888;
  --gray-light: #aaa;
  --green: #1db954;
  --red: #e53e3e;
}

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

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 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.9' 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;
}

a { color: inherit; text-decoration: none; }

/* ─── Navigation ─────────────────────────────────────────── */

.store-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-brand-icon {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  padding: 0.2rem 0.5rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

.nav-brand-text {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.7;
}

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

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.2s;
}

.nav-link:hover { color: var(--white); }

.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--white);
}

.cart-count {
  background: var(--gold);
  color: var(--black);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -6px;
  right: -10px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s;
}

.cart-count.visible {
  opacity: 1;
  transform: scale(1);
}

/* ─── Shop Hero ──────────────────────────────────────────── */

.shop-hero {
  padding: 8rem 2rem 3rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.06) 0%, transparent 60%);
}

.shop-hero-inner { max-width: 600px; margin: 0 auto; }

.shop-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.shop-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}

.shop-hero-sub {
  color: var(--gray);
  font-size: 1rem;
  margin-top: 1rem;
  font-weight: 300;
  line-height: 1.6;
}

/* ─── Product Grid ───────────────────────────────────────── */

.shop-grid-section {
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  display: block;
  background: var(--dark);
  border: 1px solid var(--gold-border);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(201, 162, 39, 0.08);
}

.product-image {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-2);
  position: relative;
  overflow: hidden;
}

.product-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(201, 162, 39, 0.04) 0%, transparent 70%);
}

.product-image[data-category="tops"] { background: linear-gradient(135deg, var(--dark-2), #131310); }
.product-image[data-category="hoodies"] { background: linear-gradient(135deg, #0f0f0f, var(--dark-2)); }
.product-image[data-category="accessories"] { background: linear-gradient(135deg, var(--dark-2), #121210); }

.product-icon {
  width: 55%;
  height: 55%;
  color: var(--gold);
  opacity: 0.4;
  transition: all 0.4s ease;
}

.product-card:hover .product-icon {
  opacity: 0.7;
  transform: scale(1.05);
}

.product-placeholder {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.2;
}

.product-info {
  padding: 1.25rem;
}

.product-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-tagline {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 0.25rem;
  font-weight: 300;
}

.product-price {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 0.75rem;
}

/* ─── Shop Banner ────────────────────────────────────────── */

.shop-banner {
  padding: 5rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--black), var(--dark), var(--black));
  margin-top: 3rem;
}

.shop-banner-inner { max-width: 500px; margin: 0 auto; }

.banner-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.15;
}

.shop-banner h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
}

.shop-banner h2 span { color: var(--gold); }

.shop-banner p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-top: 0.75rem;
  font-weight: 300;
  line-height: 1.6;
}

/* ─── Product Detail Page ────────────────────────────────── */

.breadcrumb {
  padding: 5.5rem 2rem 0;
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--gray);
}

.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; opacity: 0.4; }

.pdp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.pdp-image {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  border: 1px solid var(--gold-border);
  position: relative;
  overflow: hidden;
}

.pdp-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(201, 162, 39, 0.05) 0%, transparent 70%);
}

.pdp-icon {
  width: 50%;
  height: 50%;
  color: var(--gold);
  opacity: 0.5;
}

.pdp-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(10, 10, 10, 0.8);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--gold-border);
}

.pdp-details { padding-top: 1rem; }

.pdp-category {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.pdp-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}

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

.pdp-description {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 1.25rem;
  font-weight: 300;
}

.pdp-sizes { margin-top: 2rem; }

.pdp-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-light);
  display: block;
  margin-bottom: 0.75rem;
}

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

.size-btn {
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}

.size-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.size-btn.active {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  font-weight: 600;
}

.pdp-actions { margin-top: 2rem; }

.btn-add-to-cart {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--gold);
  color: var(--black);
  border: none;
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-add-to-cart:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-add-to-cart.btn-success {
  background: var(--green);
  color: var(--white);
}

.pdp-features {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.feature-icon {
  color: var(--gold);
  font-size: 0.75rem;
}

/* ─── Related Products ───────────────────────────────────── */

.related-section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 3rem;
}

.related-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--gray-light);
}

/* ─── Cart Page ──────────────────────────────────────────── */

.cart-page {
  padding: 6rem 2rem 4rem;
  max-width: 800px;
  margin: 0 auto;
  min-height: 70vh;
}

.cart-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

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

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

.cart-empty h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.cart-empty p {
  color: var(--gray);
  margin-top: 0.5rem;
  font-weight: 300;
}

.cart-items { margin-top: 2rem; }

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  background: var(--dark);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-image span {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.3;
  font-size: 1.2rem;
}

.cart-item-details { flex: 1; }

.cart-item-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cart-item-size {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 0.2rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: border-color 0.2s;
}

.qty-btn:hover { border-color: var(--gold); color: var(--gold); }

.qty-value {
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-item-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.cart-item-price {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 0.75rem;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.cart-summary {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 0.6rem;
}

.summary-total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.summary-total span:last-child {
  color: var(--gold);
  font-family: 'Syne', sans-serif;
}

.shipping-note {
  font-size: 0.8rem;
  font-style: italic;
}

.summary-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0.75rem 0;
}

.btn-checkout {
  width: 100%;
  padding: 1rem;
  margin-top: 1.5rem;
  background: var(--gold);
  color: var(--black);
  border: none;
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-checkout:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

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

.continue-shopping {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--gray);
  transition: color 0.2s;
}

.continue-shopping:hover { color: var(--gold); }

/* ─── Success Page ───────────────────────────────────────── */

.success-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.success-inner { max-width: 500px; }

.success-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  opacity: 0.2;
}

.success-page h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
}

.success-page h1 span { color: var(--gold); }

.success-message {
  color: var(--gray-light);
  font-size: 1.1rem;
  margin-top: 1rem;
  font-weight: 300;
}

.success-detail {
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* ─── Buttons ────────────────────────────────────────────── */

.btn-gold {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--gold);
  color: var(--black);
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: transparent;
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── Error Page ─────────────────────────────────────────── */

.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 1.5rem;
}

.error-page h1 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

/* ─── Footer ─────────────────────────────────────────────── */

.store-footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 2rem;
}

.footer-inner { max-width: 400px; margin: 0 auto; }

.footer-brand-mark {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.3;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.4;
}

.footer-location {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 0.3rem;
  opacity: 0.5;
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--gray);
  margin-top: 1rem;
  opacity: 0.3;
}

/* ─── Toast Notification ─────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--dark-2);
  border: 1px solid var(--gold);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 999;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 320px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-text {
  font-size: 0.85rem;
  font-weight: 500;
}

.toast-text strong {
  color: var(--gold);
  font-family: 'Syne', sans-serif;
}

.toast-link {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ─── Mobile ─────────────────────────────────────────────── */

@media (max-width: 768px) {
  .store-nav { padding: 0.75rem 1rem; }
  .nav-brand-text { display: none; }
  .nav-links { gap: 1.25rem; }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .pdp {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }

  .pdp-image { aspect-ratio: 1; }

  .cart-item {
    grid-template-columns: 60px 1fr auto;
    gap: 0.75rem;
  }

  .cart-item-image { width: 60px; height: 60px; }

  .cart-page { padding: 5rem 1rem 3rem; }

  .success-actions { flex-direction: column; }
}

@media (max-width: 480px) {
  .shop-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .product-info { padding: 1rem; }
}
