/*
    ===========================================
      アウトレットページ専用のスタイルシート (v6: 4列表示対応)
    ===========================================
*/

.outlet-container {
    padding: 60px 20px;
    text-align: center;
}

.filter-container {
    margin-top: 40px;
    margin-bottom: -20px;
    text-align: right;
}

.filter-container label {
    font-weight: bold;
    margin-right: 10px;
}

#category-filter {
    padding: 8px 12px;
    font-size: 1em;
    border-radius: 6px;
    border: 1px solid #ccc;
    cursor: pointer;
}

/* ★★★ 変更箇所 ★★★ */
/* 1列あたりの最小幅を小さくすることで、結果的に表示される列数を増やす */
#product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* 300px から 250px に変更 */
    gap: 30px; /* 隙間を少し狭める */
    margin-top: 50px;
    text-align: left;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    color: #333;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s;
    position: relative; 
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.product-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    transition: opacity 0.2s;
}
.product-link:hover {
    opacity: 0.8;
}

.product-image-wrapper {
    width: 100%;
    padding-top: 100%;
    position: relative;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff;
}

.product-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.product-name { font-size: 1.3em; font-weight: bold; margin: 0 0 10px 0; } /* 文字サイズを少し調整 */
.product-description { font-size: 0.9em; color: #666; margin: 0 0 15px 0; }
.product-price { font-size: 1.2em; font-weight: bold; color: #D92E26; margin-top: auto; } /* 文字サイズを少し調整 */
.sold-out-banner { position: absolute; top: 25px; left: -40px; transform: rotate(-45deg); background-color: #D92E26; color: white; padding: 5px 0; font-size: 1.1em; font-weight: bold; text-align: center; width: 180px; box-shadow: 0 2px 5px rgba(0,0,0,0.3); z-index: 10; }
.card-actions { padding: 10px 20px 20px 20px; border-top: 1px solid #f0f0f0; }
.add-to-list-btn { width: 100%; padding: 10px; font-size: 1em; font-weight: bold; color: #3361A6; background-color: #f0f2f5; border: 1px solid #ddd; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.add-to-list-btn:hover { background-color: #e2e6ea; border-color: #3361A6; }

.spec-table {
    width: 100%;
    border-collapse: collapse; /* セルの境界線を一本化 */
    margin-bottom: 25px;
    font-size: 0.95em;
}

.spec-table th,
.spec-table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
}

.spec-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    width: 35%; /* 見出し列の幅を固定 */
}