/* Appily Twenty — Sheaf Cart (sh-) — florist slip layout */

.page-sh-sheaf {
  --sh-wine: #2d1b2e;
  --sh-wine-soft: #4a3048;
  --sh-blush: #e8c4c4;
  --sh-blush-deep: #c99595;
  --sh-mint: #7eb8a4;
  --sh-mint-dark: #5a9688;
  --sh-cream: #faf6f1;
  --sh-paper: #fffefb;
  --sh-slip: #fffefb;
  --sh-ink: #1a1418;
  --sh-muted: #6b5f66;
  --sh-line: rgba(26, 20, 24, 0.1);
  --sh-shadow: 0 18px 40px rgba(45, 27, 46, 0.08);
  --sh-serif: 'Instrument Serif', Georgia, serif;
  --sh-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --sh-mono: 'Consolas', 'Courier New', monospace;
  background: var(--sh-cream);
  font-family: var(--sh-sans);
}

.page-sh-sheaf .page-main { padding-top: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Hero ── */
.sh-hero {
  position: relative;
  padding: clamp(36px, 5vw, 56px) 0 clamp(28px, 4vw, 40px);
  background:
    radial-gradient(ellipse 75% 55% at 88% 18%, rgba(126, 184, 164, 0.2), transparent 55%),
    radial-gradient(ellipse 55% 45% at 12% 82%, rgba(232, 196, 196, 0.32), transparent 50%),
    linear-gradient(168deg, var(--sh-paper) 0%, var(--sh-cream) 100%);
  border-bottom: 1px solid var(--sh-line);
  overflow: hidden;
}

.sh-hero-petals {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 35%, rgba(45, 27, 46, 0.04) 0 10px, transparent 10px),
    radial-gradient(circle at 72% 28%, rgba(126, 184, 164, 0.12) 0 14px, transparent 14px),
    radial-gradient(circle at 55% 75%, rgba(232, 196, 196, 0.2) 0 12px, transparent 12px);
  pointer-events: none;
}

.sh-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}

.sh-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sh-mint-dark);
}

.sh-hero-copy h1 {
  margin: 0 0 12px;
  font-family: var(--sh-serif);
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.06;
  color: var(--sh-ink);
  letter-spacing: -0.03em;
}

.sh-hero-copy h1 em {
  font-style: italic;
  color: var(--sh-wine);
}

.sh-lede {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--sh-muted);
  max-width: 44ch;
}

/* Vase meter */
.sh-bundle {
  text-align: center;
  min-width: 140px;
}

.sh-vase {
  position: relative;
  width: 72px;
  height: 96px;
  margin: 0 auto 12px;
  border: 2px solid rgba(45, 27, 46, 0.15);
  border-radius: 4px 4px 18px 18px;
  background: rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.sh-vase-water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--sh-fill, 20%);
  background: linear-gradient(180deg, rgba(126, 184, 164, 0.5), rgba(126, 184, 164, 0.75));
  transition: height 0.4s ease;
}

.sh-vase-stems {
  position: absolute;
  left: 50%;
  bottom: 28%;
  width: 3px;
  height: 48px;
  margin-left: -1.5px;
  background: linear-gradient(180deg, var(--sh-mint-dark), transparent);
  border-radius: 999px;
  opacity: 0.6;
}

.sh-vase-stems::before,
.sh-vase-stems::after {
  content: "";
  position: absolute;
  bottom: 70%;
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 40% 40%;
  background: var(--sh-blush);
}

.sh-vase-stems::before { left: -10px; transform: rotate(-25deg); }
.sh-vase-stems::after { right: -10px; transform: rotate(25deg); }

.sh-bundle-count {
  display: block;
  font-family: var(--sh-serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  color: var(--sh-wine);
}

.sh-bundle-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sh-muted);
  margin-top: 4px;
}

.sh-bundle-total {
  display: block;
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--sh-mint-dark);
}

/* ── Floor ── */
.sh-floor {
  padding: clamp(28px, 4vw, 44px) 0 clamp(56px, 7vw, 80px);
}

/* Empty */
.sh-empty {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 24px;
  background: var(--sh-paper);
  border: 1px dashed var(--sh-blush-deep);
  border-radius: 20px;
}

