/* =====================================================
   Build My Store — Visual Room Configurator
   ===================================================== */

/* ── CSS Variables ──────────────────────────────── */
:root {
    --cfg-primary: #FFD700;
    --cfg-primary-hover: #ffe44d;
    --cfg-dark: #1a1a1a;
    --cfg-dark-light: #2a2a2a;
    --cfg-bg: #f5f5f0;
    --cfg-panel-bg: #fff;
    --cfg-border: #e5e5e0;
    --cfg-text: #333;
    --cfg-text-light: #888;
    --cfg-danger: #e53e3e;
    --cfg-success: #16a34a;
    --cfg-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --cfg-panel-left-w: 240px;
    --cfg-panel-right-w: 280px;
}

/* ── Page Layout ────────────────────────────────── */
.configurator-page {
    min-height: 100vh;
    background: var(--cfg-bg);
    font-family: var(--cfg-font);
    display: flex;
    flex-direction: column;
}

/* ── Step Indicator Bar ─────────────────────────── */
.config-steps-bar {
    background: var(--cfg-dark);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.config-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.config-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: default;
    transition: all 0.3s ease;
}

.config-step .step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}

.config-step .step-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}

.config-step.active .step-num {
    background: var(--cfg-primary);
    color: var(--cfg-dark);
}

.config-step.active .step-label {
    color: #fff;
}

.config-step.completed .step-num {
    background: var(--cfg-success);
    color: #fff;
}

.config-step.completed .step-label {
    color: rgba(255,255,255,0.7);
}

.step-connector {
    width: 60px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 0 8px;
    transition: background 0.3s ease;
}

.step-connector.active {
    background: var(--cfg-primary);
}

/* ── Step Panels ────────────────────────────────── */
.config-step-panel {
    display: none;
    flex: 1;
}

.config-step-panel.active {
    display: flex;
}

/* ── Step 1: Store Type Selection ───────────────── */
.store-type-overlay {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(255,215,0,0.06) 0%, transparent 60%),
        var(--cfg-bg);
}

.store-type-inner {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.store-type-inner h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--cfg-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.store-type-inner > p {
    font-size: 16px;
    color: var(--cfg-text-light);
    margin-bottom: 48px;
}

.store-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.store-type-card {
    background: var(--cfg-panel-bg);
    border: 2px solid var(--cfg-border);
    border-radius: 14px;
    padding: 32px 20px 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    font-family: inherit;
    font-size: inherit;
}

.store-type-card:hover {
    border-color: var(--cfg-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.store-type-card:active {
    transform: translateY(-1px);
}

.stc-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 16px;
}

.store-type-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--cfg-dark);
    margin-bottom: 6px;
}

.store-type-card p {
    font-size: 13px;
    color: var(--cfg-text-light);
    line-height: 1.4;
    margin: 0;
}

/* ── Step 2: 3-Panel Layout Designer ────────────── */
.layout-designer {
    display: flex;
    flex: 1;
    height: calc(100vh - 66px - 56px); /* viewport minus steps bar minus action bar */
    overflow: hidden;
}

/* ── Left Panel: Fixture Catalog ────────────────── */
.panel-left {
    width: var(--cfg-panel-left-w);
    background: var(--cfg-panel-bg);
    border-right: 1px solid var(--cfg-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.panel-left.collapsed {
    width: 0;
    opacity: 0;
    border-right: none;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--cfg-border);
}

.panel-header h2 {
    font-size: 15px;
    font-weight: 700;
    color: var(--cfg-dark);
    margin: 0;
}

.panel-toggle-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--cfg-border);
    border-radius: 6px;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--cfg-text-light);
    transition: all 0.2s;
}

.panel-toggle-btn:hover {
    background: var(--cfg-bg);
    color: var(--cfg-dark);
}

.catalog-search {
    padding: 10px 12px;
    border-bottom: 1px solid var(--cfg-border);
}

