:root {
  --bg: #050505;
  --surface: #121212;
  --surface-2: #1c1c1c;
  --text: #f8f8f8;
  --muted: #a7a7a7;
  --accent: #ffffff;
  --accent-2: #00d4ff;
  --highlight: #ff006e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --glow: 0 0 30px rgba(0, 212, 255, 0.15);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #050505;
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 255, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 0;
}

.brand {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.25s ease, text-shadow 0.25s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-2);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, #000000, #1a1a1a);
  color: #ffffff;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18), 0 0 15px rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.btn-accent:hover {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3), 0 0 25px rgba(0, 212, 255, 0.3);
  border-color: rgba(0, 212, 255, 0.5);
}

.btn-outline {
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
}

.btn-ghost:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.btn-sm {
  padding: 0.75rem 1.2rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 1rem 1.75rem;
}

.section {
  padding: 5rem 0;
}

.page-hero {
  min-height: 46vh;
  display: grid;
  place-items: center;
  padding: 4rem 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.9)), url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: #ffffff;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0.8rem 0 1rem;
  line-height: 1.05;
}

.page-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #000000 0%, #070707 70%, #070707 100%);
  color: #ffffff;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1512436991641-6745cdb1723f?auto=format&fit=crop&w=1500&q=60') center/cover no-repeat;
  opacity: 0.18;
  filter: blur(2px);
  transform: scale(1.02);
}

.hero::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 35%);
  mix-blend-mode: overlay;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 1, 1, 0.12), rgba(3, 3, 3, 0.95));
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
  width: min(1120px, calc(100% - 2rem));
  z-index: 1;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--accent-2);
  margin-bottom: 1rem;
  background: rgba(0, 212, 255, 0.1);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.hero h1,
.story h2,
.product-details h1,
.about-panel h2,
.mission-inner h2,
.page-hero h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0;
}

.hero-tagline {
  margin: 1.2rem 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-text {
  max-width: 540px;
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-media {
  display: grid;
  place-items: center;
}

.media-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: var(--shadow), var(--glow);
  transition: all 0.3s ease;
}

.media-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: var(--shadow), 0 0 40px rgba(0, 212, 255, 0.25);
}

.media-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0,0,0,0.7);
  color: var(--text);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.media-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.media-card:hover img {
  transform: scale(1.03) rotate(0.5deg);
}

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  width: 2rem;
  height: 3.5rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  display: grid;
  place-items: center;
  opacity: 0.85;
}

.scroll-down span {
  width: 0.35rem;
  height: 0.35rem;
  background: var(--text);
  border-radius: 999px;
  animation: scrollBounce 1.4s ease infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(1rem); }
}

.card-grid,
.grid-inner,
.story-grid,
.contact-grid {
  display: grid;
  gap: 2rem;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.product-card,
.shop-card,
.feature-card,
.about-panel,
.story-image,
.product-gallery,
.product-details,
.contact-copy,
.contact-form {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  color: #ffffff;
}

.product-card,
.shop-card {
  overflow: hidden;
  transition: all 0.3s ease;
}

.shop-card {
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.shop-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: var(--shadow), 0 0 20px rgba(0, 212, 255, 0.15);
}

.product-card {
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.product-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
}

.product-card img,
.card-image img,
.shop-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.card-image {
  position: relative;
  overflow: hidden;
}

.card-image img + img {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.shop-card:hover .card-image img + img {
  opacity: 1;
}

.product-card:hover img,
.shop-card:hover img {
  transform: scale(1.08);
}

.product-card .product-copy,
.shop-card .card-copy {
  padding: 1rem;
}

.product-card h3,
.shop-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.shop-card h3 a,
.product-card h3 a {
  color: inherit;
  text-decoration: none;
}

.product-card p,
.shop-card p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 1rem;
}

.product-meta,
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-meta span,
.shop-card span {
  font-size: 1rem;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge.hot {
  background: linear-gradient(135deg, rgba(255, 0, 110, 0.3), rgba(0, 212, 255, 0.2));
  color: #ffffff;
  border: 1px solid rgba(255, 0, 110, 0.4);
  box-shadow: 0 0 12px rgba(255, 0, 110, 0.2);
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--muted);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 212, 255, 0.1);
  border-top: 3px solid var(--accent-2);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-state p {
  margin: 0;
  font-size: 1.1rem;
}

.featured {
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.03), transparent);
}

.featured .card-grid {
  margin-top: 2rem;
  max-width: 100%;
  /* Constrain featured products to prevent overflow */
  grid-template-columns: repeat(auto-fit, minmax(160px, 280px));
  gap: 1.5rem;
  justify-content: center;
}

/* Specific styles for featured product cards to ensure they fit viewport */
.featured .product-card,
.featured .shop-card {
  max-width: 280px;
  width: 100%;
}

