.nhw-page {
    --nhw-background: #f7f8fa;
    --nhw-surface: #ffffff;
    --nhw-surface-muted: #eef1f5;
    --nhw-text: #242426;
    --nhw-text-muted: #68686d;
    --nhw-border: #d8dbe0;
    --nhw-border-strong: #a5a9b0;
    --nhw-accent: #ff7e6b;
    --nhw-accent-hover: #f36f5d;
    --nhw-accent-soft: #fff0ed;
    --nhw-blue: #287aa8;
    --nhw-blue-soft: #dceefa;
    --nhw-confirm: #16853d;
    --nhw-danger: #b12643;
    --nhw-shadow: 0 14px 40px rgba(28, 30, 34, 0.08);

    min-width: 320px;
    margin: 0;
    background: var(--nhw-background);
}

.nhw-main {
    width: 100%;
    color: var(--nhw-text);
    font-family: 'Sunghyun Sans KR', 'Sunghyun Sans', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.nhw-main *,
.nhw-main *::before,
.nhw-main *::after {
    box-sizing: border-box;
}

.nhw-main a {
    color: inherit;
}

.nhw-main button {
    font: inherit;
}

.nhw-main button:focus-visible,
.nhw-main a:focus-visible,
.nhw-main [tabindex="0"]:focus-visible {
    outline: 3px solid rgba(40, 122, 168, 0.35);
    outline-offset: 3px;
}

.nhw-builder {
    display: grid;
    grid-template-columns: minmax(340px, 0.86fr) minmax(500px, 1.14fr);
    width: min(100%, 1440px);
    min-height: calc(100vh - 66px);
    margin: 0 auto;
    background: var(--nhw-blue-soft);
}

.nhw-preview {
    position: sticky;
    top: 66px;
    align-self: start;
    display: grid;
    gap: 30px;
    min-height: calc(100vh - 66px);
    padding: 64px clamp(30px, 5vw, 80px);
    background: var(--nhw-blue-soft);
}

.nhw-preview-copy {
    max-width: 560px;
}

.nhw-eyebrow,
.nhw-configurator-label,
.nhw-preview-detail-label,
.nhw-configurator-note,
.nhw-group-optional {
    color: var(--nhw-text-muted);
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
}

.nhw-eyebrow {
    margin: 0 0 12px;
    color: var(--nhw-blue);
}

.nhw-title {
    max-width: 680px;
    margin: 0;
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: 0;
}

.nhw-intro {
    max-width: 610px;
    margin: 22px 0 0;
    color: var(--nhw-text-muted);
    font-size: 18px;
}

.nhw-preview-media {
    display: grid;
    min-height: 300px;
    place-items: center;
}

.nhw-preview-image {
    display: block;
    width: min(100%, 620px);
    height: auto;
    object-fit: contain;
}

.nhw-preview-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(36, 36, 38, 0.16);
}

.nhw-preview-detail {
    display: grid;
    gap: 4px;
    padding: 18px 18px 0 0;
}

.nhw-preview-detail + .nhw-preview-detail {
    padding-left: 18px;
    border-left: 1px solid rgba(36, 36, 38, 0.16);
}

.nhw-preview-detail-value {
    font-size: 14px;
    font-weight: 700;
}

.nhw-configurator {
    min-width: 0;
    padding: 48px clamp(28px, 4vw, 64px) 64px;
    background: var(--nhw-surface);
}

.nhw-configurator-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--nhw-border);
}

.nhw-configurator-label,
.nhw-configurator-note {
    margin: 0;
}

.nhw-total {
    margin: 4px 0 0;
    font-size: 40px;
    font-weight: 820;
    line-height: 1.15;
}

.nhw-configurator-note {
    padding-bottom: 4px;
    text-align: right;
}

.nhw-catalog {
    display: grid;
    gap: 34px;
    padding-top: 32px;
}

.nhw-loading {
    display: flex;
    align-items: center;
    min-height: 140px;
    justify-content: center;
    gap: 12px;
    color: var(--nhw-text-muted);
}

.nhw-loading-indicator {
    width: 18px;
    height: 18px;
    border: 2px solid var(--nhw-border);
    border-top-color: var(--nhw-accent);
    border-radius: 50%;
    animation: nhw-spin 700ms linear infinite;
}

@keyframes nhw-spin {
    to {
        transform: rotate(360deg);
    }
}

.nhw-group {
    display: grid;
    gap: 12px;
}

.nhw-group-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.nhw-group-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
}

.nhw-product-list {
    display: grid;
    gap: 8px;
}

