#pbd-designer {
    max-width: 1400px;
    margin: 40px auto;
    font-family: Arial, sans-serif;
}

.pbd-layout {
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    gap: 30px;
}

/* LEFT PANEL */
.pbd-acc-item {
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #fff;
}

.pbd-acc-title {
    padding: 12px;
    background: #f3f4f6;
    cursor: pointer;
    font-weight: 600;
}

.pbd-acc-content {
    display: none;
    padding: 10px;
}

.pbd-acc-item.active .pbd-acc-content {
    display: block;
}

/* DOOR GRID */
.pbd-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
}

.door {
    border: 1px solid #ccc;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.door:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.door.active {
    border: 2px solid #2563eb;
}

.door img {
    height: 110px;
    object-fit: contain;
    margin-bottom: 6px;
}

/* COLOUR SWATCHES */
.pbd-colours {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.colour {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ccc;
    cursor: pointer;
}

.colour.active {
    border: 3px solid #000;
}

/* PREVIEW AREA */
.pbd-preview-box {
    position: relative;
    height: 650px;
    border-radius: 12px;

    background: linear-gradient(180deg, #cbd5e1, #9ca3af);

    display: flex;
    align-items: center;
    justify-content: center;
}

/* BACK PANEL (FRAME EFFECT) */
.pbd-preview-box::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 520px;
    background: #374151;
    border-radius: 6px;
}

/* DOOR */
#pbd-door-img {
    max-height: 520px;
    position: relative;
    z-index: 2;

    filter:
        brightness(0.95)
        contrast(1.1)
        drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}

/* REMOVE FAKE COLOUR SYSTEM */
#pbd-door-colour {
    display: none;
}

/* GLASS */
#pbd-glass-img {
    position: absolute;
    z-index: 3;
    opacity: 0.9;
    mix-blend-mode: multiply;
}

/* RIGHT PANEL */
.pbd-right {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.pbd-right input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.pbd-right button {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.pbd-right button:hover {
    background: #1d4ed8;
}

/* GLASS BUTTONS */
.glass {
    display: block;
    width: 100%;
    padding: 8px;
    margin-bottom: 6px;
    border: 1px solid #ccc;
    background: #f9fafb;
    cursor: pointer;
    border-radius: 6px;
}

.glass:hover {
    background: #e5e7eb;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
    .pbd-layout {
        grid-template-columns: 1fr;
    }
}