@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --primary: #6DBE2E;
  --bg: #0D0D0D;
  --surface: #1A1A1A;
  --accent: #FFD700;
  --text: #F5F5F5;
  --muted: #888888;
  --glow: 0 0 12px #6DBE2E, 0 0 24px rgba(109,190,46,0.4);
  --glow-sm: 0 0 8px rgba(109,190,46,0.5);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(109,190,46,0.2);
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 40px;
  filter: drop-shadow(0 0 8px rgba(109,190,46,0.7));
}

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

nav a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover { color: var(--primary); }

.cart-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  position: relative;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.cart-btn:hover { color: var(--primary); }

.cart-btn svg { width: 22px; height: 22px; }

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--primary);
  color: #000;
  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.visible { display: flex; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(13,13,13,0.98);
  border-bottom: 1px solid rgba(109,190,46,0.2);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 99;
}

.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 4rem 1.5rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1a05 0%, #0D0D0D 40%, #051a05 70%, #0a0a00 100%);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' 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.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.9;
  color: var(--text);
  text-shadow: 0 0 40px rgba(109,190,46,0.3);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

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

.hero p {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #000;
  box-shadow: var(--glow);
}

.btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 0 20px #6DBE2E, 0 0 40px rgba(109,190,46,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: var(--glow-sm);
}

.btn-outline:hover {
  background: var(--primary);
  color: #000;
  box-shadow: var(--glow);
  transform: scale(1.03);
}

/* ── SECTION ── */
.section {
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.section-title span { color: var(--primary); }

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--primary);
  box-shadow: var(--glow-sm);
  margin-bottom: 2.5rem;
}

/* ── PRODUCT GRID ── */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.05);
  border-left: 3px solid var(--primary);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.product-card:hover {
  transform: scale(1.03);
  box-shadow: var(--glow);
}

.product-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #111;
}

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

.product-card-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.product-card-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.color-swatches {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.color-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
}

.color-swatch:hover,
.color-swatch.active { border-color: var(--primary); }

.btn-add-cart {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--primary);
  color: #000;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: var(--glow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.btn-add-cart:hover {
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

/* ── SKELETON ── */
.skeleton {
  background: linear-gradient(90deg, #1A1A1A 25%, #222 50%, #1A1A1A 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 2px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.05);
  border-left: 3px solid rgba(109,190,46,0.3);
  overflow: hidden;
}

.skeleton-img {
  width: 100%;
  aspect-ratio: 1;
}

.skeleton-body { padding: 1rem; }

.skeleton-line {
  height: 14px;
  margin-bottom: 10px;
  border-radius: 4px;
}

/* ── DRAWER (product detail) ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.overlay.open { opacity: 1; pointer-events: all; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 95vw);
  background: var(--surface);
  border-left: 1px solid rgba(109,190,46,0.2);
  z-index: 201;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}

.drawer-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}

.drawer-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.drawer-close:hover { color: var(--text); }

.drawer-body { padding: 1.5rem; flex: 1; }

.drawer-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 1.25rem;
  background: #111;
}

.drawer-name {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.drawer-price {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.drawer-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.drawer-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.drawer-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.drawer-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}

.drawer-swatch:hover { transform: scale(1.1); }
.drawer-swatch.active { border-color: var(--primary); }

.size-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.size-btn {
  padding: 0.4rem 0.875rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.size-btn:hover { border-color: var(--primary); }
.size-btn.active { border-color: var(--primary); background: rgba(109,190,46,0.1); color: var(--primary); }

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

.qty-btn {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-btn:hover { background: rgba(109,190,46,0.15); border-color: var(--primary); }
.qty-display { font-weight: 700; min-width: 2rem; text-align: center; }

/* ── CART SIDEBAR ── */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 95vw);
  background: #111;
  border-left: 1px solid rgba(109,190,46,0.2);
  z-index: 201;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  background: #111;
  z-index: 1;
}

.cart-header h2 {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
}

.cart-items { flex: 1; padding: 1rem 1.5rem; }

.cart-empty {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
  font-size: 0.95rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  flex-shrink: 0;
  background: #222;
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-meta { color: var(--muted); font-size: 0.8rem; margin-bottom: 0.5rem; }

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-qty-btn {
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-qty-btn:hover { border-color: var(--primary); }
.cart-qty-val { font-size: 0.85rem; font-weight: 600; min-width: 1.5rem; text-align: center; }

.cart-item-remove {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 2px;
  transition: color 0.2s;
}

.cart-item-remove:hover { color: #ff4444; }

.cart-item-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  white-space: nowrap;
}

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #111;
  position: sticky;
  bottom: 0;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.cart-note {
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

/* ── ABOUT PAGE ── */
.about-hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1a05 0%, #0D0D0D 50%, #0a0a00 100%);
}

.about-hero-content { position: relative; z-index: 1; }

.about-hero h1 {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(3rem, 9vw, 7rem);
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.about-hero h1 span { color: var(--primary); }

.about-hero p {
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.about-section {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.about-section + .about-section {
  padding-top: 0;
}

.about-section h2 {
  font-family: 'Bebas Neue', cursive;
  font-size: 2rem;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-section p {
  color: #ccc;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.connect-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.social-icon {
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid rgba(109,190,46,0.3);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.social-icon:hover {
  background: rgba(109,190,46,0.1);
  box-shadow: var(--glow-sm);
  color: var(--primary);
}

.social-icon svg { width: 20px; height: 20px; }

/* ── SUCCESS PAGE ── */
.success-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.success-content {
  max-width: 520px;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: rgba(109,190,46,0.1);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: var(--glow-sm);
}

.success-icon svg { width: 36px; height: 36px; color: var(--primary); }

.success-content h1 {
  font-family: 'Bebas Neue', cursive;
  font-size: 3rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.success-content p { color: var(--muted); margin-bottom: 2rem; line-height: 1.7; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

footer .footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

footer .social-row {
  display: flex;
  gap: 1rem;
}

/* ── TOAST ── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--surface);
  border: 1px solid rgba(109,190,46,0.4);
  color: var(--text);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--glow-sm);
  animation: slideUp 0.3s ease;
  max-width: 320px;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: flex; }
  header { padding: 0 1rem; }
}

@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}
