/* ============================================
   Socken-Konfigurator – Design System
   Basierend auf briefing.md / textil-grosshandel.eu
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Lato, sans-serif;
    color: #2c2c2c;
    background: #f7f6f4;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Header --- */
.header {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 18px 32px;
}
.header-inner {
    max-width: 580px;
    margin: 0 auto;
}
.logo {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}
.logo svg {
    height: 20px;
    width: auto;
}

/* --- Main --- */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 24px 72px;
}
.container {
    width: 100%;
    max-width: 580px;
}

/* --- Footer --- */
.footer {
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 20px 32px;
    text-align: center;
    font-size: 0.78rem;
    color: #6b6b6b;
}

/* --- Animation --- */
.animate-in {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.45s ease forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Typography --- */
h1 {
    font-family: "DM Serif Display", serif;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.25;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.page-intro {
    font-size: 0.95rem;
    color: #6b6b6b;
    line-height: 1.65;
    margin-bottom: 36px;
}

/* --- Section Cards --- */
.section-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 28px 32px;
    margin-bottom: 20px;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #272e2e;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-title {
    font-family: "DM Serif Display", serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.section-desc {
    font-size: 0.88rem;
    color: #6b6b6b;
    margin-bottom: 20px;
    line-height: 1.55;
}
.section-card.has-error {
    border-color: #ae0000;
}

/* --- Labels --- */
label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 6px;
}

.label-light {
    font-weight: 400;
    color: #6b6b6b;
    font-size: 0.82rem;
}

.optional-tag {
    font-size: 0.75rem;
    font-weight: 400;
    color: #999;
    margin-left: 4px;
}

/* --- Form Inputs --- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    font-family: Lato, sans-serif;
    font-size: 0.9rem;
    color: #2c2c2c;
    background: #fff;
    transition: border-color 0.15s;
    outline: none;
}
input:focus,
textarea:focus {
    border-color: #272e2e;
}
input.error,
textarea.error {
    border-color: #ae0000;
}
textarea {
    resize: vertical;
    min-height: 80px;
}

.field-error {
    font-size: 0.78rem;
    color: #ae0000;
    margin-top: 4px;
    display: none;
}
.field-error.visible {
    display: block;
}
.form-row {
    margin-bottom: 16px;
}
.form-row:last-child {
    margin-bottom: 0;
}

/* --- Color Toggles --- */
.color-toggle {
    display: flex;
    gap: 10px;
}

.color-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s;
    user-select: none;
}
.color-btn:hover {
    border-color: #6b6b6b;
}
.color-btn.active {
    border-color: #272e2e;
}

.color-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #d4d4d4;
}
.color-circle.black {
    background: #1a1a1a;
    border-color: #1a1a1a;
}
.color-circle.white {
    background: #fff;
}

.color-btn span:last-child {
    font-weight: 600;
    font-size: 0.88rem;
}

/* --- Size Table --- */
.size-table {
    width: 100%;
    border-collapse: collapse;
}
.size-table tr {
    border-bottom: 1px solid #f0f0f0;
}
.size-table tr:last-child {
    border-bottom: none;
}
.size-table td {
    padding: 10px 0;
    vertical-align: middle;
}
.size-table .size-label {
    font-size: 0.88rem;
    font-weight: 600;
}
.size-table .size-range {
    font-size: 0.78rem;
    color: #6b6b6b;
}
.size-table input[type="number"] {
    width: 110px;
    text-align: center;
}
.size-table td:last-child {
    text-align: right;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 0;
    border-top: 2px solid #e8e8e8;
    margin-top: 8px;
}
.total-label {
    font-size: 0.9rem;
    font-weight: 700;
}
.total-value {
    font-size: 1rem;
    font-weight: 900;
    color: #1a1a1a;
}

/* --- Pricing Display --- */
.pricing-display {
    margin-top: 12px;
    padding: 14px 0 0;
    border-top: 1px solid #f0f0f0;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.pricing-label {
    font-size: 0.85rem;
    color: #6b6b6b;
}

.pricing-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
}

.pricing-total {
    font-size: 1.05rem;
    font-weight: 900;
    color: #1a1a1a;
}

.pricing-value-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.pricing-vat-hint {
    font-size: 0.7rem;
    color: #999;
    font-weight: 400;
}