.catalog-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--cfg-border);
    border-radius: 6px;
    font-size: 13px;
    font-family: var(--cfg-font);
    outline: none;
    transition: border-color 0.2s;
}

.catalog-search input:focus {
    border-color: var(--cfg-primary);
}

.catalog-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

/* Catalog Categories */
.catalog-category {
    border-bottom: 1px solid var(--cfg-border);
}

.catalog-category:last-child {
    border-bottom: none;
}

.cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cfg-text-light);
    transition: color 0.2s;
    background: none;
    border: none;
    width: 100%;
    font-family: var(--cfg-font);
    text-align: left;
}

.cat-header:hover {
    color: var(--cfg-dark);
    background: var(--cfg-bg);
}

.cat-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.catalog-category.open .cat-arrow {
    transform: rotate(90deg);
}

.cat-items {
    display: none;
    padding: 0 8px 8px;
}

.catalog-category.open .cat-items {
    display: block;
}

/* Catalog Item (draggable) */
.catalog-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: grab;
    transition: all 0.15s ease;
    margin-bottom: 2px;
}

.catalog-item:hover {
    background: #fffbee;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.catalog-item:active {
    cursor: grabbing;
    opacity: 0.7;
}

.cat-item-icon {
    width: 36px;
    height: 36px;
    background: var(--cfg-bg);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cat-item-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--cfg-text);
    stroke-width: 1.5;
}

.cat-item-info {
    flex: 1;
    min-width: 0;
}

.cat-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--cfg-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-item-price {
    font-size: 11px;
    color: var(--cfg-text-light);
}

/* ── Center Panel: Canvas ───────────────────────── */
.panel-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--cfg-bg);
}

.canvas-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: var(--cfg-panel-bg);
    border-bottom: 1px solid var(--cfg-border);
    gap: 16px;
    flex-wrap: wrap;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbar-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--cfg-border);
    border-radius: 6px;
    background: var(--cfg-panel-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--cfg-text);
    transition: all 0.15s;
    font-family: var(--cfg-font);
}

.toolbar-btn:hover:not(:disabled) {
    background: var(--cfg-bg);
    border-color: var(--cfg-primary);
}

.toolbar-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.toolbar-sep {
    width: 1px;
    height: 24px;
    background: var(--cfg-border);
    margin: 0 4px;
}

.zoom-label {
    font-size: 12px;
    color: var(--cfg-text-light);
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.room-input-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--cfg-text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.room-input {
    width: 50px;
    padding: 4px 6px;
    border: 1px solid var(--cfg-border);
    border-radius: 4px;
    font-size: 13px;
    font-family: var(--cfg-font);
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

.room-input:focus {
    border-color: var(--cfg-primary);
}

.room-x {
    color: var(--cfg-text-light);
    font-size: 14px;
}

.room-select {
    padding: 4px 8px;
    border: 1px solid var(--cfg-border);
    border-radius: 4px;
    font-size: 13px;
    font-family: var(--cfg-font);
    outline: none;
    cursor: pointer;
}

.room-select:focus {
    border-color: var(--cfg-primary);
}

.canvas-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(255,215,0,0.03) 0%, transparent 70%),
        var(--cfg-bg);
}

.canvas-container .konvajs-content {
    margin: 0 auto;
}

.canvas-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15px;
    color: var(--cfg-text-light);
    text-align: center;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.canvas-hint.hidden {
    opacity: 0;
}

/* ── Right Panel: Quote Calculator ──────────────── */
.panel-right {
    width: var(--cfg-panel-right-w);
    background: var(--cfg-panel-bg);
    border-left: 1px solid var(--cfg-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.panel-right.collapsed {
    width: 0;
    opacity: 0;
    border-left: none;
}

.quote-summary {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.quote-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--cfg-text-light);
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

/* Quote line items */
.quote-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--cfg-border);
    font-size: 13px;
    transition: background 0.15s;
    cursor: pointer;
}

.quote-item:hover {
    background: #fffbee;
}

