.commerce-page {
    width: min(1080px, calc(100% - 32px));
    margin: 80px auto;
    padding: clamp(24px, 5vw, 48px);
    color: #263548;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(15, 39, 68, 0.1);
    box-sizing: border-box;
}

.commerce-header {
    margin-bottom: 36px;
    padding-bottom: 24px;
    text-align: center;
    border-bottom: 3px solid var(--color-brand-blue, #1e4b8c);
}

.commerce-header h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 5vw, 40px);
    line-height: 1.3;
}

.commerce-header p,
.commerce-page p,
.commerce-page li {
    line-height: 1.75;
}

.legal-section,
.commerce-card,
.checkout-panel {
    margin: 0 0 24px;
    padding: 24px;
    background: #f7f9fc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.legal-section h2,
.commerce-card h2 {
    margin: 0 0 14px;
    color: var(--color-brand-navy, #0f2744);
    font-size: 22px;
}

.legal-section h3 {
    margin: 20px 0 8px;
    font-size: 17px;
}

.legal-section ul,
.commerce-card ul {
    margin: 10px 0;
    padding-left: 22px;
}

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

.company-table th,
.company-table td {
    padding: 12px;
    border-bottom: 1px solid #dce3ec;
    text-align: left;
    vertical-align: top;
}

.company-table th {
    width: 180px;
    color: #334155;
}

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

.product-price {
    margin: 18px 0 6px;
    color: var(--color-brand-blue, #1e4b8c);
    font-size: 30px;
    font-weight: 800;
}

.product-note {
    color: #64748b;
    font-size: 14px;
}

.commerce-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 16px;
    padding: 0 22px;
    color: #fff;
    background: var(--color-brand-blue, #1e4b8c);
    border: 0;
    border-radius: 9px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.commerce-button:hover {
    background: var(--color-brand-navy, #0f2744);
}

.commerce-button[disabled] {
    background: #94a3b8;
    cursor: not-allowed;
}

.commerce-button.secondary {
    color: #1e4b8c;
    background: #e9f0f9;
}

.checkout-form {
    display: grid;
    gap: 18px;
}

.checkout-form label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.checkout-form input[type="text"],
.checkout-form input[type="email"],
.checkout-form input[type="tel"] {
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
}

.checkout-agree {
    display: flex !important;
    grid-template-columns: auto 1fr !important;
    align-items: flex-start;
    gap: 10px !important;
    font-weight: 400 !important;
}

.checkout-agree input {
    margin-top: 6px;
}

.commerce-alert {
    margin: 16px 0;
    padding: 14px 16px;
    color: #7c2d12;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 9px;
}

.commerce-alert.success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 26px;
}

@media (max-width: 640px) {
    .commerce-page {
        width: calc(100% - 20px);
        margin: 64px auto;
    }

    .legal-section,
    .commerce-card,
    .checkout-panel {
        padding: 18px;
    }

    .company-table th,
    .company-table td {
        display: block;
        width: auto;
        padding: 8px;
    }

    .company-table th {
        padding-bottom: 0;
        border-bottom: 0;
    }
}
