/* --- Cube Container & Cube --- */
.cube-container {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    margin: 0 auto;
}
.cube {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
}

/* --- Cube Faces --- */
.cube-face,
.cube-face-front,
.cube-face-back,
.cube-face-left,
.cube-face-right,
.cube-face-top,
.cube-face-bottom {
    position: absolute;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
.cube-face-front {
    width: 100%;
    height: 100%;
    transform: rotateY(0deg) translateZ(15px);
    overflow: hidden;
    background: white;
}
/* Cube face styles moved to cube.css */

/* --- Kanvas Material Styles --- */
/* Kanvas styles moved to cube.css to avoid conflicts */

/* --- D-Pad Style Cube Controls --- */
/* Cube controls styling moved to cube.css for better organization */

/* D-pad button specific styles - moved to cube.css */





/* --- Main Container & Preview --- */
#anatutucu {
    position: relative;
    width: 100%;
    height: 100%;
    background: #f8f8f8;
    overflow: hidden;
    margin: 0 auto;
}
#anatutucu img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.featured-photo {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
}
.featured-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* --- Overlay Layers --- */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: none;
}
.overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
#dropdown-material { z-index: 2; }
#dropdown-floor { z-index: 3; }
#dropdown-size { z-index: 4; }
#dropdown-lamination { z-index: 5; }
#dropdown-frame { z-index: 6; }

/* --- Price Section & Add to Cart --- */
.price-updated {
    animation: priceFlash 0.5s;
    background-color: rgba(0, 255, 0, 0.1);
}
@keyframes priceFlash {
    0% { background-color: white; }
    100% { background-color: transparent; }
}
.price-section {
    margin-top: 5px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: #000000;
    border-radius: 18px;
    margin-bottom: 5px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8em;
}
.price-label {
    font-weight: bold;
    font-size: 20px;
    color: white;
    padding-right: 10px;
}
.price-amount {
    font-weight: bold;
    font-size: 20px;
    color: #17c417;
    margin-top: 2px;
}
#mockup-add-to-cart {
    background-color: ORANGE;
    color: white;
    border: none;
    padding: 0;
    font-weight: bold;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 17px;
    margin-bottom: 10px;
    display: block;
}
#mockup-add-to-cart:hover { background-color: #3e8e41; }

#mockup-add-to-cart:not(:disabled) {
    cursor: pointer !important;
    pointer-events: auto !important;
}
#mockup-add-to-cart.loading,
#mockup-add-to-cart.processing {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
    background-color: #ccc !important;
}
#mockup-add-to-cart.loading:after,
#mockup-add-to-cart.processing:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== PROGRESS BAR STYLES ===== */
#mockup-progress-bar {
    position: absolute;
    bottom: 15px;
    left: 20%;
    right: 20%;
    height: 11px;
    background: rgb(0, 0, 0) !important;
    z-index: 1000;
    border-radius: 10px !important;
    box-shadow: 1px 1px 1px #ececec;
}

#mockup-progress-fill {
    height: 100%;
    background: #4CAF50;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    border-radius: 10px;
}

#mockup-progress-text {
    position: absolute;
    top: -7px;
    right: -20px;
    color: #4CAF50;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    background: black !important;
    padding: 0px 10px;
    border-radius: 8px;
    box-shadow: inset 1px 1px 1px #ececec;
}

@keyframes loading-progress {
    0% {
        background-position: 200% 0;
        width: 0%;
    }
    50% {
        background-position: 0% 0;
        width: 70%;
    }
    100% {
        background-position: -200% 0;
        width: 100%;
    }
}

/* Button loading state */
#mockup-add-to-cart.loading {
    cursor: not-allowed !important;
    pointer-events: none !important;
}

#mockup-add-to-cart.loading .button-text {
    display: none;
}

#mockup-add-to-cart.loading .loading-spinner {
    display: inline-block !important;
}

.loading-spinner {
    display: none;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

/* Photo upload specific loading */
.photo-upload-loading .loading-text {
    color: #ffffff;
    font-weight: 600;
}

.photo-upload-loading .loading-progress {
    background: linear-gradient(90deg, #0073aa, #005a87, #0073aa);
    background-size: 200% 100%;
    animation: loading-progress 2s ease-in-out infinite;
}

/* --- Lightbox & Layout --- */
/* Lightbox with dark overlay */
.mockup-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}





.photo-upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    position: relative;
    max-width: 400px;
    width: 100%;
}

