:root {
    --text: #2a2a2a;
    --muted: #8f8f8f;
    --accent: #f05a28;
    --accent-dark: #e34d1a;
    --line: #d9d9d9;
    --pill-bg: #f4f4f4;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #ffffff;
    color: var(--text);
    font-family: "Trebuchet MS", "Gill Sans", "Helvetica Neue", sans-serif;
    min-height: 100vh;
}

.page {
    max-width: 420px;
    margin: 0 auto;
    padding: 10px 20px 36px;
    text-align: center;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.hero-img {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #ffffff;
    box-shadow: 0 12px 24px rgba(255, 255, 255, 0.12);
}

.product-code {
    font-size: 16px;
    letter-spacing: 1px;
    margin-top: 6px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.price-main {
    font-size: 22px;
    color: var(--accent);
    font-weight: 700;
    margin: 0;
}

.price-old {
    margin: 0;
    color: #c0c0c0;
    text-decoration: line-through;
    font-size: 12px;
}

.size-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 10px 0 14px;
}

.size-pill {
    border: 1px solid var(--line);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    background: var(--pill-bg);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.size-pill.active {
    border-color: var(--accent);
    color: var(--accent);
    background: #ffffff;
}

.sale-order-summary {
    width: 100%;
    display: grid;
    gap: 8px;
    margin: 8px 0 14px;
    text-align: left;
}

.sale-order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fafafa;
}

.sale-order-row span {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.2;
}

.sale-order-row strong {
    color: #111827;
    font-size: 14px;
    line-height: 1.2;
    text-align: right;
}

body.is-sale-order .variants,
body.is-sale-order .size-row {
    display: none;
}

.order-btn {
    width: 78%;
    max-width: 300px;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 0;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 10px rgba(240, 90, 40, 0.32);
    transition: background 0.2s ease, transform 0.2s ease;
}

.order-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

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

.section-title {
    margin: 0 0 8px;
    font-size: 14px;
    color: #000000;
    font-weight: 600;
}

.thumb-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.thumb-card {
    text-align: center;
    cursor: pointer;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #ffffff;
    font-size: 12px;
    color: var(--text);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.thumb-card.active {
    border-color: var(--accent);
    color: var(--accent);
}

.thumb-card img {
    display: none;
}

.form-card {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid #d6d6d6;
    background: #f7f7f7;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 16px;
    color: #4b5563;
    font-family: inherit;
    outline: none;
    resize: none;
}

.order-actions {
    margin-top: 12px;
    text-align: center;
}

.order-success {
    margin: 10px 0 0;
    color: #166534;
    font-size: 14px;
    font-weight: 600;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 420px) {
    .page {
        padding: 10px 16px 30px;
    }

    .size-pill,
    .size-pill.active {
        color: #000000;
    }

    .hero-img {
        max-width: 300px;
    }

    .order-btn {
        width: 86%;
    }

    .variants {
        gap: 10px;
    }

    .section-title {
        font-size: 13px;
    }
}
