.embroidery-customiser { position: relative; }

.embroidery-preview-wrapper {
    position: relative;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 20px;
    text-align: center;
}

.embroidery-preview-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.embroidery-preview-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.embroidery-canvas-overlay {
    pointer-events: none;
}

.embroidery-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.design-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.design-card {
    border: 2px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
    background: #fff;
}

.design-card:hover { transform: translateY(-2px); border-color: #ccc; }
.design-card.selected { border-color: var(--accent, #e17055); }

.design-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.design-card .design-label {
    padding: 8px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.design-card-blank {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: #f8f9fa;
    color: #999;
    font-size: 0.85rem;
}

.embroidery-fields { display: flex; flex-direction: column; gap: 12px; }

.colour-zone-picker { display: flex; flex-direction: column; gap: 8px; }

.colour-zone-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.colour-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.colour-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #eee;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
}

.colour-swatch:hover { transform: scale(1.1); }
.colour-swatch.selected { border-color: #2d3436; border-width: 3px; }

.embroidery-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary, #2d3436);
}

.embroidery-surcharge {
    font-size: 0.85rem;
    color: var(--accent, #e17055);
    margin-left: 8px;
}

.embroidery-disclaimer {
    font-size: 0.8rem;
    color: #999;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

@media (min-width: 992px) {
    .embroidery-customiser {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        align-items: start;
    }
    .embroidery-preview-wrapper { position: sticky; top: 20px; }
}

@media (max-width: 991px) {
    .embroidery-preview-wrapper {
        position: sticky;
        top: 0;
        z-index: 10;
        margin-bottom: 20px;
        max-height: 45vh;
        overflow: hidden;
    }
    .embroidery-preview-container img { max-height: 35vh; width: auto; }
}
