/* ── Shopping-list teaser card ──────────────────────────────────────────
   Mirrors .vq-teaser-section structure so the two homepage cards read as
   a matched pair. Left column = pitch + steps + CTA, right column = the
   "list being photographed" visual. Stacks on mobile.
*/
.sl-teaser-section {
    padding: 24px 0 32px;
}

.sl-teaser-card {
    display: flex;
    align-items: stretch;
    gap: 32px;
    padding: 40px 48px;
    background: linear-gradient(135deg, #fff5f9 0%, #ffe8f1 60%, #ffd7e7 100%);
    border: 1px solid #f8bbd0;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

/* Compact single-column variant — used on the homepage so the teaser
   sizes roughly to the vitamin-quiz card above it. No right-column
   visual, no 3-step list (both live on /upload-shopping-list instead). */
.sl-teaser-card--compact {
    display: block;
    padding: 20px 28px;
}

.sl-teaser-card--compact .sl-teaser-content {
    max-width: none;
    gap: 8px;
}

.sl-teaser-card--compact .sl-teaser-badge {
    padding: 4px 12px;
    font-size: 11px;
}

.sl-teaser-card--compact .sl-teaser-title {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 0;
}

.sl-teaser-card--compact .sl-teaser-sub {
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 0;
}

.sl-teaser-card--compact .sl-cat-chips {
    margin: 4px 0;
    gap: 6px;
}

.sl-teaser-card--compact .sl-cat-chip {
    padding: 4px 10px;
    font-size: 12px;
}

.sl-teaser-card--compact .sl-teaser-btn {
    padding: 9px 18px;
    font-size: 13.5px;
}

.sl-teaser-card--compact .sl-teaser-note {
    margin-top: 4px;
    font-size: 11.5px;
}

@media (max-width: 640px) {
    .sl-teaser-card--compact {
        padding: 18px 16px;
    }
    .sl-teaser-card--compact .sl-teaser-title {
        font-size: 18px;
    }
}

.sl-teaser-content {
    flex: 1 1 60%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sl-teaser-badge {
    align-self: flex-start;
    padding: 6px 14px;
    background: #fff;
    color: #e4006d;
    border: 1.5px solid #f8bbd0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.sl-teaser-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    color: #1e293b;
}

.sl-teaser-sub {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
}

.sl-teaser-steps {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sl-teaser-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #1e293b;
}

.sl-teaser-step-num {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e4006d;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sl-teaser-step-text {
    flex: 1 1 auto;
    color: #475569;
}

.sl-teaser-step-text strong {
    color: #1e293b;
    font-weight: 700;
}

.sl-teaser-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    margin-top: 8px;
    background: #e4006d;
    color: #fff !important;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, transform .1s;
}

.sl-teaser-btn:hover {
    background: #c20060;
}

.sl-teaser-btn:active {
    transform: translateY(1px);
}

.sl-teaser-note {
    margin: 4px 0 0;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}

/* ── Right column visual ───────────────────────────────────────────── */
.sl-teaser-visual {
    flex: 1 1 35%;
    min-width: 0;
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cap the illustration size when it lives inside the teaser flex
   (the standalone-page version is larger by default). */
.sl-teaser-visual .sl-illust-paper {
    max-width: 280px;
    transform: rotate(-4deg);
}

.sl-teaser-paper {
    width: 100%;
    max-width: 260px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px 20px;
    box-shadow: 0 12px 32px rgba(228, 0, 109, .12), 0 2px 6px rgba(0,0,0,.05);
    transform: rotate(-4deg);
    position: relative;
}

.sl-teaser-paper::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px dashed #e5e7eb;
    border-radius: 4px;
    pointer-events: none;
}

.sl-teaser-paper-line {
    font-family: "Caveat", "Segoe Script", cursive, system-ui;
    font-size: 18px;
    color: #475569;
    line-height: 1.8;
    border-bottom: 1px solid #f1f5f9;
    padding: 4px 0;
}

.sl-teaser-paper-line:last-child {
    border-bottom: 0;
}

/* Strikethrough effect for the "found" items */
.sl-teaser-paper-line-1,
.sl-teaser-paper-line-2 {
    text-decoration: line-through;
    color: #94a3b8;
}

.sl-teaser-discount {
    position: absolute;
    top: 8px;
    right: 0;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #e4006d;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 24px;
    line-height: 1;
    transform: rotate(12deg);
    box-shadow: 0 8px 20px rgba(228, 0, 109, .35);
}

.sl-teaser-discount span {
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-top: 3px;
}

.sl-teaser-camera {
    position: absolute;
    bottom: 12px;
    left: 8px;
    font-size: 38px;
    transform: rotate(-12deg);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.15));
}

/* ── Mobile / tablet stack ───────────────────────────────────────── */
@media (max-width: 900px) {
    .sl-teaser-card {
        flex-direction: column;
        padding: 28px 24px;
        gap: 24px;
    }
    .sl-teaser-title {
        font-size: 22px;
    }
    .sl-teaser-visual {
        min-height: 220px;
        order: -1;       /* visual on top on mobile */
    }
    .sl-teaser-paper {
        max-width: 220px;
    }
    .sl-teaser-discount {
        width: 70px;
        height: 70px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .sl-teaser-card {
        padding: 24px 20px;
    }
    .sl-teaser-title {
        font-size: 20px;
    }
    .sl-teaser-sub {
        font-size: 14px;
    }
    .sl-teaser-paper {
        max-width: 180px;
        padding: 18px 16px;
    }
    .sl-teaser-paper-line {
        font-size: 15px;
    }
}

/* ────────────────────────────────────────────────────────────────────
   /upload-shopping-list — standalone page styles. Two-column layout
   per spec (left = copy + upload, right = illustrated list). Shares
   the picker / preview / success state DOM with the homepage teaser
   by class name.
   ──────────────────────────────────────────────────────────────────── */
.sl-page {
    padding: 24px 0 48px;
    background: #fdf4f9;
    background-image: linear-gradient(180deg, #fdf4f9 0%, #fff 100%);
    min-height: calc(100vh - 200px);
}

.sl-page-crumbs {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.sl-page-crumbs a {
    color: #64748b;
    text-decoration: none;
}

.sl-page-crumbs a:hover {
    color: #e4006d;
}

.sl-page-crumb-sep {
    margin: 0 6px;
    color: #cbd5e1;
}

.sl-page-crumb-current {
    color: #1e293b;
    font-weight: 600;
}

.sl-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.sl-page-card {
    background: #fff;
    border: 1px solid #f1d4e3;
    border-radius: 20px;
    padding: 32px 32px 28px;
    box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 12px 28px rgba(228, 0, 109, .06);
}

.sl-page-offer-label {
    display: inline-block;
    padding: 6px 14px;
    background: #fff5f9;
    color: #e4006d;
    border: 1.5px solid #f8bbd0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    margin-bottom: 14px;
}

.sl-page-title {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.3px;
}

.sl-page-sub {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
}

.sl-page-sub strong {
    color: #1e293b;
    font-weight: 700;
}

/* ── Category chips ────────────────────────────────────────────── */
.sl-cat-chips {
    list-style: none;
    margin: 18px 0 22px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sl-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    border: 1.5px solid #f1d4e3;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    /* Informational — not interactive. */
    cursor: default;
    user-select: none;
}

.sl-cat-emoji {
    font-size: 14px;
}

/* ── 3-step list (standalone page; teaser uses sl-teaser-steps) ── */
.sl-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sl-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sl-steps li > div {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sl-steps strong {
    color: #1e293b;
    font-weight: 700;
    font-size: 14px;
}

.sl-step-detail {
    color: #64748b;
    font-size: 13.5px;
    line-height: 1.5;
}

.sl-step-num {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e4006d;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Upload module wraps the picker/preview/success states ──── */
.sl-upload-module {
    border-top: 1px solid #f1f5f9;
    margin-top: 12px;
    padding-top: 20px;
}

.sl-btn-primary--cta {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 14px 28px;
    font-size: 15px;
}

.sl-footer-fine {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
}

/* ── Right column illustrated list ──────────────────────────────── */
.sl-illust {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 32px;
}

.sl-illust-paper {
    width: 100%;
    max-width: 320px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 24px 28px;
    box-shadow: 0 16px 40px rgba(228, 0, 109, .12), 0 2px 6px rgba(0,0,0,.05);
    transform: rotate(-3deg);
    position: relative;
}

.sl-illust-paper::before {
    /* Subtle paper texture lines */
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px dashed #f1d4e3;
    border-radius: 6px;
    pointer-events: none;
}

.sl-illust-title {
    font-family: "Caveat", "Segoe Script", cursive, system-ui;
    font-size: 28px;
    color: #e4006d;
    text-align: center;
    margin-bottom: 14px;
    font-weight: 700;
    border-bottom: 2px solid #fbe4ee;
    padding-bottom: 8px;
}

.sl-illust-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sl-illust-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px;
    font-family: "Caveat", "Segoe Script", cursive, system-ui;
    font-size: 20px;
    color: #1e293b;
    border-bottom: 1px solid #f8fafc;
}

.sl-illust-list li:last-child {
    border-bottom: 0;
}

.sl-illust-tick {
    font-size: 18px;
    color: #cbd5e1;
    width: 22px;
    text-align: center;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .sl-page-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .sl-page-card {
        padding: 24px 20px;
    }
    .sl-page-title {
        font-size: 24px;
    }
    .sl-illust {
        order: -1;       /* Visual above copy on mobile */
        padding-top: 0;
    }
    .sl-illust-paper {
        max-width: 260px;
        transform: rotate(-2deg);
    }
    .sl-illust-title {
        font-size: 24px;
    }
    .sl-illust-list li {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .sl-page-card {
        padding: 22px 16px;
        border-radius: 16px;
    }
    .sl-page-title {
        font-size: 22px;
    }
    .sl-page-sub {
        font-size: 14px;
    }
    .sl-illust-paper {
        max-width: 220px;
        padding: 20px 18px;
    }
}

/* Shared state styles (picker / preview / success) — used by both the
   standalone page and any future modal we might reintroduce. */
.sl-modal-fine {
    font-size: 12px;
    color: #94a3b8;
    margin: 12px 0 0;
    text-align: center;
}

.sl-modal-error {
    margin: 12px 0 0;
    padding: 10px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 13px;
}

.sl-pick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sl-pick-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 12px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .1s;
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.sl-pick-tile:hover {
    background: #fff5f9;
    border-color: #e4006d;
}

.sl-pick-tile:active {
    transform: scale(.98);
}

.sl-pick-tile i {
    font-size: 32px;
    color: #e4006d;
}

@media (max-width: 480px) {
    .sl-pick-actions {
        grid-template-columns: 1fr;
    }
    .sl-pick-tile {
        padding: 20px 12px;
        flex-direction: row;
        justify-content: flex-start;
    }
    .sl-pick-tile i {
        font-size: 24px;
    }
}

.sl-preview-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    margin-bottom: 12px;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
}

.sl-preview-image {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
    display: block;
}

.sl-preview-pdf {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px;
    color: #475569;
}

.sl-preview-pdf i {
    font-size: 48px;
    color: #b91c1c;
}

.sl-preview-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #475569;
    padding: 0 4px;
}

.sl-preview-size {
    color: #94a3b8;
    font-size: 12px;
}

.sl-preview-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.sl-btn-secondary,
.sl-btn-primary {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.sl-btn-secondary {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
}

.sl-btn-secondary:hover {
    background: #e2e8f0;
}

.sl-btn-primary {
    background: #e4006d;
    color: #fff;
}

.sl-btn-primary:hover {
    background: #c20060;
}

.sl-btn-primary:disabled {
    background: #f3a4c4;
    cursor: not-allowed;
}

.sl-success-wrap {
    text-align: center;
    padding: 8px 0;
}

.sl-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.sl-success-title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.sl-success-sub {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 14px;
}

.sl-coupon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px 16px;
    background: linear-gradient(135deg, #fff5f9 0%, #fce4ec 100%);
    border: 2px dashed #e4006d;
    border-radius: 16px;
    margin-bottom: 16px;
}

.sl-coupon-discount {
    font-size: 32px;
    font-weight: 900;
    color: #e4006d;
    letter-spacing: -0.5px;
}

.sl-coupon-label {
    font-size: 14px;
    color: #475569;
    margin-bottom: 8px;
}

.sl-coupon-code-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.sl-coupon-code {
    display: inline-block;
    margin-top: 4px;
    padding: 8px 18px;
    background: #fff;
    border: 1.5px solid #e4006d;
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 700;
    font-size: 18px;
    color: #e4006d;
    letter-spacing: 1px;
}

.sl-coupon-valid {
    margin-top: 8px;
    font-size: 13px;
    color: #64748b;
}

.sl-coupon-valid:empty {
    display: none;
}

.sl-success-extra {
    margin: 0 0 16px;
    font-size: 13px;
    color: #94a3b8;
}

.sl-success-actions {
    display: flex;
    justify-content: center;
}

.sl-success-actions .sl-btn-primary {
    flex: 0 0 auto;
    padding: 12px 36px;
}
