/* ===================================== */
/* FORCE REAL BACKGROUND IMAGE TO SHOW   */
/* ===================================== */

/* Kill the global theme skin layer */
body::before {
  content: none !important;
  background: none !important;
}

/* Force core shell transparent so global BG (or brand BG) shows */
.app-shell,
.app-shell-inner,
#main,
.main-content {
  background: transparent !important;
}

/* ===================================== */
/* SECTION BACKGROUND UTILITIES          */
/* (used by brand.js for patterns/video) */
/* ===================================== */

.section-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Ensure sections that can host video are stacking contexts */
.hero,
.drop-top,
.drop-grid-section {
  position: relative;
  overflow: hidden;
}

/* Example pattern classes (used when type = "pattern") */
.bg-pattern-diagonal-soft {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 0,
    rgba(255, 255, 255, 0.04) 2px,
    transparent 2px,
    transparent 6px
  );
}

.bg-pattern-grid-soft {
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ========================= */
/* BASE + HERO               */
/* ========================= */

.hero {
  width: 100%;
  height: 340px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

/* REMOVED: overlay filter – hero image shows raw */
.hero-overlay {
  display: none;
}

.brand-hero-logo {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 90px;
  height: 90px;
  border-radius: 100%;
  border: 3px solid #fff;
  background: #fff;
  object-fit: cover;
  z-index: 5;
}

.hero-content {
  position: relative;
  padding: 20px;
  z-index: 10; /* above bg video / bg image */
}

#brandName {
  font-size: 32px;
  margin: 0 0 6px;
  color: #111;
}

.brand-headline {
  font-size: 15px;
  color: #444;
  margin: 0 0 4px;
}

.brand-bio {
  font-size: 14px;
  color: #555;
  max-width: 600px;
}

.brand-links {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.chip {
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 13px;
  color: #333;
  border: 1px solid #e2e8f0;
}

/* ========================= */
/* LIVE DROP (TOP SECTION)   */
/* ========================= */

.drop-top {
  width: min(1100px, 92vw);
  margin: 40px auto 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.drop-left {
  /* TRANSPARENT: no more solid white skin */
  background: transparent;
  border-radius: 12px;
  padding: 20px;
  flex: 1.6;
  box-shadow: 0 6px 25px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  position: relative;
  z-index: 5; /* above any section background */
}

.drop-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
}

.drop-subtitle {
  margin: 0 0 18px;
  font-size: 14px;
  color: #475569;
}

.drop-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 14px;
}

.drop-stat-label {
  font-size: 12px;
  color: #64748b;
}

.drop-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
}

.drop-stat-remaining {
  color: #dc2626;
}

.live-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fef2f2;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid #fecaca;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background: #dc2626;
  border-radius: 50%;
  animation: pulse 1.3s infinite;
}

@keyframes pulse {
  0% { transform: scale(.8); opacity: .7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(.8); opacity: .7; }
}

.live-text {
  font-size: 13px;
  color: #b91c1c;
}

.drop-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-badge {
  /* Keep card readable but floating over BG */
  background: rgba(255,255,255,0.9);
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 25px rgba(0,0,0,0.05);
  width: 180px;
  text-align: center;
}

.live-badge-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.1em;
}

.live-badge-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #475569;
}

/* ========================= */
/* SHOP / GRID SECTION       */
/* ========================= */

.drop-grid-section {
  width: min(1100px, 92vw);
  margin: 30px auto;
}

.section-header h2 {
  font-size: 20px;
  margin: 0 0 4px;
  color: #0f172a;
}

.section-header p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #475569;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}

.product-card {
  /* TRANSPARENT: no more solid white skin */
  background: transparent;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 5; /* above any section background */
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  height: 330px;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9; /* keep a neutral surface behind the hat image */
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
  display: block;
}

.edition-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.12em;
  color: #1e293b;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
}

.edition-royalty { background: #facc15; }
.edition-investor { background: #a855f7; color: #fff; }
.edition-founder { background: #3b82f6; color: #fff; }

.product-header {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}

.product-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.product-subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: #475569;
}

.product-tagline {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #64748b;
}

.quantity-strip {
  margin-top: 12px;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
}

.quantity-flash-soft { animation: qSoft 2.5s infinite; }
.quantity-flash-urgent { animation: qUrgent 2s infinite; }
.quantity-critical { animation: qCritical 1.5s infinite; }

@keyframes qSoft { 50% { background: #f1f5ff; } }
@keyframes qUrgent { 50% { background: #fff8e1; } }
@keyframes qCritical { 50% { background: #fee2e2; } }

.quantity-label {
  font-size: 10px;
  color: #475569;
}

.quantity-count {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.stock-bar {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  margin-top: 10px;
  overflow: hidden;
}

.stock-bar-fill {
  height: 100%;
  background: linear-gradient(90deg,#22c55e,#eab308,#ef4444);
  transform-origin: left;
}

.product-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

.product-price {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.view-item-btn {
  padding: 6px 12px;
  font-size: 12px;
  text-transform: uppercase;
  background: #3b82f6;
  border-radius: 999px;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* ========================= */
/* RESPONSIVE                */
/* ========================= */

@media (max-width: 640px) {
  .drop-top,
  .drop-grid-section {
    width: 100%;
    margin: 24px auto 16px;
    padding: 0 12px;
  }

  .drop-left {
    padding: 16px;
  }

  .drop-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .drop-title {
    font-size: 18px;
  }
}