.photo-upload-area:hover {
    border-color: #0073aa;
    background: #f0f6fc;
}

.photo-upload-area.drag-over {
    border-color: #0073aa;
    background: #e7f3ff;
    transform: scale(1.02);
}

.upload-placeholder {
    color: #666;
}

.upload-placeholder .dashicons {
    font-size: 48px;
    color: #0073aa;
    margin-bottom: 15px;
}

.upload-placeholder p {
    margin: 10px 0;
    font-size: 16px;
}

.upload-info {
    font-size: 14px !important;
    color: #999 !important;
    margin-top: 15px !important;
}

.photo-preview {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
    max-width: 400px;
    width: 100%;
}

.photo-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.photo-info {
    text-align: left;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.photo-info p {
    margin: 8px 0;
    font-size: 14px;
}

.remove-photo {
    background: #dc3232 !important;
    border-color: #dc3232 !important;
    color: white !important;
    margin-top: 10px;
}

.remove-photo:hover {
    background: #c92626 !important;
    border-color: #c92626 !important;
}

.dimension-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-end;
    flex-wrap: nowrap;
}

.dimension-inputs > div {
    flex: 1;
    min-width: 0;
}

.dimension-input {
    display: flex;
    flex-direction: column;
}

.dimension-input label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.dimension-input input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.dimension-input input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.dimension-limit {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.dimension-calculations {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.dimension-calculations p {
    margin: 5px 0;
    font-weight: 500;
}

.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.additional-options {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.option-checkbox {
    margin-bottom: 15px;
}

.option-checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.option-checkbox input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.price-calculation-section {
    background: #f0f6fc !important;
    border-left: 4px solid #46b450 !important;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
}

.price-calculation-section h4 {
    color: #46b450 !important;
    margin: 0 0 15px 0;
}

#calculate-photo-price {
    background: #0073aa !important;
    border-color: #0073aa !important;
    color: white !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    width: 100%;
}

#calculate-photo-price:hover {
    background: #005a87 !important;
    border-color: #005a87 !important;
    transform: translateY(-1px);
}

#calculate-photo-price:disabled {
    background: #ccc !important;
    border-color: #ccc !important;
    cursor: not-allowed;
    transform: none;
}

.price-display {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.total-price {
    text-align: center;
    margin-bottom: 20px;
}

.total-price h3 {
    color: #46b450;
    font-size: 1.8em;
    margin: 0;
    border: none;
    padding: 0;
}

.price-breakdown {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
}

.price-breakdown h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-label {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.breakdown-cost {
    font-weight: 600;
    color: #46b450;
    margin: 0 20px;
}

.breakdown-desc {
    color: #666;
    font-size: 14px;
    flex: 2;
    text-align: right;
}

#add-photo-to-cart {
    background: #46b450 !important;
    border-color: #46b450 !important;
    color: white !important;
    padding: 15px 30px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    width: 100%;
}

#add-photo-to-cart:hover {
    background: #3d8a46 !important;
    border-color: #3d8a46 !important;
    transform: translateY(-1px);
}

#add-photo-to-cart:disabled {
    background: #ccc !important;
    border-color: #ccc !important;
    cursor: not-allowed;
    transform: none;
}

.rotating {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Photo Upload Input Styles --- */
input#user-photo-upload {
    background: #3382ff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

input#user-photo-upload:hover {
    background: #2a6bcc;
    transform: translateY(-1px);
}

input#user-photo-upload:active {
    transform: translateY(0);
}

input#photo-width,
input#photo-height {
    background: white;
    -moz-appearance: textfield; /* Firefox */
}

