.configurator-layout {
    display: flex;
    flex-direction: column;
    /* Force column for mobile view */
    height: auto;
    padding-top: 50px;
    /* Reduced to match navbar height exactly */
    min-height: calc(100vh - 50px);
}

.preview-panel {
    width: 100%;
    height: auto;
    aspect-ratio: 2/1;
    background-color: var(--color-surface);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    order: 1;
    /* Show preview first */
}

.preview-container,
.preview-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
}

.config-panel {
    width: 100%;
    padding: var(--spacing-sm);
    padding-bottom: 0;
    /* Add space for fixed bottom buttons */
    background: white;
    order: 2;
    /* Controls below */
    flex: 1;
}

/* ... existing styles ... */

.btn-group {
    display: flex;
    gap: 8px;
    /* Adjusted gap */
    margin-top: 0;
    justify-content: space-between;
    /* Distribute space */

    /* Fixed Bottom Positioning */
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--mobile-max-width);
    /* Match app container width */

    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: var(--spacing-sm);
    /* padding-right: 90px; Removed to balance spacing */

    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    /* Increased z-index */
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* ... existing styles ... */

/* Adjust Bottom Action Bar Buttons */
.btn-group .btn-outline {
    width: auto;
    flex: 1;
    /* Equal share for small buttons */
    min-width: 0;
    padding: 16px 0;
    text-align: center;
    justify-content: center;
    display: flex;
    /* Ensure flex for centering content */
    align-items: center;
}

.btn-group .next-btn,
.btn-group .order-btn {
    flex: 2;
    /* Double share for main action button */
    width: auto;
    display: flex;
    /* Ensure flex for centering content */
    align-items: center;
    justify-content: center;
}

.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    border-bottom: 1px solid #eee;
    padding-bottom: var(--spacing-xs);
}

.config-header h2 {
    font-size: 1.5rem;
}

.config-header p {
    display: inline-block;
    background-color: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-top: 0;
}

.step-section {
    display: none;
    animation: fadeIn 0.5s ease;
    padding-bottom: 60px;
    /* Space for fixed bottom action bar */
}

.step-section.active {
    display: block;
    overflow: visible;
}

.sub-section {
    margin-bottom: 0;
    /* Changed from margin-bottom to margin-top strategy */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 1000px;
    opacity: 1;
    transform: translateY(0);
    overflow: visible;
}

.sub-section+.sub-section {
    margin-top: var(--spacing-md);
}

.sub-section.hidden {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
    transform: translateY(-10px);
    pointer-events: none;
    overflow: hidden;
    /* Critical to actually hide content layout */
    visibility: hidden;
}

