/* Fione Style - Clean, Modern E-commerce Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* DISABLE ALL ANIMATIONS TO PREVENT GLITCHING */
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

/* Override animations for specific elements */
.product-card,
.btn,
.form-input,
.form-select,
.form-textarea,
.loading-spinner,
.camera-btn {
    transition: all 0.3s ease !important;
    transform: initial !important;
}

.product-card:hover {
    transform: translateY(-2px) !important;
}

.loading-spinner {
    animation: spin 1s linear infinite !important;
}

:root {
    --primary-color: #000;
    --secondary-color: #666;
    --accent-color: #ff6b6b;
    --background: #fff;
    --light-gray: #f8f8f8;
    --border-color: #e0e0e0;
    --text-primary: #333;
    --text-secondary: #666;
    --success: #4caf50;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--background);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: white;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
}

.nav-logo h1::after {
    content: '.';
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* Upload Page Styles */
.upload-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.upload-header {
    text-align: center;
    margin-bottom: 3rem;
}

.upload-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.upload-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.upload-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.upload-area {
    background: var(--light-gray);
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.upload-area:hover {
    background: #f0f0f0;
}

.upload-area.dragover {
    background: #e8f5e9;
    border-color: var(--success);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-area h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.upload-area p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.images-preview-container {
    margin-top: 2rem;
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.images-preview-container.active {
    display: grid;
}

.image-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #f8f8f8;
}

.image-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.image-preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    text-align: center;
}

.image-preview-favorite {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-favorite.active {
    background: #ffd700;
    color: #333;
}

.image-preview.favorite {
    border: 3px solid #ffd700;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

/* Form Styles */
.product-details {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

textarea {
    resize: vertical;
}

/* Toggle Switch */
.extract-option {
    margin: 2rem 0;
}

.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    width: 50px;
    height: 26px;
    background: #ccc;
    border-radius: 34px;
    position: relative;
    margin-right: 1rem;
    transition: background 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 2px;
    top: 2px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-label input:checked + .toggle-slider {
    background: var(--success);
}

.toggle-label input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

/* Buttons */
.upload-actions {
    padding: 1.5rem 2rem;
    background: var(--light-gray);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    /* NO TRANSITIONS - REMOVED ALL ANIMATIONS */
    font-size: 1rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 150px;
}

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

.btn-primary:hover {
    background: #333;
    /* NO ANIMATIONS */
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--light-gray);
}

/* Loader */
.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading .loader {
    display: inline-block;
}

.loading #btnText {
    display: none;
}

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

/* Success Message */
.success-message {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.success-message h3 {
    margin-bottom: 0.5rem;
}

.success-message p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Shop Page Grid */
.shop-hero {
    background: var(--light-gray);
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.categories {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.category-pills {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-pill {
    padding: 0.5rem 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

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

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3.5rem;
    padding: 4rem 0;
    width: 100%;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    /* NO TRANSITIONS - REMOVED ALL ANIMATIONS */
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-card:hover {
    /* NO HOVER ANIMATIONS */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    background: var(--light-gray);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-add-wardrobe {
    flex: 1;
    padding: 1.25rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    /* NO TRANSITIONS */
}

.btn-add-wardrobe:hover {
    background: #333;
}

.btn-add-wardrobe.added {
    background: var(--success);
}

/* Wardrobe Counter */
.wardrobe-counter {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    cursor: pointer;
    /* NO TRANSITIONS */
}

.wardrobe-counter:hover {
    /* NO ANIMATIONS */
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

.wardrobe-count {
    background: white;
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-weight: 700;
}

/* Fitting Room Styles */
.fitting-room {
    height: 100vh;
    background: var(--primary-color);
    display: flex;
    flex-direction: column;
}

.fitting-room-container {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.fitting-display {
    flex: 1;
    background: black;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.angle-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.angle-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: all 0.3s;
}

.angle-dot.active {
    background: white;
    width: 30px;
}

.fitting-sidebar {
    width: 350px;
    background: white;
    padding: 2rem;
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 2rem;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.wardrobe-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wardrobe-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.wardrobe-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.wardrobe-item-info {
    flex: 1;
}

.wardrobe-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.wardrobe-item-category {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.btn-remove {
    color: var(--accent-color);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.upload-person-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.person-upload-btn {
    width: 100%;
    padding: 1rem;
    border: 2px dashed var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.person-upload-btn:hover {
    background: var(--light-gray);
}

.btn-generate {
    width: 100%;
    margin-top: 2rem;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-generate:hover {
    background: #333;
}

/* Extraction Preview Styles */
.extraction-preview {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid #e0e0e0;
}

.preview-header {
    text-align: center;
    margin-bottom: 2rem;
}

.preview-header h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.preview-header p {
    color: #666;
    font-size: 0.9rem;
}

.preview-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.preview-section h4 {
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1rem;
}

.preview-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.preview-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.preview-images img:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

#extractedImg {
    max-width: 200px;
    max-height: 200px;
}

.preview-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.preview-actions .btn-secondary {
    background: #dc3545;
    color: white;
}

.preview-actions .btn-secondary:hover {
    background: #c82333;
}

.preview-actions .btn-primary {
    background: #28a745;
}

.preview-actions .btn-primary:hover {
    background: #218838;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .fitting-room-container {
        flex-direction: column;
    }
    
    .fitting-sidebar {
        width: 100%;
        height: 40vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
}

/* Edit Products Page Styles */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

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

.loading-state h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.loading-state p {
    color: var(--text-secondary);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Product Card Styles for Edit Page */
.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--success);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-info {
    padding: 2rem;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.product-category {
    background: var(--light-gray);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
    text-align: right;
}

.product-description {
    margin-bottom: 1.5rem;
}

.product-description p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-description {
    color: #999;
    font-style: italic;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.product-actions .btn {
    flex: 1;
}

.product-actions .btn:not(:first-child) {
    flex: 0 0 auto;
    min-width: 48px;
}

.product-id {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: #999;
    text-align: center;
    font-family: 'Courier New', monospace;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.image-preview {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 12px;
    min-height: 120px;
    align-items: center;
    justify-content: center;
}

.image-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid transparent;
}

.image-preview img[data-primary="true"] {
    border-color: var(--primary-color);
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Button Variants */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* Filter Bar Enhancement */
.filter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-select {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Clean Icon Styling */
.icon {
    opacity: 0.7;
    margin-right: 0.5rem;
    font-size: 0.9em;
}

.btn:hover .icon {
    opacity: 1;
}

/* Ensure icons inherit button colors - no additional colors */
.btn-primary .icon,
.btn-secondary .icon,
.btn-danger .icon {
    color: inherit;
}

/* Camera Button */
.camera-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.camera-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05) !important;
}

.camera-btn svg {
    color: white;
    width: 24px;
    height: 24px;
}

/* Hide fitting room sidebar */
.fitting-sidebar {
    display: none !important;
}

/* Make main display full width */
.fitting-room-container {
    display: flex;
    height: calc(100vh - 80px);
}

.fitting-display {
    flex: 1;
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin: 1rem;
}

/* Captured photo display in webcam area */
.captured-photo-display {
    position: absolute;
    inset: 0;
    display: none;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.captured-photo-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.photo-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.photo-controls button {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: 2px solid white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.photo-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Try-on Controls Overlay */
.tryon-controls {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-selection {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.input-selection label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
}

.input-selection input[type="radio"] {
    accent-color: #007bff;
}

.input-selection label:has(input[value="lastResult"]) {
    opacity: 0.5;
    pointer-events: none;
}

.input-selection label:has(input[value="lastResult"]:not(:disabled)) {
    opacity: 1;
    pointer-events: auto;
}

.tryon-btn {
    width: 100%;
    background: #007bff;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.tryon-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.tryon-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Shop page try-on button */
.shop-tryon-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #28a745;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-tryon-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.shop-tryon-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}