.quote-item.selected {
    background: #fffbee;
    border-left: 3px solid var(--cfg-primary);
    padding-left: 13px;
}

.qi-info {
    flex: 1;
    min-width: 0;
}

.qi-name {
    font-weight: 600;
    color: var(--cfg-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qi-variant {
    font-size: 11px;
    color: var(--cfg-text-light);
    margin-top: 2px;
}

.qi-price {
    font-weight: 700;
    color: var(--cfg-dark);
    white-space: nowrap;
}

.qi-remove {
    width: 20px;
    height: 20px;
    border: none;
    background: none;
    color: var(--cfg-text-light);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.15s;
    flex-shrink: 0;
}

.qi-remove:hover {
    background: #fee;
    color: var(--cfg-danger);
}

/* Quote Totals */
.quote-totals {
    border-top: 2px solid var(--cfg-border);
    padding: 16px;
    background: #fafaf8;
}

.qt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: var(--cfg-text);
}

.qt-row.qt-total {
    font-size: 16px;
    font-weight: 800;
    color: var(--cfg-dark);
    padding-top: 10px;
    margin-top: 6px;
    border-top: 2px solid var(--cfg-dark);
}

.discount-row {
    color: var(--cfg-success);
    font-weight: 600;
}

.discount-val {
    color: var(--cfg-success);
}

.qt-note {
    font-size: 11px;
    color: var(--cfg-text-light);
    margin-top: 10px;
    line-height: 1.4;
}

/* ── Property Panel ─────────────────────────────── */
.property-panel {
    border-top: 2px solid var(--cfg-primary);
    background: #fffdf0;
}

.prop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--cfg-border);
}

.prop-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--cfg-dark);
    margin: 0;
}

.prop-close {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    font-size: 18px;
    color: var(--cfg-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.prop-close:hover {
    background: #fee;
    color: var(--cfg-danger);
}

.prop-body {
    padding: 12px 16px;
}

.prop-field {
    margin-bottom: 12px;
}

.prop-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cfg-text-light);
    margin-bottom: 4px;
}

.prop-field select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--cfg-border);
    border-radius: 6px;
    font-size: 13px;
    font-family: var(--cfg-font);
    cursor: pointer;
}

.prop-actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.prop-action-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--cfg-border);
    border-radius: 6px;
    background: var(--cfg-panel-bg);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--cfg-font);
    color: var(--cfg-text);
    transition: all 0.15s;
    text-align: center;
}

.prop-action-btn:hover {
    background: var(--cfg-bg);
    border-color: var(--cfg-primary);
}

.prop-action-btn.danger {
    color: var(--cfg-danger);
}

.prop-action-btn.danger:hover {
    background: #fee;
    border-color: var(--cfg-danger);
}

/* ── Action Bar ─────────────────────────────────── */
.config-action-bar {
    background: var(--cfg-panel-bg);
    border-top: 1px solid var(--cfg-border);
    padding: 10px 0;
    position: sticky;
    bottom: 0;
    z-index: 50;
}

.action-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.action-left,
.action-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--cfg-font);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.action-btn.primary {
    background: var(--cfg-primary);
    color: var(--cfg-dark);
}

.action-btn.primary:hover {
    background: var(--cfg-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,215,0,0.4);
}

.action-btn.secondary {
    background: var(--cfg-panel-bg);
    color: var(--cfg-text);
    border: 1px solid var(--cfg-border);
}

.action-btn.secondary:hover {
    background: var(--cfg-bg);
    border-color: var(--cfg-primary);
}

/* ── Quote Modal ────────────────────────────────── */
.quote-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.quote-modal {
    background: var(--cfg-panel-bg);
    border-radius: 16px;
    padding: 36px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--cfg-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.modal-close:hover {
    background: var(--cfg-bg);
    color: var(--cfg-dark);
}

.quote-modal h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cfg-dark);
    margin-bottom: 8px;
}

.quote-modal > p {
    font-size: 14px;
    color: var(--cfg-text-light);
    margin-bottom: 24px;
}