input#photo-width::-webkit-outer-spin-button,
input#photo-width::-webkit-inner-spin-button,
input#photo-height::-webkit-outer-spin-button,
input#photo-height::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Additional rules to ensure arrows are hidden */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* --- Mobile Responsive for Photo Upload --- */
@media screen and (max-width: 768px) {
    .photo-upload-section {
        padding: 10px !important;
        margin: 15px 0 !important;
    }
    
    .upload-print-row {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .upload-file-container,
    .print-area-container {
        flex: 0 0 50% !important;
        min-width: auto !important;
    }
    
    .photo-dimensions-row {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .dimension-input-container,
    .fill-checkbox-container {
        flex: none !important;
        min-width: auto !important;
    }
    
    .fill-checkbox-container {
        align-items: center !important;
        padding-bottom: 0 !important;
    }
    
    .photo-controls {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .dimension-inputs {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .dimension-inputs > div {
        flex: none !important;
        min-width: auto !important;
    }
    
    .photo-upload-area {
        padding: 15px !important;
    }
    
    .upload-placeholder .dashicons {
        font-size: 20px !important;
    }
    
    .upload-placeholder p {
        font-size: 12px !important;
    }
    
    .photo-preview img {
        max-width: 150px;
        max-height: 150px;
    }
}

/* Photo Upload Section Styling */
.photo-upload-section {
    margin: 5px 0;
    padding: 5px 20px;
    background: #f8f8f8;
    border-radius: 8px;
    border-left: 4px solid #2271b1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: scale(0.9);
}

.photo-upload-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 8px;
}

.photo-upload-section form {
    margin-bottom: 15px;
}

.photo-upload-section input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.photo-upload-section input[type="file"]:focus {
    border-color: #2271b1;
    outline: none;
}

/* Photo Upload Layout */
.upload-print-row {
    display: flex;
    gap: 0;
    align-items: flex-end;
    margin-bottom: -10px;
    flex-wrap: nowrap;
}

.upload-file-container {
    flex: 0 0 60%;
    min-width: 200px;
}

.photo-dimensions-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.upload-file-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.upload-file-container input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.upload-file-container input[type="file"]:focus {
    border-color: #2271b1;
    outline: none;
}

.dimension-input-container {
    flex: 1;
    min-width: 100px;
}

.fill-checkbox-container {
    flex: 0 0 auto;
    min-width: 80px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 2px;
}

.dimension-input-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.dimension-input-container input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 25px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.dimension-input-container input:focus {
    border-color: #2271b1;
    outline: none;
}

#selected-photo-container {
    margin-bottom: 15px;
    text-align: center;
}

.photo-preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.photo-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.fill-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
}

.fill-checkbox-label input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}

.rotate-button {
    background: #faa100;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 22px 13px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 33px;
    font-weight: 400;
    transition: background-color 0.3s ease;
    min-width: 35px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rotate-button:hover {
    background: #005a87;
}

.rotate-button:active {
    background: #004a6b;
    transform: scale(0.95);
}

.print-area-container {
    flex: 0 0 40%;
    min-width: 150px;
    margin-bottom: 12px;
}

.print-area-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

#selected-photo {
    max-width: 100%;
    max-height: 200px;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#remove-photo {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

#remove-photo:hover {
    background: #c82333;
}

/* Photo Area Display Styling */
#photo-area-display {
    padding: 12px;
    background: #f9f9f9;
    border: 1px solid #1b6dff;
    border-radius: 11px;
    font-weight: 600;
    color: #333;
    text-align: center;
    width: 90%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.mockup-lightbox-overlay.active {
    display: flex;
}

/* Main content area within the lightbox */
/* Main content area within the lightbox */
.mockup-main-content {
    display: flex;
    width: 85vw;
    height: 83vh;
    background-color: rgb(230 230 230);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 5px 5px 45px #2f2f2f;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.mockup-preview-column {
    width: 70%;
    height: 100%;
    position: relative;
    background-color: #fff;
    display: flex;
}
.mockup-thumbnails-column {
    position: absolute;
    right: 10px;
    top: 35%;
    width: 70px;
    background-color: #000000;
    z-index: 10;
    border: 0;
    padding: 11px;
    display: inline-table;
    border-radius: 15px;
}
#mockup-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.mockup-info-column {
    width: 30%;
    padding: 15px;
    background-color: #e6e6e6;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 3px;
    overflow-y: auto;
    transform: scale(0.93);
}

/* --- Dropdowns & Options --- */
.mockup-option {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.mockup-option label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-left: 30px;
}
.mockup-dropdown {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 14px;
    background-color: white;
    font-size: 14px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 5px 5px 5px #dcdcdc;
}
.mockup-dropdown option[value="0"] {
    background-color: #f8f8f8;
    color: #888;
}

