/* Customization Page Styles */
.customize-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 120px 0 60px;
    text-align: center;
    color: #ffffff;
}

.customize-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #00ff88;
}

.customize-header p {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
}

.customize-interface {
    padding: 60px 0;
    background: #0f0f0f;
    min-height: 80vh;
    overflow-x: hidden;
    max-width: 100vw;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

.customize-layout {
    display: grid;
    grid-template-columns: minmax(700px, 1fr) minmax(300px, 350px);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 600px;
    width: 100%;
    box-sizing: border-box;
}

/* Right Panel */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: fit-content;
}

/* Parts Panel */
.parts-panel {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 1.5rem;
    height: fit-content;
}

.parts-panel h3 {
    color: #00ff88;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.parts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.part-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #2a2a2a;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.part-item:hover {
    background: #333;
    border-color: #00ff88;
}

.part-item.active {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #000000;
    font-weight: 600;
}

.part-item i {
    font-size: 1.2rem;
}

/* Jukebox Viewer */
.jukebox-viewer {
    background: #1a1a1a;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.jukebox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
    height: 400px;
}

.carousel-area {
    width: 100%;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    width: 300px;
    height: 300px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    opacity: 0;
}

.carousel-base,
.carousel-sides,
.carousel-topbottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Try to reduce visibility of embedded text overlays */
    filter: contrast(1.1) brightness(1.05) saturate(0.9);
}

.carousel-container.visible {
    opacity: 1;
}

/* Dynamic carousel positioning */
.carousel-container.position-left {
    transform: translate(-140%, -50%) scale(0.45);
    z-index: 1;
    filter: brightness(0.7);
}

.carousel-container.position-center {
    transform: translate(-50%, -50%) scale(0.7);
    z-index: 3;
    filter: brightness(1);
}

.carousel-container.position-right {
    transform: translate(40%, -50%) scale(0.45);
    z-index: 1;
    filter: brightness(0.7);
}

.carousel-container.position-far-left {
    transform: translate(-200%, -50%) scale(0.3);
    z-index: 0;
    filter: brightness(0.5);
    opacity: 0.3;
}

.carousel-container.position-far-right {
    transform: translate(100%, -50%) scale(0.3);
    z-index: 0;
    filter: brightness(0.5);
    opacity: 0.3;
}

@keyframes slideInLeftSide {
    0% {
        transform: translateX(-100%) scale(0.7);
        filter: brightness(0.7);
    }
    100% {
        transform: translateX(0) scale(0.7);
        filter: brightness(0.7);
    }
}

@keyframes slideInRightSide {
    0% {
        transform: translateX(100%) scale(0.7);
        filter: brightness(0.7);
    }
    100% {
        transform: translateX(0) scale(0.7);
        filter: brightness(0.7);
    }
}

@keyframes floatInLeft {
    0% {
        transform: translate(-200%, -50%) scale(0.6);
        filter: brightness(0.6);
        z-index: 1;
    }
    20% {
        transform: translate(-150%, -50%) scale(0.7);
        filter: brightness(0.7);
        z-index: 2;
    }
    40% {
        transform: translate(-100%, -50%) scale(0.8);
        filter: brightness(0.8);
        z-index: 3;
    }
    60% {
        transform: translate(-75%, -50%) scale(0.9);
        filter: brightness(0.9);
        z-index: 4;
    }
    80% {
        transform: translate(-60%, -50%) scale(0.95);
        filter: brightness(0.95);
        z-index: 5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(1);
        z-index: 5;
    }
}

@keyframes floatInRight {
    0% {
        transform: translate(100%, -50%) scale(0.6);
        filter: brightness(0.6);
        z-index: 1;
    }
    20% {
        transform: translate(50%, -50%) scale(0.7);
        filter: brightness(0.7);
        z-index: 2;
    }
    40% {
        transform: translate(0%, -50%) scale(0.8);
        filter: brightness(0.8);
        z-index: 3;
    }
    60% {
        transform: translate(-25%, -50%) scale(0.9);
        filter: brightness(0.9);
        z-index: 4;
    }
    80% {
        transform: translate(-40%, -50%) scale(0.95);
        filter: brightness(0.95);
        z-index: 5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(1);
        z-index: 5;
    }
}

.carousel-area {
    flex: 0 0 400px;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.base-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    transition: all 0.5s ease;
}

.base-image.slide-left {
    transform: translate(-150%, -50%);
}

.base-image.slide-right {
    transform: translate(50%, -50%);
}

.base-image.slide-in-left {
    transform: translate(-50%, -50%);
    animation: slideInLeft 0.5s ease;
}

