/* =========================================
   SKYWORLD DESIGN SYSTEM – TOKENS
   ========================================= */

:root {
  /* Core brand */
  --sw-color-brand: #f15b27;
  --sw-color-brand-soft: rgba(241, 91, 39, 0.16);
  --sw-color-brand-strong: rgba(241, 91, 39, 0.95);

  /* Neutrals */
  --sw-color-bg-dark: #020309;
  --sw-color-bg-dark-soft: rgba(2, 3, 9, 0.9);
  --sw-color-bg-light: #f5f5f7;
  --sw-color-bg-light-soft: rgba(245, 245, 247, 0.88);

  --sw-color-border-subtle: rgba(255, 255, 255, 0.12);
  --sw-color-border-strong: rgba(255, 255, 255, 0.32);

  --sw-color-text-main: #ffffff;
  --sw-color-text-muted: #aaaaaa;
  --sw-color-text-soft: #8a8a99;
  --sw-color-text-dark: #111111;

  /* Blur & depth */
  --sw-blur-strong: 18px;
  --sw-blur-soft: 10px;
  --sw-radius-lg: 24px;
  --sw-radius-md: 16px;
  --sw-radius-pill: 999px;

  --sw-shadow-soft: 0 18px 55px rgba(0, 0, 0, 0.55);
  --sw-shadow-light: 0 16px 40px rgba(0, 0, 0, 0.25);

  /* Spacing scale */
  --sw-space-xs: 0.25rem;
  --sw-space-sm: 0.5rem;
  --sw-space-md: 0.75rem;
  --sw-space-lg: 1.25rem;
  --sw-space-xl: 1.75rem;
  --sw-space-2xl: 2.25rem;
  --sw-space-3xl: 3rem;

  /* Typography */
  --sw-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  --sw-font-display: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

/* =========================================
   GLASS PANELS (REUSABLE)
   ========================================= */

.sw-glass-dark {
  background:
    radial-gradient(circle at top, rgba(241, 91, 39, 0.25), transparent 45%),
    linear-gradient(145deg, rgba(10, 10, 18, 0.96), rgba(5, 5, 10, 0.98));
  border-radius: var(--sw-radius-lg);
  border: 1px solid var(--sw-color-border-subtle);
  box-shadow: var(--sw-shadow-soft);
  backdrop-filter: blur(var(--sw-blur-strong));
  -webkit-backdrop-filter: blur(var(--sw-blur-strong));
}

.sw-glass-light {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.32), transparent 55%),
    linear-gradient(145deg, rgba(245, 245, 247, 0.9), rgba(235, 236, 240, 0.92));
  border-radius: var(--sw-radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--sw-shadow-light);
  backdrop-filter: blur(var(--sw-blur-soft));
  -webkit-backdrop-filter: blur(var(--sw-blur-soft));
}

.sw-glass-light-on-image {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.45), transparent 60%),
    linear-gradient(145deg, rgba(252, 252, 255, 0.92), rgba(235, 237, 245, 0.96));
  border-radius: var(--sw-radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Panel padding utility */
.sw-panel {
  padding: var(--sw-space-2xl);
}

@media (max-width: 768px) {
  .sw-panel {
    padding: var(--sw-space-xl);
  }
}

/* =========================================
   BUTTONS + EYEBROW
   ========================================= */

.sw-btn,
.button-primary,
.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: var(--sw-radius-pill);
  font-family: var(--sw-font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.9rem 2.6rem;
  border: none;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}

/* Primary CTA – mapped to Woo-esque class name */
.sw-btn-primary,
.button-primary {
  background: var(--sw-color-brand);
  color: #000;
  box-shadow: 0 10px 30px rgba(241, 91, 39, 0.45);
}

.sw-btn-primary:hover,
.button-primary:hover {
  background: #ff7e14;
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(241, 91, 39, 0.55);
}

/* Secondary CTA */
.sw-btn-outline,
.button-outline {
  background: transparent;
  color: var(--sw-color-text-main);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.sw-btn-outline:hover,
.button-outline:hover {
  background: #ffffff;
  color: #000;
}

/* Focus */
.sw-btn:focus-visible,
.button-primary:focus-visible,
.button-outline:focus-visible {
  outline: 2px solid var(--sw-color-brand);
  outline-offset: 3px;
}

/* Tiny label text */
.sw-eyebrow {
  font-family: var(--sw-font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--sw-color-text-soft);
}

/* =========================================
   PRODUCT LAYOUT – BASE WRAPPER
   ========================================= */

.skyworld-product-layout {
  font-family: var(--sw-font-sans);
  color: var(--sw-color-text-main);
  max-width: 1120px;
  margin: 0 auto var(--sw-space-3xl);
  padding: var(--sw-space-3xl) var(--sw-space-xl);
  position: relative;
  z-index: 1;
}

.skyworld-product-layout p {
  margin: 0 0 var(--sw-space-md);
  line-height: 1.6;
  font-size: 0.98rem;
  color: var(--sw-color-text-muted);
}

.skyworld-product-layout h1,
.skyworld-product-layout h2 {
  font-family: var(--sw-font-display);
  letter-spacing: 0.03em;
}

/* tighten up last paragraph inside panels */
.skyworld-product-layout p:last-child {
  margin-bottom: 0;
}

/* =========================================
   HERO LAYOUT
   ========================================= */

.sw-hero {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sw-space-3xl);
  align-items: stretch;
  margin-bottom: var(--sw-space-3xl);
}

/* Content column */
.sw-hero-content {
  flex: 1 1 52%;
  min-width: 260px;
}

/* Media column */
.sw-hero-media {
  flex: 1 1 40%;
  min-width: 260px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Brand / genetics pill */
.sw-brand-label {
  margin-bottom: var(--sw-space-sm);
}

.sw-brand-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: var(--sw-radius-pill);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--sw-color-border-subtle);
  color: var(--sw-color-text-soft);
}

