:root {
    --ink: #132238;
    --muted: #667085;
    --bg: #f4f7fb;
    --card: #fff;
    --accent: #000;
    --accent2: #990000;
    --danger: #990000;
    --line: #dfe6ee;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink)
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    width: min(1120px, 92%);
    margin: auto
}

.topbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10
}

.nav {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1.5px
}

.brand span {
    color: var(--accent2)
}

nav {
    display: flex;
    gap: 24px;
    font-weight: 700
}

.hero {
    padding: 64px 0;
    background: radial-gradient(circle at top right,rgba(153,0,0,.12),transparent 38%),linear-gradient(180deg,#fff 0%,#f8fafc 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 40px;
    align-items: center
}

.hero h1 {
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1;
    margin: .2em 0
}

.hero p {
    font-size: 20px;
    color: var(--muted);
    max-width: 680px
}

.hero-card {
    background: #000;
    color: #fff;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 20px 40px #1233
}

.checks {
    display: grid;
    gap: 12px;
    margin-top: 18px
}

.checks span:before {
    content: '✓';
    color: #fff;
    font-weight: 900;
    margin-right: 10px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    padding: 13px 18px;
    font-weight: 800;
    cursor: pointer;
    background: var(--accent2);
    color: #fff
}

.btn.secondary {
    background: var(--accent)
}

.btn.light {
    background: #000;
    color: #fff;
}

.btn.danger {
    background: var(--danger)
}

.section {
    padding: 52px 0;
    background: #f5f5f7;
}

.section h2 {
    font-size: 34px;
    margin: 0 0 8px
}

.lead {
    color: var(--muted);
    margin: 0 0 28px
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px #1a365d10
}

.product-img {
    height: 220px;
    width: 100%;
    object-fit: contain;
    background: #fff
}

.card-body {
    padding: 20px
}

.badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    background:rgba(153,0,0,.08);
    color:var(--danger);
    font-size: 12px;
    font-weight: 900
}

.badge.reserved {
    background: #fff2d8;
    color: #8b5c00
}

.badge.sold {
    background: #ffe4e4;
    color: #a12222
}

.price {
    font-size: 30px;
    font-weight: 900;
    margin: 12px 0
}

.specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    color: var(--muted);
    font-size: 14px
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 18px
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

.feature {
    background: #fff;
    border: 1px solid var(--line);
    padding: 22px;
    border-radius: 16px
}

.feature strong {
    display: block;
    margin-bottom: 8px
}

.detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: center
}

.detail-panel,
.form-card,
.table-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px
}

.detail img {
    border-radius: 18px;
    width: 100%;
    object-fit: contain;
    background: #fff
}

.form-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px
}

.field {
    display: grid;
    gap: 7px
}

.field.full {
    grid-column: 1/-1
}

label {
    font-weight: 800
}

input,
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    font: inherit;
    background: #fff
}

textarea {
    min-height: 120px;
    resize: vertical
}

.notice {
    padding: 14px 16px;
    border-radius: 12px;
    background: #eaf8f3;
    color: #08664f;
    margin-bottom: 18px
}

.error {
    background: #ffe9e9;
    color: #8f2020
}

.adminbar {
    background: #12243a;
    color: #fff
}

.adminbar .container {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 13px 0
}

.adminbar a {
    font-weight: 800
}

.table-wrap {
    overflow: auto
}

table {
    width: 100%;
    border-collapse: collapse
}

th,
td {
    text-align: left;
    padding: 13px;
    border-bottom: 1px solid var(--line);
    vertical-align: top
}

th {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--muted)
}

footer {
    background: #0f2034;
    color: #fff;
    padding: 35px 0;
    margin-top: 40px
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px
}

.legal {
    width: min(1120px, 92%);
    margin: 20px auto 0;
    color: #b9c4d1;
    font-size: 12px
}

.empty {
    text-align: center;
    padding: 44px;
    background: #fff;
    border: 1px dashed #bdc9d6;
    border-radius: 16px
}

.print-sheet {
    background: #fff;
    padding: 30px;
    border-radius: 16px
}

.muted {
    color: var(--muted)
}

@media(max-width:850px) {

    .hero-grid,
    .detail {
        grid-template-columns: 1fr
    }

    .grid {
        grid-template-columns: 1fr 1fr
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:560px) {
    nav {
        display: none
    }

    .grid,
    .feature-grid,
    .form-grid {
        grid-template-columns: 1fr
    }

    .hero {
        padding: 38px 0
    }

    .actions {
        flex-direction: column
    }

    .footer-grid {
        flex-direction: column
    }
}

@media print {

    .topbar,
    .adminbar,
    .no-print,
    footer {
        display: none !important
    }

    body {
        background: #fff
    }

    .print-sheet {
        box-shadow: none;
        border: 0
    }
}

.card h3 a {
    color: inherit;
    text-decoration: none
}

.card h3 a:hover {
    text-decoration: underline
}

.breadcrumbs {
    margin: 0 0 1.25rem;
    color: #6b7280;
    font-size: .95rem
}

.breadcrumbs a {
    color: inherit
}

.detail dl.specs {
    margin: 1.25rem 0
}

.detail dl.specs div {
    display: block
}

.detail dl.specs dt {
    font-weight: 700
}

.detail dl.specs dd {
    margin: .2rem 0 0
}

footer address,
.form-card address {
    font-style: normal
}

footer a {
    color: inherit
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

main {
    flex: 1
}

footer {
    margin-top: auto
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.inline-actions button {
    border: 1px solid var(--line);
    background: #fff;
    padding: 7px 9px;
    border-radius: 8px;
    cursor: pointer
}

.inline-actions button:hover {
    background: #eef4fb
}

code {
    background: #eef2f6;
    padding: 2px 6px;
    border-radius: 5px
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px
}