/* --- 1. ОБЩИЕ СТИЛИ И НАВИГАЦИЯ --- */
.navbar-nav .nav-link {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover {
    color: #0d6efd !important;
}

.input-group .form-control:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

.input-group .btn-outline-secondary {
    border-color: #dee2e6;
    color: #444;
    font-weight: 600;
    font-size: 14px;
}

.badge {
    padding: 0.35em 0.5em !important;
}

/* --- 2. КАСТОМНЫЙ КУРСОР IVORY VIEWFINDER --- */
*, *::before, *::after { cursor: none !important; }
body, body * { cursor: none !important; }

/* Контейнер курсора-видоискателя */
#cursor-vf {
    position: fixed;
    top: 0; left: 0;
    width: 32px; height: 32px;
    pointer-events: none !important;
    z-index: 2147483647;
    transform: translate(-50%, -50%);
    transition: width .3s cubic-bezier(.2,.8,.2,1),
    height .3s cubic-bezier(.2,.8,.2,1);
    will-change: transform;
}

/* 4 уголка-засечки — две border-side каждый формируют L-форму */
.vf-corner {
    position: absolute;
    width: 8px; height: 8px;
    transition: all .25s cubic-bezier(.2,.8,.2,1);
    pointer-events: none;
}
.vf-corner.tl { top: 0;    left: 0;    border-top:    1.5px solid #1a1a1a; border-left:   1.5px solid #1a1a1a; }
.vf-corner.tr { top: 0;    right: 0;   border-top:    1.5px solid #1a1a1a; border-right:  1.5px solid #1a1a1a; }
.vf-corner.bl { bottom: 0; left: 0;    border-bottom: 1.5px solid #1a1a1a; border-left:   1.5px solid #1a1a1a; }
.vf-corner.br { bottom: 0; right: 0;   border-bottom: 1.5px solid #1a1a1a; border-right:  1.5px solid #1a1a1a; }

/* Центральная оранжевая точка */
.vf-center {
    position: absolute;
    top: 50%; left: 50%;
    width: 3px; height: 3px;
    background: #e85d3a;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all .25s ease;
}

/* Лейбл в центре при наведении (показывается через JS) */
.vf-label {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #e85d3a;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transition: all .25s cubic-bezier(.2,.8,.2,1);
}

/* HOVER на интерактивных элементах: контейнер растёт, уголки оранжевые и толще, центр прячется, появляется стрелка */
body.cursor-hover #cursor-vf {
    width: 56px; height: 56px;
}
body.cursor-hover .vf-corner { width: 12px; height: 12px; border-color: #e85d3a; border-width: 2px; }
body.cursor-hover .vf-center {
    width: 0; height: 0;
    opacity: 0;
}
body.cursor-hover .vf-label {
    content: '→';
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
body.cursor-hover .vf-label::before { content: '→'; }

/* CLICK: контейнер схлопывается, центр краснеет крупнее */
body.cursor-click #cursor-vf {
    width: 22px; height: 22px;
}
body.cursor-click .vf-corner {
    border-color: #e85d3a; border-width: 2px;
}
body.cursor-click .vf-center {
    background: #e85d3a;
    width: 5px; height: 5px;
    opacity: 1;
}

/* TEXT режим — над input/textarea показывает мигающую вертикальную чёрточку */
body.cursor-text #cursor-vf {
    width: 4px; height: 24px;
}
body.cursor-text .vf-corner { display: none; }
body.cursor-text .vf-center {
    width: 2px; height: 22px;
    background: #1a1a1a;
    border-radius: 0;
    animation: vf-blink 1s steps(2) infinite;
}
body.cursor-text .vf-label { display: none; }
@keyframes vf-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* TEXT-CURSOR: над текстовыми полями курсор превращается в вертикальную чёрточку */
body.cursor-text #cursor-vf {
    width: 4px; height: 22px;
}
body.cursor-text .vf-corner {
    border-width: 0 !important;
    width: 0; height: 0;
}
body.cursor-text .vf-center {
    width: 2px; height: 22px;
    border-radius: 1px;
    background: #1a1a1a;
}
body.cursor-text .vf-label { opacity: 0; }

/* На тач-устройствах кастомный курсор не нужен */
@media (pointer: coarse) {
    *, *::before, *::after, body, body * { cursor: auto !important; }
    #cursor-vf { display: none !important; }
}

/* --- 3. 3D КНОПКИ (Объединенная версия) --- */
.btn-3d {
    display: inline-block !important;
    font-size: 13px !important;
    font-weight: bold !important;
    text-align: center !important;
    color: #0011ff !important;
    background-color: #f8f8fd !important;
    padding: 8px 20px !important;
    border-radius: 50px !important;
    border: 4px solid #8b93f8 !important;
    box-shadow: 0px 5px #1f35ff !important;
    transition: all 0.1s !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
    text-decoration: none;
}

.btn-3d:active {
    transform: translateY(4px) !important;
    box-shadow: 0px 1px #1f35ff !important;
}

.btn-reg {
    background-color: #8b93f8 !important;
    color: white !important;
    border: 4px solid #646fff !important;
}

.btn-reg:hover {
    background-color: #646fff !important;
}

.toast-container-fixed {
    position: fixed !important;
    top: 110px !important;
    right: 20px !important;
    z-index: 10000 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 420px;
    width: calc(100vw - 40px);
}

.uiverse-toast-card {
    width: 100%;
    min-height: 72px;
    height: auto;
    border-radius: 14px;
    background-color: #fffbf3;
    border: 1px solid #d9d2c4;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 1.5px 4px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px 18px 16px;
    pointer-events: auto;
    animation: toastSlideIn 0.35s cubic-bezier(.22,.68,0,1.2) both;
    transition: opacity 0.3s, transform 0.3s;
}

.uiverse-toast-card.toast-hiding {
    opacity: 0;
    transform: translateX(20px);
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

.uiverse-toast-card .wave-bg {
    display: none;
}

.uiverse-toast-card .icon-container {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 1px;
}

.uiverse-toast-card .icon {
    width: 18px;
    height: 18px;
}

.uiverse-toast-card .message-text-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    flex-grow: 1;
    min-width: 0;
    gap: 3px;
}

.uiverse-toast-card .message-text {
    font-size: 0.875rem;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    letter-spacing: .01em;
    margin: 0;
    line-height: 1.3;
}

.uiverse-toast-card .sub-text {
    font-size: 0.8125rem;
    font-family: 'Manrope', sans-serif;
    color: #5a5650;
    margin: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    width: 100%;
    line-height: 1.45;
    word-break: break-word;
}

.uiverse-toast-card .cross-icon {
    width: 16px;
    height: 16px;
    color: #8a8579;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 3px;
    opacity: 0.7;
    transition: opacity .15s;
}
.uiverse-toast-card .cross-icon:hover { opacity: 1; }

/* Прогресс-бар автозакрытия */
.uiverse-toast-card .toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 14px 14px;
    width: 100%;
    overflow: hidden;
}
.uiverse-toast-card .toast-progress-fill {
    height: 100%;
    width: 100%;
    transform-origin: left;
    animation: toastProgress linear forwards;
}
@keyframes toastProgress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* --- 6. МЕНЮ ПРОФИЛЯ --- */
.menu-uiverse {
    padding: 0.5rem;
    background-color: #fff;
    display: flex;
    justify-content: center;
    border-radius: 50px;
    box-shadow: 0 10px 25px 0 rgba(0, 0, 0, 0.1);
    border: 2px solid #8b93f8;
}
.menu-uiverse .link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 50px;
    border-radius: 30px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: width 0.2s ease-in;
    text-decoration: none;
    color: #1f35ff;
}
.menu-uiverse .link:before {
    position: absolute;
    z-index: -1;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.2s ease-in;
    background-color: #8b93f8;
}
.menu-uiverse .link:hover { width: 150px; }
.menu-uiverse .link:hover:before { transform: translateX(0); }
.link-icon { width: 28px; height: 28px; position: absolute; left: 21px; z-index: 2; transition: color 0.2s; }
.link-title {
    opacity: 0;
    transition: opacity 0.2s;
    font-weight: 700;
    font-size: 14px;
    text-indent: 28px;
    width: 100%;
    text-align: center;
}
.menu-uiverse .link:hover .link-title { opacity: 1; color: #fff; }
.menu-uiverse .link:hover .link-icon { color: #fff; }
.link-exit:before { background-color: #dc3545 !important; }

/* --- 7. ПРЕЛОАДЕР (ХОМЯК) --- */
.loader-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.loader-visible {
    opacity: 1 !important;
    visibility: visible !important;
}
.wheel-and-hamster {
    --dur: 1s;
    position: relative;
    width: 12em; height: 12em;
    font-size: 14px;
}
.wheel, .hamster, .hamster div, .spoke { position: absolute; }
.wheel, .spoke { border-radius: 50%; top: 0; left: 0; width: 100%; height: 100%; }
.wheel { background: radial-gradient(100% 100% at center,hsla(0,0%,60%,0) 47.8%,hsl(0,0%,60%) 48%); z-index: 2; }
.hamster { animation: hamster var(--dur) ease-in-out infinite; top: 50%; left: calc(50% - 3.5em); width: 7em; height: 3.75em; transform: rotate(4deg) translate(-0.8em,1.85em); transform-origin: 50% 0; z-index: 1; }
.hamster__head { animation: hamsterHead var(--dur) ease-in-out infinite; background: hsl(30,90%,55%); border-radius: 70% 30% 0 100% / 40% 25% 25% 60%; box-shadow: 0 -0.25em 0 hsl(30,90%,80%) inset, 0.75em -1.55em 0 hsl(30,90%,90%) inset; top: 0; left: -2em; width: 2.75em; height: 2.5em; transform-origin: 100% 50%; }
.hamster__ear { animation: hamsterEar var(--dur) ease-in-out infinite; background: hsl(0,90%,85%); border-radius: 50%; box-shadow: -0.25em 0 hsl(30,90%,55%) inset; top: -0.25em; right: -0.25em; width: 0.75em; height: 0.75em; transform-origin: 50% 75%; }
.hamster__eye { animation: hamsterEye var(--dur) linear infinite; background-color: hsl(0,0%,0%); border-radius: 50%; top: 0.375em; left: 1.25em; width: 0.5em; height: 0.5em; }
.hamster__nose { background: hsl(0,90%,75%); border-radius: 35% 65% 85% 15% / 70% 50% 50% 30%; top: 0.75em; left: 0; width: 0.2em; height: 0.25em; }
.hamster__body { animation: hamsterBody var(--dur) ease-in-out infinite; background: hsl(30,90%,90%); border-radius: 50% 30% 50% 30% / 15% 60% 40% 40%; box-shadow: 0.1em 0.75em 0 hsl(30,90%,55%) inset, 0.15em -0.5em 0 hsl(30,90%,80%) inset; top: 0.25em; left: 2em; width: 4.5em; height: 3em; transform-origin: 17% 50%; transform-style: preserve-3d; }
.hamster__limb--fr, .hamster__limb--fl { clip-path: polygon(0 0,100% 0,70% 80%,60% 100%,0% 100%,40% 80%); top: 2em; left: 0.5em; width: 1em; height: 1.5em; transform-origin: 50% 0; }
.hamster__limb--fr { animation: hamsterFRLimb var(--dur) linear infinite; background: linear-gradient(hsl(30,90%,80%) 80%,hsl(0,90%,75%) 80%); transform: rotate(15deg) translateZ(-1px); }
.hamster__limb--fl { animation: hamsterFLLimb var(--dur) linear infinite; background: linear-gradient(hsl(30,90%,90%) 80%,hsl(0,90%,85%) 80%); transform: rotate(-30deg); }
.hamster__limb--br, .hamster__limb--bl { border-radius: 0.75em 0.75em 0 0; clip-path: polygon(0 0,100% 0,100% 30%,70% 90%,70% 100%,30% 100%,40% 90%,0% 30%); top: 1em; left: 2.8em; width: 1.5em; height: 2.5em; transform-origin: 50% 30%; }
.hamster__limb--br { animation: hamsterBRLimb var(--dur) linear infinite; background: linear-gradient(hsl(30,90%,80%) 90%,hsl(0,90%,75%) 90%); transform: rotate(-60deg) translateZ(-1px); }
.hamster__limb--bl { animation: hamsterBLLimb var(--dur) linear infinite; background: linear-gradient(hsl(30,90%,90%) 90%,hsl(0,90%,85%) 90%); transform: rotate(20deg); }
.hamster__tail { animation: hamsterTail var(--dur) linear infinite; background: hsl(0,90%,85%); border-radius: 0.25em 50% 50% 0.25em; box-shadow: 0 -0.2em 0 hsl(0,90%,75%) inset; top: 1.5em; right: -0.5em; width: 1em; height: 0.5em; transform: rotate(30deg) translateZ(-1px); transform-origin: 0.25em 0.25em; }
.spoke {
    animation: spoke var(--dur) linear infinite;
    background:
            radial-gradient(100% 100% at center, hsl(0,0%,60%) 4.8%, hsla(0,0%,60%,0) 5%),
            linear-gradient(hsla(0,0%,55%,0) 46.9%, hsl(0,0%,65%) 47%, hsl(0,0%,65%) 52.9%, hsla(0,0%,65%,0) 53%) 50% 50% / 99% 99% no-repeat;
}
/* Анимации прелоадера */
@keyframes hamster { from, to { transform: rotate(4deg) translate(-0.8em,1.85em); } 50% { transform: rotate(0) translate(-0.8em,1.85em); } }
@keyframes hamsterHead { from, 25%, 50%, 75%, to { transform: rotate(0); } 12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(8deg); } }
@keyframes hamsterEye { from, 90%, to { transform: scaleY(1); } 95% { transform: scaleY(0); } }
@keyframes hamsterEar { from, 25%, 50%, 75%, to { transform: rotate(0); } 12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(12deg); } }
@keyframes hamsterBody { from, 25%, 50%, 75%, to { transform: rotate(0); } 12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(-2deg); } }
@keyframes hamsterFRLimb { from, 25%, 50%, 75%, to { transform: rotate(50deg) translateZ(-1px); } 12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(-30deg) translateZ(-1px); } }
@keyframes hamsterFLLimb { from, 25%, 50%, 75%, to { transform: rotate(-30deg); } 12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(50deg); } }
@keyframes hamsterBRLimb { from, 25%, 50%, 75%, to { transform: rotate(-60deg) translateZ(-1px); } 12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(20deg) translateZ(-1px); } }
@keyframes hamsterBLLimb { from, 25%, 50%, 75%, to { transform: rotate(20deg); } 12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(-60deg); } }
@keyframes hamsterTail { from, 25%, 50%, 75%, to { transform: rotate(30deg) translateZ(-1px); } 12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(10deg) translateZ(-1px); } }
@keyframes spoke { from { transform: rotate(0); } to { transform: rotate(-1turn); } }