.mockup-description {
    margin-top: 10px;
    padding-top: 0;
    border-top: 1px solid #ccc;
}

/* --- Thumbnails --- */
.bg-thumb {
    width: 50px;
    margin: 0 auto 10px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: all 0.2s;
    background: white;
}
.bg-thumb img {
    width: 100%;
    height: auto;
    display: block;
}
.bg-thumb-title {
    font-size: 10px;
    text-align: center;
    margin-top: 2px;
    word-break: break-word;
    display: none;
}
.bg-thumb:hover,
.bg-thumb.active {
    border-color: #2271b1 !important;
    background-color: rgba(34, 113, 177, 0.1) !important;
}

/* --- Close Button --- */
.mockup-lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 1000;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.mockup-style-info {
    margin-top: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #444;
}
.mockup-preview-button {
    background-color: #2271b1;
    color: white;
    border: none;
    padding: 12px 20px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.mockup-preview-button:hover { background-color: #135e96; }

/* --- Order Details --- */
.mockup-options-summary {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 5px;
    border-left: 4px solid #2271b1;
}
.mockup-options-summary h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}
.mockup-options-summary ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.mockup-options-summary li {
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}
.mockup-options-summary li strong {
    color: #333;
    font-weight: 600;
}

/* --- Misc --- */
.dropdown-image-test { display: none; }
.checkbox-options {
    display: table;
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 10px;
}

.checkbox-options label {
    display: table-cell;
    font-size: 14px;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
    position: relative;
}

/* First column (Passpartout) with black right border */
.checkbox-options label:first-child {
    border-right: 1px solid #a6a6a6;
    height: 30px;
    width: 50%;
}

/* Second column (LuciaEX Mè´‰rekkep) */
.checkbox-options label:last-child {
    width: 50%;
    height: 30px;
}

/* Transition effects for dropdowns and passpartout */
.mockup-option {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Smooth transitions for overlays */
.dropdown-overlay {
    transition: opacity 0.3s ease-in-out;
}

.dropdown-overlay img {
    transition: all 0.3s ease-in-out;
}

/* Featured photo transition for passpartout */
.featured-photo {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    transition: padding 0.3s ease-in-out;
}

/* Checkbox transition effects */
.checkbox-options input[type="checkbox"] {
    transition: all 0.2s ease-in-out;
}

.checkbox-options input[type="checkbox"]:checked {
    transform: scale(1.1);
}

/* Dropdown transition effects */
.mockup-dropdown {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 14px;
    background-color: white;
    font-size: 14px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.2s ease-in-out;
}

/* Required field styling for dropdowns */
.mockup-dropdown.required-field {
    border: 2px solid #ff0000;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
}

/* Valid selection styling for dropdowns */
.mockup-dropdown.valid-selection {
    border: 2px solid black;
    border-color: #00ee00;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

.mockup-dropdown:focus {
    border: 2px solid black;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}



/* --- Mobile Responsive Design --- */
@media screen and (max-width: 768px) {
    /* Make lightbox full screen on mobile */
    .mockup-lightbox-overlay {
        width: 100vw;
        height: 100vh;
        padding: 0;
        margin: 0;
    }
    
   /* Cube controls responsive styling moved to cube.css */
   
}
   @media screen and (max-width: 768px) { 
    /* Make main content full viewport on mobile */
    .mockup-main-content {
        width: 100vw !important;
        height: 100vh !important;
        border-radius: 0;
        flex-direction: column;
        overflow: hidden;
    }
    
    /* Change preview column to top row (43% height) */
    .mockup-preview-column {
        width: 100% !important;
        height: 43vh !important;
        order: 1;
        flex-direction: column;
    }
    
    /* Change info column to bottom row (57% height) */
    .mockup-info-column {
        width: 100% !important;
        height: 57vh !important;
        order: 2;
        padding: 15px;
        overflow-y: auto;
        justify-content: space-between;
    }
    
    /* Adjust preview container for mobile */
    #mockup-preview-container {
        width: 100%;
        height: 100%;
        padding: 10px;
    }
    
    /* Mobile Cube Scaling: 65% of backend dimensions */
    .cube-container {
        /* Dynamic 65% scaling using CSS custom properties */
        width: var(--mobile-cube-width, 65%) !important;
        height: var(--mobile-cube-height, 65%) !important;
        max-width: 100%;
        max-height: 100%;
        transform: scale(0.65) !important;
        margin-top:-20px;
    }
    
    /* Debug: Show mobile dimensions when CSS custom properties are set */
    .cube-container[style*="width"] {
        /* This will override inline styles on mobile */
        width: var(--mobile-cube-width, 65%) !important;
        height: var(--mobile-cube-height, 65%) !important;
        margin-top:-20px;
    }
    
    /* Adjust thumbnails for mobile */
    .mockup-thumbnails-column {
    width: 100%;
    background-color: transparent;
    padding: 5px;
    border-radius: 0;
    right: 0;
    top: 25%;
    display: flex;
    justify-content: flex-end;
}

    .bg-thumb {
    width: 40px;
    margin: 0 auto 5px;
    border: none;
}
    
    /* Adjust price section for mobile */
    .price-section {
    width: 55% !important;
    padding: 5px;
    margin: 3px auto !important;
}
    
    .price-label {
        font-size: 18px;
    }
    
    .price-amount {
        font-size: 24px;
    }
    
    /* Adjust dropdowns for mobile */
    .mockup-dropdown {
        width: 95%;
        padding: 12px 15px;
        font-size: 16px;
    }
    
    /* Red border for required dropdowns on mobile (initial "Select..." state) */
    .mockup-dropdown.required-field {
        border: 2px solid #ff0000;
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
    }
    
    /* Adjust labels for mobile */
    .mockup-option label {
        font-size: 15px;
        margin-left: 15px;
    }
    
    /* Adjust add to cart button for mobile */
    #mockup-add-to-cart {
    width: 95% !important;
    padding: 0 !important;
    font-size: 16px;
    margin-top: 15px !important;
}
    
    /* Adjust close button for mobile */
    .mockup-lightbox-close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 24px;
    background: black;
}
    
    /* Adjust description text for mobile */
    .mockup-description {
        text-align: center;
        margin-top: 10px;
    }
    
    .mockup-description p {
        font-size: 14px;
    }
    
    /* Ensure proper spacing between options on mobile */
    .mockup-option {
        margin-bottom: 3px;
    }
}

