/* ============================================
   FAMILY CUSTOM - Customization Studio
   Cohesive dark theme, immersive editor feel
   ============================================ */

/* ===== PAGE LAYOUT ===== */
.personnaliser-page {
    min-height: 100vh;
    padding-top: 90px;
    background: #1e1e24;
}

.personnaliser-page .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 2rem 2rem;
}

/* ===== TOP BAR ===== */
.customizer-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.back-to-product {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.25s;
    white-space: nowrap;
}

.back-to-product:hover {
    color: #e07a5f;
    background: rgba(224,122,95,0.08);
    border-color: rgba(224,122,95,0.2);
    transform: translateX(-2px);
}

.back-to-product i { font-size: 0.75rem; }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    margin-bottom: 0;
}

.breadcrumb a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover { color: #c9a87c; }
.breadcrumb i { font-size: 0.6rem; }
.breadcrumb span { color: rgba(255,255,255,0.7); font-weight: 500; }

/* ===== STUDIO BANNER ===== */
.studio-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(224,122,95,0.1), rgba(201,168,124,0.08));
    border: 1px solid rgba(224,122,95,0.15);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.75rem;
}

.studio-banner-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e07a5f, #c9a87c);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.studio-banner-text {
    flex: 1;
    min-width: 0;
}

.studio-banner-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: #f5f0e8;
    margin: 0 0 2px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.studio-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #e07a5f;
}

.studio-price .old-price {
    text-decoration: line-through;
    color: rgba(255,255,255,0.35);
    font-weight: 400;
    font-size: 0.95rem;
    margin-right: 8px;
}

.studio-price .new-price {
    color: #e07a5f;
}

.studio-badge {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    flex-shrink: 0;
}

.studio-badge i {
    color: #c9a87c;
    margin-right: 4px;
}

/* ===== GRID ===== */
.personnaliser-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* ===== PREVIEW SECTION ===== */
.preview-section {
    position: sticky;
    top: 100px;
}

