/* ==========================================================================
   ELDERS ORDER STUDIO & MARKETPLACE - CINEMATIC DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Official Palette from THE RETURNED & A.G.E.N.D.A. GLOBAL */
  --color-matte-black: #0f1113;
  --color-steel-silver: #a9adb3;
  --color-sunstone-gold: #d4af37;
  --color-oracle-blue: #1e3a8a;
  --color-earth-green: #2e7d32;
  --color-royal-purple: #6a0dad;

  --bg-primary: #0a0c0e;
  --bg-secondary: #0f1113;
  --bg-card: #15191e;
  --bg-glass: rgba(15, 17, 19, 0.85);
  
  --accent-gold: #d4af37;
  --accent-gold-light: #f3cf65;
  --accent-gold-glow: rgba(212, 175, 55, 0.3);
  
  --text-main: #f0f3f6;
  --text-muted: #a9adb3;
  --text-dim: #606874;
  
  --border-subtle: #232932;
  --border-gold: rgba(212, 175, 55, 0.45);
  
  --badge-bg: #1f2733;
  --badge-green: #238636;
  --badge-cyan: #1f6feb;
  
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, .brand-title, .word-of-power {
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

/* Glassmorphism & Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, var(--accent-gold-glow) 0%, transparent 70%);
  color: var(--accent-gold);
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.1em;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: var(--accent-gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.nav-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #b8860b 100%);
  color: #000;
  box-shadow: 0 4px 15px var(--accent-gold-glow);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

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

.btn-cart {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.6rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent-gold);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Security Ribbon */
.security-ribbon {
  background: #0d1117;
  border-bottom: 1px solid #1f2733;
  padding: 0.45rem 1rem;
  font-size: 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-muted);
}

.security-ribbon-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ea043;
  box-shadow: 0 0 6px #2ea043;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 5rem 2rem 4rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-subtitle {
  color: var(--accent-gold);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #b0b8c4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Section Containers */
.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.section-title {
  font-size: 1.75rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-tag {
  color: var(--accent-gold);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
}

/* Daily Media Hub */
.daily-hub-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2rem;
  align-items: start;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-details {
  padding: 1.5rem;
}

.transmission-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold);
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.transmission-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: #fff;
}

/* Translation Selector & Transcript */
.translation-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.lang-selector-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-selector-group label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.lang-select {
  background: var(--bg-primary);
  color: var(--accent-gold);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}

.lang-select:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.transcript-box {
  background: #0d1016;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.25rem;
  max-height: 200px;
  overflow-y: auto;
  font-size: 0.95rem;
  color: #c9d1d9;
  line-height: 1.7;
}

/* Daily Message & Words of Power Card */
.message-card {
  background: linear-gradient(145deg, #181d26 0%, #11141b 100%);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.message-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--accent-gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.message-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.message-body {
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.7;
  margin-bottom: 2rem;
  font-style: italic;
}

.words-of-power-banner {
  background: rgba(212, 175, 55, 0.08);
  border-left: 3px solid var(--accent-gold);
  padding: 1.25rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 1.5rem;
}

.power-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-bottom: 0.4rem;
}

.power-content {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--accent-gold-light);
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* Category Filters */
.category-filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.55rem 1.15rem;
  border-radius: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--bg-secondary);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.product-thumb-container {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #000;
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-thumb {
  transform: scale(1.05);
}

.category-tag-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.digital-security-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(16, 22, 30, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: #fff;
}

.product-subtitle {
  font-size: 0.8rem;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.product-description {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.words-attached-box {
  background: rgba(212, 175, 55, 0.05);
  border: 1px dashed var(--border-gold);
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: var(--accent-gold-light);
  font-style: italic;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.product-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-serif);
}

/* Modals & Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-drawer-overlay.open {
  display: block;
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-subtle);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-items-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  background: var(--bg-card);
  padding: 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  object-fit: cover;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--accent-gold);
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.8rem;
}

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

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-primary);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
  font-weight: 700;
}

/* Digital Download Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  width: 100%;
  max-width: 640px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  position: relative;
}

.security-code-block {
  background: #0d1117;
  border: 1px solid #30363d;
  padding: 1rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #58a6ff;
  overflow-x: auto;
  margin: 1rem 0;
}

/* Responsive */
@media (max-width: 992px) {
  .daily-hub-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.25rem;
  }
}

/* ==========================================================================
   THE RETURNED & A.G.E.N.D.A. SYMBOLISM & ARMOR SHOWCASE
   ========================================================================== */

.brand-emblem-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--color-sunstone-gold);
  box-shadow: 0 0 10px var(--accent-gold-glow);
}

.armor-showcase-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: linear-gradient(145deg, #12161c 0%, #0a0c0e 100%);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 2.5rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.armor-spec-image-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
}

.armor-spec-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.armor-spec-image:hover {
  transform: scale(1.02);
}

.symbolism-spec-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.symbol-spec-item {
  display: flex;
  gap: 1rem;
  background: rgba(21, 25, 30, 0.6);
  border-left: 3px solid var(--color-sunstone-gold);
  padding: 1rem;
  border-radius: 0 6px 6px 0;
}

.symbol-spec-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--color-sunstone-gold);
  margin-bottom: 0.25rem;
}

.symbol-spec-desc {
  font-size: 0.85rem;
  color: var(--color-steel-silver);
  line-height: 1.5;
}

.palette-swatches {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.palette-swatch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #0d1014;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #fff;
}

.swatch-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Alpha Genetics Hero Emblem */
.hero-alpha-genetics-emblem {
  max-width: 250px;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
  filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.5));
  transition: transform 0.4s ease, filter 0.4s ease;
}

.hero-alpha-genetics-emblem:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 35px rgba(212, 175, 55, 0.7));
}

.symbolism-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.symbolism-card-feature {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.symbolism-card-img {
  max-height: 320px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
}
