/* ============================================================
   COPS COFFEE — Bag mockup
   Faithful CSS recreation of the printed bag labels.
   - Bad Boys Brew: Bold/Dark · matte black + red accent · SWAT photo
   - Code 3:        Medium · matte black + blue/red accent · brushstroke logo
   Both bags carry: COPS COFFEE seal at top, hero artwork, "TO SIP AND SERVE",
   product name (stencil), roast spec strip, charity callout.
   ============================================================ */

.bag {
  --bag-w: 320px;
  --bag-h: 460px;
  --bag-bg: #0E0F12;
  --bag-bg-2: #1A1A1E;
  --bag-accent: #D7263D;
  --bag-paper: #F2E8D5;
  --bag-gold: #C8A24A;

  position: relative;
  width: var(--bag-w);
  height: var(--bag-h);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.06) 0%, transparent 55%),
    linear-gradient(180deg, var(--bag-bg) 0%, var(--bag-bg-2) 60%, #06070A 100%);
  border-radius: 6px 6px 22% 22% / 6px 6px 8% 8%;
  box-shadow:
    0 28px 56px rgba(0,0,0,0.45),
    0 8px 16px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -40px 80px rgba(0,0,0,0.55);
  color: #F2E8D5;
  font-family: 'Inter', system-ui, sans-serif;
  overflow: hidden;
  text-align: center;
}

/* Tin-tie / heat-seal top strip */
.bag::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 14px;
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.55) 0 4px,
      rgba(255,255,255,0.04) 4px 8px);
  border-bottom: 1px solid rgba(0,0,0,0.6);
  z-index: 5;
}

/* Subtle vertical center crease for depth */
.bag::after {
  content: "";
  position: absolute;
  inset: 14px 0 0;
  background:
    linear-gradient(90deg,
      rgba(0,0,0,0.35) 0%,
      transparent 14%,
      transparent 86%,
      rgba(0,0,0,0.35) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Bad Boys: bold/dark espresso variant */
.bag--badboys {
  --bag-bg:   #19120C;
  --bag-bg-2: #2A1A10;
  --bag-accent: #D7263D;
}
.bag--badboys.bag {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,200,150,0.05) 0%, transparent 55%),
    linear-gradient(180deg, #19120C 0%, #2A1A10 55%, #0E0805 100%);
}

/* Code 3: cooler near-black with blue undertone */
.bag--code3 {
  --bag-bg:   #0B1320;
  --bag-bg-2: #15243B;
  --bag-accent: #1955D6;
}
.bag--code3.bag {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(150,180,255,0.06) 0%, transparent 55%),
    linear-gradient(180deg, #0B1320 0%, #15243B 55%, #050810 100%);
}

/* Inner content frame — keep label off the bag edges */
.bag__inner {
  position: absolute;
  inset: 22px 18px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

/* COPS COFFEE seal top */
.bag__seal {
  width: 64px;
  height: 64px;
  background: url('../assets/cops_coffee_seal.png') center/contain no-repeat;
  filter: invert(1) brightness(1.4) saturate(0);
  margin-top: 2px;
}

/* "BY THE WOUNDED BLUE" curving banner under the seal */
.bag__banner {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.32em;
  color: var(--bag-gold);
  text-transform: uppercase;
  margin-top: -4px;
}

/* Hero image area — fills most of the upper body */
.bag__hero {
  width: 100%;
  height: 138px;
  position: relative;
  display: grid;
  place-items: center;
  margin: 2px 0 0;
  overflow: hidden;
}

/* Bad Boys hero: SWAT silhouette photo */
.bag--badboys .bag__hero {
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%),
    url('../assets/badboys_squad.png') center/cover no-repeat;
  border-top: 1px solid rgba(200,162,74,0.25);
  border-bottom: 1px solid rgba(200,162,74,0.25);
}

/* Code 3 hero: brushstroke logo, centered */
.bag--code3 .bag__hero {
  background:
    url('../assets/code3_logo.png') center/82% no-repeat,
    radial-gradient(60% 80% at 50% 50%, rgba(25,85,214,0.18) 0%, transparent 70%);
  border-top: 1px solid rgba(200,162,74,0.25);
  border-bottom: 1px solid rgba(200,162,74,0.25);
}

/* Tagline — TO SIP AND SERVE */
.bag__tagline {
  font-family: 'Anton', sans-serif;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bag-paper);
  margin-top: 10px;
  position: relative;
  padding: 0 16px;
}
.bag__tagline::before,
.bag__tagline::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--bag-gold);
  opacity: 0.7;
}
.bag__tagline::before { left: -2px; }
.bag__tagline::after  { right: -2px; }

