p {
    margin: 0;
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #2d2d2d;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 4px;
}

.user-dropdown:hover .user-dropdown-menu {
    display: block;
}

.user-dropdown-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #e0e0e0;
    transition: background 0.3s;
    border: none;
    width: 100%;
    text-align: left;
    background: none;
    cursor: pointer;
    font-size: 14px;
}

.user-dropdown-item:hover {
    background: #404040;
    color: #ffffff;
}

/* фикс кнопки "Добавить товар" чтобы совпадала высота с инпутом поиска */
.warehouse-goods .title-wrap .info-wrap .add {
    height: 31px;
    padding-top: 0;
    padding-bottom: 0;
    display: inline-flex;
    align-items: center;
}

.detach-product-btn {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.table-item:hover .detach-product-btn {
    opacity: 1;
}

.warehouse-goods .warehouse-table .table-item .quantity .check-mark-btn {
    width: 30px;
    height: 30px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    background: #4B8182;
    flex-grow: 1;
}

.warehouse-goods .warehouse-table .table-item .quantity .check-mark-btn img {
    margin: auto;
}

.warehouse-goods .warehouse-table {
    margin: 20px 0;
    position: relative;
}

.loading-container {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
}

.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4B8182;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 11;
}

@media (max-width: 767px) {
    .warehouse-goods .warehouse-table {
        overflow-x: auto;
    }
}