.base-image.slide-in-right {
    transform: translate(-50%, -50%);
    animation: slideInRight 0.5s ease;
}

.overlay-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    opacity: 0;
    transition: all 0.5s ease;
}

.overlay-image.visible {
    opacity: 1;
}

.overlay-image.slide-left {
    transform: translate(-150%, -50%);
}

.overlay-image.slide-right {
    transform: translate(50%, -50%);
}

.overlay-image.slide-in-left {
    transform: translate(-50%, -50%);
    animation: slideInLeft 0.5s ease;
}

.overlay-image.slide-in-right {
    transform: translate(-50%, -50%);
    animation: slideInRight 0.5s ease;
}

@keyframes slideInLeft {
    0% {
        transform: translate(-150%, -50%);
    }
    100% {
        transform: translate(-50%, -50%);
    }
}

@keyframes slideInRight {
    0% {
        transform: translate(50%, -50%);
    }
    100% {
        transform: translate(-50%, -50%);
    }
}

.jukebox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    background: #2a2a2a;
    border-radius: 8px;
}

.prev-image,
.next-image {
    transform: scale(0.7);
    filter: brightness(0.7);
}

.current-image {
    transform: scale(1);
    filter: brightness(1);
    z-index: 2;
}

/* Jukebox Controls */
.jukebox-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.jukebox-btn {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #000000;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jukebox-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

.jukebox-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.lock-btn.locked {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
}

.lock-btn.locked i {
    color: #ffffff;
}

/* Additional Customization Options */
.additional-options {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #333;
}

.additional-options h4 {
    color: #00ff88;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

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

.checkbox-group:last-child {
    margin-bottom: 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.checkbox-item:hover {
    background: #2a2a2a;
}

.checkbox-item input[type="radio"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #444;
    border-radius: 50%;
    margin-right: 0.8rem;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-item input[type="radio"]:checked + .checkmark {
    border-color: #00ff88;
    background: #00ff88;
}

.checkbox-item input[type="radio"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #000000;
    border-radius: 50%;
}

.label-text {
    color: #cccccc;
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.checkbox-item input[type="radio"]:checked ~ .label-text {
    color: #00ff88;
    font-weight: 600;
}

.badge {
    background: #000000;
    color: #00ff88;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    margin-left: 0.5rem;
}

.option-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.option-btn {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    color: #cccccc;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.option-btn:hover {
    border-color: #00ff88;
    color: #ffffff;
}

.option-btn.active {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #000000;
    border-color: #00ff88;
    font-weight: 600;
}

.option-preview {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    background: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #00ff88;
    flex-shrink: 0;
    overflow: hidden;
}

.option-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    background: #2a2a2a;
}

.none-option {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    border: 2px dashed #666;
    border-radius: 6px;
}

/* Summary Panel */
.summary-panel {
    background: #1a1a1a;
    padding: 3rem 0;
    border-top: 1px solid #333;
}

.summary-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.summary-details h3 {
    color: #00ff88;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.specs-list {
    display: grid;
    gap: 0.8rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
}

.spec-label {
    color: #cccccc;
    font-weight: 500;
}

.spec-value {
    color: #ffffff;
    font-weight: 600;
}

.summary-actions {
    text-align: center;
}

.price-display {
    margin-bottom: 1.5rem;
}

.price-label {
    color: #cccccc;
    font-size: 0.9rem;
}

.price-value {
    color: #00ff88;
    font-size: 2rem;
    font-weight: 700;
    display: block;
    margin-top: 0.5rem;
}

.cta-button {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #000000;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    display: block;
    width: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
}

.customization-note {
    text-align: center;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
}

.customization-note p {
    color: #00ff88;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

.secondary-button {
    background: transparent;
    color: #00ff88;
    padding: 12px 24px;
    border: 2px solid #00ff88;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
}

.secondary-button:hover {
    background: #00ff88;
    color: #000000;
}

/* Additional Customization Widgets */
.additional-widgets {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #333;
}

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

.widget-group:last-child {
    margin-bottom: 0;
}

.widget-group h4 {
    color: #00ff88;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
}

.widget-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.widget-btn {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    color: #cccccc;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.widget-btn:hover {
    border-color: #00ff88;
    color: #ffffff;
}

.widget-btn.active {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #000000;
    border-color: #00ff88;
    font-weight: 600;
}

.widget-btn .badge {
    background: #000000;
    color: #00ff88;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.widget-btn.active .badge {
    background: #000000;
    color: #00ff88;
}

/* Color Selector Styles */
.color-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.color-option {
    width: 100%;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.color-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.color-option.active {
    border-color: #00ff88;
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.3);
}

.color-label {
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.color-option:hover .color-label,
.color-option.active .color-label {
    opacity: 1;
}

/* Special styling for white color to make it visible */
.color-option[data-color="#FFFFFF"] {
    border: 2px solid #333;
}

.color-option[data-color="#FFFFFF"]:hover,
.color-option[data-color="#FFFFFF"].active {
    border-color: #00ff88;
}

/* Price note styling */
.price-note {
    color: #00ff88;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* Chat Input Styling */
.chat-input-container {
    position: relative;
}

.chat-input-container textarea {
    width: 100%;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 0.8rem;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s ease;
}

.chat-input-container textarea:focus {
    outline: none;
    border-color: #00ff88;
}

.chat-input-container textarea::placeholder {
    color: #666666;
}

.char-count {
    position: absolute;
    bottom: 0.5rem;
    right: 0.8rem;
    font-size: 0.7rem;
    color: #666666;
    background: #2a2a2a;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

/* Responsive Design */
@media (min-width: 1600px) {
    .customize-layout {
        grid-template-columns: 1fr 320px;
        gap: 1.5rem;
        max-width: 1300px;
    }
    
    .options-panel {
        max-width: 320px;
        width: 320px;
    }
    
    .jukebox-container {
        gap: 1rem;
    }
    
    .jukebox-prev,
    .jukebox-next {
        flex: 0 0 120px;
        height: 120px;
    }
    
    .jukebox-current {
        flex: 0 0 250px;
        height: 250px;
    }
}

@media (min-width: 1920px) {
    .customize-layout {
        grid-template-columns: 1fr 300px;
        gap: 1.5rem;
        max-width: 1200px;
    }
    
    .options-panel {
        max-width: 300px;
        width: 300px;
    }
    
    .jukebox-container {
        gap: 0.8rem;
    }
    
    .jukebox-prev,
    .jukebox-next {
        flex: 0 0 100px;
        height: 100px;
    }
    
    .jukebox-current {
        flex: 0 0 220px;
        height: 220px;
    }
}

@media (max-width: 1400px) {
    .customize-layout {
        grid-template-columns: 1fr 320px;
        gap: 1.5rem;
    }
    
    .options-panel {
        max-width: 320px;
        width: 320px;
    }
    
    .jukebox-container {
        gap: 1rem;
    }
    
    .jukebox-prev,
    .jukebox-next {
        flex: 0 0 120px;
        height: 120px;
    }
    
    .jukebox-current {
        flex: 0 0 250px;
        height: 250px;
    }
}

@media (max-width: 1200px) {
    .customize-layout {
        grid-template-columns: 200px 1fr 280px;
        gap: 1rem;
    }
    
    .jukebox-container {
        gap: 0.8rem;
    }
    
    .jukebox-prev,
    .jukebox-next {
        flex: 0 0 100px;
        height: 100px;
    }
    
    .jukebox-current {
        flex: 0 0 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .customize-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .right-panel {
        order: 1;
    }
    
    .jukebox-viewer {
        order: 2;
    }
    
    .parts-panel {
        margin-bottom: 1rem;
    }
    
    .options-panel {
        max-width: 100%;
        width: 100%;
    }
    
    .jukebox-container {
        flex-direction: column;
        height: auto;
        gap: 1rem;
    }
    
    .jukebox-prev,
    .jukebox-next {
        display: none;
    }
    
    .jukebox-current {
        flex: none;
        width: 100%;
        height: 300px;
    }
    
    .summary-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .customize-header h1 {
        font-size: 2rem;
    }
    
    .jukebox-current {
        height: 250px;
    }
    
    .jukebox-controls {
        flex-direction: column;
        align-items: center;
    }
} 

.viewer-info {
    text-align: center;
    color: #cccccc;
    font-size: 0.9rem;
}

/* Options Panel */
.options-panel {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 1.5rem;
    height: fit-content;
    min-height: 400px;
    overflow-y: auto;
    max-width: 350px;
    width: 350px;
    flex-shrink: 0;
}

.options-panel h3 {
    color: #00ff88;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.option-group {
    display: none;
    margin-bottom: 2rem;
}

.option-group.active {
    display: block;
}

.option-group h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.option-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: #2a2a2a;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.option-item:hover {
    background: #333;
    border-color: #00ff88;
}

.option-item.active {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #000000;
    border-color: #00ff88;
    font-weight: 600;
} 

/* Mobile Viewport Fixes for Customize Page */
@media (max-width: 768px) {
    .customize-interface {
        padding: 30px 0;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .customize-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
        width: 100%;
        padding: 0 15px;
    }
    
    .jukebox-viewer {
        max-width: 100%;
        width: 100%;
        padding: 1rem;
        overflow-x: hidden;
    }
    
    .carousel-area {
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
    
    .carousel-container {
        max-width: 100%;
        width: 100%;
    }
    
    .right-panel {
        max-width: 100%;
        width: 100%;
    }
    
    .parts-panel,
    .options-panel {
        max-width: 100%;
        width: 100%;
    }
    
    .additional-widgets {
        max-width: 100%;
        width: 100%;
        padding: 1rem;
    }
    
    .widget-group {
        max-width: 100%;
        width: 100%;
    }
    
    .widget-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .widget-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .color-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .summary-panel {
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
    
    .summary-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
        width: 100%;
        padding: 0 15px;
    }
} 
/* Ensure hamburger menu is visible on customize page */
@media (max-width: 768px) {
    .hamburger {
    .hamburger .bar {
        background-color: #ff0000 !important;
        width: 30px !important;
        height: 4px !important;

/* Responsive layout for computer view - dynamic sizing */
@media (min-width: 769px) and (max-width: 1200px) {
    .customize-layout {
        grid-template-columns: 1fr 300px;
        gap: 1.5rem;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .jukebox-container {
        height: 350px;
    }
    
    .carousel-area {
        height: 350px;
    }
    
    .parts-panel,
    .options-panel {
        padding: 1rem;
    }
    
    .parts-panel h3,
    .options-panel h3 {
        font-size: 1.1rem;
    }
    
    .parts-panel p,
    .options-panel p {
        font-size: 0.9rem;
    }
}

@media (min-width: 1201px) and (max-width: 1400px) {
    .customize-layout {
        grid-template-columns: 1fr 320px;
        gap: 1.8rem;
    }
    
    .jukebox-container {
        height: 380px;
    }
    
    .carousel-area {
        height: 380px;
    }
}

@media (min-width: 1401px) {
    .customize-layout {
        grid-template-columns: minmax(700px, 1fr) minmax(300px, 350px);
        gap: 2rem;
    }
}

/* Make buttons and widgets scale with container */
.parts-panel button,
.options-panel button {
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    padding: clamp(8px, 1vw, 12px) clamp(12px, 1.5vw, 16px);
}

.parts-panel h3,
.options-panel h3 {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
}

.parts-panel p,
.options-panel p {
    font-size: clamp(0.8rem, 1.1vw, 0.95rem);
}

/* Ensure carousel image stays within bounds */
.carousel-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Scale jukebox controls */
.jukebox-prev,
.jukebox-next {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    padding: clamp(8px, 1vw, 12px);
}

.jukebox-current {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
}

}

/* Fix carousel sizing - ensure it never gets too small and elements stay contained */
@media (min-width: 769px) {
    .customize-layout {
        grid-template-columns: minmax(700px, 1fr) minmax(300px, 350px);
        gap: 2rem;
        max-width: 100%;
        padding: 0 20px;
    }
    
    /* Ensure carousel container maintains proper size */
    .jukebox-viewer {
        min-width: 600px;
        width: 100%;
        overflow: hidden;
    }
    
    .jukebox-container {
        min-width: 600px;
        width: 100%;
        height: 400px;
        position: relative;
        overflow: hidden;
    }
    
    .carousel-area {
        min-width: 600px;
        width: 100%;
        height: 400px;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Ensure images stay within bounds */
    .carousel-area img {
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
        position: relative;
        z-index: 1;
    }
    
    /* Position navigation arrows within container */
    .jukebox-prev,
    .jukebox-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background: rgba(0, 255, 136, 0.8);
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #000;
        font-size: 1.2rem;
        cursor: pointer;
    }
    
    .jukebox-prev {
        left: 10px;
    }
    
    .jukebox-next {
        right: 10px;
    }
    
    /* Position lock button within container */
    .jukebox-current {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        background: rgba(0, 255, 136, 0.9);
        color: #000;
        border: none;
        padding: 10px 20px;
        border-radius: 25px;
        font-weight: 600;
        cursor: pointer;
        font-size: 0.9rem;
    }
    
    /* Scale right panel to fit available space */
    .right-panel {
        min-width: 300px;
        max-width: 350px;
    }
}

/* For very wide screens, give more space to carousel */
@media (min-width: 1400px) {
    .customize-layout {
        grid-template-columns: minmax(800px, 1fr) 350px;
    }
    
    .jukebox-container,
    .carousel-area {
        min-width: 700px;
        height: 450px;
    }
}

/* AGGRESSIVE carousel sizing - force proper proportions */
.customize-layout {
    grid-template-columns: minmax(700px, 1fr) minmax(300px, 350px) !important;
    gap: 2rem !important;
}

.jukebox-viewer {
    min-width: 700px !important;
    width: 100% !important;
    max-width: none !important;
    overflow: hidden !important;
    position: relative !important;
}

.jukebox-container {
    min-width: 700px !important;
    width: 100% !important;
    height: 400px !important;
    max-width: none !important;
    overflow: hidden !important;
    position: relative !important;
}

.carousel-area {
    min-width: 700px !important;
    width: 100% !important;
    height: 400px !important;
    max-width: none !important;
    overflow: hidden !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Force images to stay within bounds */
.carousel-area img {
    max-width: 80% !important;
    max-height: 80% !important;
    object-fit: contain !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Force buttons to stay within carousel bounds */
.jukebox-prev,
.jukebox-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    background: rgba(0, 255, 136, 0.8) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #000 !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
}

.jukebox-prev {
    left: 10px !important;
}

.jukebox-next {
    right: 10px !important;
}

.jukebox-current {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
    background: rgba(0, 255, 136, 0.9) !important;
    color: #000 !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    max-width: 200px !important;
    white-space: nowrap !important;
}

/* Ensure right panel doesn't take too much space */
.right-panel {
    min-width: 300px !important;
    max-width: 350px !important;
    width: 100% !important;
}

/* FIXED: Restructure layout to give carousel priority */
.customize-layout {
    display: grid !important;
    grid-template-columns: 1fr 300px !important;
    grid-template-rows: auto auto !important;
    gap: 2rem !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* Carousel gets its own row with priority space */
.jukebox-viewer {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    display: grid !important;
    grid-template-columns: 1fr 300px !important;
    gap: 2rem !important;
    min-height: 500px !important;
}

/* Carousel container gets priority space */
.jukebox-container {
    grid-column: 1 !important;
    min-width: 600px !important;
    height: 400px !important;
    position: relative !important;
    overflow: hidden !important;
}

.carousel-area {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Additional widgets get their own column */
.additional-widgets {
    grid-column: 2 !important;
    margin-top: 0 !important;
    padding: 1rem !important;
    background: #1a1a1a !important;
    border-radius: 10px !important;
    border: 1px solid #333 !important;
    height: fit-content !important;
    overflow-y: auto !important;
    max-height: 400px !important;
}

/* Right panel gets second row */
.right-panel {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
}

/* Ensure images stay within carousel bounds */
.carousel-area img {
    max-width: 80% !important;
    max-height: 80% !important;
    object-fit: contain !important;
}

/* Position navigation controls within carousel */
.jukebox-controls {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
    display: flex !important;
    gap: 1rem !important;
    align-items: center !important;
}

.jukebox-btn {
    background: rgba(0, 255, 136, 0.9) !important;
    color: #000 !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
}

.prev-btn,
.next-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.prev-btn {
    position: absolute !important;
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.next-btn {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* NUCLEAR OPTION: Force jukebox-viewer to NEVER get pushed to the side */
.customize-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* Jukebox-viewer gets FULL WIDTH and priority */
.jukebox-viewer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 2rem !important;
    min-height: 500px !important;
    flex: 1 !important;
}

/* Carousel gets priority space - grows to fill available space */
.jukebox-container {
    flex: 1 !important;
    min-width: 600px !important;
    height: 400px !important;
    position: relative !important;
    overflow: hidden !important;
}

.carousel-area {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Additional widgets get fixed width - never push carousel */
.additional-widgets {
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    flex-shrink: 0 !important;
    margin-top: 0 !important;
    padding: 1rem !important;
    background: #1a1a1a !important;
    border-radius: 10px !important;
    border: 1px solid #333 !important;
    height: fit-content !important;
    overflow-y: auto !important;
    max-height: 400px !important;
}

/* Right panel goes below - full width */
.right-panel {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
}

/* If screen gets too narrow, switch to vertical mode */
@media (max-width: 1000px) {
    .jukebox-viewer {
        flex-direction: column !important;
    }
    
    .jukebox-container {
        min-width: 100% !important;
        width: 100% !important;
    }
    
    .additional-widgets {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
}

/* Ensure carousel NEVER gets smaller than 600px */
@media (min-width: 1001px) {
    .jukebox-container {
        min-width: 600px !important;
    }
    
    .carousel-area {
        min-width: 600px !important;
    }
}
