.upload-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.shop--content--image {
    width: 400px;
    height: 350px;
    border-radius: 12px;
    background: #f8f9fa;
    overflow: hidden;
    position: relative;
}

/* Khung ảnh chính */
.main-preview {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Ảnh / video bên trong */
.main-preview img,
.main-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

/* Hover nổi + zoom nhẹ */
.main-preview:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    border-color: #2563eb;
}

.main-preview:hover img,
.main-preview:hover video {
    transform: scale(1.05);
}


.main-preview img,
.main-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* QUAN TRỌNG */
    border-radius: 12px;
}

.previewListWrapper {
    display: flex;
    gap: 10px;
    width: 400px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    padding-left: 2px;
}

.previewListWrapper::-webkit-scrollbar {
    height: 6px;
}

.previewListWrapper {
    cursor: grab;
}

.previewListWrapper:active {
    cursor: grabbing;
}

.previewListWrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.previewListWrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    border-radius: 10px;
}

.previewListWrapper::-webkit-scrollbar {
    height: 6px;
}

.previewListWrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.previewListWrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    border-radius: 10px;
}


/*  preview-list  */
.preview-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: max-content;
}

.preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: visible;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 0 0 auto;
}
/* số thứ tự */
.preview-index {
    position: absolute;
    top: 4px;
    left: 4px;
    background: linear-gradient(119.16deg, #8D4DF3 0%, #0120D4 100%);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
    z-index: 5;
}
/* Ảnh / video */
.preview-item img,
.preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover rung nhẹ */
.preview-item:hover {
    transform: scale(1.03) rotate(0.5deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Nút X */
.preview-item .btn-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
    cursor: pointer;
}

.preview-item .btn-remove2 {
    position: absolute;
    top: 4px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
    cursor: pointer;
}


/* Hover mới hiện nút */
.preview-item:hover .btn-remove , .preview-item:hover .btn-remove2 {
    opacity: 1;
    transform: scale(1);
}

/* Hover vào nút đỏ */
.preview-item .btn-remove:hover , .preview-item .btn-remove2:hover {
    background: #dc2626;
}

.preview-item.add-more {
    margin-top: 10px;
    width: 70px;
    height: 70px;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;

    transition: all 0.25s ease;
    background: #f8fafc;
}

/* Hover */
.preview-item.add-more:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #3b82f6;
    transform: scale(1.05);
}

/* Icon */
.preview-item.add-more i {
    font-size: 26px;
}

/* Hiệu ứng click */
.preview-item.add-more:active {
    transform: scale(0.95);
}

.d-none {
    display: none !important;
}

/* item image click */
.preview-item.active {
    border: 2px solid #3b82f6;
    box-shadow: 0 0 6px rgba(59, 130, 246, .5);
}

/* Badge ảnh chính */
.badge-main {
    position: absolute;
    top: -6px;
    left: -8px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
}


/* Viền nổi bật */
.preview-item.main-image {
    border: 2px solid #2563eb;
    box-shadow: 0 0 6px rgba(37, 99, 235, 0.6);
}