.pricing-hint {
    font-size: 0.75rem;
    color: #999;
    margin-top: 8px;
}

.pricing-tier-badge {
    display: inline-block;
    background: #eef7f2;
    color: #2d7a4f;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
}

/* --- Upload Zone --- */
.upload-zone {
    border: 2px dashed #d4d4d4;
    border-radius: 8px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition:
        border-color 0.15s,
        background 0.15s;
    margin-bottom: 16px;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: #272e2e;
    background: #fafaf9;
}

.upload-zone.has-file {
    border-style: solid;
    border-color: #272e2e;
    background: #f9f9f8;
}
.upload-icon {
    margin-bottom: 8px;
    color: #6b6b6b;
}
.upload-text {
    font-size: 0.88rem;
    color: #6b6b6b;
}
.upload-text strong {
    color: #2c2c2c;
}
.upload-formats {
    font-size: 0.75rem;
    color: #999;
    margin-top: 6px;
}

.upload-filename {
    font-weight: 600;
    font-size: 0.9rem;
    color: #272e2e;
    display: none;
}
.upload-zone.has-file .upload-filename {
    display: block;
}

.upload-zone.has-file .upload-icon,
.upload-zone.has-file .upload-text,
.upload-zone.has-file .upload-formats {
    display: none;
}

/* --- Uploaded Files List --- */
.uploaded-files-list {
    margin-top: 10px;
}
.uploaded-files-list:empty {
    display: none;
}

.uploaded-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #f9f9f8;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    margin-bottom: 4px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: border-color 0.15s;
}
.uploaded-file-item:hover {
    border-color: #272e2e;
}
.uploaded-file-item.active {
    border-color: #272e2e;
    background: #f0efed;
}

.uploaded-file-name {
    font-weight: 600;
    color: #2c2c2c;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.uploaded-file-view {
    font-size: 0.7rem;
    color: #6b6b6b;
    margin-left: 8px;
    flex-shrink: 0;
}

.uploaded-file-use {
    font-size: 0.72rem;
    font-weight: 600;
    color: #272e2e;
    margin-left: 8px;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
}
.uploaded-file-use:hover {
    background: #e8e8e8;
}

/* --- Lightbox Modal --- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 70%);
    backdrop-filter: blur(4px);
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    animation: lightboxIn 0.25s ease;
}

@keyframes lightboxIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-content img {
    display: block;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgb(0 0 0 / 40%);
    object-fit: contain;
    background: #fff;
}

.lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.15s;
}
.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-caption {
    text-align: center;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
    font-family: Lato, sans-serif;
}

/* Example images clickable */
.example-pair-item img {
    cursor: pointer;
    transition:
        transform 0.15s,
        box-shadow 0.15s;
}

.example-pair-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
}

/* --- Detail-Accordion --- */
.detail-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 8px 0;
    cursor: pointer;
    font-family: Lato, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b6b6b;
    transition: color 0.15s;
}
.detail-toggle:hover {
    color: #272e2e;
}

.detail-toggle svg {
    transition: transform 0.2s;
    flex-shrink: 0;
}
.detail-toggle.open svg {
    transform: rotate(90deg);
}

.detail-panel {
    display: none;
    padding: 0 0 4px;
}
.detail-panel.open {
    display: block;
}

.detail-panel h4 {
    font-family: Lato, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #2c2c2c;
    margin: 12px 0 4px;
}
.detail-panel h4:first-child {
    margin-top: 0;
}

.detail-panel p {
    font-size: 0.8rem;
    color: #6b6b6b;
    line-height: 1.6;
    margin-bottom: 6px;
}

.detail-panel ul {
    margin: 0 0 6px;
    padding-left: 18px;
}

.detail-panel li {
    font-size: 0.8rem;
    color: #6b6b6b;
    line-height: 1.6;
    margin-bottom: 3px;
}

/* --- Step 3: Design Layout (Breakout auf Desktop) --- */
.step-design .section-card {
    max-width: none;
}

.design-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.design-controls {
    flex: 1;
    min-width: 0;
}

.design-canvas-col {
    flex: 0 0 280px;
}

