* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    min-height: 100vh;
    color: #2c2c2c;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    font-weight: 300;
}

main h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: #2d3748;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Progress Indicator Styles */
.progress-container {
    margin: 40px 0;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
}

.progress-track {
    position: absolute;
    top: 50px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
    flex: 0 0 auto;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e2e8f0;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-step.active .step-number {
    background: #e91e63;
    border-color: #e91e63;
    color: white;
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.15);
}

.progress-step.completed .step-number {
    background: #9c27b0;
    border-color: #9c27b0;
    color: white;
    transform: scale(1);
}

.step-label {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
    margin-top: 8px;
    text-align: center;
    max-width: 120px;
}

.progress-step.active .step-label {
    color: #3182ce;
    font-weight: 600;
}

.progress-step.completed .step-label {
    color: #38a169;
}

/* Progress line removed - using progress-track instead */

.progress-bar {
    position: absolute;
    top: 50px;
    left: 10%;
    width: 80%;
    height: 3px;
    overflow: hidden;
    z-index: 1;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e91e63, #9c27b0);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.4);
}

/* Tab Container Styles */
.tab-container {
    margin-bottom: 30px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-panel.active {
    display: block;
}

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

.step-description {
    text-align: center;
    color: #718096;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0;
}

.navigation-buttons .btn {
    flex: 1;
    max-width: 200px;
}

.navigation-buttons .btn-secondary {
    margin-right: auto;
}

.navigation-buttons .btn-primary,
.navigation-buttons .btn-success {
    margin-left: auto;
}

.selection-block {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.selection-block h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #4a5568;
    text-align: center;
}

.color-palettes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.color-palette {
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.color-palette:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.color-palette.selected {
    border-color: #e91e63;
    background: #fce4ec;
}

.color-palette h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #2d3748;
}

.color-circles {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.color-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.look-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.look-type-option {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: white;
    overflow: hidden;
    position: relative;
}

.look-type-option:hover {
    border-color: #e91e63;
    background: #fce4ec;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.look-type-option:hover .look-thumbnail img {
    transform: scale(1.05);
}

.look-type-option.selected {
    border-color: #e91e63;
    background: #e91e63;
    color: white;
}

.look-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 8px;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.look-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.look-icon {
    font-size: 3rem;
    margin-bottom: 8px;
    opacity: 0.7;
}

.look-name {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
}

.materials, .styles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.material-option, .style-option {
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    background: white;
    overflow: hidden;
}

.material-thumbnail, .style-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 8px;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.material-thumbnail img, .style-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.material-option:hover .material-thumbnail img,
.style-option:hover .style-thumbnail img {
    transform: scale(1.05);
}

.material-option:hover, .style-option:hover {
    border-color: #e91e63;
    background: #fce4ec;
}

.material-option.selected, .style-option.selected {
    border-color: #e91e63;
    background: #e91e63;
    color: white;
}


.btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.btn-primary {
    background: #e91e63;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #c2185b;
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-success {
    background: #9c27b0;
    color: white;
}

.btn-success:hover {
    background: #7b1fa2;
}

.btn-restart {
    background: #607d8b;
    color: white;
}

.btn-restart:hover {
    background: #455a64;
    transform: translateY(-2px);
}

/* Results Section */
.results {
    margin-top: 40px;
}

.results-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-bottom: 30px;
    align-items: start;
}

.generated-image {
    text-align: center;
}

.generated-image img {
    max-width: 100%;
    max-height: 600px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* Generation Summary */
.generation-summary {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    height: fit-content;
}

.generation-summary h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 25px;
    text-align: center;
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
}

.summary-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.summary-look-thumbnail,
.summary-room-thumbnail,
.summary-material-thumbnail,
.summary-style-thumbnail {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 8px;
    overflow: hidden;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.summary-look-thumbnail img,
.summary-room-thumbnail img,
.summary-material-thumbnail img,
.summary-style-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.summary-look-thumbnail .summary-icon,
.summary-room-thumbnail .summary-icon,
.summary-material-thumbnail .summary-icon,
.summary-style-thumbnail .summary-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    min-width: auto;
}

.summary-colors {
    display: flex;
    gap: 6px;
    min-width: 50px;
    justify-content: center;
}

.summary-colors .color-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.summary-details {
    flex: 1;
}

.summary-label {
    font-size: 0.85rem;
    color: #718096;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.summary-value {
    font-size: 1.05rem;
    color: #2d3748;
    font-weight: 600;
    line-height: 1.3;
}

.result-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.loading {
    text-align: center;
    padding: 40px;
}

.loading p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #4a5568;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #3182ce;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .selection-blocks {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .room-types {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .results-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .generation-summary {
        padding: 20px;
    }
    
    .summary-item {
        padding: 12px;
        gap: 12px;
    }
    
    .summary-icon {
        font-size: 1.5rem;
        min-width: 40px;
    }
    
    .result-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .secondary-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .products-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .brands-input-group {
        min-width: 100%;
    }
    
    #refreshProductsBtn {
        width: 100%;
    }
}

/* Removed special CTA button styles - using btn-primary instead */

/* Gender Selection */
.gender-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.gender-option {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.gender-option:hover {
    border-color: #e91e63;
    background: #fce4ec;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.gender-option:hover .gender-icon img {
    transform: scale(1.05);
}

.gender-option.selected {
    border-color: #e91e63;
    background: #e91e63;
    color: white;
}

.gender-icon {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 8px;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gender-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gender-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

.gender-option.selected .gender-label {
    color: white;
}

/* Products Section */
.products-container {
    margin-top: 40px;
    padding: 30px;
    background: #f9fafb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.products-controls {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filters-row {
    display: flex;
    gap: 20px;
    flex: 1;
    flex-wrap: wrap;
    align-items: flex-end;
}

.brands-input-group {
    flex: 1;
    min-width: 300px;
}

.brands-input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
}

.brands-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    height: 44px;
    box-sizing: border-box;
}

.brands-input:focus {
    outline: none;
    border-color: #e91e63;
}

.brands-input::placeholder {
    color: #9ca3af;
}

#refreshProductsBtn {
    min-width: 160px;
    height: 44px;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0 20px;
}

.products-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    padding: 15px;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-brand {
    font-size: 0.875rem;
    color: #666;
    margin: 0 0 8px 0;
}

.product-price {
    font-size: 1.125rem;
    font-weight: bold;
    color: #e91e63;
    margin: 8px 0;
}

.product-link {
    display: inline-block;
    margin-top: 10px;
    color: #e91e63;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.product-link:hover {
    color: #c2185b;
    text-decoration: underline;
}

.loading-products {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1rem;
}

.no-products {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-products p {
    margin: 10px 0;
}

.error-message {
    color: #dc2626;
    font-size: 0.9rem;
    margin-top: 10px;
}
/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.lang-btn {
    padding: 5px 12px;
    border: 2px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: white;
}

.lang-btn.active {
    background: white;
    color: #e91e63;
    border-color: white;
}

header {
    position: relative;
}

/* Product Search Controls */
.product-search-controls {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.product-search-controls > div {
    flex: 1;
    min-width: 200px;
}

.product-search-controls #refreshProductsBtn {
    flex: 0 0 auto;
    margin-top: 0;
    align-self: flex-end;
}

/* Price Range Filter Styles */
.price-range-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.price-range-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-input {
    width: 90px;
    padding: 10px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    height: 44px;
    box-sizing: border-box;
}

.price-input:focus {
    outline: none;
    border-color: #e91e63;
}

.price-inputs span {
    color: #718096;
    font-weight: 500;
}
