:root {
    --zeta-blue: #1200b8;
    --zeta-cyan: #20b7f7;
    --zeta-magenta: #cf2f8f;
    --zeta-yellow: #fff05a;
    --ink: #101322;
    --muted: #5d6578;
    --line: #dfe3ee;
    --surface: #ffffff;
    --soft: #f6f7fb;
    --success: #0f7a4a;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    overflow-y: auto !important;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
}

.nav {
    width: min(1120px, calc(100% - 40px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    color: var(--zeta-blue);
}

.brand-mark {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--zeta-cyan), var(--zeta-magenta) 48%, var(--zeta-yellow) 70%, var(--zeta-blue) 71%);
    clip-path: polygon(50% 0, 100% 45%, 56% 100%, 0 45%);
    position: relative;
    flex: 0 0 auto;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 9px;
    background: #fff;
    clip-path: polygon(50% 0, 100% 45%, 56% 100%, 0 45%);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
}

.nav-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.nav-button:hover,
.nav-button.is-signed-in {
    color: var(--zeta-blue);
    background: #f0f1ff;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--zeta-blue);
    background: #f0f1ff;
}

.cart-pill {
    color: #fff !important;
    background: var(--zeta-blue) !important;
}

.cart-pill span {
    min-width: 22px;
    height: 22px;
    margin-left: 8px;
    display: inline-grid;
    place-items: center;
    color: var(--zeta-blue);
    background: var(--zeta-yellow);
    border-radius: 999px;
    font-size: 13px;
}

.login-menu {
    position: relative;
}

.login-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(320px, calc(100vw - 28px));
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(16, 19, 34, 0.16);
}

.login-panel form {
    display: grid;
    gap: 12px;
}

.field-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.field-grid.compact label {
    min-width: 0;
    font-size: 13px;
}

.login-panel input,
.checkout-form input {
    width: 100%;
    min-width: 0;
}

.login-panel .button {
    width: 100%;
}

.page {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 40px 0 64px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
    gap: 36px;
    align-items: center;
    padding: 28px 0 40px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--zeta-magenta);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 18px;
    color: var(--zeta-blue);
    font-size: 54px;
    line-height: 1.03;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 18px;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0;
}

.lead {
    max-width: 620px;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions,
.actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button.primary {
    color: #fff;
    background: var(--zeta-blue);
}

.button.secondary {
    color: var(--zeta-blue);
    background: #fff;
    border-color: var(--line);
}

.button.ghost {
    color: var(--zeta-blue);
    background: transparent;
    border-color: var(--line);
}

.button.small {
    min-height: 38px;
    padding: 0 12px;
    font-size: 14px;
}

.hero-media {
    min-height: 360px;
    overflow: hidden;
    border-radius: 8px;
    background: #dfe3ee;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.scenario-strip {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px 20px;
    align-items: center;
    margin: 0 0 34px;
    padding: 16px 18px;
    color: #fff;
    background: linear-gradient(90deg, var(--zeta-blue), #2630d0 55%, #0d8498);
    border-radius: 8px;
}

.scenario-strip .label {
    color: var(--zeta-yellow);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.scenario-strip strong {
    display: block;
    font-size: 20px;
    line-height: 1.2;
}

.scenario-strip small {
    display: block;
    color: rgba(255, 255, 255, 0.78);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin: 34px 0 16px;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.product-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e8ebf3;
}

.product-card-body {
    padding: 16px;
}

.product-meta {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 14px;
}

.price {
    color: var(--zeta-blue);
    font-weight: 900;
}

.product-card .actions {
    margin-top: 16px;
    justify-content: space-between;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.product-detail img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    background: #e8ebf3;
}

.detail-panel {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.detail-panel h1 {
    font-size: 40px;
}

.option-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.option-row span:first-child {
    color: var(--muted);
    font-weight: 700;
}

.cart-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.cart-list,
.summary,
.event-panel,
.receipt,
.empty-state {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.cart-row {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) 96px 92px;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.cart-row:last-child {
    border-bottom: 0;
}

.cart-row img {
    width: 82px;
    height: 82px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-row input {
    width: 80px;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}

.summary {
    padding: 18px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.summary-row.total {
    border-bottom: 0;
    color: var(--zeta-blue);
    font-size: 20px;
    font-weight: 900;
}

.checkout-form {
    display: grid;
    gap: 14px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 700;
}

input {
    min-height: 44px;
    padding: 0 12px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}

.event-panel {
    margin-top: 24px;
    padding: 18px;
}

.event-list {
    display: grid;
    gap: 10px;
}

.event-item {
    display: grid;
    gap: 2px;
    padding: 12px;
    background: var(--soft);
    border-radius: 8px;
}

.event-item strong {
    color: var(--zeta-blue);
}

.event-item small {
    color: var(--muted);
}

.receipt {
    padding: 24px;
}

.receipt h1 {
    color: var(--success);
}

.empty-state {
    padding: 28px;
    text-align: center;
}

.notice {
    margin-top: 16px;
    color: var(--success);
    font-weight: 800;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #fff;
}

.site-footer .inner {
    width: min(1120px, calc(100% - 40px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 860px) {
    .nav,
    .site-footer .inner {
        width: min(100% - 28px, 1120px);
    }

    .page {
        width: min(100% - 28px, 1120px);
        padding-top: 28px;
    }

    .hero,
    .product-detail,
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 38px;
    }

    .detail-panel h1 {
        font-size: 34px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .nav {
        min-height: auto;
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
    }

    .login-menu {
        position: static;
    }

    .login-panel {
        left: 0;
        right: auto;
        width: min(320px, calc(100vw - 28px));
    }

    .product-grid,
    .field-grid {
        grid-template-columns: 1fr;
    }

    .cart-row {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .cart-row img {
        width: 72px;
        height: 72px;
    }

    .cart-row .price,
    .cart-row input {
        grid-column: 2;
    }

    .scenario-strip {
        grid-template-columns: 1fr;
    }
}
