.wardrobe-page {
    text-align: center;
    padding: 20px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin: 30px auto;
    max-width: 600px;
}
.image-option {
    border: 5px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #fff;
    padding: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    height: 120px; /* 【新增】給予一個固定的高度 */
}
.image-option img {
    width: 100%;
    height: 100%; /* 【修改】讓圖片填滿整個高度 */
    display: block;
    border-radius: 10px;
    object-fit: cover; /* 【新增】保持圖片比例，自動裁切填滿 */
}

.image-option.selected {
    border-color: var(--sunny-yellow);
    transform: scale(1.05);
}

.image-option.locked::after {
    content: '🔒';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: white;
    background-color: rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.wardrobe-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 【修改】為未解鎖的格子本身設定樣式 */
.image-option.locked {
    background-color: #e0e0e0; /* 給一個灰色背景 */
    cursor: not-allowed;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px; /* 直接設定鎖頭大小 */
}

/* 【修改】鎖頭的內容，不再需要背景 */
.image-option.locked::after {
    content: '🔒';
}