/* --- Extra Small Mobile Devices --- */
@media screen and (max-width: 480px) {
    .mockup-main-content {
        width: 100vw !important;
        height: 100vh !important;
    }
    
    .mockup-preview-column {
        height: 43% !important;
    }
    
    .mockup-info-column {
    height: 57% !important;
    padding: 1px;
    transform: scale(0.85);
    }
    
    /* Extra Small Mobile Cube Scaling: 65% of backend dimensions */
    .cube-container {
        /* Dynamic 65% scaling using CSS custom properties */
        width: var(--mobile-cube-width, 65%) !important;
        height: var(--mobile-cube-height, 65%) !important;
        max-width: 100%;
        max-height: 100%;
        transform: scale(0.5);
        margin-top:-20px;
    }
    
    /* Debug: Show mobile dimensions when CSS custom properties are set */
    .cube-container[style*="width"] {
        /* This will override inline styles on mobile */
        width: var(--mobile-cube-width, 65%) !important;
        height: var(--mobile-cube-height, 65%) !important;
        margin-top:-20px;
    }
    
    .price-section {
    width: 55% !important;
    padding: 5px;
    margin: 3px auto !important;
}
    
    .price-label {
        font-size: 16px;
    }
    
    .price-amount {
        font-size: 22px;
    }
    
    .mockup-dropdown {
        width: 98%;
        padding: 10px 12px;
        font-size: 13px;
    }
    
    #mockup-add-to-cart {
        width: 95% !important;
        padding: 12px;
        font-size: 16px;
    }
    
    /* Extra small mobile D-pad adjustments - moved to cube.css */
}

/* Rotation tooltip styling */
#rotation-tooltip {
    font-size: 8px;
    text-align: center;
    position: absolute;
    color: #ffffff;
    bottom: 9px;
    right: 5px;
    background: black;
    border-radius: 10px;
    padding: 10px 15px 10px 15px;
}