@import url('/css/variables.css');

/* ============================================================
   Smartmart 買取ページ — MacClaw-inspired クリーンレイアウト
   prefix: sl-
   ============================================================ */

/* --- Section / Container --- */
.sl-section {
    padding: 24px 0 80px;
    min-height: 60vh;
}

.sl-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Page Header --- */
.sl-header {
    text-align: center;
    margin-bottom: 40px;
}

.sl-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.sl-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Features Row --- */
.sl-features-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.sl-feature-item {
    text-align: center;
    padding: 20px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.sl-feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 20px;
}

.sl-feature-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.sl-feature-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* --- Filter Tabs --- */
.sl-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.sl-tab {
    padding: 8px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.sl-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.sl-tab.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* --- Product Grid --- */
.sl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

/* --- Product Card --- */
.sl-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.sl-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.sl-card-image {
    background: var(--bg-tertiary);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sl-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s;
}

.sl-card:hover .sl-card-image img {
    transform: scale(1.05);
}

.sl-card-body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sl-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 4px;
}

.sl-card-brand {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.sl-card-condition {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
    align-self: flex-start;
}

.sl-condition-new { background: #e3f2fd; color: #1565c0; }
.sl-condition-excellent { background: #e8f5e9; color: #2e7d32; }
.sl-condition-good { background: #fff3e0; color: #ef6c00; }
.sl-condition-fair { background: #ffe0b2; color: #e65100; }
.sl-condition-poor { background: #ffebee; color: #c62828; }

.sl-card-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.sl-card-price-label {
    font-size: 11px;
    color: var(--text-light);
}

.sl-card-price-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.3px;
}

.sl-card-cta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 12px;
    transition: gap 0.2s;
}

.sl-card:hover .sl-card-cta {
    gap: 8px;
}

/* --- Empty State --- */
.sl-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.sl-empty-icon {
    font-size: 48px;
    color: var(--text-light);
    opacity: 0.3;
    margin-bottom: 16px;
}

.sl-empty-text {
    font-size: 15px;
    color: var(--text-secondary);
}

/* --- CTA Banner --- */
.sl-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
}

.sl-cta-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.sl-cta-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

.sl-cta-actions {
    flex-shrink: 0;
}

.sl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.sl-btn-white {
    background: #fff;
    color: var(--primary-color);
}

.sl-btn-white:hover {
    background: var(--bg-secondary);
    color: var(--primary-dark);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .sl-section {
        padding: 16px 0 60px;
    }

    .sl-title {
        font-size: 24px;
    }

    .sl-features-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .sl-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .sl-card-image {
        height: 140px;
    }

    .sl-card-body {
        padding: 12px 14px 16px;
    }

    .sl-card-name {
        font-size: 13px;
    }

    .sl-card-price-value {
        font-size: 17px;
    }

    .sl-cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
        gap: 20px;
    }

    .sl-cta-actions {
        width: 100%;
    }

    .sl-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .sl-features-row {
        grid-template-columns: 1fr;
    }

    .sl-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .sl-card-image {
        height: 120px;
    }

    .sl-card-price-value {
        font-size: 15px;
    }
}
