header {
    /*padding: 24px;*/
    display: flex;
    align-items: center;
    /*border-bottom: 1px solid #e6e6e6;*/
    position: fixed;
    width: 100%;
    top: 0;
    background: #fff;
    z-index: 999;
    box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.04);
}


header .phone{
    display: flex;
    align-items: center;
    gap: 2px;
}

main{
    min-height: 90vh;
    padding-top: 120px;
}


.personal_order{
    background: #9f9f9f;
    font-weight: 500;
    font-size: 18px;
    padding: 8px 16px;
    border-radius: 8px;
    color: #fff !important;
}

.navbar-block{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-photo {
    width: 100%;
    height: 220px;
    margin-bottom: 12px;
}

.product-photo .thumb-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card {
    background: #fff;
    padding: 6px;
    border-radius: 8px;
}

.product-info {
    padding: 16px;
}

.p-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff !important;
    height: 36px;
    font-size: 14px;
    border-radius: 4px;
}

.product-info h6 {
    font-weight: 400;
    font-size: 13px;
    margin: 0;
}

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

.product-info strong {
    font-size: 14px;
}

.catalog{
    position: fixed;
    height: 100%;
    margin-top: 40px;
}
.catalog .item {
    display: block;
    font-size: 15px;
}

.catalog .item-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.cat-top{
    margin-top: 48px;
}

.catalog .item input {
    padding: 0;
    height: initial;
    width: initial;
    margin-bottom: 0;
    display: none;
    cursor: pointer;
}

a {
    color: inherit !important;
    text-decoration: none !important;
}

.catalog .item label {
    position: relative;
    cursor: pointer;
    color: #000 !important;
}

.catalog .item label:before {
    content: '';
    -webkit-appearance: none;
    background-color: transparent;
    border: 1px solid #000;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0px -15px 10px -12px rgba(0, 0, 0, 0.05);
    padding: 7px;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 2px;
}

.catalog .item input:checked + label:after {
    content: '';
    display: block;
    position: absolute;
    top: 8px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.category-item {
    border: 1px solid #dbdbdb;
    background: #fff;
}

.category-item a {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    padding: 4px;
    border-bottom: 1px solid #dbdbdb;
}

.catalog-products {
}


.pagination {
    display: flex;
    gap: 6px;
    justify-content: end;
    align-items: center;
    font-family: sans-serif;
}

.pagination a,
.pagination span {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid #dcdcdc;
    font-size: 14px;
    text-decoration: none;
    color: #222;
    transition: 0.2s;
}

.pagination a:hover {
    background: #000;
    color: #fff !important;
}

.pagination .active {
    background: #000;
    color: white;
    border-color: #9f9f9f;
}

.perpage label {
    font-size: 14px;
    font-weight: 500;
}


.perpage select {
    font-size: 13px;
}



 :root {
     --primary: #2563eb;
     --primary-dark: #1e40af;
     --success: #10b981;
     --danger: #ef4444;
     --gray-50: #f9fafb;
     --gray-100: #f3f4f6;
     --gray-200: #e5e7eb;
     --gray-300: #d1d5db;
     --gray-600: #4b5563;
     --gray-800: #1f2937;
     --gray-900: #111827;
 }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.main-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    min-height: calc(100vh - 100px);
}

.editor-panel {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.image-container {
    flex: 1;
    background: var(--gray-100);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#imageToCrop {
    max-width: 100%;
    max-height: calc(100vh - 300px);
    opacity: 0;
    transition: opacity 0.3s;
}

#imageToCrop.loaded {
    opacity: 1;
}

.loader-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/*.editor-controls {*/
/*    margin-top: 20px;*/
/*    display: flex;*/
/*    gap: 12px;*/
/*    flex-wrap: wrap;*/
/*    padding-top: 20px;*/
/*    border-top: 1px solid var(--gray-200);*/
/*}*/

.control-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.control-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    min-width: 100px;
}

.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.98);
}

.btn-icon {
    padding: 10px;
    width: 38px;
    height: 38px;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-success {
    background: var(--success);
    color: white;
    font-size: 15px;
    padding: 12px 24px;
}

.btn-success:hover {
    background: #059669;
}

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

.panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.panel-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--gray-600);
    font-weight: 500;
}