/* Product title */
.sw-hero-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 var(--sw-space-md);
}

/* Long-form description */
.sw-product-description {
  margin-bottom: var(--sw-space-md);
  color: var(--sw-color-text-muted);
  font-size: 0.98rem;
}

.sw-product-description p {
  color: inherit;
}

/* Short effects one-liner */
.sw-hero-description {
  margin-bottom: var(--sw-space-lg);
  color: var(--sw-color-text-main);
  font-size: 1rem;
}

/* Hero badges row */
.sw-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sw-space-xs);
  margin-bottom: var(--sw-space-lg);
}

.sw-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: var(--sw-radius-pill);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--sw-color-brand-soft);
  color: var(--sw-color-text-main);
  border: 1px solid rgba(241, 91, 39, 0.55);
}

/* =========================================
   HERO STATS – CARDS
   ========================================= */

.sw-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: var(--sw-space-md);
  margin-bottom: var(--sw-space-lg);
}

.sw-stat-card {
  border-radius: var(--sw-radius-md);
  padding: var(--sw-space-md) var(--sw-space-lg);
  background:
    radial-gradient(circle at top, rgba(241, 91, 39, 0.14), transparent 60%),
    linear-gradient(145deg, rgba(15, 15, 25, 0.92), rgba(4, 4, 10, 0.98));
  border: 1px solid var(--sw-color-border-subtle);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sw-stat-card--terps {
  border-color: rgba(241, 91, 39, 0.8);
}

.sw-stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sw-color-text-soft);
  margin-bottom: var(--sw-space-xs);
}

.sw-stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sw-color-text-main);
  margin-bottom: var(--sw-space-xs);
}

.sw-stat-note {
  font-size: 0.75rem;
  color: var(--sw-color-text-muted);
}

/* =========================================
   HERO CTAs
   ========================================= */

.sw-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sw-space-sm);
  align-items: center;
}

/* =========================================
   HERO MEDIA – PRODUCT IMAGE
   ========================================= */

.sw-hero-figure {
  margin: 0;
  width: 100%;
}

.sw-hero-image-frame {
  border-radius: var(--sw-radius-lg);
  overflow: hidden;
  position: relative;
  padding: 1.2rem;
  background:
    radial-gradient(circle at top, rgba(241, 91, 39, 0.2), transparent 55%),
    linear-gradient(145deg, #14141c, #050509);
  border: 1px solid var(--sw-color-border-subtle);
  box-shadow: var(--sw-shadow-soft);
}

.sw-hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--sw-radius-lg) - 12px);
  object-fit: cover;
}

.sw-hero-media-tag {
  margin-top: var(--sw-space-sm);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sw-color-text-soft);
}

/* Fallback if no image */
.sw-hero-fallback {
  border-radius: var(--sw-radius-lg);
  padding: var(--sw-space-3xl) var(--sw-space-2xl);
  background:
    radial-gradient(circle at top, rgba(241, 91, 39, 0.16), transparent 55%),
    linear-gradient(145deg, #151521, #050509);
  border: 1px dashed var(--sw-color-border-subtle);
  box-shadow: var(--sw-shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sw-color-text-soft);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* =========================================
   DETAILS GRID – OVERVIEW + SENSORY
   ========================================= */

.sw-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr);
  gap: var(--sw-space-2xl);
  margin-bottom: var(--sw-space-3xl);
}

/* Panels reuse “glass” feel but scoped */
.glass-panel {
  border-radius: var(--sw-radius-lg);
  padding: var(--sw-space-2xl);
  background:
    radial-gradient(circle at top, rgba(241, 91, 39, 0.18), transparent 55%),
    linear-gradient(145deg, rgba(10, 10, 18, 0.96), rgba(5, 5, 10, 0.98));
  border: 1px solid var(--sw-color-border-subtle);
  box-shadow: var(--sw-shadow-soft);
}

.glass-panel--sensory {
  background:
    radial-gradient(circle at top, rgba(241, 91, 39, 0.12), transparent 55%),
    linear-gradient(145deg, rgba(12, 12, 20, 0.96), rgba(4, 4, 9, 0.98));
}

