/* Appily Sixteen — Bloom Sleeve Rack cart */

.page-bloom-sleeve .page-main { background: var(--cream, #FFF8F0); }

/* Hero */
.bs-hero {
  position: relative;
  padding: 44px 0 36px;
  overflow: hidden;
  background: linear-gradient(160deg, #fff8f0 0%, #fbe9e7 40%, #e8f5e9 100%);
}
.bs-kraft {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 3px,
      rgba(141, 110, 99, 0.06) 3px 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 3px,
      rgba(141, 110, 99, 0.04) 3px 4px
    );
  pointer-events: none;
}
.bs-ribbon {
  position: absolute;
  top: -20%;
  right: -5%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 47, 47, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.bs-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}
.bs-kicker {
  font-family: var(--script, 'Marck Script', cursive);
  color: var(--green, #689F38);
  font-size: 1.35rem;
  margin: 0 0 6px;
}
.bs-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.12;
  color: var(--ink);
}
.bs-hero h1 em { font-style: normal; color: var(--red, #D32F2F); }
.bs-lede {
  margin: 0;
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Vase meter */
.bs-vase-meter {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 24px 20px 28px;
  border-radius: 20px;
  background: linear-gradient(165deg, #fff 0%, #fce4ec 100%);
  border: 2px solid rgba(211, 47, 47, 0.15);
  box-shadow: 0 16px 40px rgba(211, 47, 47, 0.1);
  text-align: center;
}
.bs-vase-stems {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  height: 8px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #8d6e63, #6d4c41);
  opacity: 0.35;
}
.bs-vase-icon { font-size: 1.6rem; margin-bottom: 2px; }
.bs-vase-num {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--red);
}
.bs-vase-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.bs-vase-total {
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.bs-hydration-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(104, 159, 56, 0.12);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--green);
}

/* Floor */
.bs-floor { padding: 8px 0 72px; }

/* Empty state */
.bs-empty {
  text-align: center;
  padding: 48px 24px 56px;
  max-width: 480px;
  margin: 0 auto;
}
.bs-empty-rack {
  position: relative;
  width: 200px;
  height: 120px;
  margin: 0 auto 28px;
}
.bs-rack-bar {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #8d6e63, #a1887f);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.bs-rack-slot {
  position: absolute;
  top: 26px;
  width: 48px;
  height: 72px;
  border: 2px dashed rgba(141, 110, 99, 0.35);
  border-radius: 0 0 8px 8px;
  background: rgba(255, 255, 255, 0.5);
}
.bs-rack-slot:nth-child(2) { left: 16px; }
.bs-rack-slot:nth-child(3) { left: 76px; }
.bs-rack-slot:nth-child(4) { left: 136px; }
.bs-rack-label {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.bs-empty h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
}
.bs-empty p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

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

/* Rack head */
.bs-rack-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.bs-rack-tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(211, 47, 47, 0.1);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
}
.bs-rack-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Sleeve list */
.bs-sleeves {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.bs-sleeve {
  position: relative;
  padding-left: 28px;
}
.bs-sleeve-ribbon {
  position: absolute;
  left: 0;
  top: 18px;
  width: 22px;
  height: 48px;
  background: linear-gradient(180deg, var(--red) 0%, #b71c1c 100%);
  border-radius: 4px 4px 8px 8px;
  box-shadow: 2px 4px 10px rgba(211, 47, 47, 0.25);
  display: grid;
  place-items: center;
}
.bs-sleeve-num {
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}
.bs-sleeve-card {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: linear-gradient(135deg, #fff 0%, #fff8f0 100%);
  border: 1px solid rgba(141, 110, 99, 0.25);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.bs-sleeve-fold {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 28px 28px 0;
  border-color: transparent rgba(141, 110, 99, 0.12) transparent transparent;
  border-radius: 0 14px 0 0;
}
.bs-sleeve-thumb {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(104, 159, 56, 0.2);
  background: #f1f8e9;
}
.bs-sleeve-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bs-sleeve-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 2rem;
}
.bs-sleeve-body { min-width: 0; }
.bs-sleeve-sku {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 4px;
}
.bs-sleeve-body h2 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}
.bs-sleeve-body h2 a {
  color: var(--ink);
  text-decoration: none;
}
.bs-sleeve-body h2 a:hover { color: var(--red); }
.bs-sleeve-variant {
  margin: 0 0 4px;
  font-size: 0.78rem;
  color: var(--muted);
}
.bs-sleeve-unit {
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.bs-sleeve-qty label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
  text-align: center;
}
.bs-qty-wrap input {
  width: 64px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font: inherit;
  text-align: center;
}
.bs-qty-wrap input:focus {
  outline: 2px solid rgba(104, 159, 56, 0.35);
  border-color: var(--green);
}
.bs-sleeve-line {
  text-align: right;
  min-width: 72px;
}
.bs-line-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}
.bs-sleeve-line strong {
  font-size: 1.05rem;
  color: var(--red);
}

/* Form actions */
.bs-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* Care tag summary */
.bs-care-tag {
  position: relative;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
  overflow: visible;
}
.bs-tag-hole {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--line);
  z-index: 2;
}
.bs-tag-string {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 24px;
  background: linear-gradient(180deg, var(--red), rgba(211, 47, 47, 0.3));
}
.bs-tag-body { padding: 28px 22px 20px; }
.bs-tag-store {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.bs-tag-title {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
}
.bs-tag-date {
  margin: 0 0 16px;
  font-size: 0.75rem;
  color: var(--muted);
}
.bs-tag-rows {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}
.bs-tag-rows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}
.bs-tag-rows dt { color: var(--ink-soft); font-weight: 500; }
.bs-tag-rows dd { margin: 0; font-weight: 600; color: var(--ink); }
.bs-tag-perf {
  height: 1px;
  margin: 0 0 14px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
.bs-tag-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  font-size: 0.92rem;
}
.bs-tag-total strong {
  font-size: 1.35rem;
  color: var(--red);
}
.bs-tag-notes {
  list-style: none;
  margin: 0 0 20px;
  padding: 14px;
  border-radius: 10px;
  background: #f1f8e9;
  display: grid;
  gap: 8px;
}
.bs-tag-notes li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.bs-tag-actions {
  display: grid;
  gap: 10px;
}
.bs-tag-barcode {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 12px 16px 16px;
  background: var(--cream);
  border-top: 1px dashed var(--line);
}
.bs-tag-barcode span {
  display: block;
  width: 3px;
  background: var(--ink);
  opacity: 0.25;
  border-radius: 1px;
}

/* Buttons */
.bs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.bs-btn-primary {
  background: var(--red, #D32F2F);
  color: #fff;
  box-shadow: 0 6px 18px rgba(211, 47, 47, 0.25);
}
.bs-btn-primary:hover { transform: translateY(-1px); }
.bs-btn-soft {
  background: rgba(104, 159, 56, 0.12);
  color: var(--green);
  border: 1px solid rgba(104, 159, 56, 0.25);
}
.bs-btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.bs-btn-block { width: 100%; }

/* Responsive */
@media (max-width: 900px) {
  .bs-layout { grid-template-columns: 1fr; }
  .bs-care-tag { order: -1; max-width: 420px; margin: 0 auto 8px; }
}

@media (max-width: 720px) {
  .bs-hero-grid { grid-template-columns: 1fr; }
  .bs-vase-meter { max-width: 260px; }
  .bs-sleeve-card {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
  }
  .bs-sleeve-qty,
  .bs-sleeve-line {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
  }
  .bs-sleeve-line { text-align: left; }
  .bs-sleeve-line strong { margin-left: auto; }
  .bs-form-actions { flex-direction: column; }
  .bs-form-actions .bs-btn { width: 100%; }
}

@media (max-width: 480px) {
  .bs-sleeve { padding-left: 0; padding-top: 20px; }
  .bs-sleeve-ribbon {
    top: 0;
    left: 12px;
    width: 36px;
    height: 20px;
    border-radius: 6px 6px 4px 4px;
  }
}
