:root {
    --deep: #1c2016;
    --olive: #3f4a2e;
    --leaf: #5c6b42;
    --khaki: #c4b48a;
    --sand: #ebe4d4;
    --paper: #f6f1e6;
    --ink: #14160f;
    --muted: #6d6a5e;
    --sale: #8b2e1f;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: Manrope, system-ui, sans-serif;
    background: #0f120d;
    color: var(--ink);
}
.shell {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100dvh;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    position: relative;
}
.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--deep);
    color: var(--sand);
}
.brand {
    display: flex;
    gap: 8px;
    align-items: center;
    background: none;
    border: 0;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font: 700 10px/1.1 Oswald, sans-serif;
    letter-spacing: .16em;
}
.brand img {
    height: 34px;
    width: auto;
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
}
.icon-btn {
    background: var(--olive);
    color: var(--sand);
    border: 0;
    border-radius: 10px;
    padding: 8px 10px;
    font: 700 12px Manrope, sans-serif;
    cursor: pointer;
}
.icon-btn b { color: var(--khaki); }
#view { flex: 1; padding: 16px 16px 88px; }
.tabbar {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: var(--deep);
}
.tabbar button {
    background: none;
    border: 0;
    color: #cfc6b0;
    padding: 14px 4px 18px;
    font: 600 11px Manrope, sans-serif;
    cursor: pointer;
}

h1, h2 { font-family: Oswald, sans-serif; letter-spacing: .04em; margin: 0 0 8px; text-transform: uppercase; }
h1 { font-size: 28px; }
h2 { font-size: 20px; }
.muted { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.specs { white-space: pre-line; }
.site-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: -4px 0 16px;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--sand);
    background: linear-gradient(145deg, #4d5a38 0%, var(--deep) 70%);
    border: 1px solid rgba(196, 180, 138, .4);
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(20, 22, 15, .12);
}
.site-link-copy { display: block; min-width: 0; }
.site-link-copy b {
    display: block;
    font-family: Oswald, sans-serif;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 16px;
    color: var(--sand);
}
.site-link-copy span {
    display: block;
    margin-top: 2px;
    color: var(--khaki);
    font-size: 13px;
    font-weight: 700;
}
.site-link-go {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--khaki);
    color: var(--deep);
    font-size: 18px;
    line-height: 1;
    flex: 0 0 auto;
}
.site-link:hover { filter: brightness(1.08); }
.site-link:active { transform: translateY(1px); }
.site-link:focus-visible {
    outline: 2px solid var(--khaki);
    outline-offset: 3px;
}
.search {
    width: 100%;
    border: 1px solid #d9d0bc;
    border-radius: 12px;
    padding: 12px 14px;
    font: 500 16px Manrope, sans-serif;
    margin-bottom: 16px;
    background: #fff;
}

.hero {
    background: linear-gradient(160deg, var(--olive), var(--deep));
    color: var(--sand);
    border-radius: 16px;
    padding: 18px 16px;
    margin-bottom: 16px;
}
.hero p { margin: 0 0 12px; color: #d9d0bc; }
.hero .btn-ghost { color: var(--sand); border-color: #cfc6b0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card, .kit, .store, .product {
    background: #fff;
    border: 1px solid #ddd4c2;
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
    text-align: left;
    color: inherit;
    width: 100%;
}
.kit { min-height: 96px; }
.kit b, .product b, .card b { display: block; font-family: Oswald, sans-serif; font-size: 16px; margin-bottom: 4px; }
.price { font-weight: 800; }
.old { color: var(--muted); text-decoration: line-through; font-weight: 500; margin-left: 6px; }
.hit { display: inline-block; background: var(--sale); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 999px; margin-bottom: 6px; }
.thumb {
    height: 72px;
    border-radius: 10px;
    background: repeating-linear-gradient(45deg, #3f4a2e 0 8px, #2c3420 8px 16px);
    margin-bottom: 8px;
}
.photo {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    background: #f6f1e6;
    margin-bottom: 8px;
    overflow: hidden;
    display: grid;
    place-items: center;
}
.photo-lg { margin-bottom: 12px; }
.photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.photo .hit {
    position: absolute;
    top: 8px;
    left: 8px;
    margin: 0;
    z-index: 1;
}
.photo .muted { margin: 0; }

.sizes { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.size {
    border: 1px solid #d9d0bc;
    background: #fff;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    font: 600 13px Manrope, sans-serif;
}
.size.is-on { background: var(--deep); color: var(--sand); border-color: var(--deep); }
.stock { font-size: 13px; color: var(--muted); }
.stock li { margin: 4px 0; }

.btn {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 14px;
    font: 800 15px Manrope, sans-serif;
    cursor: pointer;
    margin-top: 10px;
}
.btn-main { background: var(--khaki); color: var(--deep); }
.btn-ghost { background: transparent; border: 1px solid #d9d0bc; }
.line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd4c2;
}
label span { display: block; font-size: 13px; margin: 10px 0 6px; }
input, textarea, select {
    width: 100%;
    border: 1px solid #d9d0bc;
    border-radius: 10px;
    padding: 12px;
    font: 500 16px Manrope, sans-serif;
    background: #fff;
}
input.is-invalid, textarea.is-invalid, select.is-invalid {
    border-color: var(--sale);
    background: #fff6f3;
}
label.is-invalid > span { color: var(--sale); }
.field-error {
    display: block;
    color: var(--sale);
    font-size: 12px;
    margin: 6px 0 0;
}
.field-error[hidden] { display: none; }
.check { display: flex; flex-wrap: wrap; gap: 8px; align-items: start; font-size: 13px; color: var(--muted); margin-top: 10px; }
.check input { width: auto; margin-top: 2px; }
.check.is-invalid { color: var(--sale); }
.check .field-error { flex: 1 1 100%; margin: 0; }
.err { color: var(--sale); font-size: 13px; }
.ok {
    text-align: center;
    padding: 32px 8px;
}
.pay-box {
    min-height: 280px;
    margin: 16px 0 8px;
    background: #fff;
    border-radius: 14px;
}
.chat-card {
    background: #fff;
    border: 1px solid #ddd4c2;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
}
.chat-log {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 180px;
    max-height: 42vh;
    overflow: auto;
    margin-bottom: 12px;
}
.bubble {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    white-space: pre-wrap;
    word-break: break-word;
}
.bubble.me { align-self: flex-end; background: var(--deep); color: var(--sand); }
.bubble.them { align-self: flex-start; background: #fff; border: 1px solid #ddd4c2; }
.chat-compose { display: flex; gap: 8px; align-items: flex-start; }
.chat-compose label { flex: 1; min-width: 0; margin: 0; }
.chat-compose textarea { margin: 0; }
.chat-compose button { width: auto; margin: 0; padding: 12px 16px; align-self: flex-end; }
.back {
    background: none;
    border: 0;
    color: var(--muted);
    padding: 0 0 10px;
    cursor: pointer;
    font: 600 13px Manrope, sans-serif;
}
.legal p { font-size: 14px; line-height: 1.45; margin: 0 0 10px; }
.doc-list { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 4px 0 8px; }
.doc { color: var(--olive); font-weight: 700; font-size: 14px; }
.fine { color: var(--muted); font-size: 13px; line-height: 1.4; }
.fine a, .legal a { color: var(--olive); }
body.is-gated .tabbar,
body.is-gated .icon-btn { display: none; }
body.is-gated #view { padding-bottom: 24px; }
