.preview-container {
    display: flex;
    justify-content: center;   
    align-items: center;       
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.preview-card {
    width: 140px;
    background: #fff;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    text-align: center;
    overflow: hidden;
}

.preview-img-wrapper {
    width: 100%;
    height: 120px;
    background: #f3f3f3;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
    position: relative;
}

.preview-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
    display: block;           /* 🔥 FIX */
    margin: auto;  
    z-index: 1;
}

.preview-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    z-index: 999;
}

.preview-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    font-weight: bold;

    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}
/* 🔴 REMOVE BUTTON */
.preview-btn:first-child {
    color: #ef4444;
}

/* 🔄 ROTATE BUTTON */
.preview-btn:last-child {
    color: #374151;
}

/* ✨ HOVER EFFECT */
.preview-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* 🔥 CLICK EFFECT */
.preview-btn:active {
    transform: scale(0.95);
}

.preview-name {
    margin-top: 8px;
    font-size: 12px;
}
.preview-size {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}