/* Appily Seventeen — Germination Flat cart */

.page-germ-flat .page-main {
  background: linear-gradient(180deg, #e8f4ec 0%, #f4f8f5 28%, #fafcfb 100%);
}

/* ── Bench hero ── */
.gf-bench {
  position: relative;
  padding: 48px 0 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 20% 0%, rgba(59, 183, 126, 0.18) 0%, transparent 55%),
    linear-gradient(165deg, #1e3d32 0%, #2a5244 42%, #3d6b58 100%);
  color: #f0f7f3;
}
.gf-mist {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 70% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 30% 60%, rgba(59, 183, 126, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.gf-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.gf-bench-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  padding-bottom: 36px;
}
.gf-kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(59, 183, 126, 0.2);
  border: 1px solid rgba(126, 224, 173, 0.35);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7ee0ad;
}
.gf-bench-copy h1 {
  margin: 0 0 14px;
  font-family: var(--fv-font-alt, 'Quicksand', sans-serif);
  font-size: clamp(1.85rem, 3.8vw, 2.55rem);
  line-height: 1.12;
  font-weight: 700;
}
.gf-bench-copy h1 em {
  font-style: normal;
  color: #7ee0ad;
}
.gf-lede {
  margin: 0;
  max-width: 48ch;
  font-size: 0.94rem;
  line-height: 1.65;
  color: rgba(240, 247, 243, 0.82);
}

/* Flat meter widget */
.gf-flat-meter {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 22px 20px 26px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  text-align: center;
}
.gf-tray {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  width: 100%;
  max-width: 200px;
  margin-bottom: 8px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.gf-tray-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s, box-shadow 0.3s;
}
.gf-tray-cell.is-filled {
  background: linear-gradient(145deg, #3bb77e, #2d9668);
  border-color: rgba(126, 224, 173, 0.5);
  box-shadow: 0 0 8px rgba(59, 183, 126, 0.4);
}
.gf-meter-num {
  font-family: var(--fv-font-alt, 'Quicksand', sans-serif);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}
.gf-meter-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(240, 247, 243, 0.65);
}
.gf-meter-total {
  margin-top: 4px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #7ee0ad;
}
.gf-meter-badge {
  margin-top: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(59, 183, 126, 0.25);
  font-size: 0.72rem;
  font-weight: 600;
}
.gf-bench-lip {
  position: relative;
  height: 12px;
  background: linear-gradient(180deg, #3d6b58, #8fbc9a);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.gf-bench-lip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, #7aab8e 0, #7aab8e 10px, #6a9a7e 10px, #6a9a7e 12px);
}

/* ── Floor ── */
.gf-floor {
  padding: 40px 0 72px;
}

/* Empty state */
.gf-empty {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
.gf-empty-tray {
  position: relative;
  margin: 0 auto 28px;
  padding: 20px;
  max-width: 320px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid #c8ddd2;
  box-shadow: 0 16px 48px rgba(30, 61, 50, 0.08);
}
.gf-empty-cells {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.gf-empty-cell {
  aspect-ratio: 1;
  border-radius: 6px;
  background: #eef6f1;
  border: 1px dashed #b8d4c4;
}
.gf-empty-tag {
  display: block;
  margin-top: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b9080;
}
.gf-empty h2 {
  margin: 0 0 10px;
  font-family: var(--fv-font-alt, 'Quicksand', sans-serif);
  font-size: 1.45rem;
  color: #253d4e;
}
.gf-empty p {
  margin: 0 0 22px;
  font-size: 0.92rem;
  color: #6b7280;
  line-height: 1.6;
}

/* Layout */
.gf-layout {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
  gap: 28px;
  align-items: start;
}

/* Form header */
.gf-rack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid #d4e8dc;
}
.gf-rack-tag {
  padding: 6px 14px;
  border-radius: 8px;
  background: #253d4e;
  color: #7ee0ad;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gf-rack-meta {
  font-size: 0.82rem;
  color: #6b7280;
}

/* Lot rows */
.gf-lots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gf-lot {
  position: relative;
  padding-left: 12px;
}
.gf-cell-badge {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(145deg, #3bb77e, #2d9668);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(59, 183, 126, 0.35);
}
.gf-lot-card {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px 16px 24px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #dceee4;
  box-shadow: 0 8px 28px rgba(30, 61, 50, 0.05);
  overflow: hidden;
}
.gf-lot-rim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3bb77e, #253d4e);
}
.gf-lot-thumb {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef6f1;
  border: 1px solid #dceee4;
}
.gf-lot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gf-lot-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2rem;
}
.gf-lot-body {
  min-width: 0;
}
.gf-lot-sku {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #eef6f1;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  color: #2d8a5e;
  letter-spacing: 0.04em;
}
.gf-lot-body h2 {
  margin: 0 0 4px;
  font-family: var(--fv-font-alt, 'Quicksand', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.gf-lot-body h2 a {
  color: #253d4e;
  text-decoration: none;
}
.gf-lot-body h2 a:hover {
  color: #3bb77e;
}
.gf-lot-variant {
  margin: 0 0 4px;
  font-size: 0.82rem;
  color: #6b7280;
}
.gf-lot-unit {
  font-size: 0.78rem;
  color: #8a9aa8;
}
.gf-lot-qty {
  text-align: center;
}
.gf-lot-qty label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}
.gf-qty-wrap input {
  width: 64px;
  padding: 10px 8px;
  border: 1px solid #c8ddd2;
  border-radius: 10px;
  background: #fafcfb;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}
.gf-qty-wrap input:focus {
  outline: none;
  border-color: #3bb77e;
  box-shadow: 0 0 0 3px rgba(59, 183, 126, 0.15);
}
.gf-lot-line {
  text-align: right;
  min-width: 80px;
}
.gf-line-label {
  display: block;
  margin-bottom: 2px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a9aa8;
}
.gf-lot-line strong {
  font-family: var(--fv-font-alt, 'Quicksand', sans-serif);
  font-size: 1.1rem;
  color: #253d4e;
}

.gf-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed #c8ddd2;
}

/* Buttons */
.gf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.gf-btn-block {
  width: 100%;
}
.gf-btn-primary {
  background: linear-gradient(145deg, #3bb77e, #2d9668);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 183, 126, 0.35);
}
.gf-btn-primary:hover {
  background: linear-gradient(145deg, #45c98a, #359f72);
  transform: translateY(-1px);
}
.gf-btn-soft {
  background: rgba(59, 183, 126, 0.12);
  color: #2d8a5e;
  border: 1px solid rgba(59, 183, 126, 0.25);
}
.gf-btn-soft:hover {
  background: rgba(59, 183, 126, 0.22);
}
.gf-btn-ghost {
  background: transparent;
  color: #6b7280;
  border: 1px solid #c8ddd2;
}
.gf-btn-ghost:hover {
  background: #eef6f1;
  color: #253d4e;
}

/* Manifest sidebar */
.gf-manifest {
  position: sticky;
  top: 100px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #dceee4;
  box-shadow: 0 20px 56px rgba(30, 61, 50, 0.08);
  overflow: hidden;
}
.gf-manifest-texture {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23253d4e' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
  pointer-events: none;
}
.gf-manifest-stamp {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 2.8rem;
  font-weight: 900;
  color: rgba(59, 183, 126, 0.08);
  letter-spacing: -0.04em;
  pointer-events: none;
}
.gf-manifest-body {
  position: relative;
  padding: 24px 22px 20px;
}
.gf-manifest-store {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3bb77e;
}
.gf-manifest-title {
  margin: 0 0 6px;
  font-family: var(--fv-font-alt, 'Quicksand', sans-serif);
  font-size: 1.25rem;
  color: #253d4e;
}
.gf-manifest-date {
  margin: 0 0 18px;
  font-size: 0.78rem;
  color: #8a9aa8;
}
.gf-manifest-rows {
  margin: 0 0 16px;
  padding: 0;
}
.gf-manifest-rows div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dotted #dceee4;
}
.gf-manifest-rows dt {
  margin: 0;
  font-size: 0.82rem;
  color: #6b7280;
}
.gf-manifest-rows dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #253d4e;
}
.gf-manifest-perf {
  height: 1px;
  margin: 4px 0 16px;
  background: repeating-linear-gradient(90deg, #253d4e 0, #253d4e 4px, transparent 4px, transparent 8px);
  opacity: 0.2;
}
.gf-manifest-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef6f1 0%, #e4f3eb 100%);
  border: 1px solid #c8ddd2;
}
.gf-manifest-total span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7280;
}
.gf-manifest-total strong {
  font-family: var(--fv-font-alt, 'Quicksand', sans-serif);
  font-size: 1.35rem;
  color: #253d4e;
}
.gf-manifest-notes {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gf-manifest-notes li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #4b5563;
}
.gf-manifest-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gf-manifest-barcode {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 14px 20px 16px;
  background: #fafcfb;
  border-top: 1px dashed #dceee4;
}
.gf-manifest-barcode span {
  display: block;
  width: 3px;
  background: #253d4e;
  border-radius: 1px;
  opacity: 0.35;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .gf-bench-inner {
    grid-template-columns: 1fr;
  }
  .gf-layout {
    grid-template-columns: 1fr;
  }
  .gf-manifest {
    position: static;
  }
  .gf-lot-card {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
  }
  .gf-lot-qty,
  .gf-lot-line {
    grid-column: 1 / -1;
  }
  .gf-lot-qty {
    text-align: left;
  }
  .gf-lot-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    text-align: left;
  }
  .gf-line-label {
    display: inline;
    margin: 0;
  }
}
@media (max-width: 560px) {
  .gf-lot-card {
    grid-template-columns: 1fr;
    padding-left: 18px;
  }
  .gf-lot-thumb {
    width: 100%;
    height: 140px;
  }
  .gf-cell-badge {
    top: 14px;
    transform: none;
  }
  .gf-rack-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
