#vanta-bg {
  z-index: -1 !important;
}

html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
}
.navbar {
  background: #000000;
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 999;
}
.navbar a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
}
.hero {
  background: #33333300;
  color: white;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}
.section {
  padding: 60px 20px;
  text-align: center;
}
.section h2, .section h1 {
  font-size: 2em;
  margin-bottom: 10px;
}
.map-container {
  max-width: 800px;
  margin: 20px auto;
  border-radius: 8px;
  overflow: hidden;
}
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.category-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.4s ease;
  border-radius: 10px;
  border: 2px solid transparent;
  box-shadow: 0 0 0px rgba(255, 255, 255, 0);
}
.category-box:hover {
  border-color: rgb(255, 255, 255);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}
.category-box .content {
  text-align: center;
  color: white;
  z-index: 2;
}
.category-box .icon {
  width: 50px;
  margin-bottom: 10px;
  filter: invert(1);
  transition: transform 0.3s ease;
}
.category-box:hover .icon {
  transform: scale(1.15);
}
.category-box h3 {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}
.category-box:hover h3 {
  opacity: 0;
  transform: translateY(-10px);
}
.view-more {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  margin-top: 8px;
  letter-spacing: 1px;
}
.category-box:hover .view-more {
  opacity: 1;
  transform: translateY(0);
}
.vapes { background: #E9A93F; }
.shatter { background: #C05C2C; }
.live-resin { background: #6C8F7B; }
.diamonds { background: #17494D; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}
.product-card {
  background: white;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.product-card img {
  width: 100%;
  border-radius: 6px;
  max-height: 200px;
  object-fit: cover;
}
.price {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #007BFF;
}





body.dark-mode {
  background-color: #121212;
  color: #f0f0f0;
}

.dark-card {
  background-color: #1e1e1e !important;
  border: 1px solid #444;
}


/* Fix visibility for category boxes */
.category-box {
  color: #ffffff;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Individual category background colors of each product (names listed below) */
.category-box.pre-rolls { background-color: #000000f5; }
.category-box.flower { background-color: #000000f5; }
.category-box.vapes { background-color: #000000f5; }
.category-box.edibles { background-color: #000000f5; }
.category-box.hash { background-color: #000000f5; }
.category-box.shatter { background-color: #000000f5; }

/* Ensures categories layout is visible */




  

  

  



/* Mobile Nav Patchs */




@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Slim header and clean dropdown */
header {
  background-color: #111;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}






@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}



/* Shared styling for ALL product pages */
body.product-page {
  background-color: black;
  color: white; /* makes text readable */
}

/* Makes the product cards look consistent */
body.product-page .product-card {
  background-color: #111;  /* dark gray cards */
  border: 1px solid #333;
  color: rgb(255, 255, 255);
}

/* Category-specific styling */
body.prerolls { /* styles for Pre-Rolls */ }
body.flower-page   { /* styles for Flower */ }
body.edibles-page  { /* styles for Edibles */ }
body.vapes-page    { /* styles for Vapes */ }
body.hash-page     { /* styles for Hash */ }
body.shatter-page  { /* styles for Shatter */ }

/* === Hamburger Menu Styling === */

.menu-toggle {
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: none; /* hidden on desktop */
}

.nav-links {
  display: flex;
  gap: 20px;
}


/* === Right-side Drawer Menu (mobile) === */
/* Keep desktop inline links */
.nav-links { display: flex; gap: 20px; }
.menu-toggle { font-size: 28px; background: none; border: none; color: #fff; cursor: pointer; display: none; }

/* Backdrop */
.menu-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; pointer-events: none; z-index: 2000;
  transition: opacity .25s ease, visibility .25s ease;
}
.menu-backdrop.show { opacity: 1; visibility: visible; pointer-events: auto; }

/* Drawer */
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh;
  width: 78vw; max-width: 360px;
  background: #111; color: #fff; z-index: 2001;
  transform: translateX(100%); transition: transform .28s ease;
  box-shadow: -24px 0 40px rgba(0,0,0,.35);
  padding: 18px 16px; overflow-y: auto;
  border-left: 1px solid #222; border-top-left-radius: 12px; border-bottom-left-radius: 12px;
}
.drawer.show { transform: translateX(0); }

.drawer-nav { display: flex; flex-direction: column; gap: 8px; }
.drawer-nav a { padding: 12px 10px; border-radius: 8px; color: #fff; text-decoration: none; }
.drawer-nav a:hover { background: #1a1a1a; }

/* Prevent body scroll when drawer open */
body.menu-open { overflow: hidden; }

/* Mobile rules */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; } /* hide desktop links on mobile */
}

/* Make sure the page never flashes white */
html, body { background:#000000; }

/* Full-viewport Vanta background + no white flash */
html, body { background:#000000; }

#vanta-bg {
  position: fixed;
  inset: 0;           /* top:0; right:0; bottom:0; left:0 */
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none; /* don't block clicks */
}

/* --- Make content show over Vanta and remove white panels --- */
#mainContent {
  position: relative;   /* sits above Vanta */
  z-index: 1;
  background: transparent;
  color: #fff;          /* readable on dark background */
}

/* kill any default white backgrounds */
section, .section, .container, .content, .product-grid, .product-card {
  background: transparent !important;
}

/* links: white, with green hover */
a { color: #ffffff; text-decoration: none; }
a:hover { color: #3fff6c; }

/* hero/title area centered */
.hero, .section-hero, .welcome, .intro {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* optional: space sections so Vanta shows nicely */
section { padding: 24px 16px; }

/* keep page black if Vanta is still loading */
html, body { background: #000; }

/* brand accent */
:root { --brand-green: #3fff6c; }   /* same green */
.brand-green { color: var(--brand-green); font-weight: 600; }

/* Announcement bar (sticky at very top) */
.announce {
  position: sticky; top: 0; z-index: 9999;
  width: 100%;
  background: #0d0d0d;               
  border-bottom: 1px solid rgba(63,255,108,.35);
  color: #fff;
  backdrop-filter: blur(4px);
  font-size: 14px; line-height: 1.4;
}
.announce.hidden { display: none; }

.announce__inner {
  max-width: 1200px; margin: 0 auto;
  padding: 10px 16px;
  display: grid; grid-template-columns: 1fr auto; gap: 12px;
  align-items: center;
}

.announce__msg a {
  color: #3fff6c; text-decoration: none; font-weight: 600;
}
.announce__msg a:hover { text-decoration: underline; }

.announce__close {
  appearance: none; border: 1px solid rgba(255,255,255,.2);
  background: transparent; color: #fff;
  font-size: 14px; padding: 4px 8px; border-radius: 8px;
  cursor: pointer;
}
.announce__close:hover {
  border-color: rgba(63,255,108,.7); color: #3fff6c;
}

/* === Grid thumbnails: crop 600x600 to ~343x190 === */
.card img,
.product-card img {
  width: 100%;
  height: auto;             /* lets height derive from aspect-ratio */
  aspect-ratio: 343 / 190;  /* ~1.805:1 */
  object-fit: cover;        /* crop to fill without distortion */
  border-radius: 6px;
  max-height: none;         /* override any earlier caps */

}

.product-detail { 
  max-width: 1200px; 
  margin: 40px auto; 
  padding: 0 20px; 
  color: #fff; 
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(280px, 600px) 1fr;
  gap: 40px;
  align-items: start;
}

.product-media img {
  max-width: 600px;
  max-height: 600px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  display: block;
  margin: 0 auto;
}

.product-info h1 { font-size: 2rem; margin: 8px 0 10px; }
.product-meta { font-size: 1rem; opacity: .85; margin-bottom: 12px; }
.product-price-range { font-size: 1.25rem; font-weight: 700; margin-bottom: 20px; }

.product-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

/* --- PREMIUM UI POLISH --- */

/* Product title styling */
.product-info h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #82ff82, #b2fdb2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Meta info tags (THC, Category, etc.) */
.product-meta {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  display: inline-block;
}

/* Price range emphasis */
.product-price-range {
  font-size: 1.35rem;
  font-weight: 700;
  color: #82ff82;
  margin-bottom: 24px;
}

/* Store status box */
.store-status {
  padding: 14px;
  border: 1px dashed rgba(255,255,255,.3);
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  margin-bottom: 24px;
  font-size: 0.95rem;
  text-align: center;
}

/* Price option boxes */
.price-box {
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  background: rgba(255,255,255,.04);
  transition: all 0.25s ease;
}
.price-box:hover {
  border-color: #82ff82;
  background: rgba(130,255,130,.08);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.price-box .weight { font-weight: 600; margin-bottom: 6px; font-size: 1.05rem; }
.price-box .price { font-size: 1.2rem; color: #fff; font-weight: 700; }
.price-box .pergram { font-size: 0.85rem; color: #aaa; }

/* Description paragraph */
.product-info .description {
  margin-top: 20px;
  line-height: 1.6;
  font-size: 1rem;
  opacity: 0.95;
}

/* --- Mobile product details --- */
@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
    text-align: center; /* center text content */
  }

  .product-media img {
    margin: 0 auto;
    display: block;
    max-width: 80%; /* keep image a bit smaller on phones */
  }

  .product-info {
    margin-top: 20px;
    text-align: center;
  }

  .product-options {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    justify-items: center; /* center cards */
  }
}

/* --- Grid card hover polish --- */
.card,
.product-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  will-change: transform;
}

.card:hover,
.product-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  border-color: rgba(130,255,130,.35); 
}

/* Keep images crisp while scaling the card */
.card img,
.product-card img {
  transform: translateZ(0); /* avoid blur on hover */
}


@media (prefers-reduced-motion: reduce) {
  .card,
  .product-card {
    transition: none;
  }
  .card:hover,
  .product-card:hover {
    transform: none;
    box-shadow: none;
  }
}


/* Ensure product grid images always show full content without cropping */
.card img {
  object-fit: contain !important;
  background-color: #000; /* prevent white bars */
}

/* Desktop: smaller product image + framed container */
@media (min-width: 1024px) {
  .product-media {
    background: rgba(255,255,255,.03);          /* subtle dark panel */
    border: 1px solid rgba(255,255,255,.12);    /* soft outline */
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);     /* gentle depth */
  }
  .product-media img {
    max-width: 480px;   /* was 600px — make it friendlier on desktop */
    max-height: 480px;  /* keep square-ish */
  }
}

/* Optional: a tiny hover lift for the frame on desktop only */
@media (hover: hover) and (min-width: 1024px) {
  .product-media {
    transition: box-shadow .2s ease, transform .2s ease;
  }
  .product-media:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,.45);
  }
}



/* === Badges (THC / Category) === */
.badges{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 14px}
.badge{font-size:.85rem;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12)}
.badge--thc{background:rgba(130,255,130,.12);border-color:rgba(130,255,130,.35)}
.badge:empty{display:none}

/* === Price box selected state === */
.price-box{cursor:pointer;user-select:none;transition:box-shadow .2s ease,border-color .2s ease,transform .2s ease}
.price-box.active{border-color:rgba(130,255,130,.5);box-shadow:0 6px 18px rgba(130,255,130,.18);background:rgba(130,255,130,.06);transform:translateY(-2px)}



/* ===== Breadcrumb Navigation ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #aaa;
  margin: 12px 20px;
}
.breadcrumb a {
  color: #71d18f;
  text-decoration: none;
  transition: color .2s ease;
}
.breadcrumb a:hover {
  color: #fff;
}
.breadcrumb .separ {
  color: #666;
  font-size: 13px;
  user-select: none;
}