.layout-preview-summary {
    background: var(--cfg-bg);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.lps-item {
    display: flex;
    flex-direction: column;
}

.lps-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cfg-text-light);
    font-weight: 600;
}

.lps-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--cfg-dark);
}

.modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.modal-field {
    margin-bottom: 16px;
}

.modal-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cfg-text);
    margin-bottom: 6px;
}

.modal-field input,
.modal-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--cfg-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--cfg-font);
    outline: none;
    transition: border-color 0.2s;
}

.modal-field input:focus,
.modal-field textarea:focus {
    border-color: var(--cfg-primary);
}

.modal-field textarea {
    resize: vertical;
    min-height: 70px;
}

.modal-submit {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    margin-top: 8px;
    justify-content: center;
}

.modal-note {
    text-align: center;
    font-size: 12px;
    color: var(--cfg-text-light);
    margin-top: 12px;
}

/* ── Quote Success Overlay ──────────────────────── */
.quote-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.quote-success-content {
    background: var(--cfg-panel-bg);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    max-width: 480px;
    width: 100%;
    animation: slideUp 0.3s ease;
}

.quote-success-content .qs-icon {
    width: 72px;
    height: 72px;
    background: var(--cfg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--cfg-dark);
    font-weight: 900;
    margin: 0 auto 20px;
    animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

.quote-success-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--cfg-dark);
    margin-bottom: 12px;
}

.quote-success-content p {
    font-size: 15px;
    color: var(--cfg-text);
    line-height: 1.6;
    margin-bottom: 8px;
}

.quote-success-content .qs-hours {
    font-size: 13px;
    color: var(--cfg-text-light);
    margin-bottom: 24px;
}

.qs-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

/* ── Animations ─────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes discountSlide {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.fixture-placed {
    animation: bounceIn 0.3s ease;
}

.discount-animate {
    animation: discountSlide 0.4s ease;
}

/* Collision indicator */
.fixture-collision .konvajs-content rect {
    stroke: var(--cfg-danger) !important;
}

/* ── Drag ghost for HTML5 drag ──────────────────── */
.drag-ghost {
    position: fixed;
    top: -1000px;
    left: -1000px;
    padding: 8px 14px;
    background: var(--cfg-primary);
    color: var(--cfg-dark);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--cfg-font);
    white-space: nowrap;
    pointer-events: none;
    z-index: 99999;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
    .panel-left {
        width: 200px;
    }
    .panel-right {
        width: 240px;
    }
    .store-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .config-steps .step-label {
        display: none;
    }
    .step-connector {
        width: 30px;
    }
    .store-type-inner h1 {
        font-size: 1.6rem;
    }
    .store-type-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .store-type-card {
        padding: 20px 12px 16px;
    }
    .stc-icon {
        font-size: 28px;
    }
    .layout-designer {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 66px);
    }
    .panel-left {
        width: 100%;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--cfg-border);
    }
    .panel-left.collapsed {
        max-height: 0;
        width: 100%;
    }
    .panel-right {
        width: 100%;
        max-height: 300px;
        border-left: none;
        border-top: 1px solid var(--cfg-border);
    }
    .panel-right.collapsed {
        max-height: 0;
        width: 100%;
    }
    .canvas-container {
        min-height: 400px;
    }
    .canvas-toolbar {
        flex-wrap: wrap;
        gap: 8px;
    }
    .toolbar-right {
        flex-wrap: wrap;
    }
    .action-bar-inner {
        flex-direction: column;
        gap: 8px;
    }
    .action-left,
    .action-right {
        flex-wrap: wrap;
        justify-content: center;
    }
    .modal-row {
        grid-template-columns: 1fr;
    }
    .layout-preview-summary {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .store-type-grid {
        grid-template-columns: 1fr;
    }
    .store-type-overlay {
        padding: 30px 16px;
    }
    .quote-modal {
        padding: 24px;
    }
}
