body {
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: bold;
}

.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.price-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 10px;
}

.current-price {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.card-title {
    color: #2c3e50;
    margin-bottom: 15px;
}

.badge {
    font-size: 0.8rem;
}

.table-responsive {
    margin-top: 20px;
}

.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
}

.breadcrumb {
    background-color: #e9ecef;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
}

.alert {
    border-radius: 0.5rem;
}

.pagination .page-link {
    color: #007bff;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.text-success {
    font-weight: bold;
}

.text-warning {
    font-weight: bold;
}

.text-danger {
    font-weight: bold;
}

/* 商品名セルのスタイル */
.product-name-cell {
    max-width: 350px;
    min-width: 200px;
    word-break: break-word;
    white-space: normal;
    line-height: 1.4;
}

.product-name-manufacturer {
    display: inline-block;
    margin-right: 0.35rem;
    vertical-align: top;
    white-space: nowrap;
}

.product-name-manufacturer--blacklisted {
    padding: 0.1rem 0.25rem;
    border-radius: 0.25rem;
    background-color: rgba(220, 53, 69, 0.1);
}

/* ソータブルヘッダー */
.sortable-header {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.sortable-header:hover {
    background-color: #495057;
}

.sort-icon {
    font-size: 0.75rem;
}

/* テーブルスタイル */
.table th {
    vertical-align: middle;
}

.table td {
    vertical-align: middle;
}

.table-responsive {
    margin-bottom: 20px;
}

/* Keepaグラフ画像 */
.keepa-graph {
    max-width: 150px;
    height: auto;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.keepa-graph:hover {
    transform: scale(2.5);
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 利益フィルタ入力欄 */
.profit-filter-input {
    max-width: 120px;
}

/* 価格表示の強調 */
.text-danger.fw-bold {
    font-size: 1.1rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .price-display {
        margin-top: 15px;
        text-align: center;
    }

    .card-body .row {
        text-align: center;
    }

    .card-body .col-md-4 {
        margin-top: 15px;
    }

    /* モバイルでのテーブル調整 */
    .table-responsive {
        font-size: 0.9rem;
    }

    .product-name-cell {
        max-width: 200px;
    }
}

@media (max-width: 576px) {

    /* 非常に小さい画面でのテーブル */
    .table-responsive {
        font-size: 0.8rem;
    }

    .product-name-cell {
        max-width: 120px;
    }

    /* 不要な列を隠す（ASIN, Keepa, カテゴリ, 利益, 利益率, 納期, 最終更新） */
    .table th:nth-child(3),
    .table td:nth-child(3),
    .table th:nth-child(4),
    .table td:nth-child(4),
    .table th:nth-child(7),
    .table td:nth-child(7),
    .table th:nth-child(10),
    .table td:nth-child(10),
    .table th:nth-child(11),
    .table td:nth-child(11),
    .table th:nth-child(13),
    .table td:nth-child(13),
    .table th:nth-child(14),
    .table td:nth-child(14) {
        display: none;
    }
}

.kaitori-price-cell {
    white-space: nowrap;
}

/* ブラックリスト登録メーカーの行 */
.row-blacklisted {
    background-color: rgba(220, 53, 69, 0.08) !important;
}

.row-blacklisted:hover {
    background-color: rgba(220, 53, 69, 0.15) !important;
}

/* メーカー絞り込みドロップダウンのブラックリスト項目 */
.option-blacklisted {
    color: #dc3545;
    background-color: #fff5f5;
    font-weight: bold;
}