.glass-panel h2 {
  margin-top: 0;
  margin-bottom: var(--sw-space-md);
  font-size: 1.2rem;
}

.sw-body-copy {
  margin-bottom: var(--sw-space-lg);
  font-size: 0.95rem;
  color: var(--sw-color-text-muted);
}

/* Quick facts list (size, primary effects, etc.) */
.sw-quick-facts {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
  gap: var(--sw-space-lg);
}

.sw-quick-fact {
  display: flex;
  flex-direction: column;
  gap: var(--sw-space-xs);
}

.sw-quick-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sw-color-text-soft);
}

.sw-quick-value {
  font-size: 0.98rem;
  color: var(--sw-color-text-main);
}

/* =========================================
   SENSORY STACK (Flavor, Aroma, Terpenes)
   ========================================= */

.sw-sensory-block {
  display: flex;
  flex-direction: column;
  gap: var(--sw-space-md);
  margin-top: var(--sw-space-sm);
}

.sw-sensory-row {
  display: flex;
  flex-direction: column;
  gap: var(--sw-space-xs);
}

.sw-sensory-row--terps {
  margin-top: var(--sw-space-sm);
}

.sw-sensory-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sw-color-text-soft);
}

.sw-sensory-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sw-space-xs);
}

/* Pills for flavor/aroma tags */
.sw-sensory-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.85rem;
  border-radius: var(--sw-radius-pill);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--sw-color-text-main);
  border: 1px solid var(--sw-color-border-subtle);
}

.sw-sensory-pill--subtle {
  background: rgba(255, 255, 255, 0.03);
  color: var(--sw-color-text-soft);
}

.sw-hero-terpenes-list {
  margin-top: var(--sw-space-xs);
}

.sw-sensory-note {
  margin-top: var(--sw-space-md);
  font-size: 0.75rem;
  color: var(--sw-color-text-soft);
}

/* =========================================
   TERPENE BADGES
   ========================================= */

.terpene-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sw-space-xs);
}

.terp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.32rem 0.85rem;
  border-radius: var(--sw-radius-pill);
  font-size: 0.78rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--sw-color-text-main);
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.terp-badge span:last-child {
  opacity: 0.9;
}

/* Hover/focus – improve discoverability */
.terp-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  border-color: rgba(241, 91, 39, 0.7);
}

.terp-badge:focus-visible {
  outline: 2px solid var(--sw-color-brand);
  outline-offset: 3px;
}

/* Color maps per terp (can tweak as needed) */
.terp-limonene {
  background: radial-gradient(circle at top, rgba(255, 193, 79, 0.3), transparent 60%);
  border-color: rgba(255, 193, 79, 0.8);
}

.terp-myrcene {
  background: radial-gradient(circle at top, rgba(79, 209, 149, 0.3), transparent 60%);
  border-color: rgba(79, 209, 149, 0.8);
}

.terp-caryophyllene {
  background: radial-gradient(circle at top, rgba(223, 130, 95, 0.3), transparent 60%);
  border-color: rgba(223, 130, 95, 0.8);
}

.terp-linalool {
  background: radial-gradient(circle at top, rgba(187, 141, 255, 0.3), transparent 60%);
  border-color: rgba(187, 141, 255, 0.8);
}

.terp-pinene {
  background: radial-gradient(circle at top, rgba(126, 210, 180, 0.3), transparent 60%);
  border-color: rgba(126, 210, 180, 0.8);
}

.terp-humulene {
  background: radial-gradient(circle at top, rgba(169, 209, 118, 0.3), transparent 60%);
  border-color: rgba(169, 209, 118, 0.8);
}

.terp-terpinolene {
  background: radial-gradient(circle at top, rgba(118, 196, 255, 0.3), transparent 60%);
  border-color: rgba(118, 196, 255, 0.8);
}

/* =========================================
   STORE LOCATOR PANEL
   ========================================= */

.sw-store-section {
  margin-bottom: var(--sw-space-3xl);
}

.sw-store-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sw-space-md);
}

/* =========================================
   RESPONSIVE BEHAVIOR
   ========================================= */

@media (max-width: 1024px) {
  .skyworld-product-layout {
    padding-inline: var(--sw-space-lg);
  }

  .sw-details-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sw-store-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .skyworld-product-layout {
    padding-inline: var(--sw-space-md);
  }

  .sw-hero {
    flex-direction: column;
  }

  .sw-hero-media {
    order: -1; /* show product image first on mobile */
  }

  .sw-hero-image-frame {
    padding: 0.8rem;
  }

  .sw-hero-ctas {
    width: 100%;
  }

  .sw-hero-ctas .button-primary,
  .sw-hero-ctas .button-outline {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  .sw-quick-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .skyworld-product-layout {
    padding-inline: var(--sw-space-sm);
  }

  .sw-hero-title {
    font-size: 1.75rem;
  }

  .sw-panel,
  .glass-panel {
    padding: var(--sw-space-xl);
  }
}