.info-value {
    color: var(--gray-900);
    font-weight: 600;
    text-align: right;
}

.size-display {
    background: var(--gray-50);
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    margin-bottom: 16px;
}

.size-main {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.size-sub {
    font-size: 13px;
    color: var(--gray-600);
}

.zoom-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zoom-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--gray-200);
    outline: none;
    -webkit-appearance: none;
}

.zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

.zoom-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    min-width: 45px;
    text-align: right;
}

.action-panel {
    margin-top: auto;
}

.action-panel .btn-success {
    width: 100%;
    justify-content: center;
    font-size: 16px;
    padding: 14px;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-dialog {
    background: white;
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.modal-header p {
    font-size: 14px;
    color: var(--gray-600);
}

.modal-body {
    padding: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.alert {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 2000;
    min-width: 300px;
    animation: slideInRight 0.3s;
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert.active {
    display: flex;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.loading-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
}

@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }
}

@media (max-width: 640px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .editor-controls {
        flex-direction: column;
    }

    .control-group {
        width: 100%;
    }
}


#page-loader {
    position: fixed;
    inset: 0;
    background: #fff; /* fon oq — o‘zingiz xohlasangiz o‘zgartiring */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity .4s ease;
}

#page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

#page-loader .loader {
    transform: rotateZ(45deg);
    perspective: 1000px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    color: #000;
    border: 0;
    animation: none;
}
#page-loader .loader:before,
#page-loader .loader:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: inherit;
    height: inherit;
    border-radius: 50%;
    transform: rotateX(70deg);
    animation: 1s spin linear infinite;
}
#page-loader .loader:after {
    color: #000;
    transform: rotateY(70deg);
    animation-delay: .4s;
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotateZ(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

@keyframes rotateccw {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes spin {
    0%,
    100% {
        box-shadow: .2em 0px 0 0px currentcolor;
    }
    12% {
        box-shadow: .2em .2em 0 0 currentcolor;
    }
    25% {
        box-shadow: 0 .2em 0 0px currentcolor;
    }
    37% {
        box-shadow: -.2em .2em 0 0 currentcolor;
    }
    50% {
        box-shadow: -.2em 0 0 0 currentcolor;
    }
    62% {
        box-shadow: -.2em -.2em 0 0 currentcolor;
    }
    75% {
        box-shadow: 0px -.2em 0 0 currentcolor;
    }
    87% {
        box-shadow: .2em -.2em 0 0 currentcolor;
    }
}


.product-shop-page{
    padding-top: 44px;
}

.breadcrumb{
    display: flex;
    align-items: center;
}

.breadcrumb-item{
    position: relative;
    display: flex;
    align-items: center;
}
.breadcrumb-item+.breadcrumb-item::before{
    content: '' !important;
}

.breadcrumb-item+.breadcrumb-item::after{
    content: '';
    width: 3px;
    height: 3px;
    background: #000;
    border-radius: 50%;
    position: absolute;
    left: 7px;
}


.faktura-catalog{
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    gap: 4px;
}

.faktura-catalog .fc-item{
    width: 109px;
    /*min-height: 109px;*/
}

.faktura-catalog .fc-item img{
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 2px;
}


.faktura-catalog input[type="radio"] {
    display: none;
}
.faktura-catalog label {
    display: inline-block;
    height: 100%;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
}
.faktura-catalog input[type="radio"]:checked+label {
    border: 2px solid #000;
    border-radius: 4px;
    background-color: #fff;
    padding: 2px;
}
.faktura-catalog input[type="radio"]+label:hover {
    transition: transform .2s;
}

.product-photo-show{
    /*padding: 6px;*/
    /*border: 2px solid #000;*/
    /*border-radius: 8px;*/
    /*background: #fff;*/
    height: 620px;
}

.product-photo-show img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.info-block{
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    margin-top: 24px;
    box-shadow: 0 0 15px 0 rgba(171, 171, 171, 0.35);
}