.warehouse-goods .warehouse-table .table-top {
    padding: 0 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

@media (max-width: 767px) {
    .warehouse-goods .warehouse-table .table-top {
        min-width: 767px;
    }
}

.warehouse-goods .warehouse-table .table-top span {
    font-size: 14px;
    color: #959595;
    padding: 8px 0;
    display: inline-block;
}

.warehouse-goods .warehouse-table .table-item {
    padding: 15px 20px;
    border-radius: 6px;
    border: 1px solid #DFDFDF;
    margin-bottom: 5px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    transition: 0.3s;
}

@media (max-width: 767px) {
    .warehouse-goods .warehouse-table .table-item {
        min-width: 767px;
    }
}

.warehouse-goods .warehouse-table .table-item:hover {
    background: #DFDFDF;
}

.warehouse-goods .warehouse-table .table-item .img-wrap {
    height: 32px;
    overflow: hidden;
    border-radius: 4px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.warehouse-goods .warehouse-table .table-item .img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.warehouse-goods .warehouse-table .table-item b {
    font-size: 16px;
    font-weight: 500;
    color: #2B2A29;
}

.warehouse-goods .warehouse-table .table-item .quantity {
    width: 80px;
    height: 32px;
    border-radius: 4px;
    border: 2px solid #4B8182;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    cursor: pointer;
    position: relative;
    z-index: 0;
}

.warehouse-goods .warehouse-table .table-item .quantity .result {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #F0F0F0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    transition: 0.1s;
}

.warehouse-goods .warehouse-table .table-item .quantity .result.hide {
    transform: scale(0);
}

.warehouse-goods .warehouse-table .table-item .quantity input {
    width: 36px;
    padding: 0 5px;
    border: 2px solid #4B8182;
    cursor: pointer;
}

.warehouse-goods .warehouse-table .table-item span {
    font-size: 14px;
    color: #4E4E4E;
}

.warehouse-goods .warehouse-table .table-item .quantity input {
    width: 55px;
    padding: 0 5px;
    border: 2px solid #4B8182;
    cursor: pointer;
    text-align: center;
}

.warehouse-goods .warehouse-table .table-item .quantity .btn {
    width: 30px;
}

.quantity-filter-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}

.quantity-input {
    position: relative;
}

.quantity-input input {
    width: 70px;
    height: 36px;
    border-radius: 4px;
    border: 1px solid #DFDFDF;
    padding: 0 10px;
    font-size: 14px;
    color: #2B2A29;
    background-color: #F0F0F0;
}

.quantity-input input:focus {
    outline: none;
    border-color: #4B8182;
}

.out-of-stock-item {
    opacity: 0.7;
    background-color: #f0f0f0;
    filter: grayscale(50%);
}


@media (max-width: 767px) {

    .quantity-filter-wrap {
        margin-top: 15px;
    }
}

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

@media (max-width: 767px) {
    .warehouse-goods .warehouse-table {
        overflow-x: auto;
    }
}

.warehouse-item {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.warehouse-inputs-wrap {
    display: flex;
    gap: 15px;
    align-items: end;
    flex: 1;
}

/* Стили для селекта с поиском */
.warehouse-select-container {
    position: relative;
}

.warehouse-select-search {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.warehouse-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.warehouse-select-option {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.warehouse-select-option:hover {
    background-color: #f5f5f5;
}

.warehouse-select-option.selected {
    background-color: #007bff;
    color: white;
}

/* Стили для фотографий */
.file-item {
    position: relative;
    width: 100px;
    height: 100px;
    margin-right: 10px;
    margin-bottom: 10px;
    display: inline-block;
    vertical-align: top;
}

.file-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.remove-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 1;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.photo-checkbox-wrap {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 3px;
    padding: 2px;
}

.photo-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.photo-modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.photo-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Стили для сертификатов экспетра */
.expert-certificates {
    padding: 40px;
    padding-bottom: 60px;
    border-radius: 5px;
    border: 1px solid #dfdfdf;
}

.expert-certificates .send {
    border-radius: 5px;
    color: white;
    font-size: 14px;
    background: #ea5448;
    height: 50px;
    width: 100%;
    max-width: 310px;
    margin-right: 30px;
    margin-top: 20px;
    text-transform: uppercase;
    text-align: center;
    position: relative;
    z-index: 0;
}

.certificates-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.certificate-item {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
}

.certificate-preview {
    width: 150px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f5f5f5;
}

.certificate-preview img.pdf-preview {
    max-width: 70px;
}

.certificate-preview img.image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.certificate-info {
    margin-top: 10px;
    position: relative;
}

.file-name {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.delete-certificate {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.add-certificate {
    width: 150px;
    height: 240px;
    position: relative;
    z-index: 0;
    cursor: pointer;
    border-radius: 6px;
    background: #f0f0f0;
    padding: 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.cert-label{
    width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* КОНЕЦ Стили для сертификатов экспетра */

/* Переопределение стилей для мультиселекта на фронте */
.select2-container--default .select2-selection--multiple
{
    border: unset;
}

.select2-container--default.select2-container--focus .select2-selection--multiple
{
    border: unset;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered
{
    height: 52px;
    width: 100%;
    border-radius: 6px;
    background: #f0f0f0;
    padding: 0 20px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice
{
    background-color: #e4e4e4;
    border: 1px solid #646464;
    border-radius: 4px;
    cursor: default;
    float: left;
    margin-right: 5px;
    margin-top: 19px;
    padding: 0 5px;
    color: #646464;
    font-size: 16px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove
{
    color: #646464;
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    margin-right: 4px;
    font-size: 16px;
}

/* отзывы НАЧАЛО */
.reviews-rating {
    gap: 15px;
}

.rating-stars {
    gap: 3px;
}

.rating-stars img {
    width: 20px;
    height: 20px;
}

.reviews-slider-wrap {
    position: relative;
    margin-top: 20px;
    overflow: hidden;
}

.reviews-slider-wrap .slider-navigation {
    position: absolute;
    top: 40%;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
}

.reviews-slider-wrap .slider-navigation button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #E5E5E5;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
}

.reviews-slider-wrap .slider-navigation .slick-prev {
    display: none !important;
}

.reviews-slider-wrap .slider-navigation .slick-next {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    border: 1px solid #E5E5E5;
    background: rgba(255, 255, 255, 0.95);
    transition: all .2s ease;
    backdrop-filter: blur(4px);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
}

.reviews-slider {
    margin: 0;
    padding: 0;
}

.review-slide {
    padding: 0 10px;
    box-sizing: border-box;
}

.review-card {
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 5px;
    padding: 20px;
    height: 300px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card-header {
    margin-bottom: 15px;
    flex-shrink: 0;
}

.reviewer-info {
    gap: 12px;
}

.reviewer-name {
    font-weight: 600;
    font-size: 16px;
    color: #2D2D2D;
}

.review-text {
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    margin-bottom: 15px;
}

.review-stars {
    gap: 5px;
}

.review-stars img {
    width: 16px;
    height: 16px;
}

.review-photos {
    gap: 8px;
    min-height: 60px;
    margin-top: auto;
    flex-shrink: 0;
}

.photo-item {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Точки слайдера - всегда по центру */
.reviews-slider .slick-dots {
    position: static !important;
    margin-top: 30px;
    display: flex !important;
    justify-content: center;
    gap: 10px;
}

.reviews-slider .slick-dots li {
    display: inline-block;
    margin: 0 5px;
}

.reviews-slider .slick-dots li button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    text-indent: -9999px;
}

.reviews-slider .slick-dots li.slick-active button {
    background: #4B8182;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .reviews-slider-wrap .slider-navigation button {
        width: 35px;
        height: 35px;
    }

    .review-card {
        height: 280px !important;
    }

    /* Ссылка "view-all-reviews" переносится вниз */
    .reviews-rating {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .view-all-reviews {
        margin-top: 10px;
        align-self: flex-start;
    }
}

/* убираем центрирование если слайдов мало */
.reviews-slider .slick-track {
    margin-left: 0;
}
/* отзывы КОНЕЦ */