.sh-empty-sheaf {
  position: relative;
  width: 120px;
  height: 80px;
  margin: 0 auto 24px;
  border: 2px dashed var(--sh-line);
  border-radius: 50% 50% 12px 12px;
  background: var(--sh-cream);
}

.sh-empty-twine {
  position: absolute;
  left: 50%;
  top: -8px;
  width: 48px;
  height: 16px;
  margin-left: -24px;
  border: 2px solid var(--sh-blush-deep);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
}

.sh-empty-tag {
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  padding: 4px 12px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sh-muted);
  background: var(--sh-cream);
  border-radius: 999px;
}

.sh-empty h2 {
  margin: 0 0 10px;
  font-family: var(--sh-serif);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--sh-ink);
}

.sh-empty p {
  margin: 0 0 22px;
  color: var(--sh-muted);
  font-size: 0.92rem;
}

/* Layout */
.sh-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(24px, 3vw, 36px);
  align-items: start;
}

/* Clipboard form */
.sh-form {
  background: var(--sh-paper);
  border: 1px solid var(--sh-line);
  border-radius: 4px 4px 16px 16px;
  box-shadow: var(--sh-shadow);
  overflow: hidden;
}

.sh-clipboard-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px 16px;
  background: linear-gradient(180deg, rgba(232, 196, 196, 0.25), transparent);
  border-bottom: 1px solid var(--sh-line);
}

.sh-clip {
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
  background: linear-gradient(180deg, #888, #555);
  border-radius: 6px 6px 2px 2px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  position: relative;
}

.sh-clip::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -6px;
  height: 8px;
  background: #666;
  border-radius: 0 0 4px 4px;
}

.sh-clipboard-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sh-mint-dark);
}

.sh-clipboard-meta {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--sh-muted);
}

.sh-slips {
  margin: 0;
  padding: 16px 20px 8px;
  list-style: none;
  display: grid;
  gap: 14px;
}

.sh-slip {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr auto auto auto;
  gap: 14px 16px;
  align-items: center;
  padding: 16px 18px 16px 22px;
  background: var(--sh-slip);
  border: 1px solid var(--sh-line);
  border-left: 3px solid var(--sh-mint);
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(45, 27, 46, 0.05);
  transform: rotate(var(--sh-rot, 0deg));
  transition: transform 0.2s, box-shadow 0.2s;
}

.sh-slip:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 0 10px 28px rgba(45, 27, 46, 0.1);
  z-index: 1;
}

.sh-slip-pin {
  position: absolute;
  top: -6px;
  left: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e85a7a, #c44569);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sh-slip-thumb {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sh-cream);
  border: 2px solid var(--sh-blush);
  flex-shrink: 0;
}

.sh-slip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sh-slip-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 1.5rem;
  color: var(--sh-blush-deep);
}

.sh-slip-body {
  min-width: 0;
}

.sh-slip-aisle {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sh-mint-dark);
  margin-bottom: 2px;
}

.sh-slip-body h2 {
  margin: 0 0 4px;
  font-family: var(--sh-serif);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.25;
}

.sh-slip-body h2 a {
  color: var(--sh-ink);
  text-decoration: none;
}

.sh-slip-body h2 a:hover { color: var(--sh-wine); }

.sh-slip-pack {
  margin: 0 0 4px;
  font-size: 0.82rem;
  color: var(--sh-muted);
}

.sh-slip-sku {
  font-family: var(--sh-mono);
  font-size: 0.68rem;
  color: var(--sh-muted);
  opacity: 0.85;
}

.sh-slip-unit-label,
.sh-slip-qty-label,
.sh-slip-line-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sh-muted);
  margin-bottom: 4px;
}

.sh-slip-price strong,
.sh-slip-line strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--sh-wine);
  white-space: nowrap;
}

.sh-qty-ring {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--sh-line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--sh-cream);
}

.sh-qty-btn {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 1rem;
  font-weight: 700;
  color: var(--sh-wine);
  cursor: pointer;
  transition: background 0.15s;
}

.sh-qty-btn:hover {
  background: rgba(232, 196, 196, 0.35);
}