/* View Selector */
.view-selector {
    display: flex;
    gap: 0;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.view-btn {
    flex: 1;
    padding: 7px 4px;
    font-size: 0.72rem;
    font-family: Lato, sans-serif;
    font-weight: 600;
    border: none;
    background: #fff;
    cursor: pointer;
    transition:
        background 0.15s,
        color 0.15s;
    color: #6b6b6b;
    text-align: center;
}
.view-btn:not(:last-child) {
    border-right: 1px solid #d4d4d4;
}
.view-btn:hover {
    background: #f7f6f4;
}
.view-btn.active {
    background: #272e2e;
    color: #fff;
}

/* Canvas Configurator */
.canvas-configurator {
    display: none;
    margin-bottom: 16px;
}
.canvas-configurator.visible {
    display: block;
}

/* Socke immer zeigen wenn Farbe gewählt */
.design-canvas-col .canvas-configurator {
    display: block;
}
.design-canvas-col .canvas-configurator .canvas-hint {
    display: none;
}
.design-canvas-col .canvas-configurator.visible .canvas-hint {
    display: block;
}

.canvas-wrap {
    position: relative;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    touch-action: none;
}

.canvas-wrap canvas {
    display: block;
    width: 100%;
    height: auto;
}

.canvas-hint {
    font-size: 0.75rem;
    color: #999;
    margin-top: 8px;
}

/* --- Example Pairs (Vorher/Nachher) --- */
.example-pairs {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}
.example-pairs::-webkit-scrollbar {
    height: 3px;
}
.example-pairs::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 2px;
}

.example-pair {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: #fafaf9;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
}
.example-pair-item {
    text-align: center;
}

.example-pair-item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #e8e8e8;
    display: block;
}

.example-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
}

.example-arrow {
    flex: 0 0 16px;
    color: #d4d4d4;
}

/* --- Design Tags (kompakte Hinweise) --- */
.design-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.design-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #6b6b6b;
    background: #f7f6f4;
    border: 1px solid #e8e8e8;
    padding: 3px 10px;
    border-radius: 4px;
}

/* --- Design Info Section --- */
.sec-design-info .section-title {
    margin-bottom: 16px;
}

.sec-design-info .detail-toggle {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    width: 100%;
}

.sec-design-info .detail-toggle:first-of-type {
    border-top: none;
    padding-top: 0;
}

/* --- Hint Box --- */
.hint-box {
    border-left: 3px solid #ae0000;
    background: #fefcfb;
    padding: 16px 18px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 16px;
}

.hint-box p {
    font-size: 0.82rem;
    color: #6b6b6b;
    line-height: 1.6;
    margin-bottom: 6px;
}
.hint-box p:last-child {
    margin-bottom: 0;
}
.hint-box ul {
    margin: 0;
    padding-left: 18px;
}

.hint-box li {
    font-size: 0.82rem;
    color: #6b6b6b;
    line-height: 1.6;
    margin-bottom: 4px;
}

/* --- Preview Cards --- */
.preview-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preview-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s;
    user-select: none;
}
.preview-card:hover {
    border-color: #6b6b6b;
}
.preview-card.active {
    border-color: #272e2e;
}

.preview-card.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.preview-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #d4d4d4;
    flex-shrink: 0;
    margin-top: 1px;
    position: relative;
    transition: border-color 0.15s;
}
.preview-card.active .preview-radio {
    border-color: #272e2e;
}

.preview-card.active .preview-radio::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #272e2e;
}
.preview-card-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2px;
}
.preview-card-desc {
    font-size: 0.82rem;
    color: #6b6b6b;
}

.preview-card-note {
    font-size: 0.75rem;
    color: #999;
    margin-top: 4px;
    font-style: italic;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background: #272e2e;
    color: #fff;
    padding: 14px 32px;
    border-radius: 5px;
    border: none;
    font-family: Lato, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition:
        filter 0.2s,
        transform 0.15s;
    text-decoration: none;
    width: 100%;
    text-align: center;
}

.btn:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

.btn-outline {
    display: inline-block;
    background: #fff;
    color: #272e2e;
    padding: 12px 24px;
    border-radius: 5px;
    border: 1px solid #d4d4d4;
    font-family: Lato, sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: border-color 0.15s;
    width: 100%;
    text-align: center;
}
.btn-outline:hover {
    border-color: #272e2e;
}