.preview-card {
    background: #26262e;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.preview-card-label {
    padding: 10px 20px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    letter-spacing: 0.03em;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.preview-card-label i {
    margin-right: 6px;
    color: #c9a87c;
}

/* Preview 3D container */
.preview-3d-container {
    position: relative;
    perspective: 1000px;
}

.product-preview {
    background: #2a2a32;
    padding: 0;
    text-align: center;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.product-preview.dragging { cursor: grabbing; }

.product-preview img.product-image {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    pointer-events: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Mockup Canvas inside Preview */
.product-preview .mockup-canvas {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.product-preview .mockup-background {
    width: 100%;
    display: block;
}

/* Loading state */
.loading-preview {
    color: rgba(255,255,255,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.loading-preview .loading-spinner {
    width: 56px;
    height: 56px;
    background: rgba(224,122,95,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-preview i {
    font-size: 1.6rem;
    color: #e07a5f;
}

.loading-preview p {
    font-size: 0.85rem;
}

/* Gallery thumbs */
.product-gallery {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    justify-content: center;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.product-gallery .gallery-thumb {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.5;
}

.product-gallery .gallery-thumb:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

.product-gallery .gallery-thumb.active {
    border-color: #e07a5f;
    opacity: 1;
}

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

/* Editor hint */
.preview-card .editor-hint {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    padding: 8px 16px 12px;
}

.preview-card .editor-hint i {
    margin-right: 5px;
    color: #667eea;
}

/* ===== CUSTOMIZATION SECTION ===== */
.customization-section {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Progress bar */
.customizer-progress {
    background: #26262e;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}

.progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, #e07a5f, #c9a87c);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
}

/* ===== ACCORDION STEPS ===== */
.accordion-step {
    background: #26262e;
    border-radius: 14px;
    margin-bottom: 10px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-step.active {
    border-color: rgba(224,122,95,0.35);
    box-shadow: 0 4px 20px rgba(224,122,95,0.1), 0 0 0 1px rgba(224,122,95,0.15);
}

.accordion-step.completed {
    border-color: rgba(76,175,80,0.35);
}

.accordion-step.locked {
    opacity: 0.45;
    pointer-events: none;
}

.accordion-step.locked .step-header { cursor: not-allowed; }

.accordion-step .step-header {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    cursor: pointer;
    background: transparent;
    transition: background 0.2s;
    position: relative;
}

.accordion-step .step-header:hover {
    background: rgba(255,255,255,0.02);
}

.accordion-step.active .step-header {
    background: rgba(224,122,95,0.06);
}

.accordion-step.completed .step-header {
    background: rgba(76,175,80,0.05);
}

.accordion-step .step-header h3 {
    flex: 1;
    margin: 0;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-number {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #e07a5f, #c9a87c);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.accordion-step.completed .step-number {
    background: #4CAF50;
}

.accordion-step .step-status {
    display: none;
    color: #4CAF50;
    font-size: 1rem;
}

.accordion-step.completed .step-status { display: block; }

.accordion-step .step-lock { color: rgba(255,255,255,0.25); font-size: 0.85rem; }
.accordion-step.locked .step-lock { display: block; }
.accordion-step:not(.locked) .step-lock { display: none; }

/* Step content collapse */
.accordion-step .step-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 18px;
    transition: all 0.35s ease;
}

.accordion-step.active .step-content {
    max-height: 700px;
    padding: 0 18px 18px;
}

/* ===== UPLOAD ZONE ===== */
.upload-zone {
    border: 2px dashed rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.02);
    position: relative;
}

.upload-zone:hover {
    border-color: rgba(224,122,95,0.4);
    background: rgba(224,122,95,0.04);
}

.upload-zone.dragover {
    border-color: #e07a5f;
    background: rgba(224,122,95,0.08);
    transform: scale(1.01);
}

.upload-zone.has-image {
    border-style: solid;
    border-color: rgba(76,175,80,0.4);
    background: rgba(76,175,80,0.05);
}

.upload-zone i {
    font-size: 2.5rem;
    color: #c9a87c;
    margin-bottom: 0.75rem;
    display: block;
}

.upload-zone p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.upload-zone p span {
    color: #e07a5f;
    font-weight: 600;
    text-decoration: underline;
}

.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* Upload Loading State */
.upload-zone.uploading {
    background: rgba(255,255,255,0.03);
    pointer-events: none;
}

.upload-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #e07a5f;
}

.upload-loading i { font-size: 2rem; color: #e07a5f; }
.upload-loading p { font-size: 0.9rem; color: rgba(255,255,255,0.5); margin: 0; }

.upload-hint {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    margin-top: 0.6rem;
}

.upload-hint i { margin-right: 5px; color: rgba(224,122,95,0.5); }

/* Uploaded Image Preview */
.uploaded-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    margin-top: 0.75rem;
}

.uploaded-preview img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.uploaded-preview .file-info { flex: 1; }
.uploaded-preview .file-name { font-weight: 500; color: rgba(255,255,255,0.75); font-size: 0.85rem; }
.uploaded-preview .file-size { font-size: 0.8rem; color: rgba(255,255,255,0.35); }

.uploaded-preview .btn-remove {
    background: rgba(255,71,87,0.8);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.uploaded-preview .btn-remove:hover {
    transform: scale(1.1);
    background: #ff4757;
}

/* ===== TEXT CUSTOMIZATION ===== */
#custom-text {
    width: 100%;
    min-height: 70px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.92rem;
    resize: vertical;
    background: rgba(255,255,255,0.04);
    color: #f5f0e8;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#custom-text::placeholder {
    color: rgba(255,255,255,0.25);
}

#custom-text:focus {
    outline: none;
    border-color: rgba(224,122,95,0.5);
    box-shadow: 0 0 0 3px rgba(224,122,95,0.1);
}

.text-hint {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    margin-top: 0.5rem;
}

.text-hint i { color: #f0c14b; margin-right: 5px; }

/* Text Style Options */
.text-style-options {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    padding: 12px 14px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}

.style-option { display: flex; flex-direction: column; gap: 8px; }

.style-option label {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
}

.color-picker { display: flex; gap: 8px; }

.color-btn {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: inset 0 0 0 2px rgba(30,30,36,0.5);
}

.color-btn:hover { transform: scale(1.15); }

.color-btn.active {
    border-color: #e07a5f;
    box-shadow: 0 0 0 3px rgba(224,122,95,0.3), inset 0 0 0 2px rgba(30,30,36,0.5);
}

.size-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.04);
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
}

.size-controls button {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.size-controls button:hover {
    background: #e07a5f;
    color: white;
}

#text-size-display {
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    min-width: 45px;
    text-align: center;
}

/* Validate Button */
.btn-validate-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    margin-top: 0.75rem;
    background: linear-gradient(135deg, #e07a5f, #c9a87c);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-validate-step:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(224,122,95,0.35);
}

.btn-validate-step:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== VARIANT OPTIONS ===== */
.variants-step .variant-group,
.accordion-step .variant-group {
    margin-bottom: 1rem;
}

.variants-step .variant-group:last-child,
.accordion-step .variant-group:last-child {
    margin-bottom: 0;
}

.variants-step .variant-group > label,
.accordion-step .variant-group > label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.variants-step .variant-group > label i,
.accordion-step .variant-group > label i {
    color: #c9a87c;
    font-size: 0.8rem;
}

.variant-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Color Options */
.color-options .variant-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.12);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.color-options .variant-btn:hover { transform: scale(1.12); }

.color-options .variant-btn.selected {
    border-color: #f5f0e8;
    box-shadow: 0 0 0 2px #1e1e24, 0 0 0 4px #e07a5f;
}

.color-options .variant-btn .color-name-tooltip {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.68rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.color-options .variant-btn:hover .color-name-tooltip { opacity: 1; }

/* Size Options */
.size-options .variant-btn {
    padding: 0.4rem 0.9rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    transition: all 0.2s;
}

.size-options .variant-btn:hover {
    border-color: rgba(224,122,95,0.5);
    color: rgba(255,255,255,0.9);
}

.size-options .variant-btn.selected {
    background: linear-gradient(135deg, #e07a5f, #c9a87c);
    border-color: transparent;
    color: #fff;
}

/* Material Options */
.material-options .variant-btn {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    transition: all 0.2s;
}

.material-options .variant-btn i { color: #c9a87c; }
.material-options .variant-btn:hover { border-color: rgba(224,122,95,0.5); }

.material-options .variant-btn.selected {
    background: linear-gradient(135deg, #e07a5f, #c9a87c);
    border-color: transparent;
    color: #fff;
}

.material-options .variant-btn.selected i { color: #fff; }

/* Custom Variant Options */
.custom-variant-group { margin-bottom: 1.25rem; }

.custom-variant-group > label {
    display: block;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
}

.custom-variant-options .variant-btn {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    transition: all 0.2s;
}

.custom-variant-options .variant-btn:hover { border-color: rgba(224,122,95,0.5); }

.custom-variant-options .variant-btn.selected {
    background: linear-gradient(135deg, #e07a5f, #c9a87c);
    border-color: transparent;
    color: #fff;
}

/* Out of Stock Variants */
.variant-btn.out-of-stock {
    opacity: 0.4;
    cursor: not-allowed !important;
    position: relative;
}

.color-options .variant-btn.out-of-stock { filter: grayscale(70%); }

.color-options .variant-btn.out-of-stock::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff4444;
    transform: rotate(-45deg);
}

.color-options .variant-btn .out-of-stock-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
}

.size-options .variant-btn.out-of-stock {
    background: rgba(255,255,255,0.02);
    color: rgba(255,255,255,0.25);
    text-decoration: line-through;
}

.size-options .variant-btn.out-of-stock .out-of-stock-text {
    display: block;
    font-size: 0.6rem;
    color: #ff4444;
    text-decoration: none;
    margin-top: 2px;
}

.variant-btn.out-of-stock:hover { border-color: #ff4444; transform: none; }

/* Sale Options */
.sale-options-group {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.sale-options-group label {
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
}

.sale-options-group label i { color: #c9a87c; }

.sale-variant-options { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.sale-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.85rem 1.25rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 90px;
    color: rgba(255,255,255,0.65);
}

.sale-option-btn:hover {
    border-color: rgba(201,168,124,0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sale-option-btn.selected {
    background: linear-gradient(135deg, rgba(224,122,95,0.15), rgba(201,168,124,0.1));
    border-color: #c9a87c;
    color: #fff;
}

.sale-option-name { font-weight: 600; font-size: 0.88rem; margin-bottom: 0.2rem; }
.sale-option-price { font-size: 1rem; font-weight: 700; color: #c9a87c; }
.sale-option-btn.selected .sale-option-price { color: #ffd700; }

.product-price .sale-option-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    margin-top: 0.2rem;
}

/* ===== ADD TO CART ===== */
.add-to-cart-section {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    padding: 14px 18px;
    background: #26262e;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    bottom: 12px;
    z-index: 100;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}

.quantity-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.quantity-selector label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255,255,255,0.06);
    padding: 4px;
    border-radius: 10px;
}

.quantity-controls button {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    font-size: 0.8rem;
    cursor: pointer;
    color: #c9a87c;
    transition: all 0.2s;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-controls button:hover {
    background: rgba(224,122,95,0.15);
    color: #e07a5f;
}

.quantity-controls span {
    width: 36px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: #f5f0e8;
}

.btn-add-cart {
    flex: 1;
    padding: 14px 20px;
    background: linear-gradient(135deg, #e07a5f, #c9a87c);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(224,122,95,0.25);
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(224,122,95,0.35);
}

.btn-add-cart:disabled,
.btn-add-cart.disabled {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.btn-add-cart:disabled:hover,
.btn-add-cart.disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-add-cart.success {
    background: #4caf50;
    box-shadow: 0 4px 16px rgba(76,175,80,0.3);
}

/* Buy Now (optional) */
.btn-buy-now {
    flex: 1;
    min-width: 160px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #f5f0e8;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-buy-now:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.btn-buy-now i { color: #f1c40f; }

/* ===== TRUST MICRO BAR ===== */
.trust-micro {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 12px 0;
    margin-top: 10px;
}

.trust-micro span {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.trust-micro span i {
    font-size: 0.68rem;
    color: rgba(201,168,124,0.5);
}

/* ===== FOOTER MINIMAL ===== */
.footer-minimal {
    background: #18181e;
    padding: 1rem 0;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-minimal .footer-content {
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.3);
}

.footer-minimal .footer-content a {
    color: rgba(201,168,124,0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-minimal .footer-content a:hover { color: #e07a5f; }

/* ===== ERROR STATE ===== */
.error-state {
    text-align: center;
    padding: 3rem;
    color: rgba(255,255,255,0.5);
}

.error-state i {
    font-size: 3rem;
    color: rgba(224,122,95,0.5);
    margin-bottom: 1rem;
}

.error-state p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.error-state .btn-back {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #e07a5f, #c9a87c);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: transform 0.2s;
}

.error-state .btn-back:hover { transform: translateY(-2px); }

/* ===== MOCKUP EDITOR ===== */
.mockup-canvas {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.mockup-background { width: 100%; display: block; }

.photo-zone {
    position: absolute;
    overflow: hidden;
    cursor: grab;
    border: 2px solid rgba(102,126,234,0.7);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
    transition: box-shadow 0.2s;
}

.photo-zone:active { cursor: grabbing; }

.photo-zone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.photo-zone .resize-handle {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #667eea;
    border: 2px solid white;
    border-radius: 50%;
    z-index: 10;
}

.photo-zone .resize-nw { top: -7px; left: -7px; cursor: nw-resize; }
.photo-zone .resize-ne { top: -7px; right: -7px; cursor: ne-resize; }
.photo-zone .resize-sw { bottom: -7px; left: -7px; cursor: sw-resize; }
.photo-zone .resize-se { bottom: -7px; right: -7px; cursor: se-resize; }

/* Text Zone on Mockup */
.text-zone {
    position: absolute;
    cursor: grab;
    border: 2px dashed rgba(201,168,124,0.7);
    box-shadow: 0 0 0 3px rgba(201,168,124,0.15);
    transition: box-shadow 0.2s, border-color 0.2s;
    padding: 8px 15px;
    min-width: 50px;
    min-height: 30px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
}

.text-zone.visible { display: flex; }

.text-zone:hover {
    border-color: rgba(201,168,124,1);
    box-shadow: 0 0 0 4px rgba(201,168,124,0.2);
}

.text-zone:active { cursor: grabbing; }

.text-zone #preview-text {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    white-space: pre-wrap;
    text-align: center;
    line-height: 1.3;
    user-select: none;
    pointer-events: none;
}

.text-zone .resize-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #c9a87c;
    border: 2px solid white;
    border-radius: 50%;
    z-index: 10;
}

.text-zone .resize-nw { top: -6px; left: -6px; cursor: nw-resize; }
.text-zone .resize-ne { top: -6px; right: -6px; cursor: ne-resize; }
.text-zone .resize-sw { bottom: -6px; left: -6px; cursor: sw-resize; }
.text-zone .resize-se { bottom: -6px; right: -6px; cursor: se-resize; }

/* ===== EDITOR CONTROLS ===== */
.editor-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 0.75rem;
}

.control-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: #667eea;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.control-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

/* 3D Controls */
.preview-3d-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 0.75rem;
    padding: 0 16px;
}

.btn-3d {
    padding: 8px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-3d:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); }
.btn-3d.active { background: #e07a5f; color: white; border-color: transparent; }
.btn-3d i { font-size: 0.9rem; }

/* Zoom Controls */
.zoom-controls {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 10;
}

.btn-zoom {
    width: 36px;
    height: 36px;
    background: rgba(30,30,36,0.85);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-zoom:hover { background: #e07a5f; transform: scale(1.05); }

.zoom-indicator {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(30,30,36,0.85);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.zoom-indicator.visible { opacity: 1; }

/* ============================================
   MULTI-IMAGE UPLOAD GRID
   ============================================ */

.multi-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    padding: 8px 0;
}

.multi-image-grid[data-max="4"] { grid-template-columns: repeat(2, 1fr); }
.multi-image-grid[data-max="6"] { grid-template-columns: repeat(3, 1fr); }
.multi-image-grid[data-max="9"] { grid-template-columns: repeat(3, 1fr); }

.image-slot {
    aspect-ratio: 1;
    position: relative;
    cursor: pointer;
}

.image-slot .slot-input { display: none; }

.image-slot .slot-content {
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(255,255,255,0.12);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255,255,255,0.02);
    transition: all 0.3s ease;
    overflow: hidden;
}

.image-slot .slot-content.empty:hover {
    border-color: rgba(224,122,95,0.4);
    background: rgba(224,122,95,0.04);
}

.image-slot.dragover .slot-content {
    border-color: #e07a5f;
    background: rgba(224,122,95,0.08);
}

.image-slot .slot-content i { font-size: 1.3rem; color: rgba(255,255,255,0.25); }
.image-slot .slot-content span { font-size: 0.7rem; color: rgba(255,255,255,0.3); font-weight: 500; }

.image-slot .slot-content.has-image {
    border: none;
    padding: 0;
}

.image-slot .slot-content.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.image-slot .remove-slot-image {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,71,87,0.85);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 5;
}

.image-slot:hover .remove-slot-image { opacity: 1; }
.image-slot .remove-slot-image:hover { background: #ff4757; transform: scale(1.1); }

.slot-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e07a5f;
}

.slot-loading i {
    font-size: 1.3rem !important;
    color: #e07a5f !important;
}

.image-counter {
    text-align: center;
    margin-top: 10px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
}

.image-counter #image-count {
    color: #e07a5f;
    font-weight: 600;
}

@media (max-width: 480px) {
    .multi-image-grid { gap: 6px; }
    .image-slot .slot-content i { font-size: 1rem; }
    .image-slot .slot-content span { font-size: 0.6rem; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .personnaliser-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-section {
        position: relative;
        top: 0;
    }
    
    .product-preview {
        min-height: 280px;
    }
    
    .studio-badge { display: none; }
}

@media (max-width: 600px) {
    .personnaliser-page .container {
        padding: 1rem;
    }
    
    .customizer-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .studio-banner {
        padding: 0.85rem 1rem;
        gap: 12px;
    }
    
    .studio-banner-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .studio-banner-text h1 { font-size: 1.1rem; }
    .studio-price { font-size: 1rem; }
    
    .add-to-cart-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .quantity-selector {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        gap: 12px;
    }
    
    .btn-add-cart { width: 100%; }
    
    .trust-micro {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Mobile Accordion */
@media (max-width: 768px) {
    .accordion-step .step-header { padding: 12px 14px; }
    .accordion-step.active .step-content { padding: 0 14px 14px; }
    .btn-validate-step { padding: 10px 20px; font-size: 0.88rem; }
}