.sh-qty-ring input {
  width: 40px;
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sh-ink);
  -moz-appearance: textfield;
}

.sh-qty-ring input::-webkit-outer-spin-button,
.sh-qty-ring input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sh-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px 24px;
  border-top: 1px dashed var(--sh-line);
}

/* Buttons */
.sh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.sh-btn-primary {
  background: var(--sh-wine);
  color: #fff;
}

.sh-btn-primary:hover {
  background: var(--sh-wine-soft);
  color: #fff;
}

.sh-btn-soft {
  background: rgba(126, 184, 164, 0.2);
  color: var(--sh-wine);
  border: 1.5px solid rgba(126, 184, 164, 0.45);
}

.sh-btn-soft:hover {
  background: rgba(126, 184, 164, 0.35);
}

.sh-btn-ghost {
  background: transparent;
  color: var(--sh-wine);
  border: 1.5px solid var(--sh-blush-deep);
}

.sh-btn-ghost:hover {
  background: rgba(232, 196, 196, 0.25);
}

.sh-btn-block {
  width: 100%;
}

/* Sidebar */
.sh-aside {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.sh-spotlight {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: var(--sh-paper);
  border: 1px solid var(--sh-line);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: var(--sh-shadow);
  transition: transform 0.2s;
}

.sh-spotlight:hover {
  transform: translateY(-3px);
}

.sh-spotlight img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
}

.sh-spotlight-copy span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sh-mint-dark);
  margin-bottom: 4px;
}

.sh-spotlight-copy strong {
  font-family: var(--sh-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--sh-ink);
  line-height: 1.3;
}

/* Ribbon receipt */
.sh-receipt {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--sh-paper);
  border: 1px solid var(--sh-line);
  border-radius: 16px;
  box-shadow: var(--sh-shadow);
  overflow: hidden;
}

.sh-receipt-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  width: 24px;
  height: 48px;
  margin-left: -12px;
  background: linear-gradient(180deg, var(--sh-blush-deep), var(--sh-wine));
  clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
}

.sh-receipt h2 {
  margin: 12px 0 18px;
  font-family: var(--sh-serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--sh-ink);
  text-align: center;
}

.sh-receipt-rows {
  margin: 0 0 16px;
  padding: 0;
}

.sh-receipt-rows div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--sh-line);
}

.sh-receipt-rows dt {
  font-size: 0.88rem;
  color: var(--sh-muted);
  font-weight: 500;
}

.sh-receipt-rows dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sh-ink);
}

.sh-receipt-grand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 20px;
  font-size: 1rem;
}

.sh-receipt-grand strong {
  font-family: var(--sh-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--sh-wine);
}

.sh-receipt-actions {
  display: grid;
  gap: 10px;
}

/* Perks */
.sh-perks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.sh-perks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--sh-paper);
  border: 1px solid var(--sh-line);
  border-radius: 12px;
}

.sh-perk-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  background: rgba(232, 196, 196, 0.35);
  border-radius: 50%;
}

.sh-perks strong {
  display: block;
  font-size: 0.88rem;
  color: var(--sh-ink);
  margin-bottom: 2px;
}

.sh-perks p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--sh-muted);
}

/* Responsive */
@media (max-width: 960px) {
  .sh-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sh-lede { margin-left: auto; margin-right: auto; }

  .sh-layout {
    grid-template-columns: 1fr;
  }

  .sh-aside {
    position: static;
  }

  .sh-slip {
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
  }

  .sh-slip-price,
  .sh-slip-qty,
  .sh-slip-line {
    grid-column: 2;
  }

  .sh-slip-price,
  .sh-slip-qty {
    display: inline-flex;
    flex-direction: column;
    margin-right: 16px;
  }

  .sh-slip-line {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px dashed var(--sh-line);
    margin-top: 4px;
  }
}

@media (max-width: 520px) {
  .sh-slip {
    transform: none !important;
    padding: 14px 16px;
  }

  .sh-form-actions {
    flex-direction: column;
  }

  .sh-form-actions .sh-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sh-slip,
  .sh-spotlight,
  .sh-vase-water {
    transition: none;
  }
}
