/* ============================================
   MON MÉLANGE — Perfume Designer Styles
   ============================================ */

.designer-section {
    padding: 7rem 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.designer-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

/* ---- Progress Steps ---- */
.designer-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.step-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-light);
    transition: var(--transition);
}

.progress-step.active .step-circle,
.progress-step.completed .step-circle {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 5px 20px rgba(201, 169, 110, 0.3);
}

.progress-step.completed .step-circle {
    background: var(--color-accent-dark);
}

.progress-step span {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.progress-step.active span {
    color: var(--color-accent);
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--color-border);
    margin: 0 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    max-width: 100px;
}

.progress-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--color-accent);
    transition: width 0.5s ease;
}

.progress-line.filled::after {
    width: 100%;
}

/* ---- Designer Content ---- */
.designer-content {
    display: flex;
    gap: 3rem;
    min-height: 500px;
}

.designer-panel {
    flex: 1;
    display: none;
    animation: fadeInPanel 0.5s ease;
}

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

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

.designer-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.designer-panel > p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

/* ---- Scent Options ---- */
.scent-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.scent-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.5rem 1rem;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
}

.scent-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.05), rgba(183, 110, 121, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

.scent-btn:hover::before {
    opacity: 1;
}

.scent-btn:hover {
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.scent-btn.selected {
    border-color: var(--color-accent);
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.08), rgba(201, 169, 110, 0.03));
    box-shadow: 0 5px 20px rgba(201, 169, 110, 0.15);
}

.scent-btn.selected::after {
    content: '✓';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 20px;
    height: 20px;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

.scent-icon {
    font-size: 2rem;
    display: block;
    transition: transform 0.3s ease;
}

.scent-btn:hover .scent-icon {
    transform: scale(1.2);
}

.scent-btn span:last-child {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---- Bottle Designer ---- */
.bottle-designer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bottle-options-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bottle-option-group {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.bottle-option-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Bottle Shapes */
.bottle-shapes {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.bottle-shape-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--color-ivory);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    min-width: 80px;
}

.bottle-shape-btn:hover {
    border-color: var(--color-accent);
}

.bottle-shape-btn.active {
    border-color: var(--color-accent);
    background: rgba(201, 169, 110, 0.05);
}

.bottle-svg {
    width: 40px;
    height: 65px;
}

.bottle-svg .body {
    fill: var(--color-primary);
    transition: fill 0.3s;
}

.bottle-svg .cap {
    fill: var(--color-accent);
}

.bottle-svg .neck {
    fill: var(--color-primary);
    opacity: 0.7;
}

.bottle-shape-btn span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
}

/* Color Options */
.color-options {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.color-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

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

.color-btn.active {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px var(--color-white), 0 0 0 4px var(--color-accent);
}

/* Cap Options */
.cap-options {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.cap-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.7rem 1rem;
    background: var(--color-ivory);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.cap-btn:hover {
    border-color: var(--color-accent);
}

.cap-btn.active {
    border-color: var(--color-accent);
    background: rgba(201, 169, 110, 0.05);
}

.cap-btn i {
    font-size: 1.2rem;
}

.cap-btn span {
    font-size: 0.7rem;
    color: var(--color-text-light);
}

/* Size Options */
.size-options {
    display: flex;
    gap: 0.8rem;
}

.size-btn {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--color-border);
    background: var(--color-white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: var(--transition);
}

.size-btn:hover {
    border-color: var(--color-accent);
}

.size-btn.active {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: var(--color-white);
}

/* Perfume Name Input */
.perfume-name-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-primary);
    outline: none;
    transition: var(--transition);
    background: var(--color-ivory);
}

.perfume-name-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

/* ---- Preview Area ---- */
.designer-preview {
    width: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: sticky;
    top: 120px;
}

.preview-bottle {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 420px;
    position: relative;
    overflow: hidden;
}

.preview-bottle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Bottle Image Container */
.bottle-preview-container {
    position: relative;
    width: 180px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottle-preview-img {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 8px 25px rgba(0,0,0,0.35));
    transition: filter 0.5s ease, transform 0.3s ease;
}

/* Info Bar — below the bottle image */
.bottle-info-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding-top: 1rem;
    text-align: center;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0.5rem;
}

.bottle-brand-text {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 600;
}

.bottle-custom-name {
    font-family: 'Cormorant Garamond', var(--font-heading);
    font-size: 1rem;
    color: var(--color-accent);
    font-weight: 500;
    font-style: italic;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-height: 1.3em;
}

.bottle-size-text {
    font-family: var(--font-body);
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Scent Badges — below info bar */
.bottle-scent-badges {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    padding: 0.5rem 2rem 0;
}

.scent-badge {
    font-size: 0.55rem;
    padding: 0.2rem 0.5rem;
    background: rgba(201, 169, 110, 0.12);
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.preview-summary {
    width: 100%;
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
}

.preview-summary h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.summary-item .label {
    color: var(--color-text-light);
}

.summary-item .value {
    color: var(--color-primary);
    font-weight: 500;
}

.summary-empty {
    font-size: 0.85rem;
    color: var(--color-text-lighter);
    text-align: center;
    font-style: italic;
}

/* ---- Designer Navigation ---- */
.designer-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.designer-prev,
.designer-next,
.designer-order {
    min-width: 140px;
}

/* ---- Responsive Designer ---- */
@media (max-width: 1024px) {
    .designer-content {
        flex-direction: column;
    }
    
    .designer-preview {
        width: 100%;
        position: static;
        flex-direction: row;
        gap: 2rem;
    }
    
    .preview-bottle {
        min-height: 320px;
        flex: 1;
    }
    
    .bottle-preview-img {
        max-height: 220px;
    }
    
    .preview-summary {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .designer-progress {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .progress-line {
        display: none;
    }
    
    .progress-step {
        flex: 0 0 auto;
    }
    
    .scent-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .designer-preview {
        flex-direction: column;
    }
    
    .preview-bottle {
        min-height: 350px;
    }
    
    .bottle-preview-img {
        max-height: 250px;
    }
    
    .bottle-shapes {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .scent-options {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    
    .scent-btn {
        padding: 1rem 0.5rem;
    }
}
