/* ==========================================================================
   Craft Coffee Bean Bag Cards Component Styling
   "What is in the shelf" — Ultra-Premium Dark Roast & Editorial Tech Aesthetics
   Integrated with Obsidian, Coral, and Mint Palette
   ========================================================================== */

.shelf-section {
  position: relative;
  background: 
    radial-gradient(ellipse at 50% 10%, rgba(255, 90, 54, 0.05) 0%, transparent 65%),
    var(--bg-secondary);
}

.coffee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 2.5rem;
  perspective: 1200px;
}

/* 3D Perspective Card Wrapper */
.coffee-card-wrapper {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
  will-change: transform;
}

/* Main Coffee Bag Body - Matte Obsidian & Satin Foil */
.coffee-bag {
  position: relative;
  background: linear-gradient(165deg, #191b22 0%, #13141a 50%, #0d0e12 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px 14px 28px 28px;
  padding: 0 1.5rem 1.85rem 1.5rem;
  box-shadow: 
    0 14px 35px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -2px 10px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.coffee-card-wrapper:hover .coffee-bag {
  border-color: rgba(255, 90, 54, 0.5);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.8),
    0 0 35px rgba(255, 90, 54, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* Top Laser Heat-Seal Crimp */
.bag-crimp {
  height: 28px;
  margin-inline: -1.5rem;
  margin-bottom: 1.25rem;
  background: repeating-linear-gradient(
    90deg,
    #101116,
    #101116 3px,
    #21242e 3px,
    #21242e 6px
  );
  border-bottom: 2px solid rgba(0, 0, 0, 0.9);
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.7);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tear Notch (Left & Right Cutouts) */
.bag-tear-notch-left,
.bag-tear-notch-right {
  position: absolute;
  top: 6px;
  width: 10px;
  height: 14px;
  background-color: var(--bg-secondary);
  border-radius: 4px;
}
.bag-tear-notch-left {
  left: -5px;
}
.bag-tear-notch-right {
  right: -5px;
}

/* Zipper Line */
.bag-zipper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 90, 54, 0.35);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Degassing Aroma Valve */
.bag-valve-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.bag-valve {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, #242733 0%, #101115 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    inset 0 1px 3px rgba(255, 255, 255, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.7);
  display: grid;
  place-items: center;
  position: relative;
}

.bag-valve-dots {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 90, 54, 0.4);
  display: grid;
  place-items: center;
}

.bag-valve-center {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent-coral);
  box-shadow: 0 0 6px var(--accent-coral);
}

/* Specialty Dark Editorial Paper Sticker Label */
.bag-label {
  background: linear-gradient(170deg, #1e202a 0%, #161720 100%);
  color: #ffffff;
  border-radius: 10px;
  padding: 1.5rem 1.35rem 1.35rem 1.35rem;
  position: relative;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Craft Stamp / Batch Header */
.label-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.label-batch-tag {
  background: var(--accent-coral-strong);
  color: #ffffff;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(255, 90, 54, 0.3);
}

.label-title-group {
  margin-top: -0.15rem;
}

.label-item-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-coral);
  display: block;
  margin-bottom: 0.2rem;
}

.label-service-name {
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* Tasting Notes Section */
.label-notes-box {
  background: rgba(255, 90, 54, 0.06);
  border-left: 3px solid var(--accent-coral);
  padding: 0.65rem 0.85rem;
  border-radius: 0 6px 6px 0;
  border-top: 1px solid rgba(255, 90, 54, 0.12);
  border-right: 1px solid rgba(255, 90, 54, 0.12);
  border-bottom: 1px solid rgba(255, 90, 54, 0.12);
}

.label-notes-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-coral);
  display: block;
  margin-bottom: 0.2rem;
}

.label-notes-content {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* Punchy Roast Description */
.label-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  font-weight: 400;
}

/* Footer Specs & Barcode */
.label-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  margin-top: 0.25rem;
}

.label-meta-tags {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.label-meta-tags strong {
  color: #ffffff;
}

/* Barcode SVG representation */
.label-barcode {
  display: flex;
  gap: 2px;
  height: 26px;
  align-items: flex-end;
}

.barcode-bar {
  background-color: rgba(255, 255, 255, 0.6);
  height: 100%;
  width: 2px;
}
.barcode-bar.w-1 { width: 1px; }
.barcode-bar.w-2 { width: 2px; }
.barcode-bar.w-3 { width: 3px; }
.barcode-bar.w-4 { width: 4px; }

/* Bag Bottom Seal */
.bag-bottom-seal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.bag-origin-stamp {
  border: 1px solid rgba(255, 90, 54, 0.35);
  color: var(--accent-coral);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Shiny Sheen Layer on Hover */
.bag-sheen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  pointer-events: none;
  opacity: 0.6;
}
