/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Base ───────────────────────────────────────────────────────────────── */
body {
    font-family: 'Nunito Sans',  Helvetica, Arial, Sans-serif;
    background: ghostwhite;
    min-height: 100vh;
    display: flex;
	flex-direction:column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    padding: 40px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
}

/* ─── Typography ─────────────────────────────────────────────────────────── */
.icon      { font-size: 56px; margin-bottom: 16px; }
.checkmark { font-size: 64px; margin-bottom: 16px; }

h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: black;
    margin-bottom: 8px;
	font-family: 'Nunito Sans',  Helvetica, Arial, Sans-serif;
}


.description {
    color: black;
    line-height: 1.6;
    margin-bottom: 28px;
}

.fine-print { margin-top: 20px; font-size: 1rem; color: midnightblue; }

/* ─── Badge ──────────────────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    background: #ecfdf5;
    color: #065f46;
    font-size: .8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 99px;
    margin-bottom: 24px;
}

.badge.sold-out { background: #fef2f2; color: #991b1b; }

/* ─── Error ──────────────────────────────────────────────────────────────── */
.error {
    background: #fef2f2;
    color: #991b1b;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .9rem;
}

/* ─── Price display ──────────────────────────────────────────────────────── */
.price {
    font-size: 2rem;
    font-weight: 800;
    color: midnightblue;
    margin: 16px 0 4px;
}

.price-per {
    font-size: .85rem;
    color: midnightblue;
    margin-bottom: 16px;
    min-height: 1.2em;
}

/* ─── Form ───────────────────────────────────────────────────────────────── */
form { display: flex; flex-direction: column; gap: 12px; }

input[type="email"] {
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
}

input[type="email"]:focus { border-color: seagreen; }

/* ─── Stepper ────────────────────────────────────────────────────────────── */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.stepper-btn {
    width: 52px;
    height: 52px;
    background: #f9fafb;
    border: none;
    font-size: 1.4rem;
    font-weight: 300;
    color: #374151;
    cursor: pointer;
    flex-shrink: 0;
}

.stepper-btn:hover:not(:disabled) { background: #e5e7eb; }
.stepper-btn:disabled { color: #d1d5db; cursor: not-allowed; }

.stepper-count {
    flex: 1;
    font-size: 1.2rem;
    font-weight: 700;
    color: black;
    text-align: center;
    user-select: none;
}

/* ─── Submit button ──────────────────────────────────────────────────────── */
button[type="submit"] {
    padding: 14px;
    background: seagreen;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

button[type="submit"]:hover  { background: midnightblue; }
button[type="submit"]:active { transform: scale(.98); }

/* ─── Product listing ────────────────────────────────────────────────────── */
.product-list { display: flex; flex-direction: column; gap: 16px; width: 100%; }

.product-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
    text-align: left;
}

.product-card:hover {
    border-color: seagreen;
    background: mintcream;
    box-shadow: 0 2px 12px rgba(79,70,229,.1);
}

.product-card.sold-out  { opacity: .5; pointer-events: none; }
.product-card-name      { font-weight: 700; font-size: 1.1rem; color: black; }
.product-card-meta      { font-size: .85rem; color: #6b7280; margin-top: 2px; }
.product-card-price     { font-weight: 800; font-size: 1.2rem; color: mediumblue; }

/* ─── Success page ───────────────────────────────────────────────────────── */
.page-success h1 { color: #065f46; margin-bottom: 12px; }

.page-success .back-link {
    display: inline-block;
    margin-top: 28px;
    color: mediumblue;
    text-decoration: none;
    font-weight: 600;
}

.page-success .back-link:hover { text-decoration: underline; }

.note {
    margin-top: 24px;
    background: #f0fdf4;
    border-radius: 10px;
    padding: 16px;
    font-size: 1rem;
    color: darkgreen;
}

.qr-single {
    width: 100%;
    max-width: 500px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.qr-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin: 16px 0;
}

.qr-grid-item      { flex: 1; min-width: 160px; max-width: 220px; }
.qr-grid-item img  { width: 100%; object-fit: contain; display: block; }

/* ─── Cancel page ────────────────────────────────────────────────────────── */
.page-cancel h1 { color: #1a1a2e; margin-bottom: 12px; }

.page-cancel .back-link {
    display: inline-block;
    margin-top: 28px;
    padding: 12px 28px;
    background: seagreen;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

.page-cancel .back-link:hover { background: midnightblue; }