.sub-section h4 {
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-hint {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.btn-hint:hover {
    color: var(--color-primary);
}

.step-section h3 {
    margin-bottom: var(--spacing-sm);
}

.group-section {
    margin-top: 30px;
    margin-bottom: 20px;
    padding-top: 10px;
}

.group-section>h3 {
    background: rgba(248, 250, 252, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 12px 0;
    margin: 0 0 20px 0;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: none;
    position: -webkit-sticky;
    position: sticky;
    top: 50px;
    z-index: 10;
    letter-spacing: -0.3px;
    transition: all 0.3s ease;
    text-align: center;
}

.group-section>h3.is-stuck {
    /* Position is handled by sticky above */
    box-shadow: none;
    background: rgba(248, 250, 252, 0.4);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    padding: 14px 20px;
    margin: 0 0 20px 0;
    /* Maintain margin */
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    animation: none;
    /* Remove animation to prevent flicker */
    width: 100%;
    /* Ensure full width */
    left: auto;
    transform: none;
    max-width: none;
}

.group-section>h3::after {
    display: none;
}

.group-section>h3.is-stuck::after {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        /* transform: translateY(10px); Removed to prevent fixed position issues */
    }

    to {
        opacity: 1;
        /* transform: translateY(0); */
    }
}

.category-tabs {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: 0;
    overflow-x: auto;
    padding-bottom: 4px;
    /* For scrollbar space if needed */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    color: var(--color-text-main);
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    font-family: var(--font-body);
}

.category-tab:hover {
    background: #f8fafc;
    border-color: var(--color-primary);
}

.category-tab.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.selected-fabrics-area {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    border: 0 solid #eee;

    /* Hidden state by default */
    height: 0;
    opacity: 0;
    margin-bottom: 0;
    padding: 0;
    overflow: hidden;

    /* Smoother transition */
    transition: height 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease,
        margin 0.25s ease,
        padding 0.25s ease;
}

.selected-fabrics-area.visible {
    /* height is handled by JS */
    opacity: 1;
    margin-bottom: 0;
    margin-top: 10px;
    padding: 8px;
    border-width: 1px;
    overflow-y: hidden;
    /* Prevent scrollbar during animation, JS will switch to auto */
    max-height: 125px;
    /* Approx 3 lines */
}

.selected-fabrics-area::-webkit-scrollbar {
    width: 6px;
    display: block;
}

.selected-fabrics-area::-webkit-scrollbar-track {
    background: transparent;
}

.selected-fabrics-area::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.selected-fabric-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.selected-fabric-tag .remove-btn {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    border-radius: 50%;
    font-size: 10px;
    cursor: pointer;
    color: #666;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: 0;
}

.option-grid:last-child {
    margin-bottom: 0;
}

.option-card {
    border: 1px solid #ddd;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    background-color: white;
    /* For badge positioning */
    min-height: auto;
    /* Remove fixed height constraint */
    justify-content: center;
    /* Align content to center vertically */
}



.badge-best {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--color-secondary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.option-card.selected {
    border-color: var(--color-primary);
    background-color: white;
    box-shadow: inset 0 0 0 1px var(--color-primary);
}

.swatch {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: var(--spacing-xs);
    box-shadow: var(--shadow-sm);
}

.icon-placeholder {
    width: 50px;
    height: 50px;
    background: #eee;
    border-radius: 4px;
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #666;
}

.fabric-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.4em;
    /* Reserve space for 2 lines to maintain alignment */
    line-height: 1.2;
}

.price {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 4px;
}



.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.input-wrapper {
    position: relative;
}

.input-wrapper input,
.input-wrapper textarea {
    padding-right: 40px;
}

.char-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    color: #94a3b8;
    font-size: 0.8rem;
    pointer-events: none;
}

.required {
    color: #ef4444;
    margin-left: 2px;
}

.summary-box {
    background: var(--color-surface);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    margin-top: var(--spacing-md);
}

.total-price {
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: var(--spacing-sm);
    color: var(--color-primary);
}

.qty-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    /* Push to bottom */
    width: 100%;
    /* Ensure full width for centering */
    padding-top: 8px;
    /* Add some spacing from content above */
}

.qty-control button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    color: var(--color-primary);
    transition: var(--transition);
}

.qty-control button:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.qty-control button:disabled {
    background-color: #f1f5f9;
    color: #cbd5e1;
    border-color: #e2e8f0;
    cursor: not-allowed;
    pointer-events: none;
}

.next-btn,
.order-btn {
    width: 100%;
    /* margin-top: var(--spacing-md); Removed to prevent double margin in btn-group */
    padding: 16px;
    font-size: 1rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    /* Added for consistency */
    cursor: pointer;
    /* Added for consistency */
    transition: var(--transition);
}

/* Ensure outline button matches next button in configurator */
.configurator-layout .btn-outline {
    padding: 16px;
    font-size: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    /* Match border style if needed, or keep primary */
    color: var(--color-text-main);
}

.configurator-layout .btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.configurator-layout .btn-outline:disabled,
.btn-group .btn-outline:disabled {
    background-color: #f1f5f9;
    color: #cbd5e1;
    border-color: #e2e8f0;
    cursor: not-allowed;
    pointer-events: none;
}

.next-btn:disabled,
.order-btn:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
    opacity: 1;
}

.next-btn:hover:not(:disabled),
.order-btn:hover:not(:disabled) {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.qty-control span {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Group Section Styling */
.group-section {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    margin-top: 0;
}

.group-section h3 {
    margin-top: calc(-1 * var(--spacing-sm));
    margin-left: calc(-1 * var(--spacing-sm));
    margin-right: calc(-1 * var(--spacing-sm));
    padding: var(--spacing-sm);
    padding-bottom: 8px;
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    color: var(--color-primary);
    border-bottom: 2px solid #e2e8f0;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.group-section .sub-section:last-child {
    margin-bottom: 0;
}

.group-section:last-child {
    margin-bottom: 0;
}

/* Navbar Fixed for Order Page - Removed as we use main.js floating navbar now */

/* Order Page Layout Fixes */
.app-container.order-mode {
    display: block;
    /* Simplify layout for sticky */
    overflow: visible !important;
    /* Force disable internal scroll */
    position: relative;
    height: auto !important;
    /* Allow growth beyond 100% */
    min-height: 100vh;
    max-height: none !important;
    /* Remove mobile height limit */
    margin: 0 auto;
    /* Center the container */
}

.configurator-layout {
    display: block;
    /* Simplify layout for sticky */
    padding-top: 50px;
    overflow: visible;
    /* Disable internal scroll */
    height: auto;
    padding-bottom: 120px;
}

.config-panel {
    overflow: visible;
    /* Ensure sticky works */
}

/* Navbar Sticky */
.app-container.order-mode .app-navbar {
    position: fixed;
    /* Fixed to viewport */
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--mobile-max-width);
    z-index: 100;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-group {
    position: fixed;
    /* Fixed to viewport */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    /* Center relative to viewport */
    width: 100%;
    max-width: var(--mobile-max-width);
    /* Match app width */
    border-top: 1px solid #eee;
    z-index: 100;
}

.config-steps,
.step-section {
    overflow: visible !important;
}

.fabric-sticky-header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 50px;
    /* Slightly higher to ensure contact with navbar */
    z-index: 99;
    /* Just below navbar (100) */
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 10px var(--spacing-sm);
    box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);

    /* Extend to edges to cover scrolling content */
    margin-left: calc(-1 * var(--spacing-sm));
    margin-right: calc(-1 * var(--spacing-sm));
}

