:root {
    --red: #d83a2f;
    --red-dark: #ad261e;
    --cream: #fff9f1;
    --paper: #ffffff;
    --ink: #211b18;
    --muted: #746b65;
    --line: #eadfd4;
    --green: #23875b;
    --shadow: 0 18px 50px rgba(66, 35, 21, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Plus Jakarta Sans", sans-serif; color: var(--ink); background: #fffdf9; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
.container { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.narrow { max-width: 720px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,253,249,.94); border-bottom: 1px solid rgba(234,223,212,.75); backdrop-filter: blur(14px); }
.nav, .footer-inner, .admin-header .container { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 600; }
.brand strong { color: var(--red); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; color: #fff; background: var(--red); border-radius: 50% 50% 44% 50%; font-weight: 800; transform: rotate(-7deg); }
nav { display: flex; align-items: center; gap: 26px; font-weight: 600; }
.cart-link { display: flex; align-items: center; gap: 8px; }
.cart-count { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; color: #fff; background: var(--red); border-radius: 99px; font-size: .76rem; }
.hero { overflow: hidden; padding: 80px 0 100px; background: radial-gradient(circle at 85% 35%, #ffe4c3 0, transparent 34%), var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px; }
.eyebrow { color: var(--red); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 16px 0 22px; font-size: clamp(2.5rem, 6vw, 5.15rem); line-height: 1.02; letter-spacing: -.055em; }
h1 span { color: var(--red); }
.hero-copy > p { max-width: 640px; color: var(--muted); font-size: 1.08rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 11px 20px; border: 0; border-radius: 12px; cursor: pointer; font-weight: 800; transition: .2s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .58; cursor: wait; transform: none; }
.button-primary { color: #fff; background: var(--red); box-shadow: 0 8px 20px rgba(216,58,47,.22); }
.button-primary:hover { background: var(--red-dark); }
.button-secondary { color: var(--ink); background: #f4ede7; }
.button-large { min-height: 56px; padding-inline: 26px; }
.button-block { width: 100%; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.trust-row span::before { content: "✓"; margin-right: 6px; color: var(--green); }
.hero-visual { position: relative; min-height: 450px; display: grid; place-items: center; }
.pizza-art { position: relative; width: min(390px, 80vw); aspect-ratio: 1; border: 18px solid #d89b53; border-radius: 50%; background: radial-gradient(circle at 60% 30%, #fff1aa 0 6%, transparent 7%), radial-gradient(circle at 35% 68%, #fff1aa 0 7%, transparent 8%), #e9b83f; box-shadow: inset 0 0 0 12px #d9422f, 0 35px 60px rgba(89,46,20,.23); transform: rotate(-7deg); }
.topping { position: absolute; width: 68px; height: 68px; border-radius: 50%; background: repeating-radial-gradient(circle at 30% 30%, #a82620 0 5px, #c83a31 6px 14px); }
.topping-1 { left: 18%; top: 23%; }.topping-2 { right: 16%; top: 40%; }.topping-3 { left: 38%; bottom: 16%; }
.leaf { position: absolute; width: 34px; height: 64px; border-radius: 80% 10% 80% 10%; background: #39804d; }
.leaf-1 { left: 47%; top: 24%; transform: rotate(35deg); }.leaf-2 { left: 25%; bottom: 28%; transform: rotate(-25deg); }
.floating-card { position: absolute; right: -10px; bottom: 20px; display: flex; flex-direction: column; padding: 18px 22px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); }
.floating-card span { color: var(--muted); font-size: .82rem; }
.steps, .section { padding: 80px 0; }
.section-heading { max-width: 620px; margin-bottom: 36px; }
.section-heading h2 { margin-top: 8px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; letter-spacing: -.04em; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-grid article { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.step-grid article > span { color: var(--red); font-weight: 800; }
.step-grid h3 { margin: 24px 0 8px; font-size: 1.25rem; }
.step-grid p, .page-hero p, .product-content > p, .muted { color: var(--muted); }
.page-hero { padding: 70px 0 54px; background: var(--cream); text-align: center; }
.page-hero.compact h1 { margin: 10px 0 12px; font-size: clamp(2.2rem, 5vw, 3.7rem); }
.breadcrumb > a { display: block; margin-bottom: 18px; color: var(--muted); font-weight: 600; }
.machine-grid { display: grid; gap: 16px; }
.machine-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 8px 30px rgba(66,35,21,.04); }
.machine-icon, .image-placeholder { display: grid; place-items: center; width: 64px; height: 64px; color: #fff; background: var(--red); border-radius: 18px; font-size: 1.6rem; font-weight: 800; }
.machine-card h2 { margin-bottom: 5px; font-size: 1.15rem; }
.machine-card p { margin-bottom: 7px; color: var(--muted); }
.status { color: var(--green); font-size: .8rem; font-weight: 700; }
.status i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: currentColor; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { overflow: hidden; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 12px 35px rgba(66,35,21,.06); }
.product-image { position: relative; height: 245px; background: #f6eee6; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-image .image-placeholder { width: 100%; height: 100%; border-radius: 0; font-size: 4rem; background: linear-gradient(145deg, #e35b43, #b6211a); }
.stock-badge { position: absolute; top: 14px; right: 14px; padding: 6px 10px; color: var(--green); background: rgba(255,255,255,.94); border-radius: 99px; font-size: .72rem; font-weight: 800; }
.product-content { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.product-content h2 { margin-bottom: 8px; font-size: 1.25rem; }
.meta { margin-bottom: 8px; font-size: .78rem; }
.product-form { margin-top: auto; padding-top: 16px; }
label { display: block; margin-bottom: 16px; font-weight: 700; }
label > span { display: block; margin-bottom: 7px; font-size: .8rem; }
input, select { width: 100%; min-height: 48px; padding: 10px 13px; color: var(--ink); background: #fff; border: 1px solid #d9cec5; border-radius: 11px; outline: none; }
input:focus, select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(216,58,47,.11); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr); align-items: start; gap: 30px; }
.cart-list, .checkout-form { display: grid; gap: 16px; }
.cart-item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.cart-item h2 { margin-bottom: 3px; font-size: 1.05rem; }
.cart-item p { margin: 0; color: var(--muted); font-size: .86rem; }
.quantity-form { display: flex; align-items: end; gap: 8px; }
.quantity-form label { margin: 0; }.quantity-form input { width: 72px; }
.summary-card, .form-card, .confirmation-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.summary-card { position: sticky; top: 100px; }
.summary-card h2, .form-card h2 { margin-bottom: 22px; font-size: 1.2rem; }
.summary-line, .summary-total { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.summary-line span { color: var(--muted); }
.summary-line small { display: block; font-size: .7rem; }
.summary-total { margin-bottom: 20px; border: 0; font-size: 1.15rem; }
.text-link { display: block; margin-top: 18px; color: var(--red); text-align: center; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.machine-summary { padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.confirmation-section { min-height: 70vh; background: var(--cream); }
.confirmation-card { text-align: center; }
.success-mark, .failure-mark { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; color: #fff; background: var(--green); border-radius: 50%; font-size: 2rem; font-weight: 800; }
.failure-mark { background: var(--red); }
.confirmation-card h1 { margin: 8px 0 12px; font-size: 2.5rem; }
.reservation-number { margin: 28px 0; padding: 24px; background: var(--cream); border: 1px dashed #d4b999; border-radius: 16px; }
.reservation-number span, .reservation-number small { display: block; color: var(--muted); }
.reservation-number strong { display: block; margin: 7px 0; color: var(--red); font-size: 2.4rem; letter-spacing: .1em; }
.confirmation-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; text-align: left; }
.confirmation-details div { padding: 16px; background: #faf6f1; border-radius: 12px; }
.confirmation-details span, .confirmation-details small { display: block; color: var(--muted); font-size: .75rem; }
.empty-state { padding: 70px 24px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.alert { margin: 16px 0; padding: 13px 16px; border-radius: 11px; font-size: .9rem; transition: .3s; }
.alert-success { color: #176746; background: #e9f8f0; }.alert-error { color: #9c211a; background: #fff0ee; }.alert-warning { color: #805716; background: #fff5d8; }
.flashes { position: fixed; z-index: 30; top: 82px; left: 50%; transform: translateX(-50%); }.flashes .alert { box-shadow: var(--shadow); }
.fade-out { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.hidden { display: none; }.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-footer { padding: 25px 0; color: var(--muted); background: #241e1a; }.footer-inner { min-height: 30px; }
.admin-body { background: #f6f3ef; }.admin-header { background: #fff; border-bottom: 1px solid var(--line); }.admin-main { padding-block: 42px 70px; }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }.admin-login .form-card { width: min(430px, 100%); }.admin-login h1 { font-size: 2rem; margin-block: 28px; }
.admin-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }.admin-title h1 { margin: 5px 0 0; font-size: 2.5rem; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; } th, td { padding: 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; } th { background: #fbf8f4; color: var(--muted); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; } td small { display: block; color: var(--muted); }
.badge { display: inline-flex; padding: 4px 8px; border-radius: 99px; background: #eee8e2; font-size: .7rem; font-weight: 800; }.badge-paid, .badge-validated { color: #176746; background: #dff4e9; }.badge-failed, .badge-validation_failed { color: #9c211a; background: #ffe3df; }.badge-pending, .badge-initialized { color: #805716; background: #fff0c7; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }.details-list { margin: 0; }.details-list div { display: grid; grid-template-columns: 130px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); }.details-list dt { color: var(--muted); }.details-list dd { margin: 0; }.logs-card { margin-top: 22px; } code { white-space: pre-wrap; word-break: break-word; }

@media (max-width: 900px) {
    .hero-grid, .checkout-layout, .admin-grid { grid-template-columns: 1fr; }
    .hero-copy { text-align: center; }.hero-copy > p { margin-inline: auto; }.trust-row { justify-content: center; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .summary-card { position: static; }
}
@media (max-width: 620px) {
    .container { width: min(100% - 22px, 1160px); }
    .nav { min-height: 66px; }.nav nav > a:first-child { display: none; }
    .hero { padding: 55px 0 70px; }.hero-grid { gap: 30px; }.hero-visual { min-height: 330px; }.floating-card { right: 0; }
    .steps, .section { padding: 50px 0; }.step-grid, .product-grid { grid-template-columns: 1fr; }
    .machine-card { grid-template-columns: auto 1fr; }.machine-card .button { grid-column: 1 / -1; }
    .cart-item { grid-template-columns: 1fr auto; }.quantity-form { grid-column: 1 / -1; }.quantity-form .button { flex: 1; }
    .form-grid, .confirmation-details { grid-template-columns: 1fr; }.form-grid .full { grid-column: auto; }
    .summary-card, .form-card, .confirmation-card { padding: 21px; }.footer-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
}

