.navbar {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.navbar-brand img {
    height: 50px;
}

@media (min-width: 992px) {
    .navbar-brand img {
        height: 50px;
    }
}

/* Medium devices (tablets) */
@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 40px;
    }
}

/* Small devices (landscape phones) */
@media (max-width: 767.98px) {
    .navbar-brand img {
        height: 35px;
    }
}

/* Extra small devices (phones) */
@media (max-width: 575.98px) {
    .navbar-brand img {
        height: 30px;
    }
}

.nav-link {
    color: #333;
    font-weight: 500;
}

.navbar .dropdown {
    position: static;
}

.navbar-nav {
    align-items: center;
}

.nav-item.dropdown {
    position: relative !important;
}

.nav-item.dropdown {
    position: relative;
}


#viewer-container {
    width: 100%;
    height: 600px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.file-upload-section input[type="file"]::file-selector-button {
    background-color: transparent;
    color: #FF8C00;
    border: 1px solid #FF8C00;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 12px;
    transition: all 0.2s ease;
}

.file-upload-section input[type="file"]::file-selector-button:hover {
    background-color: rgba(255, 140, 0, 0.1);
}

.file-upload-section .form-control {
    border-color: #dee2e6;
}

.file-upload-section .form-control:focus {
    border-color: #FF8C00;
    box-shadow: 0 0 0 0.25rem rgba(255, 140, 0, 0.1);
}

.controls-section {
    font-size: 0.9rem;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 1000;
}

.card {
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.process-steps {
    position: relative;
    margin: 20px 0;
}

.step {
    padding: 0 15px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step small {
    white-space: nowrap;
    display: block;
    font-size: 0.85rem;
}

.step-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    border: 2px solid #FF8C00;
    color: #FF8C00;
    font-size: 1.2rem;
}

.step-line {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #dee2e6;
    z-index: 0;
}

.btn-primary {
    background-color: #FF8C00;
    border-color: #FF8C00;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #e67e00 !important;
    border-color: #e67e00 !important;
}

.form-select:focus {
    border-color: #FF8C00;
    box-shadow: 0 0 0 0.25rem rgba(255, 140, 0, 0.25);
}

.form-control:focus {
    border-color: #FF8C00;
    box-shadow: 0 0 0 0.25rem rgba(255, 140, 0, 0.25);
}

.text-primary {
    color: #FF8C00 !important;
}

.spinner-border.text-primary {
    color: #FF8C00 !important;
}

.cart-icon {
    color: #FF8C00;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}
.cart-badge {
    position: absolute;
    bottom: -5px;
    right: -8px;
    background: #212529;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    padding: 0;
    line-height: 1;
}
.account-icon {
    color: #FF8C00;
    font-size: 1.2rem;
}

.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    margin-top: 0.5rem !important;
    float: none !important;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

.dropdown-item i {
    color: #FF8C00;
}

.dropdown-item:hover {
    background-color: rgba(255, 140, 0, 0.1);
}

@media (max-width: 992px) {
    .card-body {
        flex-direction: column;
        gap: 1rem;
    }

    .controls-section .d-flex {
        flex-direction: column;
        align-items: start;
    }
}

@media (max-width: 768px) {
    #viewer-container {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .step {
        padding: 0 5px;
    }

    .step small {
        font-size: 0.75rem;
    }

    .step-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-nav {
        flex-direction: row !important;
    }
}

.x-rotate-btn { 
    color: rgba(255, 0, 0, 0.8) !important; 
}
.y-rotate-btn { 
    color: rgba(0, 155, 0, 0.8) !important; 
}
.z-rotate-btn { 
    color: rgba(0, 0, 255, 0.8) !important; 
}

.x-rotate-btn:hover { color: rgba(255, 0, 0, 1) !important; }
.y-rotate-btn:hover { color: rgba(0, 155, 0, 1) !important; }
.z-rotate-btn:hover { color: rgba(0, 0, 255, 1) !important; }

.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-out;
}

@media (max-width: 576px) {
    .dropdown-menu {
        left: 10% !important;
        transform: translateX(-50%) !important;
    }
}

.dropdown-menu .text-wrap {
    white-space: normal;
    word-wrap: break-word;
}

.modal-backdrop {
    position: inherit !important;
}

.modal-content{
    z-index: 1500;
}

.dropdown-cart-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: #fff;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.dropdown-cart-item:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mini-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.mini-spec-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.4rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    font-size: 0.7rem;
    white-space: nowrap;
}

.mini-color-preview {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 0.25rem;
    vertical-align: middle;
    border: 1px solid rgba(0,0,0,0.1);
}