/* Remove margin from grid as sticky header is in flow */
#fabric-grid {
    margin-top: 0;
}

/* Adjust Bottom Action Bar Buttons */
.btn-group .btn-outline {
    width: auto;
    flex: 0 0 20%;
    /* Fixed 20% width for Prev/Save buttons */
    min-width: auto;
    /* Remove min-width constraint */
    padding: 16px 0;
    /* Adjust padding for smaller width */
    text-align: center;
    justify-content: center;
}

.btn-group .next-btn,
.btn-group .order-btn {
    flex: 1;
    /* Take remaining space */
    width: auto;
}

/* Fabric Popup Styles */
.fabric-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    /* Highest z-index */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.fabric-popup-content {
    background: white;
    width: 100%;
    max-width: 360px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    animation: slideUp 0.3s ease;
}

.fabric-popup-header {
    padding: 20px 20px 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.fabric-popup-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.fabric-popup-body {
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.popup-image-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.popup-swatch {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 4px solid white;
    background-size: cover;
    background-position: center;
}

.fabric-desc {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.fabric-specs {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.spec-item:last-child {
    margin-bottom: 0;
}

.spec-item .label {
    color: #94a3b8;
}

.spec-item .value {
    font-weight: 500;
    color: #334155;
}

.fabric-reviews h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.review-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review-item .stars {
    color: #fbbf24;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.review-item p {
    font-size: 0.9rem;
    color: #475569;
    margin: 0;
}

.fabric-popup-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #fff;
}

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

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

/* Sentinel for sticky detection */
.sticky-sentinel {
    height: 1px;
    width: 100%;
    visibility: hidden;
    pointer-events: none;
    margin-bottom: -1px;
    /* Pull header up to overlap sentinel slightly */
}

.measurement-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.measurement-grid .form-group {
    margin-bottom: 0;
    /* Remove bottom margin as grid gap handles spacing */
}

/* Hint Button Styles */
.hint-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #64748b;
    font-size: 11px;
    font-weight: bold;
    border: none;
    margin-left: 6px;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.hint-btn:hover {
    background-color: var(--color-primary);
    color: white;
}

/* Lighter placeholder color for measurement inputs */
.measurement-grid input::placeholder {
    color: #cbd5e1;
    opacity: 1;
    /* Firefox */
}

.measurement-grid input::-ms-input-placeholder {
    /* Edge 12-18 */
    color: #cbd5e1;
}

/* Photo Upload Styles */
.photo-upload-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.photo-upload-item {
    aspect-ratio: 1/1;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    transition: all 0.2s;
}

.photo-upload-item:hover {
    border-color: var(--color-primary);
    background: #f1f5f9;
}

.upload-placeholder {
    color: #94a3b8;
    font-size: 2rem;
    font-weight: 300;
}

.photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.remove-photo {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

/* Save My Style Popup */
.style-save-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.style-save-popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.style-save-popup-content {
    background: white;
    width: 100%;
    max-width: 320px;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.style-save-popup-overlay.active .style-save-popup-content {
    transform: translateY(0);
}

.style-name-input {
    width: 100%;
    padding: 12px;
    margin: 16px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
}

.popup-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.popup-actions button {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.btn-cancel {
    background: #f1f5f9;
    color: #64748b;
}

.btn-save {
    background: var(--color-primary, #0f172a);
    color: white;
}

/* Save Style Button in Step 2 */
.btn-save-style {
    width: 100%;
    padding: 16px;
    background-color: #334155;
    /* Dark grey/blue to distinguish from black/primary */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-save-style:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
}

/* Review Image Logic */
.review-expanded-view {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out, margin-top 0.3s ease;
    margin-top: 0;
}

.review-expanded-view.expanded {
    max-height: 600px;
    opacity: 1;
    margin-top: 10px;
}