/* Ensure featured product images are properly constrained */
.featured .product-card img,
.featured .card-image img,
.featured .shop-card img {
  width: 100%;
  height: auto;
  max-height: 280px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  /* Prevent image overflow */
  max-width: 100%;
}

.story {
  padding-bottom: 6rem;
}

.story-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}

.story-image,
.about-image {
  min-height: 420px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.08);
}

.story-copy,
.about-panel,
.product-details,
.contact-copy,
.contact-form {
  padding: 2rem;
}

.story-copy h2,
.about-panel h2,
.mission-inner h2 {
  font-size: clamp(2.1rem, 3vw, 3rem);
  margin-bottom: 1.25rem;
}

.product-page {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.product-grid:not(.card-grid) {
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-track {
  display: grid;
  gap: 1rem;
}

.carousel-item {
  width: 100%;
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.carousel-item.active {
  opacity: 1;
  transform: translateY(0);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.65);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.carousel-nav.prev { left: 1rem; }
.carousel-nav.next { right: 1rem; }

.product-thumbs {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.85rem;
}

.thumb {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background-size: cover;
  border: 2px solid transparent;
  cursor: pointer;
}

.thumb.active {
  border-color: var(--accent);
}

.price {
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0 1.4rem;
}

.price-zar {
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 0.4rem;
  opacity: 0.9;
}

.product-description,
.product-highlights {
  color: var(--muted);
  line-height: 1.8;
}

.product-highlights {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.product-highlights li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.75rem;
}

.product-highlights li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  color: var(--text);
  margin-bottom: 1rem;
}

textarea {
  resize: vertical;
}

.availability {
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.about-grid,
.contact-grid,
.mission-inner,
.filters-inner {
  display: grid;
  gap: 2rem;
}

.filters-inner {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text);
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(17, 17, 17, 0.95);
  color: #ffffff;
  transform: translateY(-1px);
}

.filter-hint {
  color: #444444;
  font-size: 0.95rem;
}

.product-grid .shop-card {
  overflow: hidden;
}

.shop-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.shop-card .card-copy {
  padding: 1.25rem;
}

.shop-card h3 {
  margin: 0 0 0.45rem;
}

.shop-card span {
  font-weight: 700;
}

.about-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.about-panel,
.contact-form,
.contact-copy,
.mission-panel,
.feature-card {
  overflow: hidden;
}

.mission-panel {
  background: url('https://images.unsplash.com/photo-1491553895911-0055eca6402d?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
  position: relative;
  color: var(--text);
}

.mission-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 7, 0.8);
}

.mission-inner {
  position: relative;
  grid-template-columns: 1.3fr 1fr;
  padding: 4rem;
}

.mission-inner > * {
  position: relative;
}

.mission-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.06);
  padding: 1.6rem;
}

.feature-card h3 {
  margin-top: 0;
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.contact-copy {
  padding: 2rem;
}

.contact-copy h2 {
  margin-bottom: 1.25rem;
}

.contact-details {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-details div {
  display: grid;
  gap: 0.25rem;
}

.contact-details strong {
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

.contact-details span {
  color: var(--muted);
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-socials a {
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}

.form-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: 1.5rem 0;
  background: rgba(10, 10, 10, 0.96);
  border-top: 1px solid rgba(255,255,255,.05);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.social-links,
.footer-inner {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  color: var(--text);
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: #111111;
}

.scroll-top {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  cursor: pointer;
}

.animate-fade-up,
.animate-scale {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s cubic-bezier(0.23, 1, 0.320, 1) forwards;
}

.animate-scale {
  transform: scale(0.96);
  animation-name: scaleUp;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
  0% { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
  50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.5); }
}

@media (max-width: 1024px) {
  .hero-grid,
  .story-grid,
  .about-grid,
  .product-grid,
  .mission-inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .hero-grid {
    gap: 2rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  /* Featured products responsive constraints for mobile */
  .featured .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    padding: 0 1rem;
  }

  .featured .product-card,
  .featured .shop-card {
    max-width: 100%;
  }

  .featured .product-card img,
  .featured .card-image img,
  .featured .shop-card img {
    max-height: 200px;
  }

  .filters-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-grid {
    gap: 2rem;
  }

  .product-thumbs {
    justify-content: center;
  }
}

/* Tablet responsive styles for featured products */
@media (max-width: 1024px) and (min-width: 769px) {
  .featured .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 240px));
    gap: 1.25rem;
  }

  .featured .product-card,
  .featured .shop-card {
    max-width: 240px;
  }

  .featured .product-card img,
  .featured .card-image img,
  .featured .shop-card img {
    max-height: 240px;
  }
}

  .mission-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .hero {
    padding-top: 5rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }
}
