/* ---------- In-salon materials: management list ---------- */
.sc-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0; border-bottom: 1px solid #EEF0F5; }
.sc-row:last-child { border-bottom: none; }

/* ---------- Printed shelf cards: 3.5in x 2in, 2 x 5 on US letter (Avery 5371/8371 layout) ---------- */
.sc-sheet {
    width: 8.5in; height: 11in; box-sizing: border-box;
    padding: 0.5in 0.75in;
    display: grid; grid-template-columns: 3.5in 3.5in; grid-auto-rows: 2in;
    background: #FFFFFF; margin: 0 auto 1rem; box-shadow: 0 1px 6px rgba(20, 20, 40, 0.12);
}
.sc-card {
    box-sizing: border-box; width: 3.5in; height: 2in;
    padding: 0.16in 0.14in 0.14in 0.2in;
    display: flex; gap: 0.12in; align-items: stretch;
    outline: 1px dashed #D7D9E2; outline-offset: -1px;   /* cut guide on plain paper; invisible on label stock edges */
    color: #1A1D27; font-family: Georgia, "Times New Roman", serif; overflow: hidden;
    border-left: 4px solid #7C3AED;
}
.sc-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sc-card-brand {
    font-family: "Helvetica Neue", Arial, sans-serif; font-size: 7.5pt; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase; color: #7C3AED;
}
.sc-card-name {
    font-size: 12.5pt; line-height: 1.15; font-weight: 700; margin-top: 2pt;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sc-card-size { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 7.5pt; color: #5A6175; margin-top: 2pt; }
.sc-card-price { font-size: 15pt; font-weight: 700; margin-top: auto; }
.sc-card-salon {
    font-family: "Helvetica Neue", Arial, sans-serif; font-size: 6.5pt; color: #8A90A2;
    letter-spacing: 0.06em; text-transform: uppercase; margin-top: auto;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sc-card-price + .sc-card-salon { margin-top: 1pt; }   /* the price takes the push to the bottom; the salon sits under it */
.sc-card-qr {
    width: 1.15in; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-family: "Helvetica Neue", Arial, sans-serif; font-size: 6.5pt; color: #5A6175; text-align: center;
}
.sc-card-qr img { width: 1.1in; height: 1.1in; image-rendering: pixelated; }

/* ---------- Printed counter sign: one per letter page ---------- */
.sc-sign-page {
    width: 8.5in; height: 11in; box-sizing: border-box; padding: 0.6in;
    background: #FFFFFF; margin: 0 auto 1rem; box-shadow: 0 1px 6px rgba(20, 20, 40, 0.12);
    display: flex;
}
.sc-sign {
    flex: 1; border: 2px solid #1A1D27; border-radius: 0.25in; padding: 0.7in 0.6in;
    display: flex; flex-direction: column; align-items: center; text-align: center; color: #1A1D27;
    font-family: Georgia, "Times New Roman", serif;
}
.sc-sign-salon {
    font-family: "Helvetica Neue", Arial, sans-serif; font-size: 12pt; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase; color: #7C3AED;
}
.sc-sign-title { font-size: 44pt; line-height: 1.05; font-weight: 700; margin-top: 0.3in; max-width: 6in; }
.sc-sign-rule { width: 1.2in; height: 3px; background: #7C3AED; margin: 0.35in 0; }
.sc-sign-qr { width: 3.4in; height: 3.4in; image-rendering: pixelated; }
.sc-sign-cta { font-size: 17pt; line-height: 1.3; margin-top: 0.3in; max-width: 5.4in; }
.sc-sign-foot { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 10pt; color: #5A6175; margin-top: auto; }

@media screen and (max-width: 900px) {
    .sc-sheet, .sc-sign-page { zoom: 0.55; }
}

@media print {
    @page { size: letter; margin: 0; }
    html, body { background: #FFFFFF !important; }
    .rz-body, .rz-layout, .rz-content, main, article { margin: 0 !important; padding: 0 !important; background: #FFFFFF !important; }
    .page-header { display: none !important; }
    .sc-sheet, .sc-sign-page { box-shadow: none; margin: 0; zoom: 1; break-after: page; page-break-after: always; }
    .sc-sheet:last-child, .sc-sign-page:last-child { break-after: auto; page-break-after: auto; }
    .sc-card, .sc-sign { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Public scan page (/p/{code}) ---------- */
.sp-eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #7C3AED; }
.sp-hero-img { width: 100%; max-height: 360px; object-fit: contain; background: #F6F4FB; border-radius: 14px; margin-bottom: 14px; }
.sp-name { font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; line-height: 1.15; margin: 4px 0 2px; }
.sp-price-row { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 4px; flex-wrap: wrap; }
.sp-price { font-family: Georgia, "Times New Roman", serif; font-size: 1.9rem; font-weight: 700; }
.sp-was { color: #8A90A2; text-decoration: line-through; }
.sp-chip { display: inline-block; font-size: 0.8rem; font-weight: 600; border-radius: 999px; padding: 3px 10px; }
.sp-chip-sale { background: #EDE7FB; color: #5B21B6; }
.sp-chip-in { background: #E8F5E9; color: #1B5E20; }
.sp-chip-out { background: #FFF4E5; color: #8A4B00; }
.sp-desc { white-space: pre-line; line-height: 1.55; margin-top: 12px; }
.sp-ask { border-left: 3px solid #7C3AED; padding: 6px 0 6px 12px; margin-top: 16px; color: #3B3F4C; }
.sp-item { display: flex; gap: 12px; align-items: flex-start; }
.sp-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; background: #F6F4FB; }
.sp-item-name { font-weight: 700; }
.sp-book { display: block; margin-top: 8px; }