/* --- 8. УТИЛИТЫ И ПРОФИЛЬ --- */
.transition-all { transition: all 0.3s ease; }
.hover-scale:hover { transform: scale(1.02); }
.profile-avatar-circle { width: 130px; height: 130px; background: #fff; border: 4px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; }
.btn-avatar-upload { position: absolute; bottom: 5px; right: 5px; background: #4e73df; color: #fff; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; cursor: pointer; z-index: 10; transition: 0.2s; }
.btn-avatar-upload:hover { background: #2e59d9; }
.custom-3d-input { border: 1px solid #e3e6f0; border-radius: 10px !important; overflow: hidden; transition: 0.2s; }
.custom-3d-input:focus-within { border-color: #4e73df; box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25); }
.contact-card { border-radius: 1rem; }


/* --- 9. СТИЛИ АВТОРИЗАЦИИ (FLIP CARD) --- */
.auth-page-container { display: flex; justify-content: center; align-items: center; min-height: 80vh; width: 100%; }
.wrapper { --main-blue: #1f35ff; --light-blue: #8b93f8; display: flex; flex-direction: column; align-items: center; }

/* Оформление переключателя */
.card-switch { margin-bottom: 25px; height: 40px; position: relative; }
.switch { position: relative; display: inline-block; width: 60px; height: 30px; }
.toggle { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #eee; border: 2px solid var(--light-blue); border-radius: 34px; transition: 0.4s; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 3px; background-color: var(--light-blue); border-radius: 50%; transition: 0.4s; }
.toggle:checked + .slider { background-color: var(--main-blue); border-color: var(--main-blue); }
.toggle:checked + .slider:before { transform: translateX(28px); background-color: white; }

/* Надписи Вход / Регистрация */
.card-side::before, .card-side::after { position: absolute; top: 5px; width: 100px; font-weight: 700; text-transform: uppercase; font-size: 12px; transition: all 0.3s; pointer-events: none; }
.card-side::before { content: 'Вход'; left: -110px; text-align: right; color: var(--main-blue); text-decoration: underline; }
.card-side::after { content: 'Регистрация'; left: 70px; color: var(--light-blue); }
.toggle:checked ~ .card-side::before { text-decoration: none; color: var(--light-blue); }
.toggle:checked ~ .card-side::after { text-decoration: underline; color: var(--main-blue); }

.flip-card { perspective: 1000px; width: 400px; }
.flip-card__inner { position: relative; width: 100%; height: 530px; text-align: center; transition: transform 0.8s; transform-style: preserve-3d; }
.flip-card__front, .flip-card__back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; background: white; border-radius: 30px; border: 4px solid var(--light-blue); box-shadow: 0 15px 35px rgba(31, 53, 255, 0.15); padding: 25px 30px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.flip-card__back { transform: rotateY(180deg); }

.title { font-size: 26px; font-weight: 900; color: var(--main-blue); text-transform: uppercase; margin-bottom: 2px; }
.flip-card__form { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.flip-card__input { width: 100%; height: 42px; border-radius: 12px; border: 2px solid #f0f0f0; background-color: #f9f9ff; padding: 0 15px; outline: none; transition: 0.3s; font-size: 14px; }
.flip-card__input:focus { border-color: var(--main-blue); background-color: white; }

/* Списки подсказок */
.list-group-item { font-size: 12px; padding: 8px 10px; cursor: pointer; border: none; border-bottom: 1px solid #f0f0f0; text-align: left; background: white; width: 100%; display: block; }
.list-group-item:hover { background-color: #f8f8fd; color: #1f35ff; }
.fio-list { z-index: 1001; max-height: 150px; overflow-y: auto; top: 45px; }

.btn-reg-flip { background: var(--light-blue) !important; color: white !important; border: 4px solid #646fff !important; width: 100% !important; margin-top: 5px; padding: 10px; border-radius: 50px; font-weight: bold; }
.btn-telecom { background: #f8f8fd !important; color: #0011ff !important; border: 4px solid #8b93f8 !important; width: 100% !important; margin-top: 5px; padding: 10px; border-radius: 50px; font-weight: bold; }


/* Контакты*/

.border-3d {
    border: 4px solid #8b93f8 !important;
    border-radius: 25px !important;
    transition: transform 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon-box {
    width: 60px;
    height: 60px;
    background: #f0f0ff;
    color: #8b93f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    border-radius: 15px;
}

.form-control:focus {
    border-color: #8b93f8;
    box-shadow: 0 0 0 0.25rem rgba(139, 147, 248, 0.25);
}
/* --- 10. ADMIN PANEL --- */
.bg-purple { background: linear-gradient(45deg, #1f35ff, #8b93f8) !important; }
.btn-purple {
    background: linear-gradient(45deg, #1f35ff, #8b93f8);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 7px 20px;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s;
}
.btn-purple:hover { background: linear-gradient(45deg, #0d25e8, #7480f0); color: white; transform: translateY(-1px); }
.btn-outline-purple {
    color: #1f35ff;
    border: 2px solid #8b93f8;
    border-radius: 50px;
    padding: 5px 14px;
    font-weight: 600;
    font-size: 12px;
    background: transparent;
    transition: all 0.2s;
}
.btn-outline-purple:hover { background: #1f35ff; color: white; border-color: #1f35ff; }

/* --- 11. АНИМАЦИИ --- */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- 12. КАТАЛОГ И КАРТОЧКИ ТОВАРОВ --- */
.product-card { transition: transform .25s, box-shadow .25s; border: 2px solid transparent !important; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 15px 35px rgba(31,53,255,.12) !important; border-color: #8b93f8 !important; }
.product-img-wrap { height: 200px; background: #f8f9fa; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-img-wrap img { max-height: 100%; max-width: 100%; object-fit: contain; padding: 10px; }
.cat-btn { display: block; padding: 8px 16px; border-radius: 50px; font-size: 13px; font-weight: 600; text-decoration: none; transition: all .2s; border: 2px solid #dee2e6; color: #555; background: #fff; }
.cat-btn:hover { background: #f0f2ff; border-color: #8b93f8; color: #1f35ff; }
.cat-btn.active { background: linear-gradient(45deg,#1f35ff,#8b93f8); color: #fff !important; border-color: #1f35ff; }

/* --- 13. СТРАНИЦА ТОВАРА --- */
.variant-btn {
    padding: 7px 18px; border-radius: 12px; font-size: 13px; font-weight: 600;
    border: 2px solid #dee2e6; background: #fff; color: #444;
    transition: all .2s; white-space: nowrap;
}
.variant-btn:hover { border-color: #8b93f8; color: #1f35ff; background: #f0f2ff; }
.variant-btn.selected { border-color: #1f35ff; background: #1f35ff; color: #fff; box-shadow: 0 4px 12px rgba(31,53,255,.3); }
.color-dot {
    width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff;
    box-shadow: 0 0 0 2px #dee2e6; transition: all .2s; display: inline-block;
}
.color-dot:hover, .color-dot.selected { box-shadow: 0 0 0 3px #1f35ff; transform: scale(1.15); }
.spec-row:nth-child(odd) { background: #f8f9ff; }
.star-filled { color: #ffc107; }
.star-empty  { color: #dee2e6; }
.review-card { border-left: 4px solid #8b93f8; animation: fadeIn .3s ease; }
.similar-card { transition: transform .2s, box-shadow .2s; border: 2px solid transparent !important; }
.similar-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(31,53,255,.1) !important; border-color: #8b93f8 !important; }
.qty-btn { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #8b93f8; background: #fff; color: #1f35ff; font-size: 18px; font-weight: bold; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.qty-btn:hover { background: #1f35ff; color: #fff; }
.guarantee-box { text-align: center; padding: 12px 8px; background: #f8f9ff; border-radius: 12px; border: 1px solid #e8eaff; transition: .2s; }
.guarantee-box:hover { border-color: #8b93f8; background: #f0f2ff; }
.guarantee-box i { font-size: 1.5rem; margin-bottom: 4px; }

/* --- 14. ФИКС ЦВЕТА ТЕКСТА В ФОРМАХ АДМИНКИ --- */
.admin-input, .admin-input:focus,
.admin-input option, select.admin-input {
    color: #333 !important;
    background-color: #f9f9ff !important;
}
.form-label-custom { color: #444 !important; }
.admin-form-body label, .admin-form-body .form-label { color: #333 !important; }
.card-header.bg-purple label { color: #fff !important; }
.table thead th { color: #555 !important; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }

/* --- 15. ГЛОБАЛЬНЫЕ СТИЛИ ФОРМ АДМИНКИ (перенесено из products/add.php) --- */
.admin-form-card {
    background: #ffffff;
    border-radius: 25px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 30px rgba(31, 53, 255, 0.05);
    overflow: hidden;
    margin-top: 20px;
}
.form-header-custom {
    background: linear-gradient(45deg, #1f35ff, #8b93f8);
    padding: 20px 30px;
    color: white !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}
.form-header-custom * { color: white !important; }
.admin-form-body { padding: 30px; }
.form-group-custom { position: relative; margin-bottom: 20px; }
.form-label-custom {
    font-weight: 700 !important;
    color: #444 !important;
    font-size: 0.82rem !important;
    text-transform: uppercase !important;
    letter-spacing: .5px;
    margin-bottom: 8px !important;
    display: block !important;
    margin-left: 5px !important;
}
.input-wrapper { position: relative; }
.input-wrapper > i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b93f8;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 2;
}
.admin-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border-radius: 15px;
    border: 2px solid #f3f3f3;
    background-color: #f9f9ff;
    transition: border-color .3s, box-shadow .3s;
    outline: none;
    font-size: 14px;
    color: #333 !important;
    display: block;
}
.admin-input:focus {
    border-color: #1f35ff;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(31,53,255,.07);
}
textarea.admin-input { padding-left: 20px; min-height: 100px; }
.admin-input[type="file"] { padding: 9px 15px; cursor: pointer; }
select.admin-input { appearance: auto; }
.btn-add-product { width: auto !important; padding: 12px 36px !important; margin-top: 10px; }

/* Статусные бейджи заказов */
.status-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 50px; font-size: 12px; font-weight: 700;
}
.status-badge.processing { background: #fff3cd; color: #856404; }
.status-badge.shipping   { background: #cff4fc; color: #055160; }
.status-badge.done       { background: #d1e7dd; color: #0a3622; }
.status-badge.cancelled  { background: #f8d7da; color: #842029; }

/* Строки таблицы заказов */
.order-row { transition: background .15s; }
.order-row:hover { background: #f8f9ff !important; }