/* =====================================================
   Smartmart 買取カテゴリ一覧ページ専用CSS
   sell/ai/, sell/drone/, sell/robot/
   ===================================================== */
@import url('/css/variables.css');

/* =====================================================
   ページレイアウト
   ===================================================== */

.sell-cat-page {
    padding: 40px 0;
    min-height: 600px;
}

.sell-cat-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================================
   パンくずリスト
   ===================================================== */

.sell-cat-breadcrumb {
    background: var(--bg-secondary);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 32px;
}

.sell-cat-breadcrumb .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sell-cat-breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    font-size: 14px;
}

.sell-cat-breadcrumb-item {
    display: flex;
    align-items: center;
}

.sell-cat-breadcrumb-item + .sell-cat-breadcrumb-item::before {
    content: "\203A";
    color: var(--text-secondary);
    margin: 0 8px;
    font-size: 16px;
}

.sell-cat-breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.sell-cat-breadcrumb-item a:hover {
    text-decoration: underline;
}

.sell-cat-breadcrumb-item.is-active span {
    color: var(--text-secondary);
}

/* =====================================================
   ページヘッダー
   ===================================================== */

.sell-cat-heading {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.sell-cat-lead {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

/* =====================================================
   商品グリッド
   ===================================================== */

.sell-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

@media (max-width: 1024px) {
    .sell-cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sell-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .sell-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* =====================================================
   商品カード
   ===================================================== */

.sell-cat-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.sell-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    text-decoration: none;
    color: var(--text-primary);
}

/* 商品画像エリア */
.sell-cat-card-img {
    background: var(--bg-secondary);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.sell-cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}

.sell-cat-card-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-light);
    width: 100%;
    height: 100%;
}

.sell-cat-card-no-image .sell-cat-card-no-image-icon {
    font-size: 2.5rem;
    line-height: 1;
    color: #c8d0d8;
}

/* 商品情報エリア */
.sell-cat-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    flex: 1;
}

.sell-cat-card-brand {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.sell-cat-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.sell-cat-card-price {
    margin-top: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

/* =====================================================
   CTA セクション
   ===================================================== */

.sell-cat-cta {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    margin-top: 20px;
}

.sell-cat-cta h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.sell-cat-cta p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.sell-cat-cta-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.sell-cat-cta-btn:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* =====================================================
   レスポンシブ補足
   ===================================================== */

@media (max-width: 768px) {
    .sell-cat-heading {
        font-size: 22px;
    }

    .sell-cat-cta {
        padding: 30px 20px;
    }

    .sell-cat-cta h2 {
        font-size: 18px;
    }
}