/* Product name — big stencil */
.bag__name {
  font-family: 'Black Ops One', sans-serif;
  font-size: 28px;
  line-height: 0.96;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--bag-paper);
  margin: 4px 0 0;
  text-shadow: 0 1px 0 rgba(0,0,0,0.6);
  white-space: nowrap;
}
.bag__name.bag__name--two {
  white-space: normal;
  font-size: 24px;
  line-height: 1;
}
.bag--badboys .bag__name { color: #F2E8D5; }
.bag--code3   .bag__name { color: #F2E8D5; }

/* Hero-tagline (under name) */
.bag__sub {
  font-family: 'Inter', sans-serif;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242,232,213,0.7);
  margin-top: 6px;
}

/* Roast spec strip */
.bag__strip {
  margin-top: auto;
  width: 100%;
  border-top: 1px solid rgba(200,162,74,0.4);
  border-bottom: 1px solid rgba(200,162,74,0.4);
  padding: 7px 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bag-gold);
}
.bag__strip .sep { opacity: 0.5; }

/* Bottom block — weight + mission */
.bag__bot {
  width: 100%;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.bag__weight {
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242,232,213,0.8);
}
.bag__mission {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bag-accent);
  font-weight: 700;
}

/* Vertical lockup ribbons running up each side */
.bag__rib {
  position: absolute;
  top: 36px;
  bottom: 80px;
  width: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(200,162,74,0.55);
  writing-mode: vertical-rl;
  z-index: 3;
}
.bag__rib--l { left: 4px; }
.bag__rib--r { right: 4px; transform: rotate(180deg); }

/* === Smaller variants === */
.bag--sm { --bag-w: 220px; --bag-h: 320px; }
.bag--sm .bag__seal { width: 46px; height: 46px; }
.bag--sm .bag__hero { height: 96px; }
.bag--sm .bag__tagline { font-size: 11px; }
.bag--sm .bag__name { font-size: 20px; }
.bag--sm .bag__name--two { font-size: 16px; }
.bag--sm .bag__sub { font-size: 7px; }
.bag--sm .bag__strip { font-size: 7.5px; padding: 5px 0; }
.bag--sm .bag__weight { font-size: 8px; }
.bag--sm .bag__mission { font-size: 6.5px; }
.bag--sm .bag__inner { inset: 16px 12px 18px; gap: 6px; }
.bag--sm .bag__rib { font-size: 5.5px; top: 26px; bottom: 60px; }

.bag--lg { --bag-w: 420px; --bag-h: 600px; }
.bag--lg .bag__seal { width: 84px; height: 84px; }
.bag--lg .bag__hero { height: 180px; }
.bag--lg .bag__tagline { font-size: 22px; }
.bag--lg .bag__name { font-size: 38px; }
.bag--lg .bag__name--two { font-size: 32px; }
.bag--lg .bag__sub { font-size: 11px; }
.bag--lg .bag__strip { font-size: 11px; padding: 9px 0; }
.bag--lg .bag__weight { font-size: 12px; }
.bag--lg .bag__mission { font-size: 9.5px; }
.bag--lg .bag__inner { inset: 28px 24px 32px; gap: 12px; }
.bag--lg .bag__rib { font-size: 9px; top: 48px; bottom: 100px; }