/* --- Wizard Navigation --- */
.wizard-nav {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}
.wizard-nav .btn {
    flex: 1;
}
.wizard-nav .btn-outline {
    flex: 1;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

/* --- Progress Bar --- */
.progress-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 32px;
}

.progress-step {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #e8e8e8;
    transition: background 0.3s;
}
.progress-step.done {
    background: #272e2e;
}
.progress-step.current {
    background: #272e2e;
}

.step-indicator {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 8px;
}

/* --- Summary --- */
.summary-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 28px 32px;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.summary-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eef7f2;
    color: #2d7a4f;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-title {
    font-family: "DM Serif Display", serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0;
}

.summary-subtitle {
    font-size: 0.88rem;
    color: #6b6b6b;
    margin-bottom: 24px;
    line-height: 1.55;
}
.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.summary-table tr {
    border-bottom: 1px solid #f0f0f0;
}
.summary-table tr:last-child {
    border-bottom: none;
}
.summary-table td {
    padding: 8px 0;
    font-size: 0.85rem;
    vertical-align: top;
}
.summary-table td:first-child {
    color: #6b6b6b;
    width: 40%;
    padding-right: 12px;
}
.summary-table td:last-child {
    font-weight: 600;
}

.summary-divider td {
    padding: 0;
    height: 12px;
    border-bottom: 2px solid #e8e8e8 !important;
}

.summary-hint {
    background: #fefcfb;
    border-left: 3px solid #ae0000;
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
    font-size: 0.82rem;
    color: #6b6b6b;
    margin-bottom: 20px;
}
.summary-hint strong {
    color: #2c2c2c;
}

/* --- Config Recap (Step 5) --- */
.config-recap {
    margin-bottom: 20px;
}

.recap-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.recap-previews:empty {
    display: none;
}

.recap-preview-item {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    background: #f7f6f4;
    cursor: pointer;
    transition:
        border-color 0.15s,
        transform 0.15s;
}

.recap-preview-item:hover {
    border-color: #272e2e;
    transform: scale(1.02);
}

.recap-preview-item img {
    display: block;
    width: 100%;
    height: auto;
}

.recap-preview-label {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b6b6b;
    padding: 4px 0;
    background: #fff;
    border-top: 1px solid #e8e8e8;
}

.recap-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.recap-thumbnail {
    display: none;
    flex: 0 0 140px;
    position: relative;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    background: #f7f6f4;
}
.recap-thumbnail.visible {
    display: block;
}

.recap-sock {
    display: block;
    width: 100%;
    height: auto;
}

.recap-design {
    display: none;
    position: absolute;
}
.recap-design.visible {
    display: block;
}
.recap-details {
    flex: 1;
    min-width: 0;
}
.recap-table {
    width: 100%;
    border-collapse: collapse;
}
.recap-table tr {
    border-bottom: 1px solid #f0f0f0;
}
.recap-table tr:last-child {
    border-bottom: none;
}

.recap-table td {
    padding: 5px 0;
    font-size: 0.82rem;
    vertical-align: top;
}

.recap-table td:first-child {
    color: #6b6b6b;
    width: 45%;
    padding-right: 10px;
}
.recap-table td:last-child {
    font-weight: 600;
}

/* --- Step 3 Breakout auf Desktop --- */
@media (width >= 601px) {
    .step-design {
        width: calc(100% + 200px);
        margin-left: -100px;
        max-width: 860px;
    }
}

/* --- Responsive --- */
@media (width <= 600px) {
    .main {
        padding: 32px 16px 56px;
    }
    h1 {
        font-size: 1.4rem;
    }
    .section-card {
        padding: 22px 18px;
    }
    .size-table input[type="number"] {
        width: 90px;
    }
    .summary-card {
        padding: 22px 18px;
    }
    .color-toggle {
        flex-direction: column;
    }
    .example-pair-item img {
        width: 72px;
        height: 72px;
    }
    .example-pair {
        padding: 10px;
        gap: 6px;
    }
    .recap-content {
        flex-direction: column;
    }
    .recap-thumbnail {
        flex: 0 0 auto;
        width: 140px;
    }
    .design-layout {
        flex-direction: column;
    }
    .design-canvas-col {
        flex: 0 0 auto;
        width: 100%;
    }
}