.nhw-product-card {
    position: relative;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 104px;
    padding: 12px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: var(--nhw-surface-muted);
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.nhw-product-card:hover {
    border-color: var(--nhw-border-strong);
}

.nhw-product-card.nhw-selected {
    border-color: var(--nhw-accent);
    background: var(--nhw-accent-soft);
    box-shadow: 0 4px 16px rgba(255, 126, 107, 0.12);
}

.nhw-product-image-wrap {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--nhw-border);
    border-radius: 6px;
    background: var(--nhw-surface);
}

.nhw-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nhw-product-image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--nhw-text-muted);
    font-size: 11px;
    font-weight: 750;
    text-align: center;
}

.nhw-product-copy {
    min-width: 0;
}

.nhw-product-name {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 15px;
    font-weight: 750;
}

.nhw-product-meta {
    margin: 3px 0 0;
    color: var(--nhw-text-muted);
    font-size: 12px;
}

.nhw-product-price {
    min-width: 86px;
    font-size: 15px;
    font-weight: 800;
    text-align: right;
}

.nhw-color-list {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 12px;
}

.nhw-color-option {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 2px solid var(--nhw-surface);
    border-radius: 50%;
    background: var(--nhw-border);
    box-shadow: 0 0 0 1px var(--nhw-border-strong);
    cursor: pointer;
}

.nhw-color-option:hover,
.nhw-color-option.nhw-selected {
    box-shadow: 0 0 0 2px var(--nhw-text);
}

.nhw-color-option:disabled {
    cursor: not-allowed;
    filter: grayscale(1);
    opacity: 0.32;
}

.nhw-use-own-card {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 70px;
}

.nhw-use-own-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--nhw-border);
    border-radius: 50%;
    background: var(--nhw-surface);
    color: var(--nhw-blue);
    font-size: 20px;
    font-weight: 500;
}

.nhw-error {
    padding: 18px;
    border-left: 4px solid var(--nhw-danger);
    background: #fff2f4;
    color: var(--nhw-danger);
}

.nhw-empty {
    padding: 18px;
    border: 1px dashed var(--nhw-border-strong);
    color: var(--nhw-text-muted);
}

.nhw-checkout-bar {
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: grid;
    gap: 9px;
    margin-top: 40px;
    padding: 18px 0 4px;
    border-top: 1px solid var(--nhw-border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nhw-checkout-status,
.nhw-checkout-caption {
    margin: 0;
}

.nhw-checkout-status {
    min-height: 22px;
    color: var(--nhw-danger);
    font-size: 13px;
    font-weight: 700;
}

.nhw-checkout-status[data-tone="success"] {
    color: var(--nhw-confirm);
}

.nhw-add-button {
    width: 100%;
    min-height: 52px;
    padding: 13px 20px;
    border: 0;
    border-radius: 8px;
    background: var(--nhw-accent);
    color: #2a1713;
    cursor: pointer;
    font-weight: 820;
}

.nhw-add-button:hover:not(:disabled) {
    background: var(--nhw-accent-hover);
}

.nhw-add-button:disabled {
    cursor: not-allowed;
    opacity: 0.46;
}

.nhw-checkout-caption {
    color: var(--nhw-text-muted);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 980px) {
    .nhw-builder {
        grid-template-columns: 1fr;
    }

    .nhw-preview {
        position: static;
        min-height: auto;
        padding: 48px max(24px, 6vw);
    }

    .nhw-preview-media {
        min-height: 240px;
    }

    .nhw-preview-image {
        max-height: 430px;
    }

    .nhw-configurator {
        padding: 42px max(24px, 6vw) 56px;
    }
}

@media (max-width: 700px) {
    .nhw-title {
        font-size: 38px;
    }

    .nhw-intro {
        font-size: 16px;
    }

    .nhw-preview-details {
        grid-template-columns: 1fr;
    }

    .nhw-preview-detail + .nhw-preview-detail {
        padding-left: 0;
        border-left: 0;
    }

    .nhw-configurator-header {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }

    .nhw-configurator-note {
        text-align: left;
    }

    .nhw-product-card {
        grid-template-columns: 68px minmax(0, 1fr);
        min-height: 96px;
    }

    .nhw-product-image-wrap {
        width: 68px;
        height: 68px;
    }

    .nhw-product-price {
        grid-column: 2;
        min-width: 0;
        text-align: left;
    }

    .nhw-use-own-card {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .nhw-use-own-card .nhw-product-price {
        grid-column: auto;
        text-align: right;
    }
}

@media (max-width: 420px) {
    .nhw-preview,
    .nhw-configurator {
        padding-right: 18px;
        padding-left: 18px;
    }

    .nhw-title {
        font-size: 34px;
    }

    .nhw-preview-media {
        min-height: 190px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nhw-loading-indicator {
        animation: none;
    }

    .nhw-product-card {
        transition: none;
    }
}
