:root {
    --bg: #f5f4ef;
    --card: #fff;
    --text: #181816;
    --muted: #6c6c66;
    --line: #deddd6;
    --accent: #1d5c4c;
    --soft: #e3eee9;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
}

.topbar {
    max-width: 1180px;
    margin: auto;
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-weight: 800;
    font-size: 20px;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 9px;
}

.brand-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--accent);
}

nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}

.container {
    max-width: 1180px;
    margin: auto;
    padding: 22px 24px 70px;
}

.hero {
    padding: 70px 0 50px;
    max-width: 800px;
}

.eyebrow {
    color: var(--accent);
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -.05em;
    margin: 18px 0;
}

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

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

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

.product-card.single {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
}

.product-image {
    min-height: 330px;
    background: #e9e8e2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    max-height: 560px;
    object-fit: cover;
}

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

.product-body {
    padding: 32px;
}

.product-body h2 {
    font-size: 34px;
    letter-spacing: -.03em;
    margin: 12px 0;
}

.count-pill {
    display: inline-block;
    background: var(--soft);
    color: var(--accent);
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
}

.prices {
    display: flex;
    flex-direction: column;
    margin: 22px 0;
}

.prices strong {
    font-size: 25px;
}

.interest-form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 650;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font: inherit;
}

.check {
    display: flex;
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    font-weight: 400;
    font-size: 14px;
    color: var(--muted);
}

.check input {
    width: auto;
    margin-top: 4px;
}

button,
.button-link {
    border: 0;
    border-radius: 10px;
    padding: 14px 18px;
    background: var(--text);
    color: #fff;
    font-weight: 750;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.how {
    padding: 70px 0;
}

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

.steps > div,
.stats > div,
.panel,
.login-card,
.message {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 25px;
}

.steps b {
    color: var(--accent);
}

.stats b {
    font-size: 38px;
    display: block;
}

.stats span {
    color: var(--muted);
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 22px;
    align-items: start;
}

.panel {
    margin: 20px 0;
    min-width: 0;
    overflow: hidden;
}

.panel form,
.login-card form {
    display: grid;
    gap: 14px;
}

/* Product image upload */

.field-label {
    display: block;
    margin-bottom: 7px;
    font-weight: 650;
}

.upload-dropzone {
    width: 100%;
    min-height: 145px;
    padding: 22px;
    border: 2px dashed var(--line);
    border-radius: 14px;
    background: #fafaf7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragging {
    border-color: var(--accent);
    background: var(--soft);
}

.upload-dropzone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.upload-icon {
    font-size: 28px;
    line-height: 1;
    color: var(--accent);
}

.image-preview {
    width: 100%;
    max-width: 280px;
    height: 180px;
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f4f4f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-preview img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

.image-preview span {
    padding: 15px;
    color: var(--muted);
    text-align: center;
}

.image-preview.is-empty img {
    display: none !important;
}

.image-preview:not(.is-empty) span {
    display: none;
}

/* Keep tables usable without making the whole panel scroll */

table {
    width: 100%;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

tbody,
thead {
    width: 100%;
}

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

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

a {
    color: var(--accent);
}

.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.message,
.login-card {
    max-width: 600px;
    margin: 70px auto;
}

.notice {
    background: var(--soft);
    padding: 12px;
    border-radius: 10px;
}

.error {
    color: #a32727;
}

.note,
small {
    color: var(--muted);
}

footer {
    text-align: center;
    color: var(--muted);
    padding: 30px;
}

@media (max-width: 800px) {
    .product-card.single,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .steps,
    .stats {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        gap: 15px;
        flex-direction: column;
    }

    .hero {
        padding-top: 35px;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .product-body {
        padding: 23px;
    }

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

    .image-preview {
        max-width: 240px;
        height: 155px;
    }
}

.product-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0;
}

.share-button {
    background: var(--accent);
    color: #fff;
}

.share-button:hover {
    opacity: .9;
}

.share-button.is-copied {
    background: #28785f;
}

.direct-link {
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.interest-toggle {
    width: 100%;
    margin-top: 18px;
    background: var(--text);
}

.interest-form-wrapper {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.interest-form-wrapper[hidden] {
    display: none !important;
}